diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-06-12 18:44:36 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-06-12 18:44:36 -0400 |
commit | a4713ea88238e6a6d62447aef97b35321e63c010 (patch) | |
tree | 1842f6836de997b5153611ce20c3cc9092ede2e9 /src/StardewModdingAPI/Framework/Models | |
parent | 2a9c8d43df156ba2b6eb32c690eba4a80167a549 (diff) | |
download | SMAPI-a4713ea88238e6a6d62447aef97b35321e63c010.tar.gz SMAPI-a4713ea88238e6a6d62447aef97b35321e63c010.tar.bz2 SMAPI-a4713ea88238e6a6d62447aef97b35321e63c010.zip |
add separate list of obsolete mods
Diffstat (limited to 'src/StardewModdingAPI/Framework/Models')
-rw-r--r-- | src/StardewModdingAPI/Framework/Models/DisabledMod.cs | 22 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/Models/SConfig.cs | 3 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Framework/Models/DisabledMod.cs b/src/StardewModdingAPI/Framework/Models/DisabledMod.cs new file mode 100644 index 00000000..170fa760 --- /dev/null +++ b/src/StardewModdingAPI/Framework/Models/DisabledMod.cs @@ -0,0 +1,22 @@ +namespace StardewModdingAPI.Framework.Models +{ + /// <summary>Metadata about for a mod that should never be loaded.</summary> + internal class DisabledMod + { + /********* + ** Accessors + *********/ + /**** + ** From config + ****/ + /// <summary>The unique mod IDs.</summary> + public string[] ID { get; set; } + + /// <summary>The mod name.</summary> + public string Name { get; set; } + + /// <summary>The reason phrase to show in the warning, or <c>null</c> to use the default value.</summary> + /// <example>"this mod is no longer supported or used"</example> + public string ReasonPhrase { get; set; } + } +} diff --git a/src/StardewModdingAPI/Framework/Models/SConfig.cs b/src/StardewModdingAPI/Framework/Models/SConfig.cs index c3f0816e..b2ca4113 100644 --- a/src/StardewModdingAPI/Framework/Models/SConfig.cs +++ b/src/StardewModdingAPI/Framework/Models/SConfig.cs @@ -17,5 +17,8 @@ /// <summary>A list of mod versions which should be considered compatible or incompatible regardless of whether SMAPI detects incompatible code.</summary> public ModCompatibility[] ModCompatibility { get; set; } + + /// <summary>A list of mods which should be considered obsolete and not loaded.</summary> + public DisabledMod[] DisabledMods { get; set; } } } |