summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SnapshotListDiff.cs
diff options
context:
space:
mode:
authorwartech0 <wartech0@hotmail.com>2019-12-29 08:06:02 -0600
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-12-31 16:19:43 -0500
commitaef1b8ac2898e147e6200fe257e8fdd82ee7fdbc (patch)
treede3026eeac70d90e729802b8213cbb4004f2dee9 /src/SMAPI/Framework/SnapshotListDiff.cs
parentdca60f42b2048d6b0b27517b9e7686665e61e9c2 (diff)
downloadSMAPI-aef1b8ac2898e147e6200fe257e8fdd82ee7fdbc.tar.gz
SMAPI-aef1b8ac2898e147e6200fe257e8fdd82ee7fdbc.tar.bz2
SMAPI-aef1b8ac2898e147e6200fe257e8fdd82ee7fdbc.zip
Added the new ChestItemChanged event.
Diffstat (limited to 'src/SMAPI/Framework/SnapshotListDiff.cs')
-rw-r--r--src/SMAPI/Framework/SnapshotListDiff.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SnapshotListDiff.cs b/src/SMAPI/Framework/SnapshotListDiff.cs
index d4d5df50..b14cacdb 100644
--- a/src/SMAPI/Framework/SnapshotListDiff.cs
+++ b/src/SMAPI/Framework/SnapshotListDiff.cs
@@ -29,10 +29,18 @@ namespace StardewModdingAPI.Framework
/// <summary>The added values.</summary>
public IEnumerable<T> Added => this.AddedImpl;
+ public Microsoft.Xna.Framework.Vector2 Key;
/*********
** Public methods
*********/
+
+ public void Update(ICollectionWatcher<T> watcher, Microsoft.Xna.Framework.Vector2 key)
+ {
+ this.Key = key;
+ this.Update(watcher.IsChanged, watcher.Removed, watcher.Added);
+ }
+
/// <summary>Update the snapshot.</summary>
/// <param name="isChanged">Whether the value changed since the last update.</param>
/// <param name="removed">The removed values.</param>