particle effect on items/traps

This commit is contained in:
Llywelwyn 2023-08-21 20:20:46 +01:00
parent 397aa07d60
commit f325d39f4c
7 changed files with 144 additions and 7 deletions

View file

@ -410,6 +410,22 @@ pub struct Charges {
pub max_uses: i32,
}
#[derive(Component, Serialize, Deserialize, Clone)]
pub struct SpawnParticleLine {
pub glyph: rltk::FontCharType,
pub colour: RGB,
pub lifetime_ms: f32,
pub trail_colour: RGB,
pub trail_lifetime_ms: f32,
}
#[derive(Component, Serialize, Deserialize, Clone)]
pub struct SpawnParticleBurst {
pub glyph: rltk::FontCharType,
pub colour: RGB,
pub lifetime_ms: f32,
}
#[derive(Component, Debug, Serialize, Deserialize, Clone)]
pub struct Destructible {}