[Engine] CommandBuffer 및 WorldCommands deferred mutation 구현#76
Merged
Conversation
- CommandBuffer: spawnEntity, destroyEntity, addComponent<T>, removeComponent<T> 명령 큐잉 및 flush(EcsCore&) 구현 - WorldCommands: 시스템용 CommandBuffer facade 추가 - CommandBufferTests: deferred 동작, flush 적용, flush 후 초기화, spawnEntity, WorldCommands 전달 검증 (7개) - CMakeLists.txt: CommandBuffer.h, CommandBufferTests.cpp 등록
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CommandBuffer구현:spawnEntity,destroyEntity,addComponent<T>,removeComponent<T>명령을 내부 큐에 누적하고flush(EcsCore&)로 일괄 적용WorldCommands구현: 시스템이 명령을 enqueue하는CommandBufferfacadeCommandBufferTests추가: deferred 동작, flush 적용 순서, flush 후 초기화,spawnEntity,WorldCommands전달 검증 (7개)CMakeLists.txt에CommandBuffer.h,CommandBufferTests.cpp등록Related Issue
Area
Architecture Check
application -> domain -> engine.src/domain.domainorapplicationdependencies tosrc/engine.src/as the include root.Verification
cmake --preset windows-debugcmake --build --preset build-debugctest --preset test-debugwindows-debug-no-app/build-no-app-debug/test-no-app-debugpreset 기준 실행 — configure, build, test(1/1) 모두 통과.Risks / Follow-up
spawnEntity호출 시 entity 핸들을 즉시 반환하지 않음 — 같은 프레임 내에서 생성된 entity에 추가 명령을 체이닝할 수 없음. 필요 시 별도 이슈로 확장 가능EngineWorld와의 연결(시스템에WorldCommands노출)은 Task-Implement EngineRuntime minimal orchestration API #12 범위