1 2 3 4 5 6 7 8 9 10 11 12 13
use types::{Player, Position, Rotation, ServerKeyState, Velocity}; /// A player has run into a wall #[derive(Copy, Clone, Debug)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct EventBounce { pub clock: u32, pub id: Player, pub keystate: ServerKeyState, pub pos: Position, pub rot: Rotation, pub speed: Velocity, }