Cleaned up

This commit is contained in:
Tristan B. Velloza Kildaire 2022-11-26 18:39:00 +02:00
parent 28d64f799e
commit 6392c92349
2 changed files with 15 additions and 10 deletions

View File

@ -1,15 +1,13 @@
module eventy.event;
/**
* Event
*
* FIXME: Rename this to `Trigger`
*
* An Event represents a trigger for a given signal(s)
* handlers which associate with the given typeID
*
* It can optionally take a payload with it as well
*/
/**
* Event
*
* An Event represents a trigger for a given signal(s)
* handlers which associate with the given typeID
*
* It can optionally take a payload with it as well
*/
public class Event
{
/**
@ -24,4 +22,6 @@ public class Event
ulong id;
ubyte[] payload;
// TODO: Remove the requirement for the payload
}

View File

@ -1,5 +1,10 @@
module eventy.exceptions;
/**
* EventyException
*
* An Eventy runtime error
*/
public final class EventyException : Exception
{
this(string message)