feat: event sketch

This commit is contained in:
2026-02-25 10:31:43 +01:00
parent 73fda759c5
commit 0dd2404881
5 changed files with 80 additions and 2 deletions

18
src/event.cpp Normal file
View File

@@ -0,0 +1,18 @@
#include "event.h"
size_t Event::s_id_counter = 0;
Event::Event() : m_id(s_id_counter++) {}
void Event::Handle() {
m_handled = true;
}
bool Event::IsHandled() const {
return m_handled;
}
size_t Event::Id() const {
return m_id;
}