aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/include/eventHandler.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-02 16:10:22 +0200
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-02 16:10:22 +0200
commit94d591b69c45470480db477bc4000ef35019e18b (patch)
tree93732b405747cbd97a5b0aa786f2399823c0661b /mwe/events/include/eventHandler.h
parent4628638f952f882e494788ca1cf880a029eba5ab (diff)
created event classes and start of eventManager
Diffstat (limited to 'mwe/events/include/eventHandler.h')
-rw-r--r--mwe/events/include/eventHandler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mwe/events/include/eventHandler.h b/mwe/events/include/eventHandler.h
index c17c586..03017dd 100644
--- a/mwe/events/include/eventHandler.h
+++ b/mwe/events/include/eventHandler.h
@@ -4,7 +4,7 @@
#include <functional>
template<typename EventType>
using EventHandler = std::function<void(const EventType& e)>;
-class EventHandlerWrapperInterface {
+class IEventHandlerWrapper{
public:
void Exec(const Event& e)
{
@@ -18,7 +18,7 @@ private:
};
template<typename EventType>
-class EventHandlerWrapper : public EventHandlerWrapperInterface {
+class EventHandlerWrapper : public IEventHandlerWrapper {
public:
explicit EventHandlerWrapper(const EventHandler<EventType>& handler)
: m_handler(handler)