aboutsummaryrefslogtreecommitdiff
path: root/server/protocol
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-06-03 19:45:05 +0200
committermetamuffin <metamuffin@disroot.org>2025-06-03 19:45:08 +0200
commit9ee7eef2919feffe4e0695494d4027e8ec011808 (patch)
tree4fbb5347e7166911d08ae31dd3c20556b61c943e /server/protocol
parent63f7321e50b251d19f20dc929fc37a45cccdbb38 (diff)
downloadhurrycurry-9ee7eef2919feffe4e0695494d4027e8ec011808.tar
hurrycurry-9ee7eef2919feffe4e0695494d4027e8ec011808.tar.bz2
hurrycurry-9ee7eef2919feffe4e0695494d4027e8ec011808.tar.zst
Add pedestrians (and custom spawn locations)
Diffstat (limited to 'server/protocol')
-rw-r--r--server/protocol/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs
index 4f0d5d67..db65ddd2 100644
--- a/server/protocol/src/lib.rs
+++ b/server/protocol/src/lib.rs
@@ -116,6 +116,9 @@ pub enum PacketS {
class: PlayerClass,
#[serde(skip)] // TODO fix bincode can still set id
id: Option<PlayerID>, // used entity bots that cant receive a response
+ #[serde(skip)] // TODO fix bincode aswell
+ #[bincode(with_serde)]
+ position: Option<Vec2>, // used entity bots that spawn in different locations
},
Leave {
player: PlayerID,