From 3f53502a5907ed1982d28a392c54331f0c1c2c42 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 25 Sep 2025 12:09:50 -0400 Subject: Move the client into the apworld Only works on source right now, not as an apworld. --- apworld/client/locationListener.gd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 apworld/client/locationListener.gd (limited to 'apworld/client/locationListener.gd') diff --git a/apworld/client/locationListener.gd b/apworld/client/locationListener.gd new file mode 100644 index 0000000..71792ed --- /dev/null +++ b/apworld/client/locationListener.gd @@ -0,0 +1,20 @@ +extends Receiver + +var location_id + + +func _ready(): + super._ready() + + +func handleTriggered(): + triggered += 1 + if triggered >= total: + var ap = global.get_node("Archipelago") + ap.send_location(location_id) + + +func handleUntriggered(): + triggered -= 1 + if triggered < total: + pass -- cgit 1.4.1