aboutsummaryrefslogtreecommitdiff
path: root/mwe/ecs-homemade/inc/Components.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'mwe/ecs-homemade/inc/Components.hpp')
-rw-r--r--mwe/ecs-homemade/inc/Components.hpp10
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>>();
}