aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-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;
}
-