13 lines
307 B
GDScript
13 lines
307 B
GDScript
class_name QuestMap extends Control
|
|
|
|
|
|
signal location_selected(location : Quest.Locations)
|
|
|
|
func _ready() -> void:
|
|
for child in get_children():
|
|
if child is MapPoint:
|
|
child.selected.connect(_on_location_pressed)
|
|
|
|
func _on_location_pressed(location : Quest.Locations):
|
|
location_selected.emit(location)
|