use specs::{Component, FlaggedStorage, NullStorage, VecStorage}; use vek::*; // Pos #[derive(Copy, Clone, Debug, Serialize, Deserialize)] pub struct Pos(pub Vec3); impl Component for Pos { type Storage = FlaggedStorage>; } // Vel #[derive(Copy, Clone, Debug, Serialize, Deserialize)] pub struct Vel(pub Vec3); impl Component for Vel { type Storage = FlaggedStorage>; } // Dir #[derive(Copy, Clone, Debug, Serialize, Deserialize)] pub struct Dir(pub Vec3); impl Component for Dir { type Storage = FlaggedStorage>; } // Dir #[derive(Copy, Clone, Debug, Default, Serialize, Deserialize)] pub struct ForceUpdate; impl Component for ForceUpdate { type Storage = NullStorage; }