summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/StateTracking/ICollectionWatcher.cs
blob: 74c9313b03cfe873c09655dc428841271fc96dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#nullable disable

using System.Collections.Generic;

namespace StardewModdingAPI.Framework.StateTracking
{
    /// <summary>A watcher which tracks changes to a collection.</summary>
    internal interface ICollectionWatcher<out TValue> : IWatcher
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The values added since the last reset.</summary>
        IEnumerable<TValue> Added { get; }

        /// <summary>The values removed since the last reset.</summary>
        IEnumerable<TValue> Removed { get; }
    }
}