summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/ISemanticVersion.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-04-24 13:30:49 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-04-24 13:30:49 -0400
commit22806ab900721a61b142937bc58dd33727d377f9 (patch)
treebc5062865b0d5d384b6fb13326c1b32313a0038a /src/StardewModdingAPI/ISemanticVersion.cs
parentdbb9bd84306830456032778fc11fb9a34dd140c7 (diff)
parentfee89a99da3295c6bb35d6543a112db8924057de (diff)
downloadSMAPI-22806ab900721a61b142937bc58dd33727d377f9.tar.gz
SMAPI-22806ab900721a61b142937bc58dd33727d377f9.tar.bz2
SMAPI-22806ab900721a61b142937bc58dd33727d377f9.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI/ISemanticVersion.cs')
-rw-r--r--src/StardewModdingAPI/ISemanticVersion.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/ISemanticVersion.cs b/src/StardewModdingAPI/ISemanticVersion.cs
index 3b9bdb44..27a2f67d 100644
--- a/src/StardewModdingAPI/ISemanticVersion.cs
+++ b/src/StardewModdingAPI/ISemanticVersion.cs
@@ -28,10 +28,31 @@ namespace StardewModdingAPI
/// <param name="other">The version to compare with this instance.</param>
bool IsOlderThan(ISemanticVersion other);
+ /// <summary>Get whether this version is older than the specified version.</summary>
+ /// <param name="other">The version to compare with this instance.</param>
+ /// <exception cref="FormatException">The specified version is not a valid semantic version.</exception>
+ bool IsOlderThan(string other);
+
/// <summary>Get whether this version is newer than the specified version.</summary>
/// <param name="other">The version to compare with this instance.</param>
bool IsNewerThan(ISemanticVersion other);
+ /// <summary>Get whether this version is newer than the specified version.</summary>
+ /// <param name="other">The version to compare with this instance.</param>
+ /// <exception cref="FormatException">The specified version is not a valid semantic version.</exception>
+ bool IsNewerThan(string other);
+
+ /// <summary>Get whether this version is between two specified versions (inclusively).</summary>
+ /// <param name="min">The minimum version.</param>
+ /// <param name="max">The maximum version.</param>
+ bool IsBetween(ISemanticVersion min, ISemanticVersion max);
+
+ /// <summary>Get whether this version is between two specified versions (inclusively).</summary>
+ /// <param name="min">The minimum version.</param>
+ /// <param name="max">The maximum version.</param>
+ /// <exception cref="FormatException">One of the specified versions is not a valid semantic version.</exception>
+ bool IsBetween(string min, string max);
+
/// <summary>Get a string representation of the version.</summary>
string ToString();
}