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