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

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

Fields

cased_name: Stringmoveset: Arcmotion: Arcmodels: Vec<Arc>modded_by_psa: bool

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_data(&self) -> Option<&ArcFighterData>
[src]

retrieves the fighter data

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

Trait Implementations

impl Debug for Fighter
[src]

Auto Trait Implementations

impl Send for Fighter

impl Sync for Fighter

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Any for T where
    T: 'static + ?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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.