14 lines
449 B
Rust
14 lines
449 B
Rust
use bevy::prelude::*;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::{input::InputActionState, 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)]
|
|
pub struct FighterInputFrame {
|
|
pub movement: FGVec2,
|
|
pub directional_attack: FGVec2,
|
|
pub jump: bool
|
|
}
|