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 c881428..c04fed6 100644
--- a/src/protocol.rs
+++ b/src/protocol.rs
@@ -3,6 +3,7 @@ use crate::shared::area_of_effect::*;
use crate::shared::buffs::*;
use crate::shared::champion::*;
use crate::shared::cooldown::*;
+use crate::shared::faction::*;
use crate::shared::health::*;
use crate::shared::health_event::*;
use crate::shared::imperative::*;
@@ -27,11 +28,15 @@ impl UserAction for Inputs {}
pub struct SelectChampion(pub Champion);
#[derive(Message, Serialize, Deserialize, Clone, Debug, PartialEq)]
+pub struct SelectFaction(pub Faction);
+
+#[derive(Message, Serialize, Deserialize, Clone, Debug, PartialEq)]
pub struct HealthChanged(pub HealthEvent);
#[message_protocol(protocol = "MyProtocol")]
pub enum Messages {
SelectChampion(SelectChampion),
+ SelectFaction(SelectFaction),
HealthChanged(HealthChanged),
}