2020-08-11 14:05:34 +00:00
|
|
|
use super::item::Reagent;
|
2020-12-13 17:11:55 +00:00
|
|
|
use crate::uid::Uid;
|
2020-07-06 14:23:08 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
2020-07-04 23:55:13 +00:00
|
|
|
use specs::Component;
|
2020-07-06 05:56:02 +00:00
|
|
|
use specs_idvs::IdvStorage;
|
2020-07-04 23:55:13 +00:00
|
|
|
|
|
|
|
#[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,
|
|
|
|
},
|
2020-07-04 23:55:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Component for Object {
|
2020-07-06 05:56:02 +00:00
|
|
|
type Storage = IdvStorage<Self>;
|
2020-07-04 23:55:13 +00:00
|
|
|
}
|