diff options
author | ClxS <slxxls92@gmail.com> | 2016-03-04 19:10:39 +0000 |
---|---|---|
committer | ClxS <slxxls92@gmail.com> | 2016-03-04 19:10:39 +0000 |
commit | c145e5f7274fb59b564f2ddf6611e31b88a1f659 (patch) | |
tree | 4042c13b4beff7f765f63b6d9cae06ba14b4cabd /StardewModdingAPI/Events/Player.cs | |
parent | afef5648ca512d0c151a87becbb85cd14494717b (diff) | |
download | SMAPI-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.cs | 6 |
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));
+ }
}
}
|