1 2 3 4 5 6 7 8 9 10 11 12 13 14
use types::{Player, Position, Rotation, ServerKeyState, Upgrades, Velocity}; /// Movement update for a player. #[derive(Copy, Clone, Debug)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct PlayerUpdate { pub clock: u32, pub id: Player, pub keystate: ServerKeyState, pub upgrades: Upgrades, pub pos: Position, pub rot: Rotation, pub speed: Velocity, }