aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 15:49:59 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-05 15:49:59 +0100
commita47b981c2254e1d49f58ebd4244c1be4624ba998 (patch)
treed5ca1f37f0e2d93f241721b13abacc5123bfe92a /src/crepe/system
parent5f75bdbf3d38c94baeae52f4c4889f147ec6885e (diff)
remove util and api namespaces
Diffstat (limited to 'src/crepe/system')
-rw-r--r--src/crepe/system/PhysicsSystem.cpp1
-rw-r--r--src/crepe/system/RenderSystem.cpp1
-rw-r--r--src/crepe/system/ScriptSystem.cpp1
-rw-r--r--src/crepe/system/ScriptSystem.h9
4 files changed, 4 insertions, 8 deletions
diff --git a/src/crepe/system/PhysicsSystem.cpp b/src/crepe/system/PhysicsSystem.cpp
index 6da714f..efec750 100644
--- a/src/crepe/system/PhysicsSystem.cpp
+++ b/src/crepe/system/PhysicsSystem.cpp
@@ -8,7 +8,6 @@
#include "PhysicsSystem.h"
using namespace crepe;
-using namespace crepe::api;
PhysicsSystem::PhysicsSystem() {}
diff --git a/src/crepe/system/RenderSystem.cpp b/src/crepe/system/RenderSystem.cpp
index 599087a..b3c53db 100644
--- a/src/crepe/system/RenderSystem.cpp
+++ b/src/crepe/system/RenderSystem.cpp
@@ -10,7 +10,6 @@
#include "RenderSystem.h"
using namespace crepe;
-using namespace crepe::api;
RenderSystem::RenderSystem() { dbg_trace(); }
diff --git a/src/crepe/system/ScriptSystem.cpp b/src/crepe/system/ScriptSystem.cpp
index 277b29d..731adae 100644
--- a/src/crepe/system/ScriptSystem.cpp
+++ b/src/crepe/system/ScriptSystem.cpp
@@ -11,7 +11,6 @@
using namespace std;
using namespace crepe;
-using namespace crepe::api;
ScriptSystem::ScriptSystem() { dbg_trace(); }
ScriptSystem::~ScriptSystem() { dbg_trace(); }
diff --git a/src/crepe/system/ScriptSystem.h b/src/crepe/system/ScriptSystem.h
index 1f472a0..32e793c 100644
--- a/src/crepe/system/ScriptSystem.h
+++ b/src/crepe/system/ScriptSystem.h
@@ -4,12 +4,10 @@
#include "System.h"
-namespace crepe::api {
-class Script;
-}
-
namespace crepe {
+class Script;
+
class ScriptSystem : public System {
public:
static ScriptSystem & get_instance();
@@ -20,7 +18,8 @@ private:
~ScriptSystem();
private:
- std::forward_list<api::Script *> get_scripts();
+ // TODO: to forward_list<reference_wrapper>
+ std::forward_list<Script *> get_scripts();
};
} // namespace crepe