summaryrefslogtreecommitdiff
path: root/src/event/EventBus.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-02-22 23:30:10 +0000
committerGitHub <noreply@github.com>2026-02-22 23:30:10 +0000
commitb88813c7efa4b7b0c5fe01471c5fa5b67a61dc7e (patch)
tree4454e82bc033d7e28a23ee372d0e3f48341d0aaa /src/event/EventBus.cpp
parentb4ee4674f9a74e3d602c7fb17bc09f79d221583c (diff)
event: refactor HookSystem into a typed event bus (#13333)
Refactors the old HookSystem into a typed event bus with clear separation, discovery and types.
Diffstat (limited to 'src/event/EventBus.cpp')
-rw-r--r--src/event/EventBus.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/event/EventBus.cpp b/src/event/EventBus.cpp
new file mode 100644
index 00000000..f06c3984
--- /dev/null
+++ b/src/event/EventBus.cpp
@@ -0,0 +1,8 @@
+#include "EventBus.hpp"
+
+using namespace Event;
+
+UP<CEventBus>& Event::bus() {
+ static UP<CEventBus> p = makeUnique<CEventBus>();
+ return p;
+}