Struct ssbh_data::modl_data::ModlData [−][src]
pub struct ModlData { pub major_version: u16, pub minor_version: u16, pub model_name: String, pub skeleton_file_name: String, pub material_file_names: Vec<String>, pub animation_file_name: Option<String>, pub mesh_file_name: String, pub entries: Vec<ModlEntryData>, }
Expand description
The data associated with a Modl file. The supported version is 1.7.
Fields
major_version: u16
minor_version: u16
model_name: String
skeleton_file_name: String
material_file_names: Vec<String>
animation_file_name: Option<String>
mesh_file_name: String
entries: Vec<ModlEntryData>
Implementations
Tries to read and convert the MODL from path
.
The entire file is buffered for performance.
Tries to read and convert the MODL from reader
.
For best performance when opening from a file, use from_file
instead.
Converts the data to MODL and writes to the given writer
.
For best performance when writing to a file, use write_to_file
instead.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ModlData
impl UnwindSafe for ModlData