put display effects back
This commit is contained in:
parent
b9c754dc02
commit
8b4b3a56e9
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user