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: u16minor_version: u16model_name: Stringskeleton_file_name: Stringmaterial_file_names: Vec<String>animation_file_name: Option<String>mesh_file_name: Stringentries: 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.

Converts the data to MODL and writes to the given path. The entire file is buffered for performance.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.