From 02750384df3142bda62a7ce0feb08d115aa6af29 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Thu, 14 Mar 2024 14:24:43 +0100 Subject: feat: walking --- src/shared.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/shared.rs') 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, } } } -- cgit v1.2.3