Cleanup goal unlocks behaviour
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
class_name GoalData
|
||||
extends Resource
|
||||
|
||||
enum UnlockBehavior {
|
||||
AUTOMATIC,
|
||||
MANUAL,
|
||||
}
|
||||
|
||||
@export var id: StringName = &""
|
||||
@export var requirements: Array[GoalRequirementData] = []
|
||||
@export var unlock_behavior: UnlockBehavior = UnlockBehavior.MANUAL
|
||||
|
||||
func has_id() -> bool:
|
||||
return not String(id).strip_edges().is_empty()
|
||||
|
||||
Reference in New Issue
Block a user