File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
addons/journalgd/QuestNode Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ extends Node
66## When functions ask for a "Quest path", they are referring to a string in the format of [code]quest_name/step_name/goal_name[/code].
77
88
9+ static var instance :QuestEngine
10+
911## Array of IDs of all the quests that are currently active.
1012var active_quests : Array [String ]
1113## Array of IDs of all the quests the player has completed.
@@ -23,6 +25,10 @@ signal step_updated(quest_path:String, data:Dictionary)
2325signal quest_updated (quest_path :String , data :Dictionary )
2426
2527
28+ func _ready () -> void :
29+ instance = self
30+
31+
2632## Loads all quests from the [code]biznasty/quests_directory[/code] project setting, and then instantiates them as child [QuestObject]s.
2733func load_quest_objects ():
2834 _load_dir (ProjectSettings .get_setting ("journalgd/quests_path" ))
You can’t perform that action at this time.
0 commit comments