Enum airmash_protocol::GameType [−][src]
pub enum GameType { FFA, CTF, BTR, }
Game Type.
Hopefully self explanatory, used to indicate to
the client which game is being played. The client
uses this to decide on player colouring and
whether or not to show the flags in-game.
It will also correspond with the type of detailed
score (ScoreDetailedFFA
, ScoreDetailedCTF
,
or ScoreDetailedBTR
) that the client expects
to receive.
Used in:
- TODO
Variants
FFA
CTF
BTR
Trait Implementations
impl Copy for GameType
[src]
impl Copy for GameType
impl Clone for GameType
[src]
impl Clone for GameType
fn clone(&self) -> GameType
[src]
fn clone(&self) -> GameType
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 GameType
[src]
impl Debug for GameType
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 Hash for GameType
[src]
impl Hash for GameType
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 GameType
[src]
impl Eq for GameType
impl PartialEq for GameType
[src]
impl PartialEq for GameType
fn eq(&self, other: &GameType) -> bool
[src]
fn eq(&self, other: &GameType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Component for GameType
[src]
impl Component for GameType
type Storage = DenseVecStorage<Self>
Associated storage type for this component.
impl TryFrom<u8> for GameType
[src]
impl TryFrom<u8> for GameType
type Error = EnumValueOutOfRangeError<u8>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: u8) -> Result<Self, Self::Error>
[src]
fn try_from(v: u8) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<GameType> for u8
[src]
impl From<GameType> for u8
impl TryFrom<u16> for GameType
[src]
impl TryFrom<u16> for GameType
type Error = EnumValueOutOfRangeError<u16>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: u16) -> Result<Self, Self::Error>
[src]
fn try_from(v: u16) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<GameType> for u16
[src]
impl From<GameType> for u16
impl TryFrom<u32> for GameType
[src]
impl TryFrom<u32> for GameType
type Error = EnumValueOutOfRangeError<u32>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: u32) -> Result<Self, Self::Error>
[src]
fn try_from(v: u32) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<GameType> for u32
[src]
impl From<GameType> for u32
impl TryFrom<i8> for GameType
[src]
impl TryFrom<i8> for GameType
type Error = EnumValueOutOfRangeError<i8>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: i8) -> Result<Self, Self::Error>
[src]
fn try_from(v: i8) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<GameType> for i8
[src]
impl From<GameType> for i8
impl TryFrom<i16> for GameType
[src]
impl TryFrom<i16> for GameType
type Error = EnumValueOutOfRangeError<i16>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: i16) -> Result<Self, Self::Error>
[src]
fn try_from(v: i16) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<GameType> for i16
[src]
impl From<GameType> for i16
impl TryFrom<i32> for GameType
[src]
impl TryFrom<i32> for GameType
type Error = EnumValueOutOfRangeError<i32>
try_from
)The type returned in the event of a conversion error.
fn try_from(v: i32) -> Result<Self, Self::Error>
[src]
fn try_from(v: i32) -> Result<Self, Self::Error>
try_from
)Performs the conversion.
impl From<GameType> for i32
[src]
impl From<GameType> for i32