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:
+1
-1
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user