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