Struct airmash_protocol::server::LoginPlayer
[−]
[src]
pub struct LoginPlayer { pub id: u16, pub status: u8, pub level: u8, pub name: String, pub ty: PlaneType, pub team: u16, pub pos_x: f32, pub pos_y: f32, pub rot: f32, pub flag: FlagCode, pub upgrades: u8, }
Initial data passed in for a player when the server starts.
This is an element of the players
array within the
Login
packet.
Fields
id: u16
The id of the player.
status: u8
level: u8
The level of the player.
name: String
The player's name. This may
be different than the name
requested in the
Login
packet.
ty: PlaneType
The type of plane the player is flying.
team: u16
The current team that the player is on.
pos_x: f32
The X position of the player.
pos_y: f32
The Y positoin of the player.
rot: f32
The player's current rotation.
flag: FlagCode
The current flag of the player.
upgrades: u8
Trait Implementations
impl Clone for LoginPlayer
[src]
fn clone(&self) -> LoginPlayer
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more