Example #1
0
        private static void RegisterQuestGiver(MLQuest quest, Type questerType)
        {
            if (!QuestGivers.TryGetValue(questerType, out List <MLQuest> questList))
            {
                QuestGivers[questerType] = questList = new List <MLQuest>();
            }

            questList.Add(quest);
        }
Example #2
0
 public static List <MLQuest> FindQuestList(Type questerType) => QuestGivers.TryGetValue(questerType, out List <MLQuest> result) ? result : EmptyList;