Beispiel #1
0
 void GameLoop_Saving(object sender, StardewModdingAPI.Events.SavingEventArgs e)
 {
     try
     {
         SaveData data = new SaveData();
         Pests.Save(data);
         Cultivation.Save(data);
         Composting.Save(data);
         ModEntry.GetHelper().Data.WriteSaveData <SaveData>(nameof(SaveData), data);
     }
     finally
     {
         Composting.ResetCompostingBins();
     }
 }
Beispiel #2
0
 void GameLoop_Saving(object sender, StardewModdingAPI.Events.SavingEventArgs e)
 {
     Pests.Save();
     Cultivation.Save();
     Composting.Save();
 }