Interface IDataModelEvent
Represents an event that is part of a data model
public interface IDataModelEvent
Properties
ArgumentsType
Gets the type of arguments this event contains
Type ArgumentsType { get; }
Property Value
EventArgumentsHistoryUntyped
Gets a list of the last 20 event arguments by their base type.
Always empty if TrackHistory is false
List<DataModelEventArgs> EventArgumentsHistoryUntyped { get; }
Property Value
LastEventArgumentsUntyped
Gets the event arguments of the last time the event was triggered by its base type
DataModelEventArgs? LastEventArgumentsUntyped { get; }
Property Value
LastTrigger
Gets the last time the event was triggered
DateTime LastTrigger { get; }
Property Value
TimeSinceLastTrigger
Gets the time that has passed since the last trigger
TimeSpan TimeSinceLastTrigger { get; }
Property Value
TrackHistory
Gets or sets a boolean indicating whether the last 20 events should be tracked
Note: setting this to false will clear the current history
bool TrackHistory { get; set; }
Property Value
TriggerCount
Gets the amount of times the event was triggered
int TriggerCount { get; }
Property Value
TriggerPastParticiple
Gets the past participle for this event shown in the UI
string TriggerPastParticiple { get; }
Property Value
Methods
Reset()
Resets the trigger count and history of this data model event
void Reset()
Update()
Updates the event, not required for standard events but included in case your custom event needs to update every tick
void Update()
Events
EventTriggered
Fires when the event is triggered
event EventHandler EventTriggered