From b413e5a9c5d5e5e6eff63a74fbb3ecdabf2cc66f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 2 Nov 2025 13:07:30 -0500 Subject: Prioritize hinted locations in tracker --- apworld/client/client.gd | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apworld/client/client.gd') diff --git a/apworld/client/client.gd b/apworld/client/client.gd index 54d3d67..c149482 100644 --- a/apworld/client/client.gd +++ b/apworld/client/client.gd @@ -26,6 +26,7 @@ var _accessible_locations = [] var _accessible_worldports = [] var _goal_accessible = false var _latched_doors = [] +var _hinted_locations = [] signal could_not_connect signal connect_status @@ -41,6 +42,7 @@ signal checked_locations_updated signal ignored_locations_updated(locations) signal checked_worldports_updated signal keyboard_update_received +signal hinted_locations_updated func _init(): @@ -207,6 +209,14 @@ func _on_web_socket_server_message_received(_peer_id: int, packet: String) -> vo ignored_locations_updated.emit(locs) + elif cmd == "UpdateHintedLocations": + for id in message["locations"]: + var iid = int(id) + if !_hinted_locations.has(iid): + _hinted_locations.append(iid) + + hinted_locations_updated.emit() + func connectToServer(server, un, pw): sendMessage([{"cmd": "Connect", "server": server, "player": un, "password": pw}]) -- cgit 1.4.1