summary refs log tree commit diff stats
path: root/client/Archipelago/locationListener.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/Archipelago/locationListener.gd')
-rw-r--r--client/Archipelago/locationListener.gd20
1 files changed, 20 insertions, 0 deletions
diff --git a/client/Archipelago/locationListener.gd b/client/Archipelago/locationListener.gd new file mode 100644 index 0000000..71792ed --- /dev/null +++ b/client/Archipelago/locationListener.gd
@@ -0,0 +1,20 @@
1extends Receiver
2
3var location_id
4
5
6func _ready():
7 super._ready()
8
9
10func handleTriggered():
11 triggered += 1
12 if triggered >= total:
13 var ap = global.get_node("Archipelago")
14 ap.send_location(location_id)
15
16
17func handleUntriggered():
18 triggered -= 1
19 if triggered < total:
20 pass