#pragma once #include "GameObject.h" #include "ComponentManager.h" namespace crepe { template T & GameObject::add_component(Args &&... args) { auto & mgr = ComponentManager::get_instance(); return mgr.add_component(id, std::forward(args)...); } } // namespace crepe