diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-14 14:24:43 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-15 02:50:59 +0100 |
commit | 02750384df3142bda62a7ce0feb08d115aa6af29 (patch) | |
tree | d7b6d4da9a2cd9214a623d19d439b4c9b7e029b7 /src/shared.rs | |
parent | 69584a302d132dc2bcc3837437e7347a3e0a5114 (diff) |
feat: walking
Diffstat (limited to 'src/shared.rs')
-rw-r--r-- | src/shared.rs | 5 |
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, } } } |