pub struct Player {Show 15 fields
pub port: Port,
pub character: u8,
pub type: PlayerType,
pub stocks: u8,
pub costume: u8,
pub team: Option<Team>,
pub handicap: u8,
pub bitfield: u8,
pub cpu_level: Option<u8>,
pub offense_ratio: f32,
pub defense_ratio: f32,
pub model_scale: f32,
pub ucf: Option<Ucf>,
pub name_tag: Option<MeleeString>,
pub netplay: Option<Netplay>,
}
Expand description
Information about each player such as character, team, stock count, etc.
Fields§
§port: Port
§character: u8
§type: PlayerType
§stocks: u8
starting stock count
costume: u8
§team: Option<Team>
§handicap: u8
handicap level; affects offense_ratio
& defense_ratio
bitfield: u8
miscellaneous flags (metal, stamina mode, etc)
cpu_level: Option<u8>
§offense_ratio: f32
knockback multiplier when this player hits another
defense_ratio: f32
knockback multiplier when this player is hit
model_scale: f32
§ucf: Option<Ucf>
UCF info (added: v1.0)
name_tag: Option<MeleeString>
in-game name-tag (added: v1.3)
netplay: Option<Netplay>
netplay info (added: v3.9)
Trait Implementations§
source§impl PartialEq for Player
impl PartialEq for Player
impl StructuralPartialEq for Player
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnwindSafe for Player
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more