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:
@@ -8,6 +8,7 @@ add_library(Engine STATIC ${ENGINE_SOURCES})
|
||||
|
||||
target_include_directories(Engine PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/Lib/entt/src
|
||||
)
|
||||
|
||||
# 链接第三方库
|
||||
|
||||
Reference in New Issue
Block a user