private void onUpdate(object sender, EventArgs args) { if (Game1.currentLoader != null) { if (Game1.currentLoader.Current == 25 && prevLoaderNum != 25) { SpaceEvents.InvokeOnBlankSave(); } prevLoaderNum = Game1.currentLoader.Current; } //Log.debug("L:" + (Game1.currentLoader != null ? Game1.currentLoader.Current:-1)); }
/// <summary>The method to call after <see cref="Game1.loadForNewGame"/>.</summary> private static void After_LoadForNewGame(bool loadedGame) { SpaceEvents.InvokeOnBlankSave(); }
public static void Postfix(bool loadedGame) { SpaceEvents.InvokeOnBlankSave(); }