mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
16 lines
381 B
Rust
16 lines
381 B
Rust
|
use specs::{Component, FlaggedStorage, NullStorage, VecStorage};
|
||
|
use vek::*;
|
||
|
|
||
|
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
|
||
|
pub struct Controller {
|
||
|
pub move_dir: Vec2<f32>,
|
||
|
pub jump: bool,
|
||
|
pub glide: bool,
|
||
|
pub attack: bool,
|
||
|
pub respawn: bool,
|
||
|
}
|
||
|
|
||
|
impl Component for Controller {
|
||
|
type Storage = FlaggedStorage<Self, VecStorage<Self>>;
|
||
|
}
|