aboutsummaryrefslogtreecommitdiff
path: root/client/multiplayer.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/multiplayer.gd')
-rw-r--r--client/multiplayer.gd12
1 files changed, 9 insertions, 3 deletions
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index d635db41..d5221b15 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -110,12 +110,18 @@ func send_tile_interact(player, pos: Vector2i, edge: bool, hand: int):
send_packet({
"type": "interact",
"player": player,
+ "target": {"tile": [pos.x, pos.y]} if edge else null,
"hand": hand,
- "pos": [pos.x, pos.y] if edge else null,
})
-func send_player_interact(_player, _edge: bool):
- push_error("not yet implemented")
+func send_player_interact(player, target_player, target_hand: int, edge: bool, hand: int):
+ @warning_ignore("incompatible_ternary")
+ send_packet({
+ "type": "interact",
+ "player": player,
+ "target": {"player": [target_player, target_hand]} if edge else null,
+ "hand": hand,
+ })
func send_chat(player, message: String):
send_packet({