veloren/common/src/comp/visual.rs
2019-07-31 11:40:58 +02:00

25 lines
526 B
Rust

use specs::{Component, FlaggedStorage};
use specs_idvs::IDVStorage;
use vek::*;
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct LightEmitter {
pub offset: Vec3<f32>,
pub col: Rgb<f32>,
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<Self, IDVStorage<Self>>;
}