use serde::{Deserialize, Serialize}; use crate::math::vec::FGVec2; /// One frame of a player's raw input. This is the type GGRS serializes and /// sends over the wire, so keep it small and keep it `PartialEq`. #[derive(Copy, Clone, Debug, PartialEq, Default, Serialize, Deserialize, Hash)] pub struct FighterInputFrame { pub movement: FGVec2, pub directional_attack: FGVec2, pub jump: bool, pub shield: bool, pub attack: bool, }