veloren/common/src/comp/visual.rs

25 lines
526 B
Rust

use specs::{Component, FlaggedStorage};
use vek::*;
use specs_idvs::IDVStorage;
#[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>>;
}