veloren/common/src/explosion.rs
2021-02-27 01:42:47 -05:00

17 lines
412 B
Rust

use crate::{combat::Attack, comp::item::Reagent, effect::Effect};
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Explosion {
pub effects: Vec<RadiusEffect>,
pub radius: f32,
pub reagent: Option<Reagent>,
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub enum RadiusEffect {
TerrainDestruction(f32),
Entity(Effect),
Attack(Attack),
}