put display effects back

This commit is contained in:
ntr 2019-12-08 16:17:12 +10:00
parent b9c754dc02
commit 8b4b3a56e9

View File

@ -901,7 +901,7 @@ impl Resolution {
pub type Disable = Vec<Effect>;
pub type Direction = (i8, i8);
#[derive(Debug,Clone,Copy,PartialEq,Serialize,Deserialize)]
#[derive(Debug,Clone,PartialEq,Serialize,Deserialize)]
pub enum Event {
Cast { construct: Uuid, player: Uuid, direction: Direction },
Hit { construct: Uuid, player: Uuid, direction: Direction },
@ -941,12 +941,13 @@ impl Event {
// used to show the progress of a construct
// while the resolutions are animating
#[derive(Debug,Clone,Copy,PartialEq,Serialize,Deserialize)]
#[derive(Debug,Clone,PartialEq,Serialize,Deserialize)]
pub struct EventConstruct {
pub id: Uuid,
pub red: usize,
pub green: usize,
pub blue: usize,
id: Uuid,
red: usize,
green: usize,
blue: usize,
effects: Vec<ConstructEffect>,
}
impl EventConstruct {
@ -956,6 +957,7 @@ impl EventConstruct {
red: construct.red_life(),
green: construct.green_life(),
blue: construct.blue_life(),
effects: construct.effects.clone(),
}
}
}