add event system and use it to propagate to print traces

This commit is contained in:
2026-06-05 17:18:17 +02:00
parent abc261c03a
commit 9677133c54
14 changed files with 369 additions and 10 deletions

View File

@@ -0,0 +1,25 @@
#ifndef EVENT_HANDLER_BASE_H
#define EVENT_HANDLER_BASE_H
#include <memory>
class Event;
class EventManager;
class EventHandlerBase
{
private:
static unsigned int s_nextId;
public:
EventHandlerBase();
virtual ~EventHandlerBase() = default;
virtual void handleBaseEvent(std::shared_ptr<const Event> event) = 0;
private:
const unsigned int m_id;
friend EventManager;
};
#endif // EVENT_HANDLER_BASE_H