summaryrefslogtreecommitdiff
path: root/src/SMAPI.Common
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-03-04 18:46:05 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-03-04 18:46:05 -0500
commit99023f94871e1f9bad5ee5f5db0ff041a02e9ed5 (patch)
treeed5a44b3199cd6c8dc1a20781dd6b071b4254900 /src/SMAPI.Common
parent90c8593ba9a0828a4d3f563c6f08fc90933cd2ff (diff)
downloadSMAPI-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')
-rw-r--r--src/SMAPI.Common/Models/ModSeachModel.cs7
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;
}
}
}