basicEventType

Quick way to implement your default abstract and static methods

Call this mixin template on your custom event. This will generate your getters for the EventType.

Members

Properties

eventType
string eventType [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
staticEventType
string staticEventType [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Parameters

T

class type extended from Event

Examples

@EventType("MyEvent")
class MyEvent : Event
{
    mixin basciEventType!MyEvent;
}

Note: You need to declare an EventType UDA otherwise this won't compile!

@EventType("MyEvent")
class MyEvent : Event
{
	mixin basicEventType!MyEvent;
}

MyEvent event = new MyEvent();
assertEquals(event.staticEventType, "MyEvent");
assertEquals(event.staticEventType, event.eventType);
assertTrue(event.isEventTypeOf(MyEvent.staticEventType));

Meta