diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-30 18:59:01 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-03-30 18:59:01 -0400 |
commit | df1e748629f7ed5f150daba6fd83f5cf576a97b7 (patch) | |
tree | 06f9e59c1618cda79b83b167171e2ec9ad235d59 /src/StardewModdingAPI/Constants.cs | |
parent | 04cae4ef4608352329c746e2163b2a9356b063f6 (diff) | |
download | SMAPI-df1e748629f7ed5f150daba6fd83f5cf576a97b7.tar.gz SMAPI-df1e748629f7ed5f150daba6fd83f5cf576a97b7.tar.bz2 SMAPI-df1e748629f7ed5f150daba6fd83f5cf576a97b7.zip |
backport SMAPI 1.9 to Stardew Valley 1.11 (#258)
Diffstat (limited to 'src/StardewModdingAPI/Constants.cs')
-rw-r--r-- | src/StardewModdingAPI/Constants.cs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs index 1f1b6a65..3762269d 100644 --- a/src/StardewModdingAPI/Constants.cs +++ b/src/StardewModdingAPI/Constants.cs @@ -33,10 +33,10 @@ namespace StardewModdingAPI ** Public ****/ /// <summary>SMAPI's current semantic version.</summary> - public static ISemanticVersion ApiVersion { get; } = new SemanticVersion(1, 8, 0); + public static ISemanticVersion ApiVersion { get; } = new SemanticVersion(1, 9, 0); /// <summary>The minimum supported version of Stardew Valley.</summary> - public static ISemanticVersion MinimumGameVersion { get; } = new SemanticVersion("1.2.15"); + public static ISemanticVersion MinimumGameVersion { get; } = new SemanticVersion("1.1.1"); /// <summary>The path to the game folder.</summary> public static string ExecutionPath { get; } = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); @@ -146,9 +146,6 @@ namespace StardewModdingAPI /**** ** Finders throw an exception when incompatible code is found. ****/ - // changes in Stardew Valley 1.2 (with no rewriters) - new FieldFinder("StardewValley.Item", "set_Name"), - // APIs removed in SMAPI 1.9 new TypeFinder("StardewModdingAPI.Advanced.ConfigFile"), new TypeFinder("StardewModdingAPI.Advanced.IConfigFile"), @@ -172,12 +169,7 @@ namespace StardewModdingAPI // crossplatform new MethodParentRewriter(typeof(SpriteBatch), typeof(SpriteBatchWrapper), onlyIfPlatformChanged: true), - // Stardew Valley 1.2 - new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.activeClickableMenu)), - new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.gameMode)), - new FieldToPropertyRewriter(typeof(Game1), nameof(Game1.player)), - new FieldReplaceRewriter(typeof(Game1), "borderFont", nameof(Game1.smallFont)), - new FieldReplaceRewriter(typeof(Game1), "smoothFont", nameof(Game1.smallFont)), + // SMAPI 1.9 new TypeReferenceRewriter("StardewModdingAPI.Inheritance.ItemStackChange", typeof(ItemStackChange)) }; } |