summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Mod.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-12-27 13:52:32 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-12-27 13:52:32 -0500
commitb9dd6eb742e4f0c42ed887abd0f17f113f250056 (patch)
tree352a208a25780285419b0bae73148a00a98356ff /src/StardewModdingAPI/Mod.cs
parentc24294c3dd73db3754d10ff8fe5bd51338555638 (diff)
parentb75d86e7cc19f9bc961abb475f22e8f2b059533c (diff)
downloadSMAPI-b9dd6eb742e4f0c42ed887abd0f17f113f250056.tar.gz
SMAPI-b9dd6eb742e4f0c42ed887abd0f17f113f250056.tar.bz2
SMAPI-b9dd6eb742e4f0c42ed887abd0f17f113f250056.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI/Mod.cs')
-rw-r--r--src/StardewModdingAPI/Mod.cs17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Mod.cs b/src/StardewModdingAPI/Mod.cs
index 21551771..d12a7e05 100644
--- a/src/StardewModdingAPI/Mod.cs
+++ b/src/StardewModdingAPI/Mod.cs
@@ -5,7 +5,7 @@ using StardewModdingAPI.Framework;
namespace StardewModdingAPI
{
/// <summary>The base class for a mod.</summary>
- public class Mod
+ public class Mod : IMod
{
/*********
** Properties
@@ -24,7 +24,18 @@ namespace StardewModdingAPI
public IMonitor Monitor { get; internal set; }
/// <summary>The mod's manifest.</summary>
- public Manifest Manifest { get; internal set; }
+ [Obsolete("Use " + nameof(Mod) + "." + nameof(ModManifest))]
+ public Manifest Manifest
+ {
+ get
+ {
+ Program.DeprecationManager.Warn($"{nameof(Mod)}.{nameof(Manifest)}", "1.5", DeprecationLevel.Notice);
+ return (Manifest)this.ModManifest;
+ }
+ }
+
+ /// <summary>The mod's manifest.</summary>
+ public IManifest ModManifest { get; internal set; }
/// <summary>The full path to the mod's directory on the disk.</summary>
[Obsolete("Use " + nameof(Mod.Helper) + "." + nameof(IModHelper.DirectoryPath) + " instead")]
@@ -94,7 +105,7 @@ namespace StardewModdingAPI
Program.DeprecationManager.Warn($"{nameof(Mod)}.{nameof(Mod.PerSaveConfigFolder)}", "1.0", DeprecationLevel.Notice);
Program.DeprecationManager.MarkWarned($"{nameof(Mod)}.{nameof(Mod.PathOnDisk)}", "1.0"); // avoid redundant warnings
- if (!this.Manifest.PerSaveConfigs)
+ if (!((Manifest)this.Manifest).PerSaveConfigs)
{
this.Monitor.Log("Tried to fetch the per-save config folder, but this mod isn't configured to use per-save config files.", LogLevel.Error);
return "";