use specs::{Component, FlaggedStorage}; use vek::*; use specs_idvs::IDVStorage; #[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LightEmitter { pub offset: Vec3, pub col: Rgb, pub strength: f32, } impl Default for LightEmitter { fn default() -> Self { Self { offset: Vec3::zero(), col: Rgb::one(), strength: 1.0, } } } impl Component for LightEmitter { type Storage = FlaggedStorage>; }