aboutsummaryrefslogtreecommitdiff
path: root/src/example/script.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-17 17:15:53 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-17 17:15:53 +0200
commita2c719948ff8af9abe267c4d1c9b16cd1e2fb317 (patch)
treeb2509bc9d435e7efc0afdf99f82a8b483f65758f /src/example/script.cpp
parent9fd3bdca9de2d37b63e1646b22d32b0b182f01ee (diff)
`make format`
Diffstat (limited to 'src/example/script.cpp')
-rw-r--r--src/example/script.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/example/script.cpp b/src/example/script.cpp
index 95c4950..cc585db 100644
--- a/src/example/script.cpp
+++ b/src/example/script.cpp
@@ -3,22 +3,20 @@
* Standalone example for usage of the script component and system
*/
-#include <crepe/util/log.h>
-#include <crepe/ScriptSystem.h>
#include <crepe/ComponentManager.h>
#include <crepe/GameObject.h>
+#include <crepe/ScriptSystem.h>
+#include <crepe/util/log.h>
-#include <crepe/api/Script.h>
#include <crepe/api/BehaviorScript.h>
+#include <crepe/api/Script.h>
using namespace crepe;
using namespace crepe::api;
using namespace std;
class MyScript : public Script {
- void update() {
- dbg_log("MY SCRIPT UPDATE");
- }
+ void update() { dbg_log("MY SCRIPT UPDATE"); }
};
int main() {
@@ -32,4 +30,3 @@ int main() {
return 0;
}
-