From 740dc4b45cb59ff184e5cebc5b19f402bb9d54d2 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 4 Sep 2024 20:00:30 +0200 Subject: refactor interact function and new progress proto --- server/protocol/src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'server/protocol') diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index a55eabe2..68af0e63 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -27,7 +27,7 @@ pub use glam; pub mod movement; -pub const VERSION: (u32, u32) = (5, 0); +pub const VERSION: (u32, u32) = (6, 0); pub const BINCODE_CONFIG: Configuration> = standard().with_limit(); @@ -185,9 +185,13 @@ pub enum PacketC { location: ItemLocation, item: Option, }, + ClearProgress { + item: ItemLocation, + }, SetProgress { item: ItemLocation, - progress: Option, + position: f32, + speed: f32, warn: bool, }, UpdateMap { -- cgit v1.2.3-70-g09d2