aboutsummaryrefslogtreecommitdiff
path: root/client/multiplayer.gd
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2024-10-01 17:15:08 +0200
committernokoe <nokoe@mailbox.org>2024-10-01 17:16:13 +0200
commit15a6673898a4f1a9ce40096ec66e303749bb63fa (patch)
tree4d64c61d803cc77fe9e4d5a2b5f49bb395e167d6 /client/multiplayer.gd
parent9761f01bbbf5f493a4d303924c296764549425a5 (diff)
downloadhurrycurry-15a6673898a4f1a9ce40096ec66e303749bb63fa.tar
hurrycurry-15a6673898a4f1a9ce40096ec66e303749bb63fa.tar.bz2
hurrycurry-15a6673898a4f1a9ce40096ec66e303749bb63fa.tar.zst
use floats as player_id; resync now working
(this feels wrong)
Diffstat (limited to 'client/multiplayer.gd')
-rw-r--r--client/multiplayer.gd10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/multiplayer.gd b/client/multiplayer.gd
index d70dbaed..20c50efd 100644
--- a/client/multiplayer.gd
+++ b/client/multiplayer.gd
@@ -95,7 +95,7 @@ func send_join(player_name: String, character: int):
"character": character
})
-func send_movement(player: int, pos: Vector2, direction: Vector2, boost: bool):
+func send_movement(player, pos: Vector2, direction: Vector2, boost: bool):
send_packet({
"type": "movement",
"player": player,
@@ -104,7 +104,7 @@ func send_movement(player: int, pos: Vector2, direction: Vector2, boost: bool):
"boost": boost
})
-func send_tile_interact(player: int, pos: Vector2i, edge: bool):
+func send_tile_interact(player, pos: Vector2i, edge: bool):
@warning_ignore("incompatible_ternary")
send_packet({
"type": "interact",
@@ -112,10 +112,10 @@ func send_tile_interact(player: int, pos: Vector2i, edge: bool):
"pos": [pos.x, pos.y] if edge else null,
})
-func send_player_interact(_player: int, _edge: bool):
+func send_player_interact(_player, _edge: bool):
push_error("not yet implemented")
-func send_chat(player: int, message: String):
+func send_chat(player, message: String):
send_packet({
"type": "communicate",
"player": player,
@@ -131,7 +131,7 @@ func send_replay_tick(dt: float):
"dt": dt
})
-func send_leave(player: int):
+func send_leave(player):
send_packet({
"type": "leave",
"player": player,