aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.rs')
-rw-r--r--src/protocol.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.rs b/src/protocol.rs
index 70f4f64..c1c18e4 100644
--- a/src/protocol.rs
+++ b/src/protocol.rs
@@ -1,6 +1,7 @@
use crate::shared::champion::*;
use crate::shared::cooldown::*;
use crate::shared::health::*;
+use crate::shared::health_event::*;
use crate::shared::imperative::*;
use crate::shared::projectile::*;
use crate::shared::*;
@@ -19,9 +20,13 @@ impl UserAction for Inputs {}
#[derive(Message, Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct SelectChampion(pub Champion);
+#[derive(Message, Serialize, Deserialize, Clone, Debug, PartialEq)]
+pub struct HealthChanged(pub HealthEvent);
+
#[message_protocol(protocol = "MyProtocol")]
pub enum Messages {
SelectChampion(SelectChampion),
+ HealthChanged(HealthChanged),
}
#[component_protocol(protocol = "MyProtocol")]