feat: scene + entity class
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user