Struct airmash_protocol::server::GameFlag [−][src]
pub struct GameFlag {
pub ty: FlagUpdateType,
pub flag: Flag,
pub id: Option<Player>,
pub pos: Position,
pub blueteam: u8,
pub redteam: u8,
}Update position of flag in CTF
Fields
ty: FlagUpdateType
flag: Flag
id: Option<Player>
pos: Position
blueteam: u8
Blue team score
redteam: u8
Red team score
Trait Implementations
impl Copy for GameFlag[src]
impl Copy for GameFlagimpl Clone for GameFlag[src]
impl Clone for GameFlagfn clone(&self) -> GameFlag[src]
fn clone(&self) -> GameFlagReturns 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)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for GameFlag[src]
impl Debug for GameFlagfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<GameFlag> for ServerPacket[src]
impl From<GameFlag> for ServerPacket