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