aboutsummaryrefslogtreecommitdiff
path: root/server/client-lib/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-09-04 23:41:19 +0200
committermetamuffin <metamuffin@disroot.org>2024-09-04 23:41:19 +0200
commite33e82e87e1e63aa4bc1e599171f61c5c1fa9f15 (patch)
tree91ffcf384db6b6905369b2337f2da0b3ff32d588 /server/client-lib/src/lib.rs
parentb93beb93360257c1a2e1330dfb1a2f184c59b879 (diff)
downloadhurrycurry-e33e82e87e1e63aa4bc1e599171f61c5c1fa9f15.tar
hurrycurry-e33e82e87e1e63aa4bc1e599171f61c5c1fa9f15.tar.bz2
hurrycurry-e33e82e87e1e63aa4bc1e599171f61c5c1fa9f15.tar.zst
player in progress packet
Diffstat (limited to 'server/client-lib/src/lib.rs')
-rw-r--r--server/client-lib/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/client-lib/src/lib.rs b/server/client-lib/src/lib.rs
index 38b328b9..b4cb0724 100644
--- a/server/client-lib/src/lib.rs
+++ b/server/client-lib/src/lib.rs
@@ -35,6 +35,7 @@ pub struct Involvement {
pub position: f32,
pub speed: f32,
pub recipe: RecipeIndex,
+ pub player: Option<PlayerID>,
pub warn: bool,
}
@@ -141,10 +142,12 @@ impl Game {
PacketC::SetProgress {
item,
position,
+ player,
speed,
warn,
} => {
self.get_item(item).as_mut().unwrap().active = Some(Involvement {
+ player,
speed,
warn,
position,