PlayerData

Struct PlayerData 

Source
#[repr(C)]
pub struct PlayerData {
Show 21 fields pub kind: u8_, pub status: u8_, pub stocks: u8_, pub costume: u8_, pub portNumberOverride: u8_, pub spawnPointOverride: u8_, pub facingDirection: u8_, pub subcolor: u8_, pub handicap: u8_, pub team: u8_, pub nametag: u8_, pub xb: u8_, pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2], u8>, pub cpuKind: u8_, pub cpuLevel: u8_, pub damageStart: u16_, pub damageSpawn: u16_, pub staminaStart: u16_, pub attack: f32, pub defense: f32, pub scale: f32,
}

Fields§

§kind: u8_§status: u8_§stocks: u8_§costume: u8_§portNumberOverride: u8_§spawnPointOverride: u8_§facingDirection: u8_§subcolor: u8_§handicap: u8_§team: u8_§nametag: u8_§xb: u8_§_bitfield_1: __BindgenBitfieldUnit<[u8; 2], u8>§cpuKind: u8_§cpuLevel: u8_§damageStart: u16_§damageSpawn: u16_§staminaStart: u16_§attack: f32§defense: f32§scale: f32

Implementations§

Source§

impl PlayerData

Source

pub fn isRumble(&self) -> c_uchar

Source

pub fn set_isRumble(&mut self, val: c_uchar)

Source

pub fn isEntry(&self) -> c_uchar

Source

pub fn set_isEntry(&mut self, val: c_uchar)

Source

pub fn unk2(&self) -> c_uchar

Source

pub fn set_unk2(&mut self, val: c_uchar)

Source

pub fn unk3(&self) -> c_uchar

Source

pub fn set_unk3(&mut self, val: c_uchar)

Source

pub fn new_bitfield_1( isRumble: c_uchar, isEntry: c_uchar, unk2: c_uchar, unk3: c_uchar, ) -> __BindgenBitfieldUnit<[u8; 2], u8>

Trait Implementations§

Source§

impl Clone for PlayerData

Source§

fn clone(&self) -> PlayerData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PlayerData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for PlayerData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.