Table of Contents

Interface IDataModelEvent

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

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

Type

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

List<DataModelEventArgs>

LastEventArgumentsUntyped

Gets the event arguments of the last time the event was triggered by its base type

DataModelEventArgs? LastEventArgumentsUntyped { get; }

Property Value

DataModelEventArgs

LastTrigger

Gets the last time the event was triggered

DateTime LastTrigger { get; }

Property Value

DateTime

TimeSinceLastTrigger

Gets the time that has passed since the last trigger

TimeSpan TimeSinceLastTrigger { get; }

Property Value

TimeSpan

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

bool

TriggerCount

Gets the amount of times the event was triggered

int TriggerCount { get; }

Property Value

int

TriggerPastParticiple

Gets the past participle for this event shown in the UI

string TriggerPastParticiple { get; }

Property Value

string

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

Event Type

EventHandler