aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/GameObject.hpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 14:10:52 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-06 14:10:52 +0200
commitf8bc2a06a90c0ee172054db7ae2e1fdae09d14a3 (patch)
treee858037e49a8a94734026d636fceb28a00b1ab99 /src/crepe/GameObject.hpp
parent509fb6ebdd27bc75375c1c51024ea906e25032c0 (diff)
code standard v3
Diffstat (limited to 'src/crepe/GameObject.hpp')
-rw-r--r--src/crepe/GameObject.hpp6
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