veloren/common/src/explosion.rs

17 lines
412 B
Rust
Raw Normal View History

2021-02-16 05:18:05 +00:00
use crate::{combat::Attack, effect::Effect, comp::item::Reagent};
use serde::{Deserialize, Serialize};
2021-01-30 22:35:00 +00:00
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Explosion {
pub effects: Vec<RadiusEffect>,
pub radius: f32,
2021-02-16 05:18:05 +00:00
pub reagent: Option<Reagent>,
}
2021-01-30 22:35:00 +00:00
#[derive(Clone, Debug, Serialize, Deserialize)]
pub enum RadiusEffect {
TerrainDestruction(f32),
2021-01-30 22:35:00 +00:00
Entity(Effect),
Attack(Attack),
}