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

Trait Implementations

impl Copy for GameType
[src]

impl Clone for GameType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GameType
[src]

Formats the value using the given formatter. Read more

impl Hash for GameType
[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 GameType
[src]

impl PartialEq for GameType
[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 GameType
[src]

Associated storage type for this component.

impl TryFrom<u8> for GameType
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<GameType> for u8
[src]

Performs the conversion.

impl TryFrom<u16> for GameType
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<GameType> for u16
[src]

Performs the conversion.

impl TryFrom<u32> for GameType
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<GameType> for u32
[src]

Performs the conversion.

impl TryFrom<i8> for GameType
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<GameType> for i8
[src]

Performs the conversion.

impl TryFrom<i16> for GameType
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<GameType> for i16
[src]

Performs the conversion.

impl TryFrom<i32> for GameType
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<GameType> for i32
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for GameType

impl Sync for GameType