#include <EventManager.h>
Event manager class manages events that are fired by different sub systems.
void OdinAI::EventManager::AddEventListener |
( |
const char * |
eventName, |
|
|
EventCallback |
callBackfunction |
|
) |
| |
Binds a callback function with a specific event.
- Parameters
-
eventName | The name of the event |
callback | Points to a callback function, which is called when the specific event fired. |
void OdinAI::EventManager::FireEvent |
( |
std::shared_ptr< Event > |
event, |
|
|
uint |
delay = 0 |
|
) |
| |
Fire an event.
- Parameters
-
event | The event object that are sent to all listeners |
delay | Wait delay ms before sending out the event |
void OdinAI::EventManager::Release |
( |
| ) |
|
Release all dynamic memory.
void OdinAI::EventManager::Update |
( |
| ) |
|
Update the event manager, note it should only be done once.
The documentation for this class was generated from the following file: