| 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}; |