MCPcopy Create free account
hub / github.com/JeanPhilippeKernel/RendererEngine / CreateEntity

Method CreateEntity

ZEngine/src/GraphicScene.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 GraphicSceneEntity GraphicScene::CreateEntity(std::string_view entity_name) {
23 GraphicSceneEntity graphic_entity(m_entity_registry->create(), m_entity_registry);
24 graphic_entity.AddComponent<NameComponent>(entity_name);
25 graphic_entity.AddComponent<TransformComponent>();
26 return graphic_entity;
27 }
28
29 GraphicSceneEntity GraphicScene::GetEntity(std::string_view entity_name) {
30 entt::entity entity_handle{entt::null};

Callers 1

InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected