[][src]Struct brawllib_rs::fighter::Fighter

pub struct Fighter {
    pub cased_name: String,
    pub moveset_common: Arc,
    pub moveset: Arc,
    pub motion: Arc,
    pub models: Vec<Arc>,
    pub modded_by_psa: bool,
    pub mod_type: ModType,
}

Fields

cased_name: Stringmoveset_common: Arcmoveset: Arcmotion: Arcmodels: Vec<Arc>modded_by_psa: boolmod_type: ModType

Methods

impl Fighter[src]

pub fn load(
    brawl_fighter_dir: ReadDir,
    mod_fighter_dir: Option<ReadDir>,
    single_model: bool
) -> Vec<Fighter>
[src]

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

impl Debug for Fighter[src]

Auto Trait Implementations

impl Send for Fighter

impl Sync for Fighter

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]