diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-23 17:24:08 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-08-23 17:24:08 -0400 |
commit | fd3bc77d8183070ca338d6a2702edeea7245b5bf (patch) | |
tree | bbdb6cdae94a36ec9788d5564b9c5fc126eff21c /src/SMAPI/Framework/SGameConstructorHack.cs | |
parent | ad1b9a870b5383ca9ada8c52b2bd76960d5579da (diff) | |
download | SMAPI-fd3bc77d8183070ca338d6a2702edeea7245b5bf.tar.gz SMAPI-fd3bc77d8183070ca338d6a2702edeea7245b5bf.tar.bz2 SMAPI-fd3bc77d8183070ca338d6a2702edeea7245b5bf.zip |
centralise core SMAPI logic, decouple from Game1 where possible
Diffstat (limited to 'src/SMAPI/Framework/SGameConstructorHack.cs')
-rw-r--r-- | src/SMAPI/Framework/SGameConstructorHack.cs | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/SMAPI/Framework/SGameConstructorHack.cs b/src/SMAPI/Framework/SGameConstructorHack.cs deleted file mode 100644 index f70dec03..00000000 --- a/src/SMAPI/Framework/SGameConstructorHack.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using StardewModdingAPI.Framework.Reflection; -using StardewModdingAPI.Toolkit.Serialization; -using StardewValley; - -namespace StardewModdingAPI.Framework -{ - /// <summary>The static state to use while <see cref="Game1"/> is initializing, which happens before the <see cref="SGame"/> constructor runs.</summary> - internal class SGameConstructorHack - { - /********* - ** Accessors - *********/ - /// <summary>Encapsulates monitoring and logging.</summary> - public IMonitor Monitor { get; } - - /// <summary>Simplifies access to private game code.</summary> - public Reflector Reflection { get; } - - /// <summary>Encapsulates SMAPI's JSON file parsing.</summary> - public JsonHelper JsonHelper { get; } - - /// <summary>A callback to invoke the first time *any* game content manager loads an asset.</summary> - public Action OnLoadingFirstAsset { get; } - - - /********* - ** Public methods - *********/ - /// <summary>Construct an instance.</summary> - /// <param name="monitor">Encapsulates monitoring and logging.</param> - /// <param name="reflection">Simplifies access to private game code.</param> - /// <param name="jsonHelper">Encapsulates SMAPI's JSON file parsing.</param> - /// <param name="onLoadingFirstAsset">A callback to invoke the first time *any* game content manager loads an asset.</param> - public SGameConstructorHack(IMonitor monitor, Reflector reflection, JsonHelper jsonHelper, Action onLoadingFirstAsset) - { - this.Monitor = monitor; - this.Reflection = reflection; - this.JsonHelper = jsonHelper; - this.OnLoadingFirstAsset = onLoadingFirstAsset; - } - } -} |