veloren/common/src/comp/projectile.rs

19 lines
414 B
Rust
Raw Normal View History

2019-09-17 12:43:19 +00:00
use specs::{Component, FlaggedStorage, NullStorage};
use specs_idvs::IDVStorage;
#[derive(Clone, Debug, Serialize, Deserialize)]
pub enum Effect {
Damage(u32),
Vanish,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Projectile {
pub hit_ground: Vec<Effect>,
pub hit_entity: Vec<Effect>,
}
impl Component for Projectile {
type Storage = FlaggedStorage<Self, IDVStorage<Self>>;
}