veloren/common/src/explosion.rs

16 lines
357 B
Rust
Raw Normal View History

2021-01-30 22:35:00 +00:00
use crate::{combat::Attack, effect::Effect};
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-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),
}