summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsInventoryChanged.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-10-07 23:07:10 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-10-07 23:07:10 -0400
commit929dccb75a1405737975d76648e015a3e7c00177 (patch)
tree659fe16509327e694555db363caf7f47f326443b /src/StardewModdingAPI/Events/EventArgsInventoryChanged.cs
parent926894f8f52c2a5cf104fcac2f7f34b637f7b531 (diff)
downloadSMAPI-929dccb75a1405737975d76648e015a3e7c00177.tar.gz
SMAPI-929dccb75a1405737975d76648e015a3e7c00177.tar.bz2
SMAPI-929dccb75a1405737975d76648e015a3e7c00177.zip
reorganise repo structure
Diffstat (limited to 'src/StardewModdingAPI/Events/EventArgsInventoryChanged.cs')
-rw-r--r--src/StardewModdingAPI/Events/EventArgsInventoryChanged.cs41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/StardewModdingAPI/Events/EventArgsInventoryChanged.cs b/src/StardewModdingAPI/Events/EventArgsInventoryChanged.cs
deleted file mode 100644
index 1ee02842..00000000
--- a/src/StardewModdingAPI/Events/EventArgsInventoryChanged.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using StardewValley;
-
-namespace StardewModdingAPI.Events
-{
- /// <summary>Event arguments for a <see cref="PlayerEvents.InventoryChanged"/> event.</summary>
- public class EventArgsInventoryChanged : EventArgs
- {
- /*********
- ** Accessors
- *********/
- /// <summary>The player's inventory.</summary>
- public List<Item> Inventory { get; }
-
- /// <summary>The added items.</summary>
- public List<ItemStackChange> Added { get; }
-
- /// <summary>The removed items.</summary>
- public List<ItemStackChange> Removed { get; }
-
- /// <summary>The items whose stack sizes changed.</summary>
- public List<ItemStackChange> QuantityChanged { get; }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Construct an instance.</summary>
- /// <param name="inventory">The player's inventory.</param>
- /// <param name="changedItems">The inventory changes.</param>
- public EventArgsInventoryChanged(List<Item> inventory, List<ItemStackChange> changedItems)
- {
- this.Inventory = inventory;
- this.Added = changedItems.Where(n => n.ChangeType == ChangeType.Added).ToList();
- this.Removed = changedItems.Where(n => n.ChangeType == ChangeType.Removed).ToList();
- this.QuantityChanged = changedItems.Where(n => n.ChangeType == ChangeType.StackChange).ToList();
- }
- }
-}