#[repr(C)]pub struct PlayerClass {
pub team: u8,
pub skin: i32,
pub spawn: Vector3,
pub angle: f32,
pub weapons: StaticArray<WeaponSlotData, 13>,
}Expand description
Player Class Information
Fields§
§team: u8The class’s team
skin: i32The class’s skin ID
spawn: Vector3The class’s spawn position
angle: f32The class’s angle
weapons: StaticArray<WeaponSlotData, 13>The class’s weapons
Trait Implementations§
Source§impl Clone for PlayerClass
impl Clone for PlayerClass
Source§fn clone(&self) -> PlayerClass
fn clone(&self) -> PlayerClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerClass
impl Debug for PlayerClass
Source§impl Default for PlayerClass
impl Default for PlayerClass
Source§fn default() -> PlayerClass
fn default() -> PlayerClass
Returns the “default value” for a type. Read more
impl Copy for PlayerClass
Auto Trait Implementations§
impl Freeze for PlayerClass
impl RefUnwindSafe for PlayerClass
impl Send for PlayerClass
impl Sync for PlayerClass
impl Unpin for PlayerClass
impl UnwindSafe for PlayerClass
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