1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use enums::FlagUpdateType; use types::{Flag, Player, Position}; /// Update position of flag in CTF #[derive(Copy, Clone, Debug)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct GameFlag { #[cfg_attr(feature = "serde", serde(rename = "type"))] pub ty: FlagUpdateType, pub flag: Flag, pub id: Option<Player>, pub pos: Position, /// Blue team score pub blueteam: u8, /// Red team score pub redteam: u8, }