This commit is contained in:
2026-05-03 19:00:16 +02:00
parent 905b863f53
commit 18a4c04ee1
9 changed files with 11 additions and 450 deletions

View File

@@ -0,0 +1,17 @@
class_name GoalCatalogue
extends Resource
@export var goals: Array[GoalData] = []
func get_goal_by_id(id: StringName) -> GoalData:
for goal in goals:
if goal.id == id:
return goal
return null
func get_all_ids() -> Array[StringName]:
var ids: Array[StringName] = []
for goal in goals:
if goal.has_id():
ids.append(goal.id)
return ids

View File

@@ -0,0 +1 @@
uid://bfbp4mo8ys5p8