From c145e5f7274fb59b564f2ddf6611e31b88a1f659 Mon Sep 17 00:00:00 2001 From: ClxS Date: Fri, 4 Mar 2016 19:10:39 +0000 Subject: Added event for Inventory change --- StardewModdingAPI/Events/Player.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'StardewModdingAPI/Events/Player.cs') 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 FarmerChanged = delegate { }; + public static event EventHandler InventoryChanged = delegate { }; public static void InvokeFarmerChanged(Farmer priorFarmer, Farmer newFarmer) { FarmerChanged.Invoke(null, new EventArgsFarmerChanged(priorFarmer, newFarmer)); } + + public static void InvokeInventoryChanged(List inventory) + { + FarmerChanged.Invoke(null, new InventoryChanged(inventory)); + } } } -- cgit