26 virtual void AddEventListener(EventType eventType, std::function<
bool(
BaseEvent*)> function);
28 virtual void HandleEvents();
30 void HandleEvent(
BaseEvent* eventToHandle);
32 using EventListenerList = std::vector<std::function<bool(
BaseEvent*)>>;
33 std::map<Events::EventType, EventListenerList> eventListeners;
34 std::vector<BaseEvent*> eventsToHandle;