summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-03-12 18:38:01 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-03-12 18:38:01 -0400
commita93f1e20423cce790ece3fab769546815dfc2f3a (patch)
treeda11b17f3451e53968d3d67c69b656ed07f867b2 /src/StardewModdingAPI
parentccc57935de9b75e17b9f531df87e2ac4dac43dfc (diff)
downloadSMAPI-a93f1e20423cce790ece3fab769546815dfc2f3a.tar.gz
SMAPI-a93f1e20423cce790ece3fab769546815dfc2f3a.tar.bz2
SMAPI-a93f1e20423cce790ece3fab769546815dfc2f3a.zip
add several incompatibility finders for SMAPI 1.9 and SDV 1.2 (#247)
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r--src/StardewModdingAPI/Constants.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/StardewModdingAPI/Constants.cs b/src/StardewModdingAPI/Constants.cs
index 4c1c7a8e..d86a065b 100644
--- a/src/StardewModdingAPI/Constants.cs
+++ b/src/StardewModdingAPI/Constants.cs
@@ -141,13 +141,20 @@ namespace StardewModdingAPI
{
return new IInstructionFinder[]
{
- // changes in Stardew Valley 1.2
- new GenericFieldFinder("Game1", "borderFont", isStatic: true),
- new GenericFieldFinder("Game1", "smoothFont", isStatic: true),
+ // changes in Stardew Valley 1.2 (that don't have rewriters)
+ new GenericFieldFinder("StardewValley.Game1", "borderFont", isStatic: true),
+ new GenericFieldFinder("StardewValley.Game1", "smoothFont", isStatic: true),
+ new GenericFieldFinder("StardewValley.Item", "set_Name", isStatic: false),
// APIs removed in SMAPI 1.9
+ new GenericTypeFinder("StardewModdingAPI.Entities.SPlayer"),
new GenericTypeFinder("StardewModdingAPI.Extensions"),
- new GenericTypeFinder("StardewModdingAPI.Inheritance.SGame")
+ new GenericTypeFinder("StardewModdingAPI.Inheritance.ItemStackChange"),
+ new GenericTypeFinder("StardewModdingAPI.Inheritance.SGame"),
+ new GenericTypeFinder("StardewModdingAPI.Inheritance.SObject"),
+ new GenericTypeFinder("StardewModdingAPI.LogWriter"),
+ new GenericTypeFinder("StardewModdingAPI.Manifest"),
+ new GenericTypeFinder("StardewModdingAPI.Version")
};
}