feat: scene + entity class

This commit is contained in:
2025-10-22 15:23:51 +02:00
parent ea593feb8d
commit 4798c52e51
4 changed files with 48 additions and 53 deletions

View File

@ -2,10 +2,8 @@
namespace Engine {
Scene::Scene() = default;
std::unique_ptr<Entity> Scene::CreateEntity() {
return std::unique_ptr<Entity>(new Entity(m_registry.create(), this));
Entity Scene::CreateEntity() {
return { m_registry.create(), this };
}
} // namespace Engine
}