Struct airmash_protocol::Upgrades[][src]

pub struct Upgrades {
    pub speed: u8,
    pub shield: bool,
    pub inferno: bool,
}

Upgrade info that a client needs to know about to calculate movement. This also includes the shielded state of the player.

Note that since a player should never have more than 5 upgrades on the official server, protocol-v5 can only represent amounts of speed upgrades in the range 0 to 7.

Used in:

Fields

Note that only the first 3 bits of this are used in protocol-v5

Trait Implementations

impl Copy for Upgrades
[src]

impl Clone for Upgrades
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Upgrades
[src]

Formats the value using the given formatter. Read more

impl Default for Upgrades
[src]

Returns the "default value" for a type. Read more

impl Hash for Upgrades
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Upgrades
[src]

impl PartialEq for Upgrades
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Component for Upgrades
[src]

Associated storage type for this component.

Auto Trait Implementations

impl Send for Upgrades

impl Sync for Upgrades