Struct airmash_protocol::Upgrades [−][src]
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:
Login, specificallyLoginPlayerPlayerUpdatePlayerRespawnPlayerUpgrade
Fields
speed: u8
Note that only the first 3 bits of this are used in protocol-v5
shield: bool
inferno: bool
Trait Implementations
impl Copy for Upgrades[src]
impl Copy for Upgradesimpl Clone for Upgrades[src]
impl Clone for Upgradesfn clone(&self) -> Upgrades[src]
fn clone(&self) -> UpgradesReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Upgrades[src]
impl Debug for Upgradesfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Upgrades[src]
impl Default for Upgradesimpl Hash for Upgrades[src]
impl Hash for Upgradesfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Eq for Upgrades[src]
impl Eq for Upgradesimpl PartialEq for Upgrades[src]
impl PartialEq for Upgradesfn eq(&self, other: &Upgrades) -> bool[src]
fn eq(&self, other: &Upgrades) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Upgrades) -> bool[src]
fn ne(&self, other: &Upgrades) -> boolThis method tests for !=.
impl Component for Upgrades[src]
impl Component for Upgradestype Storage = DenseVecStorage<Self>
Associated storage type for this component.