8#ifndef URANUS_ENTITYMANAGER_HPP
9#define URANUS_ENTITYMANAGER_HPP
11#include "uranus/engine/components/Base.hpp"
21 void addPrefab(
const std::shared_ptr<engine::Base> &prefab);
23 void killAllPrefabs();
25 std::shared_ptr<engine::Base> getPrefabByName(
const std::string &prefabName);
27 std::shared_ptr<engine::Base> getPrefabByNetworkId(std::uint32_t networkId);
29 std::shared_ptr<engine::Base> getPrefabByEntityId(std::size_t entityId);
31 bool removePrefab(
const std::string &prefabName);
33 bool removeByNetworkId(std::uint32_t networkId);
36 std::map<std::string, std::shared_ptr<engine::Base>> _prefabs;
Definition: EntityManager.hpp:15