summary refs log tree commit diff stats
path: root/client/Archipelago/locationListener.gd
blob: 71792ed5f2c5a4391b3ffa08a8582f11d7bb21df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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