diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-10-16 17:05:46 +0200 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-10-16 17:05:46 +0200 |
commit | d21afe5b33b4cb3f5cf1917f4d15f402de41a032 (patch) | |
tree | 6101e8c185bc2989b19b9db544353b32de35198d /mwe/ecs-homemade/src/main.cpp | |
parent | 018f6209378a0c30c1e44fba2f80888553b9f67c (diff) |
Make format
Diffstat (limited to 'mwe/ecs-homemade/src/main.cpp')
-rw-r--r-- | mwe/ecs-homemade/src/main.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/mwe/ecs-homemade/src/main.cpp b/mwe/ecs-homemade/src/main.cpp index e4a8bda..70c5d2c 100644 --- a/mwe/ecs-homemade/src/main.cpp +++ b/mwe/ecs-homemade/src/main.cpp @@ -9,13 +9,9 @@ class myScript { public: - void onStart() { - std::cout << "In onStart" << std::endl; - } + void onStart() { std::cout << "In onStart" << std::endl; } - void onUpdate() { - std::cout << "In onUpdate" << std::endl; - } + void onUpdate() { std::cout << "In onUpdate" << std::endl; } }; int main() { @@ -57,7 +53,8 @@ int main() { } std::vector<std::reference_wrapper<BehaviourScript>> scripts - = ComponentManager::GetInstance().GetComponentsByType<BehaviourScript>(); + = ComponentManager::GetInstance() + .GetComponentsByType<BehaviourScript>(); for (BehaviourScript & script : scripts) { //script.onStart(); //script.onUpdate(); |