mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
25 lines
526 B
Rust
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>>;
|
|
}
|