From dc0cc293b7b8efed67a0a550237dce38f33ff37d Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 14 Feb 2023 00:51:49 +0100 Subject: Replaced Context+Battle combo with State and arbitrary Systems --- engine/src/Context.cpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 engine/src/Context.cpp (limited to 'engine/src/Context.cpp') diff --git a/engine/src/Context.cpp b/engine/src/Context.cpp deleted file mode 100644 index 8c81c89..0000000 --- a/engine/src/Context.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include - -#include -#include - -#include -#include - - -namespace kurator -{ -namespace engine -{ - - -Context::Context(entt::registry& registry_, entt::dispatcher& dispatcher_, Clock& clock_, Camera& camera_) : - registry {registry_}, - dispatcher {dispatcher_}, - clock {clock_}, - camera {camera_} -{ -} - - -Context::operator ConstContext() const -{ - return ConstContext{registry, dispatcher, clock, camera}; -} - - -ConstContext::ConstContext( - const entt::registry& registry_, - const entt::dispatcher& dispatcher_, - const Clock& clock_, - const Camera& camera_) : - registry {registry_}, - dispatcher {dispatcher_}, - clock {clock_}, - camera {camera_} -{ -} - - -} // namespace engine -} // namespace kurator -- cgit v1.1