Action

An action is represented by an id, an event and a priority.

Constructors

this
this(string id, void delegate(T, Event) event, ubyte priority)

Create a new action specifying the id, event callback and priority. Id must be unique otherwise a logger error is thrown. Priority must be in range 0..255.

Destructor

~this
~this()

Remove the id from the id list.

Members

Functions

callEvent
typeof(this) callEvent(T sender, Event e)

Call the action registered event. Returns reference to this so it can be used in a stream.

Variables

id
string id;
priority
ubyte priority;

Meta