mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
21 lines
411 B
Rust
21 lines
411 B
Rust
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 {
|
|
Bomb {
|
|
owner: Option<Uid>,
|
|
},
|
|
Firework {
|
|
owner: Option<Uid>,
|
|
reagent: Reagent,
|
|
},
|
|
}
|
|
|
|
impl Component for Object {
|
|
type Storage = IdvStorage<Self>;
|
|
}
|