diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-13 21:36:50 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-13 21:36:50 -0400 |
commit | 53547a8ca3a5cba45bd0a5a478d0f40daa282888 (patch) | |
tree | d0ccbdf5b8fed2edc43c83724acc9eb734939c44 /src/StardewModdingAPI/Framework/ModLoading/ModMetadata.cs | |
parent | 7f368aa8896baa551aa156a8e67e9dd16416022d (diff) | |
download | SMAPI-53547a8ca3a5cba45bd0a5a478d0f40daa282888.tar.gz SMAPI-53547a8ca3a5cba45bd0a5a478d0f40daa282888.tar.bz2 SMAPI-53547a8ca3a5cba45bd0a5a478d0f40daa282888.zip |
pass API version into mod metadata validation to simplify unit testing (#285)
Diffstat (limited to 'src/StardewModdingAPI/Framework/ModLoading/ModMetadata.cs')
-rw-r--r-- | src/StardewModdingAPI/Framework/ModLoading/ModMetadata.cs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/StardewModdingAPI/Framework/ModLoading/ModMetadata.cs b/src/StardewModdingAPI/Framework/ModLoading/ModMetadata.cs index 5ec2d4e0..7b25e090 100644 --- a/src/StardewModdingAPI/Framework/ModLoading/ModMetadata.cs +++ b/src/StardewModdingAPI/Framework/ModLoading/ModMetadata.cs @@ -3,7 +3,7 @@ namespace StardewModdingAPI.Framework.ModLoading { /// <summary>Metadata for a mod.</summary> - internal class ModMetadata + internal class ModMetadata : IModMetadata { /********* ** Accessors @@ -47,21 +47,11 @@ namespace StardewModdingAPI.Framework.ModLoading /// <param name="status">The metadata resolution status.</param> /// <param name="error">The reason the metadata is invalid, if any.</param> /// <returns>Return the instance for chaining.</returns> - public ModMetadata SetStatus(ModMetadataStatus status, string error = null) + public IModMetadata SetStatus(ModMetadataStatus status, string error = null) { this.Status = status; this.Error = error; return this; } } - - /// <summary>Indicates the status of a mod's metadata resolution.</summary> - internal enum ModMetadataStatus - { - /// <summary>The mod has been found, but hasn't been processed yet.</summary> - Found, - - /// <summary>The mod cannot be loaded.</summary> - Failed - } } |