11 #ifndef ODINAI_EVENT_MANAGER_H_
12 #define ODINAI_EVENT_MANAGER_H_
20 #include "OdinAI/Event.h"
21 #include "OdinAI/Timer.h"
22 #include "SharedDefs.h"
27 typedef std::function<void(const Event*)> EventCallback;
42 void AddEventListener(
const char *eventName, EventCallback callBackfunction);
49 void FireEvent(std::shared_ptr<Event> event, uint delay = 0);
63 std::shared_ptr<Event> event;
67 std::map< std::string, std::vector<EventCallback> > m_eventListeners;
68 std::vector<EventRecord> m_eventStore;
Definition: EventManager.h:32
void AddEventListener(const char *eventName, EventCallback callBackfunction)
void FireEvent(std::shared_ptr< Event > event, uint delay=0)