From adfc639965b2bda776ceb0a20840438e31f82d58 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 2 Nov 2025 12:29:29 -0500 Subject: Allow ignoring locations in tracker --- apworld/client/client.gd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'apworld/client/client.gd') diff --git a/apworld/client/client.gd b/apworld/client/client.gd index ce5ac7e..54d3d67 100644 --- a/apworld/client/client.gd +++ b/apworld/client/client.gd @@ -38,6 +38,7 @@ signal hint_received(message) signal door_latched(id) signal accessible_locations_updated signal checked_locations_updated +signal ignored_locations_updated(locations) signal checked_worldports_updated signal keyboard_update_received @@ -199,6 +200,13 @@ func _on_web_socket_server_message_received(_peer_id: int, packet: String) -> vo door_latched.emit(iid) + elif cmd == "SetIgnoredLocations": + var locs = [] + for id in message["locations"]: + locs.append(int(id)) + + ignored_locations_updated.emit(locs) + func connectToServer(server, un, pw): sendMessage([{"cmd": "Connect", "server": server, "player": un, "password": pw}]) @@ -280,6 +288,14 @@ func getLogicalPath(object_type, object_id): sendMessage([msg]) +func addIgnoredLocation(loc_id): + sendMessage([{"cmd": "IgnoreLocation", "id": loc_id}]) + + +func removeIgnoredLocation(loc_id): + sendMessage([{"cmd": "UnignoreLocation", "id": loc_id}]) + + func sendQuit(): sendMessage([{"cmd": "Quit"}]) -- cgit 1.4.1