diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-24 21:29:10 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-24 21:29:10 -0400 |
commit | 316242eeb2b6b6e711ab98f64c147a59c1d0aab8 (patch) | |
tree | 8266077b34ce63dd09690d97e5e67446f8afc665 /src/SMAPI/Constants.cs | |
parent | 71efadf2322a622bc5a74614b1575d2680a84165 (diff) | |
download | SMAPI-316242eeb2b6b6e711ab98f64c147a59c1d0aab8.tar.gz SMAPI-316242eeb2b6b6e711ab98f64c147a59c1d0aab8.tar.bz2 SMAPI-316242eeb2b6b6e711ab98f64c147a59c1d0aab8.zip |
merge ISemanticVersion interfaces into new project (#532)
Diffstat (limited to 'src/SMAPI/Constants.cs')
-rw-r--r-- | src/SMAPI/Constants.cs | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs index 65ca7866..df70d603 100644 --- a/src/SMAPI/Constants.cs +++ b/src/SMAPI/Constants.cs @@ -38,10 +38,10 @@ namespace StardewModdingAPI ** Public ****/ /// <summary>SMAPI's current semantic version.</summary> - public static ISemanticVersion ApiVersion { get; } + public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("2.6-beta.17"); /// <summary>The minimum supported version of Stardew Valley.</summary> - public static ISemanticVersion MinimumGameVersion { get; } + public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.3.21"); /// <summary>The maximum supported version of Stardew Valley.</summary> public static ISemanticVersion MaximumGameVersion { get; } = null; @@ -70,9 +70,6 @@ namespace StardewModdingAPI /**** ** Internal ****/ - /// <summary>SMAPI's current semantic version as a mod toolkit version.</summary> - internal static Toolkit.ISemanticVersion ApiVersionForToolkit { get; } - /// <summary>The URL of the SMAPI home page.</summary> internal const string HomePageUrl = "https://smapi.io"; @@ -113,15 +110,6 @@ namespace StardewModdingAPI /********* ** Internal methods *********/ - /// <summary>Initialise the static values.</summary> - static Constants() - { - Constants.ApiVersionForToolkit = new Toolkit.SemanticVersion("2.6-beta.17"); - Constants.MinimumGameVersion = new GameVersion("1.3.20"); - - Constants.ApiVersion = new SemanticVersion(Constants.ApiVersionForToolkit); - } - /// <summary>Get metadata for mapping assemblies to the current platform.</summary> /// <param name="targetPlatform">The target game platform.</param> internal static PlatformAssemblyMap GetAssemblyMap(Platform targetPlatform) |