From 6392c923497e31c053affd68cee1bb648e87a7a0 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 26 Nov 2022 18:39:00 +0200 Subject: [PATCH] Cleaned up --- source/eventy/event.d | 20 ++++++++++---------- source/eventy/exceptions.d | 5 +++++ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/source/eventy/event.d b/source/eventy/event.d index 52b94ee..4f8781c 100644 --- a/source/eventy/event.d +++ b/source/eventy/event.d @@ -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 } diff --git a/source/eventy/exceptions.d b/source/eventy/exceptions.d index 9ecfe15..6ff9fd9 100644 --- a/source/eventy/exceptions.d +++ b/source/eventy/exceptions.d @@ -1,5 +1,10 @@ module eventy.exceptions; +/** + * EventyException + * + * An Eventy runtime error + */ public final class EventyException : Exception { this(string message)