use specs::{Component, FlaggedStorage}; use specs_idvs::IDVStorage; #[derive(Clone, Debug, Serialize, Deserialize)] pub enum Effect { Damage(u32), Vanish, Stick, } #[derive(Clone, Debug, Serialize, Deserialize)] pub struct Projectile { pub hit_ground: Vec, pub hit_wall: Vec, pub hit_entity: Vec, } impl Component for Projectile { type Storage = FlaggedStorage>; }