lang/event
Event
string name
None
EventManager
Does all event management
None
_constructor(this, num queueCapacity=32.0)
Create an EventManager with certain event queue capacity
void addHandler(this, string name, func handler)
Register handler for specific event
void fireEvent(this, event)
Call a event
void handleEvents(this)
Call all event handlers that should be called according to event queue
Event queue will be flushed after this operation
void removeHandler(this, string name, func handler)
Unregister handler
void fireEvent(event)
This function reports to the default EventManager
See EventManager::fireEvent
void handleEvents()
This function reports to the default EventManager
See EventManager::handleEvents
void addHandler(string name, func handler)
This function reports to the default EventManager
See EventManager::addHandler
void removeHandler(string name, func handler)
This function reports to the default EventManager
See EventManager::removeHandler