summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/StateTracking/ICollectionWatcher.cs
blob: 7a7759e35408ca66de1a0c5f2796bf3745eeefe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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; }
    }
}