summaryrefslogtreecommitdiff
path: root/engine/src/Context.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-02-11 00:25:15 +0100
committerAki <please@ignore.pl>2023-02-11 00:25:15 +0100
commitd0629836f9aa002a872d59c7f9e465dca9f2cc02 (patch)
tree1c98f3c58e7199ae2de7a51b4e45560a53aed374 /engine/src/Context.cpp
parentd6687be6a89ebd55fa9f3438d742bbf9cf4c9afa (diff)
downloadkurator-d0629836f9aa002a872d59c7f9e465dca9f2cc02.zip
kurator-d0629836f9aa002a872d59c7f9e465dca9f2cc02.tar.gz
kurator-d0629836f9aa002a872d59c7f9e465dca9f2cc02.tar.bz2
Added Context to streamline system update call interface
Diffstat (limited to 'engine/src/Context.cpp')
-rw-r--r--engine/src/Context.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/engine/src/Context.cpp b/engine/src/Context.cpp
new file mode 100644
index 0000000..eeec938
--- /dev/null
+++ b/engine/src/Context.cpp
@@ -0,0 +1,24 @@
+#include <kurator/engine/Context.h>
+
+#include <entt/entity/registry.hpp>
+#include <entt/signal/dispatcher.hpp>
+
+#include <kurator/engine/Clock.h>
+
+
+namespace kurator
+{
+namespace engine
+{
+
+
+Context::Context(entt::registry& registry_, entt::dispatcher& dispatcher_, Clock& clock_) :
+ registry {registry_},
+ dispatcher {dispatcher_},
+ clock {clock_}
+{
+}
+
+
+} // namespace engine
+} // namespace kurator