aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/subscriber.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-20 18:49:49 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:56 +0200
commite6644d6b235005de9ba1b9884472fa5f5d8d6074 (patch)
treeb6d10d8e3ee8b092933baa55d35480d438bb6328 /src/interfaces/subscriber.hpp
parent6f9d9fe1d1904ecc5ca52697ec2319a21008120f (diff)
refactor: update event system terminology & structure
Diffstat (limited to 'src/interfaces/subscriber.hpp')
-rw-r--r--src/interfaces/subscriber.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interfaces/subscriber.hpp b/src/interfaces/subscriber.hpp
new file mode 100644
index 0000000..17d87ef
--- /dev/null
+++ b/src/interfaces/subscriber.hpp
@@ -0,0 +1,8 @@
+#pragma once
+
+template <typename Context>
+class ISubscriber
+{
+public:
+ virtual void update(const Context &context) noexcept = 0;
+};