template<class TEvent = Event>
OrbitEngine::Application::EventHandler class

Public types

using EventCallback = std::function<void(TEvent&)>
using EventCallbackPtr = std::shared_ptr<EventCallback>
using Callbacks = std::vector<EventCallbackPtr>

Constructors, destructors, conversion operators

EventHandler()

Public functions

auto AddListener(EventCallback callback) -> EventCallbackPtr
template<class T>
auto AddListener(T* instance, void(T::*)(TEvent&) callback) -> EventCallbackPtr
void RemoveListener(EventCallbackPtr callbackPtr)
void FireEvent(TEvent& event) virtual

Protected variables

Callbacks p_Callbacks