aboutsummaryrefslogtreecommitdiff
path: root/server/protocol/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-09 14:52:54 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-09 14:52:54 +0200
commit13cbcc920a2756376e0005046b4b82c68eb9c9da (patch)
treebabcd00e7fedc9a2fd8001d3435d7c1268aeb414 /server/protocol/src/lib.rs
parent52f7b5833510b0e55d4942d99f1c8046643ee31d (diff)
downloadhurrycurry-13cbcc920a2756376e0005046b4b82c68eb9c9da.tar
hurrycurry-13cbcc920a2756376e0005046b4b82c68eb9c9da.tar.bz2
hurrycurry-13cbcc920a2756376e0005046b4b82c68eb9c9da.tar.zst
implement auto release on active (and passive) recipes
Diffstat (limited to 'server/protocol/src/lib.rs')
-rw-r--r--server/protocol/src/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs
index 36a496a0..9c8d6bee 100644
--- a/server/protocol/src/lib.rs
+++ b/server/protocol/src/lib.rs
@@ -62,8 +62,7 @@ pub enum PacketS {
boosting: bool,
},
Interact {
- pos: IVec2,
- edge: bool,
+ pos: Option<IVec2>,
},
Collide {
player: PlayerID,
@@ -165,7 +164,7 @@ pub enum PacketC {
ReplayStart,
}
-#[derive(Debug, Clone, Serialize, Deserialize, Copy)]
+#[derive(Debug, Clone, Serialize, Deserialize, Copy, PartialEq, Eq, Hash)]
#[serde(rename_all = "snake_case")]
pub enum ItemLocation {
Tile(IVec2),