veloren/common/src/comp/controller.rs

17 lines
388 B
Rust
Raw Normal View History

use specs::{Component, FlaggedStorage, VecStorage};
2019-06-09 14:20:20 +00:00
use vek::*;
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
pub struct Controller {
pub move_dir: Vec2<f32>,
pub jump: bool,
pub attack: bool,
2019-06-11 04:08:55 +00:00
pub roll: bool,
pub glide: bool,
2019-06-09 14:20:20 +00:00
pub respawn: bool,
}
impl Component for Controller {
type Storage = FlaggedStorage<Self, VecStorage<Self>>;
}