aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/system')
-rw-r--r--src/crepe/system/EventSystem.cpp3
-rw-r--r--src/crepe/system/EventSystem.h3
-rw-r--r--src/crepe/system/ReplaySystem.cpp6
-rw-r--r--src/crepe/system/ReplaySystem.h3
-rw-r--r--src/crepe/system/ScriptSystem.cpp2
5 files changed, 7 insertions, 10 deletions
diff --git a/src/crepe/system/EventSystem.cpp b/src/crepe/system/EventSystem.cpp
index 5475798..7e168ab 100644
--- a/src/crepe/system/EventSystem.cpp
+++ b/src/crepe/system/EventSystem.cpp
@@ -1,5 +1,5 @@
-#include "../manager/EventManager.h"
#include "EventSystem.h"
+#include "../manager/EventManager.h"
using namespace crepe;
@@ -7,4 +7,3 @@ void EventSystem::fixed_update() {
EventManager & ev = this->mediator.event_manager;
ev.dispatch_events();
}
-
diff --git a/src/crepe/system/EventSystem.h b/src/crepe/system/EventSystem.h
index ff3ca4e..0ae48d2 100644
--- a/src/crepe/system/EventSystem.h
+++ b/src/crepe/system/EventSystem.h
@@ -18,5 +18,4 @@ public:
void fixed_update() override;
};
-}
-
+} // namespace crepe
diff --git a/src/crepe/system/ReplaySystem.cpp b/src/crepe/system/ReplaySystem.cpp
index 2b2e4ab..efc3be4 100644
--- a/src/crepe/system/ReplaySystem.cpp
+++ b/src/crepe/system/ReplaySystem.cpp
@@ -1,9 +1,9 @@
#include "../manager/ReplayManager.h"
#include "../manager/SystemManager.h"
+#include "EventSystem.h"
#include "RenderSystem.h"
#include "ReplaySystem.h"
-#include "EventSystem.h"
using namespace crepe;
using namespace std;
@@ -15,7 +15,8 @@ void ReplaySystem::fixed_update() {
this->last_state = state;
switch (state) {
- case ReplayManager::IDLE: break;
+ case ReplayManager::IDLE:
+ break;
case ReplayManager::RECORDING: {
replay.frame_record();
break;
@@ -51,4 +52,3 @@ void ReplaySystem::playback_end() {
components.restore(this->playback.components);
systems.restore(this->playback.systems);
}
-
diff --git a/src/crepe/system/ReplaySystem.h b/src/crepe/system/ReplaySystem.h
index 8ba60d5..bbc8d76 100644
--- a/src/crepe/system/ReplaySystem.h
+++ b/src/crepe/system/ReplaySystem.h
@@ -41,5 +41,4 @@ private:
void playback_end();
};
-}
-
+} // namespace crepe
diff --git a/src/crepe/system/ScriptSystem.cpp b/src/crepe/system/ScriptSystem.cpp
index 11da618..0d10011 100644
--- a/src/crepe/system/ScriptSystem.cpp
+++ b/src/crepe/system/ScriptSystem.cpp
@@ -1,7 +1,7 @@
-#include "../util/dbg.h"
#include "../api/BehaviorScript.h"
#include "../api/Script.h"
#include "../manager/ComponentManager.h"
+#include "../util/dbg.h"
#include "ScriptSystem.h"