mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
22 lines
451 B
Rust
22 lines
451 B
Rust
|
use specs::{Component, FlaggedStorage, VecStorage};
|
||
|
use vek::*;
|
||
|
|
||
|
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||
|
pub struct LightEmitter {
|
||
|
pub col: Rgb<f32>,
|
||
|
pub strength: f32,
|
||
|
}
|
||
|
|
||
|
impl Default for LightEmitter {
|
||
|
fn default() -> Self {
|
||
|
Self {
|
||
|
col: Rgb::one(),
|
||
|
strength: 250.0,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
impl Component for LightEmitter {
|
||
|
type Storage = FlaggedStorage<Self, VecStorage<Self>>;
|
||
|
}
|