summaryrefslogtreecommitdiff
path: root/StardewModdingAPI/Events/Player.cs
diff options
context:
space:
mode:
authorClxS <slxxls92@gmail.com>2016-03-04 19:10:39 +0000
committerClxS <slxxls92@gmail.com>2016-03-04 19:10:39 +0000
commitc145e5f7274fb59b564f2ddf6611e31b88a1f659 (patch)
tree4042c13b4beff7f765f63b6d9cae06ba14b4cabd /StardewModdingAPI/Events/Player.cs
parentafef5648ca512d0c151a87becbb85cd14494717b (diff)
downloadSMAPI-c145e5f7274fb59b564f2ddf6611e31b88a1f659.tar.gz
SMAPI-c145e5f7274fb59b564f2ddf6611e31b88a1f659.tar.bz2
SMAPI-c145e5f7274fb59b564f2ddf6611e31b88a1f659.zip
Added event for Inventory change
Diffstat (limited to 'StardewModdingAPI/Events/Player.cs')
-rw-r--r--StardewModdingAPI/Events/Player.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/StardewModdingAPI/Events/Player.cs b/StardewModdingAPI/Events/Player.cs
index 3fa5c806..169da863 100644
--- a/StardewModdingAPI/Events/Player.cs
+++ b/StardewModdingAPI/Events/Player.cs
@@ -10,10 +10,16 @@ namespace StardewModdingAPI.Events
public static class PlayerEvents
{
public static event EventHandler<EventArgsFarmerChanged> FarmerChanged = delegate { };
+ public static event EventHandler<EventArgsInventory> InventoryChanged = delegate { };
public static void InvokeFarmerChanged(Farmer priorFarmer, Farmer newFarmer)
{
FarmerChanged.Invoke(null, new EventArgsFarmerChanged(priorFarmer, newFarmer));
}
+
+ public static void InvokeInventoryChanged(List<Item> inventory)
+ {
+ FarmerChanged.Invoke(null, new InventoryChanged(inventory));
+ }
}
}