summaryrefslogtreecommitdiff
path: root/src/SMAPI/IModHelper.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-02-17 16:34:31 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-02-17 18:54:57 -0500
commit4444b590f016ebecfc113a0dd4584723b0250f41 (patch)
treedea12bd0ad7d6c0328ffefcd47dc1c5166b4b8db /src/SMAPI/IModHelper.cs
parent0c1bca3db044b6f228538f1738d52c31e4481e48 (diff)
downloadSMAPI-4444b590f016ebecfc113a0dd4584723b0250f41.tar.gz
SMAPI-4444b590f016ebecfc113a0dd4584723b0250f41.tar.bz2
SMAPI-4444b590f016ebecfc113a0dd4584723b0250f41.zip
add content pack feature (#436)
Diffstat (limited to 'src/SMAPI/IModHelper.cs')
-rw-r--r--src/SMAPI/IModHelper.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/SMAPI/IModHelper.cs b/src/SMAPI/IModHelper.cs
index 116e8508..96265c85 100644
--- a/src/SMAPI/IModHelper.cs
+++ b/src/SMAPI/IModHelper.cs
@@ -1,4 +1,6 @@
-namespace StardewModdingAPI
+using System.Collections.Generic;
+
+namespace StardewModdingAPI
{
/// <summary>Provides simplified APIs for writing mods.</summary>
public interface IModHelper
@@ -54,5 +56,11 @@
/// <param name="path">The file path relative to the mod directory.</param>
/// <param name="model">The model to save.</param>
void WriteJsonFile<TModel>(string path, TModel model) where TModel : class;
+
+ /****
+ ** Content packs
+ ****/
+ /// <summary>Get all content packs loaded for this mod.</summary>
+ IEnumerable<IContentPack> GetContentPacks();
}
-} \ No newline at end of file
+}