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/inc/Components.hpp | |
parent | 018f6209378a0c30c1e44fba2f80888553b9f67c (diff) |
Make format
Diffstat (limited to 'mwe/ecs-homemade/inc/Components.hpp')
-rw-r--r-- | mwe/ecs-homemade/inc/Components.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mwe/ecs-homemade/inc/Components.hpp b/mwe/ecs-homemade/inc/Components.hpp index 85da5a5..436a28c 100644 --- a/mwe/ecs-homemade/inc/Components.hpp +++ b/mwe/ecs-homemade/inc/Components.hpp @@ -1,20 +1,20 @@ #include "Components.h" #include <iostream> -template<typename T> -BehaviourWrapper<T>::BehaviourWrapper() : instance() {} +template <typename T> +BehaviourWrapper<T>::BehaviourWrapper() : instance() {} -template<typename T> +template <typename T> void BehaviourWrapper<T>::onStart() { instance.onStart(); } -template<typename T> +template <typename T> void BehaviourWrapper<T>::onUpdate() { instance.onUpdate(); } -template<typename T> +template <typename T> void BehaviourScript::addScript() { behaviour = std::make_unique<BehaviourWrapper<T>>(); } |