GameEvent ​
Defines a notable event that can occur during a game session.
Kind: Class
Namespace: CrowdControl.Games.Events
Public Constructors
GameEvent(string name)
Initializes a game event definition without an automatic runtime trigger.
Public Static Functions
GameEvent
WhenCondition(string name, Func<bool> condition, Func<IReadOnlyDictionary<string, object?>?>? getArgs = null)
Creates an event that triggers when a condition transitions to true.
GameEvent
WhenChanged<T>(string name, Func<T> getValue, Func<T, IReadOnlyDictionary<string, object?>?>? getArgs = null, IEqualityComparer<T>? comparer = null)
Creates an event that triggers after a monitored value changes from its initial value.
Properties
string
Name
[get, ]
The streamer-facing name of the event.
EventArguments
Args
[get, ]
The optional arguments that streamers can use to filter this event.
