예제 #1
0
        public void ForceRefresh()
        {
            this.monitor.Log("Force refresh requested");

            QuestFrameworkMod.InvalidateCache();
            this.mod.QuestController.RefreshAllManagedQuestsInQuestLog();
            this.mod.QuestController.RefreshBulletinboardQuestOffer();
            this.mod.EventManager.Refreshed.Fire(new EventArgs(), this);
        }
예제 #2
0
        public void AddOffer(QuestOffer schedule)
        {
            if (QuestFrameworkMod.Instance.Status < State.LAUNCHING)
            {
                throw new InvalidOperationException($"Unable to add quest schedule in state `{QuestFrameworkMod.Instance.Status}`.");
            }

            this.Offers.Add(schedule);
            QuestFrameworkMod.InvalidateCache();
        }
예제 #3
0
 internal static void InvalidateCache(string name, string[] args)
 {
     QuestFrameworkMod.InvalidateCache();
     Monitor.Log("Quest assets cache invalidated.", LogLevel.Info);
 }