From 944c03737e7f7d7788f4321224a4e59a4f04717d Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 28 Feb 2021 12:01:11 -0500 Subject: add load stages immediately after game adds initial locations --- src/SMAPI/Enums/LoadStage.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/SMAPI/Enums') diff --git a/src/SMAPI/Enums/LoadStage.cs b/src/SMAPI/Enums/LoadStage.cs index 5c2b0412..aa95d201 100644 --- a/src/SMAPI/Enums/LoadStage.cs +++ b/src/SMAPI/Enums/LoadStage.cs @@ -9,6 +9,9 @@ namespace StardewModdingAPI.Enums /// The game is creating a new save slot, and has initialized the basic save info. CreatedBasicInfo, + /// The game is creating a new save slot, and has added the location instances but hasn't fully initialized them yet. + CreatedInitialLocations, + /// The game is creating a new save slot, and has initialized the in-game locations. CreatedLocations, @@ -21,6 +24,9 @@ namespace StardewModdingAPI.Enums /// The game is loading a save slot, and has applied the basic save info (including player data). Not applicable when connecting to a multiplayer host. Note that some basic info (like daily luck) is not initialized at this point. This is equivalent to value 36. SaveLoadedBasicInfo, + /// The game is loading a save slot and has added the location instances, but hasn't applied the data yet. Not applicable when connecting to a multiplayer host. + SaveAddedLocations, + /// The game is loading a save slot, and has applied the in-game location data. Not applicable when connecting to a multiplayer host. This is equivalent to value 50. SaveLoadedLocations, -- cgit From b2d47e29ffe58142efd0a5084f33fefffd87a460 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 28 Feb 2021 14:17:41 -0500 Subject: add ReturningToTitle stage --- src/SMAPI/Enums/LoadStage.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/SMAPI/Enums') diff --git a/src/SMAPI/Enums/LoadStage.cs b/src/SMAPI/Enums/LoadStage.cs index aa95d201..250c88e9 100644 --- a/src/SMAPI/Enums/LoadStage.cs +++ b/src/SMAPI/Enums/LoadStage.cs @@ -37,6 +37,9 @@ namespace StardewModdingAPI.Enums Loaded, /// The save is fully loaded, the world has been initialized, and is now true. - Ready + Ready, + + /// The game is exiting the loaded save and returning to the title screen. This happens before it returns to title; see after it returns. + ReturningToTitle } } -- cgit From 699a07ecf718ee60a1225ff910a73aa4898ef908 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 28 Feb 2021 20:12:39 -0500 Subject: fix broken references to LoadStage enum in previously compiled mods --- src/SMAPI/Enums/LoadStage.cs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/SMAPI/Enums') diff --git a/src/SMAPI/Enums/LoadStage.cs b/src/SMAPI/Enums/LoadStage.cs index 250c88e9..bf103576 100644 --- a/src/SMAPI/Enums/LoadStage.cs +++ b/src/SMAPI/Enums/LoadStage.cs @@ -4,42 +4,42 @@ namespace StardewModdingAPI.Enums public enum LoadStage { /// A save is not loaded or loading. - None, + None = 0, /// The game is creating a new save slot, and has initialized the basic save info. - CreatedBasicInfo, + CreatedBasicInfo = 1, /// The game is creating a new save slot, and has added the location instances but hasn't fully initialized them yet. - CreatedInitialLocations, + CreatedInitialLocations = 10, /// The game is creating a new save slot, and has initialized the in-game locations. - CreatedLocations, + CreatedLocations = 2, /// The game is creating a new save slot, and has created the physical save files. - CreatedSaveFile, + CreatedSaveFile = 3, /// The game is loading a save slot, and has read the raw save data into . Not applicable when connecting to a multiplayer host. This is equivalent to value 20. - SaveParsed, + SaveParsed = 4, /// The game is loading a save slot, and has applied the basic save info (including player data). Not applicable when connecting to a multiplayer host. Note that some basic info (like daily luck) is not initialized at this point. This is equivalent to value 36. - SaveLoadedBasicInfo, + SaveLoadedBasicInfo = 5, /// The game is loading a save slot and has added the location instances, but hasn't applied the data yet. Not applicable when connecting to a multiplayer host. - SaveAddedLocations, + SaveAddedLocations = 11, /// The game is loading a save slot, and has applied the in-game location data. Not applicable when connecting to a multiplayer host. This is equivalent to value 50. - SaveLoadedLocations, + SaveLoadedLocations = 6, /// The final metadata has been loaded from the save file. This happens before the game applies problem fixes, checks for achievements, starts music, etc. Not applicable when connecting to a multiplayer host. - Preloaded, + Preloaded = 7, /// The save is fully loaded, but the world may not be fully initialized yet. - Loaded, + Loaded = 8, /// The save is fully loaded, the world has been initialized, and is now true. - Ready, + Ready = 9, /// The game is exiting the loaded save and returning to the title screen. This happens before it returns to title; see after it returns. - ReturningToTitle + ReturningToTitle = 12 } } -- cgit From a571f459f59a6ecfdd53e3158ba8d29157598920 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 7 Mar 2021 20:02:25 -0500 Subject: prepare for release --- src/SMAPI/Enums/LoadStage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/SMAPI/Enums') diff --git a/src/SMAPI/Enums/LoadStage.cs b/src/SMAPI/Enums/LoadStage.cs index bf103576..302c263b 100644 --- a/src/SMAPI/Enums/LoadStage.cs +++ b/src/SMAPI/Enums/LoadStage.cs @@ -24,10 +24,10 @@ namespace StardewModdingAPI.Enums /// The game is loading a save slot, and has applied the basic save info (including player data). Not applicable when connecting to a multiplayer host. Note that some basic info (like daily luck) is not initialized at this point. This is equivalent to value 36. SaveLoadedBasicInfo = 5, - /// The game is loading a save slot and has added the location instances, but hasn't applied the data yet. Not applicable when connecting to a multiplayer host. + /// The game is loading a save slot and has added the location instances, but hasn't restored their save data yet. Not applicable when connecting to a multiplayer host. SaveAddedLocations = 11, - /// The game is loading a save slot, and has applied the in-game location data. Not applicable when connecting to a multiplayer host. This is equivalent to value 50. + /// The game is loading a save slot, and has restored the in-game location data. Not applicable when connecting to a multiplayer host. This is equivalent to value 50. SaveLoadedLocations = 6, /// The final metadata has been loaded from the save file. This happens before the game applies problem fixes, checks for achievements, starts music, etc. Not applicable when connecting to a multiplayer host. -- cgit