refactor: ECS 迁移到 entt,移除自研 Registry

- Entity = entt::entity(内部自带版本号),Registry = entt::registry
- Scene 对外接口不变(AddComponent/GetComponent/Each/延迟销毁/UUID),
  Renderer 与 App 层零改动完成迁移
- Each 转发 entt view(自动最小池遍历),延迟销毁队列保留
- 删除自研 Registry.h/Entity.h
This commit is contained in:
2026-09-22 13:51:48 +08:00
parent 8afdd9b245
commit b73e197783
6 changed files with 41 additions and 370 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ protected:
}
private:
Entity m_CameraEntity{};
Entity m_CameraEntity{entt::null}; // 注意:entt::entity{} 是 0 号实体,空句柄要用 entt::null
std::vector<Entity> m_Spinners;
f32 m_Time = 0.0f;
};