From cec74697866da2d67a62c3a4ef10d605592e4152 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Tue, 7 Feb 2017 20:51:22 -0500 Subject: disambiguate references to Farmer (#231) --- src/StardewModdingAPI/Framework/SGame.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/StardewModdingAPI/Framework') diff --git a/src/StardewModdingAPI/Framework/SGame.cs b/src/StardewModdingAPI/Framework/SGame.cs index 2486e376..2aaca9af 100644 --- a/src/StardewModdingAPI/Framework/SGame.cs +++ b/src/StardewModdingAPI/Framework/SGame.cs @@ -14,6 +14,7 @@ using StardewValley.Menus; using StardewValley.Tools; using xTile.Dimensions; using Rectangle = Microsoft.Xna.Framework.Rectangle; +using SFarmer = StardewValley.Farmer; namespace StardewModdingAPI.Framework { @@ -131,7 +132,7 @@ namespace StardewModdingAPI.Framework public bool PreviousIsNewDay { get; private set; } /// The player character at last check. - public Farmer PreviousFarmer { get; private set; } + public SFarmer PreviousFarmer { get; private set; } /// An index incremented on every tick and reset every 60th tick (0–59). public int CurrentUpdateTick { get; private set; } @@ -164,7 +165,7 @@ namespace StardewModdingAPI.Framework /// The current player. [Obsolete("Use Game1.player instead")] - public Farmer CurrentFarmer => Game1.player; + public SFarmer CurrentFarmer => Game1.player; /// The game method which draws the farm buildings. public static MethodInfo DrawFarmBuildings = typeof(Game1).GetMethod("drawFarmBuildings", BindingFlags.NonPublic | BindingFlags.Instance); @@ -296,7 +297,6 @@ namespace StardewModdingAPI.Framework /// The method called during game launch after configuring XNA or MonoGame. The game window hasn't been opened by this point. protected override void Initialize() { - //ModItems = new Dictionary(); SGame.DebugMessageQueue = new Queue(); this.PreviouslyPressedButtons = new Buttons[4][]; for (var i = 0; i < 4; ++i) -- cgit