eventy/source/eventy/event.d

35 lines
579 B
D
Raw Permalink Normal View History

2021-08-27 15:12:48 +01:00
module eventy.event;
2022-11-26 16:39:00 +00:00
/**
* Event
*
* An Event represents a trigger for a given signal(s)
* handlers which associate with the given typeID
*/
2021-08-27 15:12:48 +01:00
public class Event
{
/* The event's type id */
private ulong id;
/**
* Creates a new Event with the given typeID
*
* Params:
* typeID = the new Event's type ID
*/
this(ulong typeID)
2021-08-27 15:12:48 +01:00
{
2021-09-01 14:33:15 +01:00
this.id = typeID;
2021-08-27 15:12:48 +01:00
}
2021-08-31 10:34:29 +01:00
/**
* Returns the type ID of this Event
*
* Returns: The Event's type ID
*/
public final ulong getID()
{
return id;
}
2022-01-16 12:21:09 +00:00
}