public void Load(List <Character_quest> Quests) { if (Quests == null) { return; } foreach (Character_quest Quest in Quests) { Quest.Quest = WorldMgr.GetQuest(Quest.QuestID); if (Quest.Quest == null) { continue; } foreach (Character_Objectives Obj in Quest._Objectives) { Obj.Objective = WorldMgr.GetQuestObjective(Obj.ObjectiveID); } if (!_Quests.ContainsKey(Quest.QuestID)) { _Quests.Add(Quest.QuestID, Quest); } } }
public void Load(Character_quest_inprogress[] InProgressQuests) { if (InProgressQuests == null) { return; } foreach (Character_quest_inprogress Quest in InProgressQuests) { Quest.Quest = WorldMgr.GetQuest(Quest.QuestID); if (Quest.Quest == null) { continue; } foreach (Character_InProgressObjectives Obj in Quest._InProgressObjectives) { Obj.Objective = WorldMgr.GetQuestObjective(Obj.ObjectiveID); } if (!_InProgressQuests.ContainsKey(Quest.QuestID)) { _InProgressQuests.Add(Quest.QuestID, Quest); } } }