summaryrefslogtreecommitdiff
path: root/src/SMAPI.ModBuildConfig.Analyzer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-04-29 11:35:01 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-04-29 11:35:01 -0400
commit46fe7a86a7020d9170ab5a05047a3f7a6cc4b3c0 (patch)
tree59eaf07d4311359fd51aa1df5d91eab453bf4365 /src/SMAPI.ModBuildConfig.Analyzer
parent6257fdf57def0f07a7970f9fb232879ed4c524f6 (diff)
downloadSMAPI-46fe7a86a7020d9170ab5a05047a3f7a6cc4b3c0.tar.gz
SMAPI-46fe7a86a7020d9170ab5a05047a3f7a6cc4b3c0.tar.bz2
SMAPI-46fe7a86a7020d9170ab5a05047a3f7a6cc4b3c0.zip
add a few more avoidable net fields (#471)
Diffstat (limited to 'src/SMAPI.ModBuildConfig.Analyzer')
-rw-r--r--src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs b/src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs
index d1e5c59a..fad9251b 100644
--- a/src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs
+++ b/src/SMAPI.ModBuildConfig.Analyzer/NetFieldAnalyzer.cs
@@ -22,6 +22,13 @@ namespace StardewModdingAPI.ModBuildConfig.Analyzer
/// <summary>Maps net fields to their equivalent non-net properties where available.</summary>
private readonly IDictionary<string, string> NetFieldWrapperProperties = new Dictionary<string, string>
{
+ // AnimatedSprite
+ ["StardewValley.AnimatedSprite::currentAnimation"] = "CurrentAnimation",
+ ["StardewValley.AnimatedSprite::currentFrame"] = "CurrentFrame",
+ ["StardewValley.AnimatedSprite::sourceRect"] = "SourceRect",
+ ["StardewValley.AnimatedSprite::spriteHeight"] = "SpriteHeight",
+ ["StardewValley.AnimatedSprite::spriteWidth"] = "SpriteWidth",
+
// Character
["StardewValley.Character::currentLocationRef"] = "currentLocation",
["StardewValley.Character::facingDirection"] = "FacingDirection",