mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
16 lines
371 B
Rust
16 lines
371 B
Rust
use crate::combat::Damages;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub struct Explosion {
|
|
pub effects: Vec<RadiusEffect>,
|
|
pub radius: f32,
|
|
pub energy_regen: u32,
|
|
}
|
|
|
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
|
pub enum RadiusEffect {
|
|
Damages(Damages),
|
|
TerrainDestruction(f32),
|
|
}
|