blob: 3603b6f8980ea1c235d2fd6024a9651bd2a1138b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#nullable disable
using System;
namespace StardewModdingAPI.Framework.StateTracking
{
/// <summary>A watcher which detects changes to something.</summary>
internal interface IWatcher : IDisposable
{
/*********
** Accessors
*********/
/// <summary>Whether the value changed since the last reset.</summary>
bool IsChanged { get; }
/*********
** Methods
*********/
/// <summary>Update the current value if needed.</summary>
void Update();
/// <summary>Set the current value as the baseline.</summary>
void Reset();
}
}
|