use specs::{Component, FlaggedStorage}; use specs_idvs::IDVStorage; use vek::*; #[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)] pub struct Controller { pub primary: bool, pub secondary: bool, pub move_dir: Vec2, pub look_dir: Vec3, pub jump: bool, pub roll: bool, pub glide: bool, pub respawn: bool, } impl Component for Controller { type Storage = FlaggedStorage>; }