summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/IModMetadata.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-12-11 23:33:10 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-12-11 23:33:10 -0500
commit2c909f26fcf48fc1de7f3b23f5f83d28d4a5e253 (patch)
tree437e1eedf1bddf7204a800104c370cf238dcac3b /src/SMAPI/Framework/IModMetadata.cs
parent971aff8368a8a2c196d942984926efc2f80cc216 (diff)
downloadSMAPI-2c909f26fcf48fc1de7f3b23f5f83d28d4a5e253.tar.gz
SMAPI-2c909f26fcf48fc1de7f3b23f5f83d28d4a5e253.tar.bz2
SMAPI-2c909f26fcf48fc1de7f3b23f5f83d28d4a5e253.zip
add prototype of mod-provided APIs (#409)
Diffstat (limited to 'src/SMAPI/Framework/IModMetadata.cs')
-rw-r--r--src/SMAPI/Framework/IModMetadata.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/IModMetadata.cs b/src/SMAPI/Framework/IModMetadata.cs
index c21734a7..c4be7daf 100644
--- a/src/SMAPI/Framework/IModMetadata.cs
+++ b/src/SMAPI/Framework/IModMetadata.cs
@@ -30,6 +30,9 @@ namespace StardewModdingAPI.Framework
/// <summary>The mod instance (if it was loaded).</summary>
IMod Mod { get; }
+ /// <summary>The mod-provided API (if any).</summary>
+ IModProvidedApi Api { get; }
+
/*********
** Public methods
@@ -42,6 +45,7 @@ namespace StardewModdingAPI.Framework
/// <summary>Set the mod instance.</summary>
/// <param name="mod">The mod instance to set.</param>
- IModMetadata SetMod(IMod mod);
+ /// <param name="api">The mod-provided API (if any).</param>
+ IModMetadata SetMod(IMod mod, IModProvidedApi api);
}
}