diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-06 14:10:52 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-06 14:10:52 +0200 |
commit | f8bc2a06a90c0ee172054db7ae2e1fdae09d14a3 (patch) | |
tree | e858037e49a8a94734026d636fceb28a00b1ab99 /src/crepe/GameObject.hpp | |
parent | 509fb6ebdd27bc75375c1c51024ea906e25032c0 (diff) |
code standard v3
Diffstat (limited to 'src/crepe/GameObject.hpp')
-rw-r--r-- | src/crepe/GameObject.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/GameObject.hpp b/src/crepe/GameObject.hpp index 1152ddf..5966fbf 100644 --- a/src/crepe/GameObject.hpp +++ b/src/crepe/GameObject.hpp @@ -7,9 +7,9 @@ namespace crepe { template <typename T, typename... Args> -void GameObject::AddComponent(Args &&... args) { - ComponentManager::get_instance().AddComponent<T>( - mId, std::forward<Args>(args)...); +void GameObject::add_component(Args &&... args) { + auto & mgr = ComponentManager::get_instance(); + mgr.add_component<T>(id, std::forward<Args>(args)...); } } // namespace crepe |