diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-28 14:25:50 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-28 14:25:50 -0400 |
commit | 6fd6d493cd16b41bf88742ff6f4b7635ec3fa67c (patch) | |
tree | 92bc0bc1559e550e48b507c0925d28f93962d06a /client/Archipelago/locationListener.gd | |
parent | aaeb0a4074a58c906b26dac6ee610266062d88be (diff) | |
download | lingo2-archipelago-6fd6d493cd16b41bf88742ff6f4b7635ec3fa67c.tar.gz lingo2-archipelago-6fd6d493cd16b41bf88742ff6f4b7635ec3fa67c.tar.bz2 lingo2-archipelago-6fd6d493cd16b41bf88742ff6f4b7635ec3fa67c.zip |
Client is starting to work!
Diffstat (limited to 'client/Archipelago/locationListener.gd')
-rw-r--r-- | client/Archipelago/locationListener.gd | 20 |
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 @@ | |||
1 | extends Receiver | ||
2 | |||
3 | var location_id | ||
4 | |||
5 | |||
6 | func _ready(): | ||
7 | super._ready() | ||
8 | |||
9 | |||
10 | func handleTriggered(): | ||
11 | triggered += 1 | ||
12 | if triggered >= total: | ||
13 | var ap = global.get_node("Archipelago") | ||
14 | ap.send_location(location_id) | ||
15 | |||
16 | |||
17 | func handleUntriggered(): | ||
18 | triggered -= 1 | ||
19 | if triggered < total: | ||
20 | pass | ||