summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/StateTracking/IValueWatcher.cs
blob: 4afca972433cb0876a0b474248b715edd46eaf45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace StardewModdingAPI.Framework.StateTracking
{
    /// <summary>A watcher which tracks changes to a value.</summary>
    internal interface IValueWatcher<out T> : IWatcher
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The field value at the last reset.</summary>
        T PreviousValue { get; }

        /// <summary>The latest value.</summary>
        T CurrentValue { get; }
    }
}