diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-04 18:46:05 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-04 18:46:05 -0500 |
commit | 99023f94871e1f9bad5ee5f5db0ff041a02e9ed5 (patch) | |
tree | ed5a44b3199cd6c8dc1a20781dd6b071b4254900 /src/SMAPI.Common/Models/ModSeachModel.cs | |
parent | 90c8593ba9a0828a4d3f563c6f08fc90933cd2ff (diff) | |
download | SMAPI-99023f94871e1f9bad5ee5f5db0ff041a02e9ed5.tar.gz SMAPI-99023f94871e1f9bad5ee5f5db0ff041a02e9ed5.tar.bz2 SMAPI-99023f94871e1f9bad5ee5f5db0ff041a02e9ed5.zip |
add support for mapping non-semantic remote mod versions
Diffstat (limited to 'src/SMAPI.Common/Models/ModSeachModel.cs')
-rw-r--r-- | src/SMAPI.Common/Models/ModSeachModel.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SMAPI.Common/Models/ModSeachModel.cs b/src/SMAPI.Common/Models/ModSeachModel.cs index 13b05d2d..3c33d0b6 100644 --- a/src/SMAPI.Common/Models/ModSeachModel.cs +++ b/src/SMAPI.Common/Models/ModSeachModel.cs @@ -12,6 +12,9 @@ namespace StardewModdingAPI.Common.Models /// <summary>The namespaced mod keys to search.</summary> public string[] ModKeys { get; set; } + /// <summary>Whether to allow non-semantic versions, instead of returning an error for those.</summary> + public bool AllowInvalidVersions { get; set; } + /********* ** Public methods @@ -24,9 +27,11 @@ namespace StardewModdingAPI.Common.Models /// <summary>Construct an instance.</summary> /// <param name="modKeys">The namespaced mod keys to search.</param> - public ModSearchModel(IEnumerable<string> modKeys) + /// <param name="allowInvalidVersions">Whether to allow non-semantic versions, instead of returning an error for those.</param> + public ModSearchModel(IEnumerable<string> modKeys, bool allowInvalidVersions) { this.ModKeys = modKeys.ToArray(); + this.AllowInvalidVersions = allowInvalidVersions; } } } |