Abstract
This class is a Manager of events (listeners, observers, etc.)
Getter that allows to obtain the list of events
This method is used to add assign a new callback to a given EventType
Type of the event
Function to run when the event is triggered
Method to check if a given EventType has a given handler
boolean
This method will check if a given EventType has assigned callbacks
Remove the given event type
This method will trigger the callback assigned to the given eventType
Optional
Data passed to the handlers
Extra arguments passed to the handlers
Protected
This method will be responsible for creating the correct instance of the Event based in the EventType that is passed.
Type of the event that will we need an instance of.
Instance of the event.
This class is a Manager of events (listeners, observers, etc.)