Cleanup
This commit is contained in:
17
core/goals/goal_catalogue.gd
Normal file
17
core/goals/goal_catalogue.gd
Normal 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
|
||||
1
core/goals/goal_catalogue.gd.uid
Normal file
1
core/goals/goal_catalogue.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bfbp4mo8ys5p8
|
||||
Reference in New Issue
Block a user