diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-23 22:07:29 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-23 22:07:29 -0400 |
commit | 9495cc0f493a11960aa23551e164018681d08f79 (patch) | |
tree | 3071d9042394d95839400b2806405d5e2d3fb908 /src/StardewModdingAPI/Framework/Models/ModCompatibility.cs | |
parent | a89dbce8549abee867d0af65ac62155bb485a911 (diff) | |
download | SMAPI-9495cc0f493a11960aa23551e164018681d08f79.tar.gz SMAPI-9495cc0f493a11960aa23551e164018681d08f79.tar.bz2 SMAPI-9495cc0f493a11960aa23551e164018681d08f79.zip |
rename mod compatibility records for broader use (#361)
Diffstat (limited to 'src/StardewModdingAPI/Framework/Models/ModCompatibility.cs')
-rw-r--r-- | src/StardewModdingAPI/Framework/Models/ModCompatibility.cs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/StardewModdingAPI/Framework/Models/ModCompatibility.cs b/src/StardewModdingAPI/Framework/Models/ModCompatibility.cs deleted file mode 100644 index 7489a306..00000000 --- a/src/StardewModdingAPI/Framework/Models/ModCompatibility.cs +++ /dev/null @@ -1,40 +0,0 @@ -using Newtonsoft.Json; -using StardewModdingAPI.Framework.Serialisation; - -namespace StardewModdingAPI.Framework.Models -{ - /// <summary>Metadata about a mod version that SMAPI should assume is compatible or broken, regardless of whether it detects incompatible code.</summary> - internal class ModCompatibility - { - /********* - ** Accessors - *********/ - /// <summary>The unique mod IDs.</summary> - [JsonConverter(typeof(SFieldConverter))] - public ModCompatibilityID[] ID { get; set; } - - /// <summary>The mod name.</summary> - public string Name { get; set; } - - /// <summary>The oldest incompatible mod version, or <c>null</c> for all past versions.</summary> - [JsonConverter(typeof(SFieldConverter))] - public ISemanticVersion LowerVersion { get; set; } - - /// <summary>The most recent incompatible mod version.</summary> - [JsonConverter(typeof(SFieldConverter))] - public ISemanticVersion UpperVersion { get; set; } - - /// <summary>A label to show to the user instead of <see cref="UpperVersion"/>, when the manifest version differs from the user-facing version.</summary> - public string UpperVersionLabel { get; set; } - - /// <summary>The URLs the user can check for a newer version.</summary> - public string[] UpdateUrls { get; set; } - - /// <summary>The reason phrase to show in the warning, or <c>null</c> to use the default value.</summary> - /// <example>"this version is incompatible with the latest version of the game"</example> - public string ReasonPhrase { get; set; } - - /// <summary>Indicates how SMAPI should treat the mod.</summary> - public ModStatus Status { get; set; } = ModStatus.AssumeBroken; - } -} |