From 9933acad35375c994ada78109eb1af957288d9ea Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Mon, 23 May 2022 12:57:33 -0400 Subject: use in watchers --- .../StateTracking/FieldWatchers/ComparableListWatcher.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs') diff --git a/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs b/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs index 256370ce..3d178a36 100644 --- a/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs +++ b/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs @@ -26,13 +26,13 @@ namespace StardewModdingAPI.Framework.StateTracking.FieldWatchers /********* ** Accessors *********/ - /// Whether the value changed since the last reset. + /// public bool IsChanged => this.AddedImpl.Count > 0 || this.RemovedImpl.Count > 0; - /// The values added since the last reset. + /// public IEnumerable Added => this.AddedImpl; - /// The values removed since the last reset. + /// public IEnumerable Removed => this.RemovedImpl; @@ -48,7 +48,7 @@ namespace StardewModdingAPI.Framework.StateTracking.FieldWatchers this.LastValues = new HashSet(comparer); } - /// Update the current value if needed. + /// public void Update() { this.AssertNotDisposed(); @@ -71,7 +71,7 @@ namespace StardewModdingAPI.Framework.StateTracking.FieldWatchers this.LastValues = curValues; } - /// Set the current value as the baseline. + /// public void Reset() { this.AssertNotDisposed(); -- cgit