aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared/health_event.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/shared/health_event.rs
parente228208de62f8abf1744f389271168d996a10b25 (diff)
feat: add damage indicators
Diffstat (limited to 'src/shared/health_event.rs')
-rw-r--r--src/shared/health_event.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/health_event.rs b/src/shared/health_event.rs
new file mode 100644
index 0000000..9932599
--- /dev/null
+++ b/src/shared/health_event.rs
@@ -0,0 +1,7 @@
+use crate::shared::*;
+
+#[derive(Message, Serialize, Deserialize, PartialEq, Clone, Debug)]
+pub struct HealthEvent {
+ pub target_player: PlayerId,
+ pub health_gained: f32,
+}