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

Server clock

Player id

Keys pressed by a player

X position of player

Y position of player

Rotation of player

Speed in X direction

Speed in Y direction

Trait Implementations

impl Clone for PlayerUpdate
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PlayerUpdate
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PlayerUpdate

impl Sync for PlayerUpdate