diff options
author | wartech0 <wartech0@hotmail.com> | 2019-12-29 08:06:02 -0600 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-12-31 16:19:43 -0500 |
commit | aef1b8ac2898e147e6200fe257e8fdd82ee7fdbc (patch) | |
tree | de3026eeac70d90e729802b8213cbb4004f2dee9 /src/SMAPI/Framework/SnapshotListDiff.cs | |
parent | dca60f42b2048d6b0b27517b9e7686665e61e9c2 (diff) | |
download | SMAPI-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.cs | 8 |
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> |