diff options
author | Zoryn <zoryn4163@gmail.com> | 2016-03-03 14:04:29 -0500 |
---|---|---|
committer | Zoryn <zoryn4163@gmail.com> | 2016-03-03 14:04:29 -0500 |
commit | de3f161a49bf7486290f0e4b3531177f949bc3cd (patch) | |
tree | 2569382d6a7d2c67a58f9c8f7b4c9b11731f4b35 /StardewModdingAPI/Inheritance/SGame.cs | |
parent | eee4e9c0fe434e3c49d53b5b8dcca1836a08abf8 (diff) | |
parent | d12c5babf6e3cb7d700be4f5eb29f5d34214d5f6 (diff) | |
download | SMAPI-de3f161a49bf7486290f0e4b3531177f949bc3cd.tar.gz SMAPI-de3f161a49bf7486290f0e4b3531177f949bc3cd.tar.bz2 SMAPI-de3f161a49bf7486290f0e4b3531177f949bc3cd.zip |
Merge remote-tracking branch 'origin/master'
# Conflicts:
# Release/StardewModdingAPI.exe
# StardewModdingAPI/Program.cs
# StardewModdingAPI/StardewModdingAPI.csproj
# StardewModdingAPI/obj/x86/Debug/StardewModdingAPI.csproj.FileListAbsolute.txt
# TrainerMod/bin/Debug/TrainerMod.dll
# TrainerMod/obj/Debug/TrainerMod.dll
Diffstat (limited to 'StardewModdingAPI/Inheritance/SGame.cs')
-rw-r--r-- | StardewModdingAPI/Inheritance/SGame.cs | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/StardewModdingAPI/Inheritance/SGame.cs b/StardewModdingAPI/Inheritance/SGame.cs index bed57e34..21fbea70 100644 --- a/StardewModdingAPI/Inheritance/SGame.cs +++ b/StardewModdingAPI/Inheritance/SGame.cs @@ -170,14 +170,14 @@ namespace StardewModdingAPI.Inheritance { return ModItems.ElementAt(id).Value.Clone(); } - Program.LogError("ModItem Dictionary does not contain index: " + id); + Program.LogError("ModItem Dictionary does not contain index: " + id.ToString()); return null; } if (ModItems.ContainsKey(id)) { return ModItems[id].Clone(); } - Program.LogError("ModItem Dictionary does not contain ID: " + id); + Program.LogError("ModItem Dictionary does not contain ID: " + id.ToString()); return null; } @@ -226,62 +226,62 @@ namespace StardewModdingAPI.Inheritance Events.InvokeKeyPressed(k); if (KStateNow != KStatePrior) - { - Events.InvokeKeyboardChanged(KStateNow); + {
+ Events.InvokeKeyboardChanged(KStatePrior, KStateNow); KStatePrior = KStateNow; } if (MStateNow != MStatePrior) - { - Events.InvokeMouseChanged(MStateNow); + {
+ Events.InvokeMouseChanged(MStatePrior, MStateNow); MStatePrior = MStateNow; } if (activeClickableMenu != null && activeClickableMenu != PreviousActiveMenu) - { - Events.InvokeMenuChanged(activeClickableMenu); + {
+ Events.InvokeMenuChanged(PreviousActiveMenu, activeClickableMenu); PreviousActiveMenu = activeClickableMenu; } if (locations.GetHash() != PreviousGameLocations) - { + {
Events.InvokeLocationsChanged(locations); PreviousGameLocations = locations.GetHash(); } if (currentLocation != PreviousGameLocation) - { - Events.InvokeCurrentLocationChanged(currentLocation); + {
+ Events.InvokeCurrentLocationChanged(PreviousGameLocation, currentLocation); PreviousGameLocation = currentLocation; } if (player != null && player != PreviousFarmer) - { - Events.InvokeFarmerChanged(player); + {
+ Events.InvokeFarmerChanged(PreviousFarmer, player); PreviousFarmer = player; } if (timeOfDay != PreviousTimeOfDay) - { - Events.InvokeTimeOfDayChanged(timeOfDay); + {
+ Events.InvokeTimeOfDayChanged(PreviousTimeOfDay, timeOfDay); PreviousTimeOfDay = timeOfDay; } if (dayOfMonth != PreviousDayOfMonth) - { - Events.InvokeDayOfMonthChanged(dayOfMonth); + {
+ Events.InvokeDayOfMonthChanged(PreviousDayOfMonth, dayOfMonth); PreviousDayOfMonth = dayOfMonth; } if (currentSeason != PreviousSeasonOfYear) - { - Events.InvokeSeasonOfYearChanged(currentSeason); + {
+ Events.InvokeSeasonOfYearChanged(PreviousSeasonOfYear, currentSeason); PreviousSeasonOfYear = currentSeason; } if (year != PreviousYearOfGame) - { - Events.InvokeYearOfGameChanged(year); + {
+ Events.InvokeYearOfGameChanged(PreviousYearOfGame, year); PreviousYearOfGame = year; } } |