summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading/ModMetadata.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/ModLoading/ModMetadata.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/ModLoading/ModMetadata.cs')
-rw-r--r--src/SMAPI/Framework/ModLoading/ModMetadata.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/ModMetadata.cs b/src/SMAPI/Framework/ModLoading/ModMetadata.cs
index 5055da75..2e5c27be 100644
--- a/src/SMAPI/Framework/ModLoading/ModMetadata.cs
+++ b/src/SMAPI/Framework/ModLoading/ModMetadata.cs
@@ -29,6 +29,9 @@ namespace StardewModdingAPI.Framework.ModLoading
/// <summary>The mod instance (if it was loaded).</summary>
public IMod Mod { get; private set; }
+ /// <summary>The mod-provided API (if any).</summary>
+ public IModProvidedApi Api { get; private set; }
+
/*********
** Public methods
@@ -59,9 +62,11 @@ namespace StardewModdingAPI.Framework.ModLoading
/// <summary>Set the mod instance.</summary>
/// <param name="mod">The mod instance to set.</param>
- public IModMetadata SetMod(IMod mod)
+ /// <param name="api">The mod-provided API (if any).</param>
+ public IModMetadata SetMod(IMod mod, IModProvidedApi api)
{
this.Mod = mod;
+ this.Api = api;
return this;
}
}