aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocol.rs')
-rw-r--r--src/protocol.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/protocol.rs b/src/protocol.rs
index 3d4567d..7ec3dcb 100644
--- a/src/protocol.rs
+++ b/src/protocol.rs
@@ -1,3 +1,4 @@
+use crate::shared::champion::*;
use crate::shared::cooldown::*;
use crate::shared::health::*;
use crate::shared::imperative::*;
@@ -16,11 +17,11 @@ pub enum Inputs {
impl UserAction for Inputs {}
#[derive(Message, Serialize, Deserialize, Clone, Debug, PartialEq)]
-pub struct Message1(pub usize);
+pub struct SelectChampion(pub Champion);
#[message_protocol(protocol = "MyProtocol")]
pub enum Messages {
- Message1(Message1),
+ SelectChampion(SelectChampion),
}
#[component_protocol(protocol = "MyProtocol")]
@@ -33,10 +34,11 @@ pub enum Components {
ProjectilePosition(ProjectilePosition),
Cooldown(Cooldown),
Health(Health),
+ Champion(Champion),
}
#[derive(Channel)]
-struct Channel1;
+pub struct Channel1;
protocolize! {
Self = MyProtocol,