More work on quests
This commit is contained in:
12
scripts/map.gd
Normal file
12
scripts/map.gd
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user