aboutsummaryrefslogtreecommitdiffstats
path: root/src/shared.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared.rs')
-rw-r--r--src/shared.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared.rs b/src/shared.rs
index b907b57..5d6cbed 100644
--- a/src/shared.rs
+++ b/src/shared.rs
@@ -1,9 +1,12 @@
use crate::protocol::Replicate;
+use crate::shared::imperative::*;
use bevy::prelude::*;
use lightyear::prelude::*;
use serde::Deserialize;
use serde::Serialize;
+pub mod imperative;
+
pub const CLIENT_ID: u64 = 0;
pub const KEY: [u8; 32] = [
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -17,6 +20,7 @@ pub struct PlayerBundle {
position: PlayerPosition,
color: PlayerColor,
replicate: Replicate,
+ imperative: Imperative,
}
#[derive(Component, Message, Serialize, Deserialize, Clone, Debug, PartialEq)]
@@ -35,6 +39,7 @@ impl PlayerBundle {
position: PlayerPosition(position),
color: PlayerColor(color),
replicate: Replicate::default(),
+ imperative: Imperative::Idle,
}
}
}