[−][src]Struct brawllib_rs::fighter::Fighter
Fields
cased_name: String
moveset_common: Arc
moveset: Arc
motion: Arc
models: Vec<Arc>
modded_by_psa: bool
mod_type: ModType
Methods
impl Fighter
[src]
pub fn load(
brawl_fighter_dir: ReadDir,
mod_fighter_dir: Option<ReadDir>,
single_model: bool
) -> Vec<Fighter>
[src]
brawl_fighter_dir: ReadDir,
mod_fighter_dir: Option<ReadDir>,
single_model: bool
) -> Vec<Fighter>
This is the main entry point of the library. Call this function to get Fighter structs that correspond to each fighters folder in the 'fighter' directory
brawl_fighter_dir must point at an exported Brawl 'fighter' directory. mod_fighter_dir may point at a brawl mod 'fighter' directory. Individual files in mod_fighter_dir will replace files in the brawl_fighter_dir with the same name.
If single_model is true then only one model for each fighter is loaded, otherwise all models are loaded. It's much faster to only process one model so set this to true if you only need one.
pub fn get_fighter_sakurai(&self) -> Option<&ArcSakurai>
[src]
retrieves the ArcSakurai
pub fn get_fighter_sakurai_common(&self) -> Option<&ArcSakurai>
[src]
retrieves the common ArcSakurai
pub fn get_fighter_data(&self) -> Option<&ArcFighterData>
[src]
retrieves the fighter data
pub fn get_fighter_data_common(&self) -> Option<&ArcFighterDataCommon>
[src]
retrieves the fighter data common
pub fn get_fighter_data_common_scripts(&self) -> Vec<&SectionScript>
[src]
retrieves the script sections from fighter data common
pub fn get_bones(&self) -> Option<&Bone>
[src]
retrieves the bones from a character model
pub fn get_animations(&self) -> Vec<&Chr0>
[src]
retrieves the animations for the character model
pub fn get_animations_fit_motion(motion: &Arc) -> Vec<&Chr0>
[src]
retrieves the animations for the character model from the Fit{}Motion arc
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,