Rewrote entity system
This commit is contained in:
@@ -13,12 +13,13 @@ func _ready() -> void:
|
||||
for child in get_children():
|
||||
if child is QuestObjective:
|
||||
objectives.append(child)
|
||||
child.onQuestReady(self)
|
||||
|
||||
func start() -> void:
|
||||
questStarted = true
|
||||
questComplete = false
|
||||
QUEST.questStarted.emit(questKey)
|
||||
QUEST.questUpdated.emit(questKey)
|
||||
QUEST.questStarted.emit(self)
|
||||
QUEST.questUpdated.emit(self)
|
||||
|
||||
func isCompleted() -> bool:
|
||||
return questComplete
|
||||
|
Reference in New Issue
Block a user