private void GameLoop_ReturnedToTitle(object sender, StardewModdingAPI.Events.ReturnedToTitleEventArgs e)
        {
            if (Context.IsMultiplayer)
            {
                return;
            }

            this.GameMaster.Uninitialize();
            this.CompanionManager.UninitializeCompanions();
            this.ContentLoader.InvalidateCache();
        }
Exemple #2
0
        private void GameLoop_ReturnedToTitle(object sender, StardewModdingAPI.Events.ReturnedToTitleEventArgs e)
        {
            if (Context.IsMultiplayer)
            {
                return;
            }
            this.companionManager.UninitializeCompanions();
            this.contentLoader.InvalidateCache();

            // Clean data in patches
            Patches.SpouseReturnHomePatch.recruitedSpouses.Clear();
        }
Exemple #3
0
 private void GameLoop_ReturnedToTitle(object sender, StardewModdingAPI.Events.ReturnedToTitleEventArgs e)
 {
     this.companionManager.UninitializeCompanions();
 }
Exemple #4
0
 /// <summary>  Function handling returning to title. </summary>
 private void GameReturnToTitle(object sender, StardewModdingAPI.Events.ReturnedToTitleEventArgs e)
 {
     WeatherTracker.ReturnToTitle();
 }
 private void GameLoop_ReturnedToTitle(object sender, StardewModdingAPI.Events.ReturnedToTitleEventArgs e)
 {
     currentSpouses.Clear();
     currentUnofficialSpouses.Clear();
 }