using System; using System.Collections.Generic; namespace StardewModdingAPI.Framework.StateTracking.FieldWatchers { /// A collection watcher which never changes. /// The value type within the collection. internal class ImmutableCollectionWatcher : BaseDisposableWatcher, ICollectionWatcher { /********* ** Accessors *********/ /// A singleton collection watcher instance. public static ImmutableCollectionWatcher Instance { get; } = new(); /// public string Name => nameof(ImmutableCollectionWatcher); /// public bool IsChanged { get; } = false; /// public IEnumerable Added { get; } = Array.Empty(); /// public IEnumerable Removed { get; } = Array.Empty(); /********* ** Public methods *********/ /// public void Update() { } /// public void Reset() { } /// public override void Dispose() { } } }