use crate::{combat::Damages, effect::Effect}; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Explosion { pub effects: Vec, pub radius: f32, pub energy_regen: u32, } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub enum RadiusEffect { Damages(Damages), TerrainDestruction(f32), EntityEffect(Effect), }