Moving stuff around

This commit is contained in:
2026-09-25 20:21:25 -07:00
parent 09706507cf
commit 4ebae57cf8
3 changed files with 1 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
#include <sophia/entity.hpp>
namespace sophia {
Entity::Entity(entt::entity handle, Scene* scene)
: handle(handle), scene(scene) {}
} // namespace sophia
+16
View File
@@ -0,0 +1,16 @@
#include <sophia/components.hpp>
#include <sophia/scene.hpp>
#include <sophia/util/logger.hpp>
namespace sophia {
Scene::Scene() {
entt::entity entity = this->registry.create();
auto& a = this->registry.emplace<TransformComponent>(entity);
auto& b = this->registry.get<TransformComponent>(entity);
}
Scene::~Scene() { log::trace("destroying sophia::Scene"); }
} // namespace sophia