protected override void PrivateUpdate(bool fullUpdate, bool initialPass) { if (!initialPass) { mSecondCycle = true; } #if _NEXTPHASE if (initialPass) { SimpleMessageDialog.Show("NEXTPHASE", "This is a Next Phase build of StoryProgression."); } #endif if (ProgressionEnabled) { StoryProgressionServiceEx.DisableCreateHousehold(); } else { StoryProgressionServiceEx.EnableCreateHousehold(); } if ((ProgressionEnabled) && (StoryProgressionService.sService != null)) { if (StoryProgressionService.sService.mStoryProgressionAlarm != AlarmHandle.kInvalidHandle) { AlarmManager.Global.RemoveAlarm(StoryProgressionService.sService.mStoryProgressionAlarm); StoryProgressionService.sService.mStoryProgressionAlarm = AlarmHandle.kInvalidHandle; Common.Notify(Localize("ProgressionDisabled")); } } if (mFirst) { if (ProgressionEnabled) { PetAdoptions.Cleanup(IncStat); PetAdoptions.Stop(IncStat); Common.Notify(Localize("ProgressionEnabled")); mFirst = false; } } if (!IntroTutorial.IsRunning) { foreach (Manager manager in mManagers) { manager.Update(fullUpdate, initialPass); } base.PrivateUpdate(fullUpdate, initialPass); } }
public override void OnDelayedWorldLoadFinished() { Overwatch.Log("CleanupPetAdoption"); bool reset = Overwatch.Settings.mStopPetAdoption; if (PetAdoptions.Cleanup(Overwatch.Log)) { reset = true; } if (reset) { PetAdoptions.Stop(Overwatch.Log); } }