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
, specificallyLoginPlayer
PlayerUpdate
PlayerRespawn
PlayerUpgrade
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 Upgrades
impl Clone for Upgrades
[src]
impl Clone for Upgrades
fn clone(&self) -> Upgrades
[src]
fn clone(&self) -> Upgrades
Returns 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 Upgrades
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Upgrades
[src]
impl Default for Upgrades
impl Hash for Upgrades
[src]
impl Hash for Upgrades
fn 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 Upgrades
impl PartialEq for Upgrades
[src]
impl PartialEq for Upgrades
fn eq(&self, other: &Upgrades) -> bool
[src]
fn eq(&self, other: &Upgrades) -> bool
This 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) -> bool
This method tests for !=
.
impl Component for Upgrades
[src]
impl Component for Upgrades
type Storage = DenseVecStorage<Self>
Associated storage type for this component.