diff options
Diffstat (limited to 'src/StardewModdingAPI/ModHelper.cs')
-rw-r--r-- | src/StardewModdingAPI/ModHelper.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/StardewModdingAPI/ModHelper.cs b/src/StardewModdingAPI/ModHelper.cs index 6a7e200a..1fcc0182 100644 --- a/src/StardewModdingAPI/ModHelper.cs +++ b/src/StardewModdingAPI/ModHelper.cs @@ -2,11 +2,12 @@ using System.IO; using Newtonsoft.Json; using StardewModdingAPI.Advanced; +using StardewModdingAPI.Framework.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 +16,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 |