15 lines
451 B
Rust
15 lines
451 B
Rust
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,
|
|
}
|