コード例 #1
0
 public static void Load(QuestSave toLoad)
 {
     BasicQuests  = toLoad.BasicQuests;
     CountQuests  = toLoad.CountQuests;
     TieredQuests = toLoad.TieredQuests;
     GotQuestEvent?.Invoke();
 }
コード例 #2
0
    public static void AddQuest(Quests which)
    {
        switch (which)
        {
        case Quests.Bandit:
            if (!HasQuest(Quests.Bandit))
            {
                BasicQuests.Add(new BanditQuest());
                PlayerFlags.BanditMap.Know = true;
            }
            break;

        case Quests.ElfsHunt:
            if (!HasQuest(Quests.ElfsHunt))
            {
                TieredQuests.Add(new ElfQuest());
            }
            break;

        default:
            break;
        }
        GotQuestEvent?.Invoke();
    }