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

The id of the player.

The level of the player.

The player's name. This may be different than the name requested in the Login packet.

The type of plane the player is flying.

The current team that the player is on.

The X position of the player.

The Y positoin of the player.

The player's current rotation.

The current flag of the player.

Trait Implementations

impl Clone for LoginPlayer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for LoginPlayer
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for LoginPlayer

impl Sync for LoginPlayer