1 2 3 4 5 6 7 8 9
use types::{Player, Position}; #[derive(Copy, Clone, Debug)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct PlayerKill { pub id: Player, pub killer: Option<Player>, pub pos: Position, }
1 2 3 4 5 6 7 8 9
use types::{Player, Position}; #[derive(Copy, Clone, Debug)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct PlayerKill { pub id: Player, pub killer: Option<Player>, pub pos: Position, }