Struct airmash_protocol::server::PlayerUpdate
[−]
[src]
pub struct PlayerUpdate { pub clock: u32, pub id: u16, pub keystate: u8, pub upgrades: u8, pub pos_x: f32, pub pos_y: f32, pub rot: f32, pub speed_x: f32, pub speed_y: f32, }
Movement update for a player.
Fields
clock: u32
Server clock
id: u16
Player id
keystate: u8
Keys pressed by a player
upgrades: u8
pos_x: f32
X position of player
pos_y: f32
Y position of player
rot: f32
Rotation of player
speed_x: f32
Speed in X direction
speed_y: f32
Speed in Y direction
Trait Implementations
impl Clone for PlayerUpdate
[src]
fn clone(&self) -> PlayerUpdate
[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