1 2 3 4 5 6 7 8 9 10 11 12
use enums::MobType; use types::{Mob, Position}; /// Update for powerups #[derive(Copy, Clone, Debug)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct MobUpdateStationary { pub id: Mob, #[cfg_attr(feature = "serde", serde(rename = "type"))] pub ty: MobType, pub pos: Position, }