Adds settings (#126)
This commit is contained in:
parent
8028a85ffe
commit
f336a56364
17 changed files with 229 additions and 99 deletions
|
|
@ -22,9 +22,10 @@ namespace Server.Engines.MLQuests
|
|||
public static readonly bool Debug = false;
|
||||
|
||||
public static readonly List<MLQuest> EmptyList = new List<MLQuest>();
|
||||
|
||||
private static readonly List<MLQuest> m_EligiblePool = new List<MLQuest>();
|
||||
|
||||
public static bool Enabled { get; private set; }
|
||||
|
||||
static MLQuestSystem()
|
||||
{
|
||||
Quests = new Dictionary<Type, MLQuest>();
|
||||
|
|
@ -94,8 +95,6 @@ namespace Server.Engines.MLQuests
|
|||
}
|
||||
}
|
||||
|
||||
public static bool Enabled => Core.ML;
|
||||
|
||||
public static Dictionary<Type, MLQuest> Quests { get; }
|
||||
|
||||
public static Dictionary<Type, List<MLQuest>> QuestGivers { get; }
|
||||
|
|
@ -125,6 +124,8 @@ namespace Server.Engines.MLQuests
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
Enabled = ServerConfiguration.GetOrUpdateSetting("questSystem.enableMLQuests", Core.ML);
|
||||
|
||||
if (!Enabled)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue