From 15a6673898a4f1a9ce40096ec66e303749bb63fa Mon Sep 17 00:00:00 2001 From: nokoe Date: Tue, 1 Oct 2024 17:15:08 +0200 Subject: use floats as player_id; resync now working (this feels wrong) --- client/multiplayer.gd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'client/multiplayer.gd') 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, -- cgit v1.2.3-70-g09d2