aboutsummaryrefslogtreecommitdiff
path: root/mwe/ecs-homemade/inc
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 13:45:05 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 13:45:05 +0200
commit509fb6ebdd27bc75375c1c51024ea906e25032c0 (patch)
tree89ef8b7e72b25c30e42d73de08769a4402ef0716 /mwe/ecs-homemade/inc
parent7c9d3452c99fcb89ea6df55755e90f741b23cf10 (diff)
WIP more code style enforcements
Diffstat (limited to 'mwe/ecs-homemade/inc')
-rw-r--r--mwe/ecs-homemade/inc/ComponentManager.hpp3
-rw-r--r--mwe/ecs-homemade/inc/GameObjectMax.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/mwe/ecs-homemade/inc/ComponentManager.hpp b/mwe/ecs-homemade/inc/ComponentManager.hpp
index 161ce71..d6da8e8 100644
--- a/mwe/ecs-homemade/inc/ComponentManager.hpp
+++ b/mwe/ecs-homemade/inc/ComponentManager.hpp
@@ -42,7 +42,8 @@ void ComponentManager::DeleteComponentsById(std::uint32_t id) {
}
}
-template <typename T> void ComponentManager::DeleteComponents() {
+template <typename T>
+void ComponentManager::DeleteComponents() {
std::type_index type = typeid(
T); //Determine the type of T (this is used as the key of the unordered_map<>)
diff --git a/mwe/ecs-homemade/inc/GameObjectMax.h b/mwe/ecs-homemade/inc/GameObjectMax.h
index c88a834..3029053 100644
--- a/mwe/ecs-homemade/inc/GameObjectMax.h
+++ b/mwe/ecs-homemade/inc/GameObjectMax.h
@@ -7,7 +7,8 @@ class GameObject {
public:
GameObject(std::uint32_t id, std::string name, std::string tag, int layer);
- template <typename T, typename... Args> void AddComponent(Args &&... args);
+ template <typename T, typename... Args>
+ void AddComponent(Args &&... args);
std::uint32_t mId;
std::string mName;