diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-24 22:23:02 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-24 22:23:02 -0400 |
commit | 915e6d22f199354ef69a20e47f13731379b46306 (patch) | |
tree | 58d275c829d0bdf9613530f3e9bec77eaaa63132 /src/SMAPI/Framework/SGame.cs | |
parent | 3a890408760d0d38a418d9830374262043e2ba13 (diff) | |
download | SMAPI-915e6d22f199354ef69a20e47f13731379b46306.tar.gz SMAPI-915e6d22f199354ef69a20e47f13731379b46306.tar.bz2 SMAPI-915e6d22f199354ef69a20e47f13731379b46306.zip |
minor tweaks
Diffstat (limited to 'src/SMAPI/Framework/SGame.cs')
-rw-r--r-- | src/SMAPI/Framework/SGame.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs index 966fbcdd..9f8a07e6 100644 --- a/src/SMAPI/Framework/SGame.cs +++ b/src/SMAPI/Framework/SGame.cs @@ -69,7 +69,7 @@ namespace StardewModdingAPI.Framework /********* - ** Protected methods + ** Public methods *********/ /// <summary>Construct an instance.</summary> /// <param name="monitor">Encapsulates monitoring and logging for SMAPI.</param> @@ -78,7 +78,7 @@ namespace StardewModdingAPI.Framework /// <param name="modHooks">Handles mod hooks provided by the game.</param> /// <param name="multiplayer">The core multiplayer logic.</param> /// <param name="exitGameImmediately">Immediately exit the game without saving. This should only be invoked when an irrecoverable fatal error happens that risks save corruption or game-breaking bugs.</param> - internal SGame(Monitor monitor, Reflector reflection, EventManager eventManager, SModHooks modHooks, SMultiplayer multiplayer, Action<string> exitGameImmediately) + public SGame(Monitor monitor, Reflector reflection, EventManager eventManager, SModHooks modHooks, SMultiplayer multiplayer, Action<string> exitGameImmediately) { // init XNA Game1.graphics.GraphicsProfile = GraphicsProfile.HiDef; @@ -96,6 +96,16 @@ namespace StardewModdingAPI.Framework this.ExitGameImmediately = exitGameImmediately; } + /// <summary>Get the observable location list.</summary> + public ObservableCollection<GameLocation> GetObservableLocations() + { + return (ObservableCollection<GameLocation>)Game1.locations; + } + + + /********* + ** Protected methods + *********/ /// <summary>Load content when the game is launched.</summary> protected override void LoadContent() { |