mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
21 lines
443 B
Rust
21 lines
443 B
Rust
use specs::{Component, FlaggedStorage};
|
|
use specs_idvs::IDVStorage;
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
pub enum Effect {
|
|
Damage(u32),
|
|
Vanish,
|
|
Stick,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
pub struct Projectile {
|
|
pub hit_ground: Vec<Effect>,
|
|
pub hit_wall: Vec<Effect>,
|
|
pub hit_entity: Vec<Effect>,
|
|
}
|
|
|
|
impl Component for Projectile {
|
|
type Storage = FlaggedStorage<Self, IDVStorage<Self>>;
|
|
}
|