3#include "spark/events/Event.h"
4#include "spark/events/Export.h"
33 template <
typename T,
typename F>
34 [[nodiscard]]
bool dispatch(
const F& func);
41#include "spark/events/impl/EventDispatcher.h"
A class that dispatches events to the appropriate event handler.
Definition EventDispatcher.h:12
EventDispatcher(Event &event)
Instantiates a new EventDispatcher for the given event.
Definition EventDispatcher.h:5
bool dispatch(const F &func)
Dispatches the event to the appropriate event handler.
Definition EventDispatcher.h:9
A base class for all events in SPARK.
Definition Event.h:53