veloren/common/src/comp/misc.rs

21 lines
411 B
Rust
Raw Normal View History

2020-08-11 14:05:34 +00:00
use super::item::Reagent;
use crate::sync::Uid;
use serde::{Deserialize, Serialize};
use specs::Component;
use specs_idvs::IdvStorage;
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub enum Object {
2020-08-11 14:05:34 +00:00
Bomb {
owner: Option<Uid>,
},
Firework {
owner: Option<Uid>,
reagent: Reagent,
},
}
impl Component for Object {
type Storage = IdvStorage<Self>;
}