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

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; }
    }
}