Function xc3_model::load_animations
source · pub fn load_animations<P: AsRef<Path>>(
anim_path: P,
) -> Result<Vec<Animation>, DecompressStreamError>Expand description
Load all animations from a .anm, .mot, or .motstm_data file.
§Examples
// Fiora
let animations = xc3_model::load_animations("xeno1/chr/pc/mp080000.mot")?;
println!("{}", animations.len());
// Pyra
let animations = xc3_model::load_animations("xeno2/model/bl/bl000101.mot")?;
println!("{}", animations.len());
// Mio military uniform
let animations = xc3_model::load_animations("xeno3/chr/ch/ch01027000_event.mot")?;
println!("{}", animations.len());