diff options
| author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-16 00:31:31 -0500 |
|---|---|---|
| committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-12-16 00:31:31 -0500 |
| commit | 6a4dc7e7d1dddb54264856102540d205bc6c3509 (patch) | |
| tree | db53e648d6ce2f155e19d307bb60abbd14e8ca96 /src/SMAPI/Framework/ModLoading | |
| parent | 69c9ab0ecd184e4706a8e6394b38fa592cb808d0 (diff) | |
| parent | 4c3ae950c6be0840e98d1328eeca9effca9c3807 (diff) | |
| download | SMAPI-6a4dc7e7d1dddb54264856102540d205bc6c3509.tar.gz SMAPI-6a4dc7e7d1dddb54264856102540d205bc6c3509.tar.bz2 SMAPI-6a4dc7e7d1dddb54264856102540d205bc6c3509.zip | |
Merge branch 'feature/mod-provided-apis' into develop
Diffstat (limited to 'src/SMAPI/Framework/ModLoading')
| -rw-r--r-- | src/SMAPI/Framework/ModLoading/ModMetadata.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModLoading/ModMetadata.cs b/src/SMAPI/Framework/ModLoading/ModMetadata.cs index 5055da75..30fe211b 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 object Api { get; private set; } + /********* ** Public methods @@ -64,5 +67,13 @@ namespace StardewModdingAPI.Framework.ModLoading this.Mod = mod; return this; } + + /// <summary>Set the mod-provided API instance.</summary> + /// <param name="api">The mod-provided API.</param> + public IModMetadata SetApi(object api) + { + this.Api = api; + return this; + } } } |
