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 --- src/SMAPI/Framework/StateTracking/LocationTracker.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/SMAPI/Framework/StateTracking/LocationTracker.cs') diff --git a/src/SMAPI/Framework/StateTracking/LocationTracker.cs b/src/SMAPI/Framework/StateTracking/LocationTracker.cs index ff72a19b..036ed73a 100644 --- a/src/SMAPI/Framework/StateTracking/LocationTracker.cs +++ b/src/SMAPI/Framework/StateTracking/LocationTracker.cs @@ -25,7 +25,7 @@ namespace StardewModdingAPI.Framework.StateTracking /********* ** Accessors *********/ - /// Whether the value changed since the last reset. + /// public bool IsChanged => this.Watchers.Any(p => p.IsChanged); /// The tracked location. @@ -88,7 +88,7 @@ namespace StardewModdingAPI.Framework.StateTracking this.UpdateChestWatcherList(added: location.Objects.Pairs, removed: Array.Empty>()); } - /// Update the current value if needed. + /// public void Update() { foreach (IWatcher watcher in this.Watchers) @@ -100,7 +100,7 @@ namespace StardewModdingAPI.Framework.StateTracking watcher.Value.Update(); } - /// Set the current value as the baseline. + /// public void Reset() { foreach (IWatcher watcher in this.Watchers) @@ -110,7 +110,7 @@ namespace StardewModdingAPI.Framework.StateTracking watcher.Value.Reset(); } - /// Stop watching the player fields and release all references. + /// public void Dispose() { foreach (IWatcher watcher in this.Watchers) -- cgit