mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
19 lines
462 B
Rust
19 lines
462 B
Rust
use crate::{combat::Attack, comp::item::Reagent, effect::Effect};
|
|
use serde::{Deserialize, Serialize};
|
|
use vek::Rgb;
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
pub struct Explosion {
|
|
pub effects: Vec<RadiusEffect>,
|
|
pub radius: f32,
|
|
pub reagent: Option<Reagent>,
|
|
pub min_falloff: f32,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
pub enum RadiusEffect {
|
|
TerrainDestruction(f32, Rgb<f32>),
|
|
Entity(Effect),
|
|
Attack(Attack),
|
|
}
|