-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathGameTimerChangedCallback.cs
More file actions
52 lines (47 loc) · 1.39 KB
/
GameTimerChangedCallback.cs
File metadata and controls
52 lines (47 loc) · 1.39 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
namespace SS.Core.ComponentCallbacks
{
/// <summary>
/// Represents the type of change on a timer.
/// </summary>
public enum TimerChange
{
Started,
Stopped,
Paused,
Unpaused,
}
/// <summary>
/// The reason why a timer changed.
/// </summary>
public enum TimerChangeReason
{
/// <summary>
/// Arena created or arena config changed.
/// </summary>
ArenaAction,
/// <summary>
/// A player issued a command.
/// </summary>
PlayerCommand,
/// <summary>
/// Another module called the interface
/// </summary>
InterfaceCall,
/// <summary>
/// The timer elapsed.
/// </summary>
Completion,
}
/// <summary>
/// Helper for the <see cref="GameTimerChangedDelegate"/> callback.
/// </summary>
/// <remarks>
/// It is possible to tell when a timer completes by watching for a reason of <see cref="TimerChangeReason.Completion"/>,
/// in which case the timer either got <see cref="TimerChange.Started"/> back up or <see cref="TimerChange.Stopped"/>.
/// </remarks>
[CallbackHelper]
public static partial class GameTimerChangedCallback
{
public delegate void GameTimerChangedDelegate(Arena arena, TimerChange change, TimerChangeReason reason, bool isTimedGame);
}
}