diff options
Diffstat (limited to 'src/StardewModdingAPI/ModHelper.cs')
-rw-r--r-- | src/StardewModdingAPI/ModHelper.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/ModHelper.cs b/src/StardewModdingAPI/ModHelper.cs index 6a7e200a..781deff4 100644 --- a/src/StardewModdingAPI/ModHelper.cs +++ b/src/StardewModdingAPI/ModHelper.cs @@ -2,11 +2,13 @@ using System.IO; using Newtonsoft.Json; using StardewModdingAPI.Advanced; +using StardewModdingAPI.Framework.Reflection; +using StardewModdingAPI.Reflection; namespace StardewModdingAPI { - /// <summary>Provides methods for interacting with a mod directory.</summary> - [Obsolete("Use " + nameof(IModHelper) + " instead.")] + /// <summary>Provides simplified APIs for writing mods.</summary> + [Obsolete("Use " + nameof(IModHelper) + " instead.")] // only direct mod access to this class is obsolete public class ModHelper : IModHelper { /********* @@ -15,6 +17,9 @@ namespace StardewModdingAPI /// <summary>The mod directory path.</summary> public string DirectoryPath { get; } + /// <summary>Simplifies access to private game code.</summary> + public IReflectionHelper Reflection { get; } = new ReflectionHelper(); + /********* ** Public methods |