aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.rs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-17 16:32:22 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-03-17 16:32:22 +0100
commit312aa627052c24e0aa1948e584c046bc15f18c96 (patch)
treeff74e110ae4481979352962985e75fb5ae99dfe9 /src/protocol.rs
parente228208de62f8abf1744f389271168d996a10b25 (diff)
feat: add damage indicators
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")]