Skip to content

feat(engine): ComponentRegistry, EcsCore, signature 갱신 및 cleanup flow…#65

Closed
SilverSupplier wants to merge 1 commit into
mainfrom
feat/issue-8
Closed

feat(engine): ComponentRegistry, EcsCore, signature 갱신 및 cleanup flow…#65
SilverSupplier wants to merge 1 commit into
mainfrom
feat/issue-8

Conversation

@SilverSupplier
Copy link
Copy Markdown
Collaborator

@SilverSupplier SilverSupplier commented Apr 2, 2026

… 구현 (#8)

Summary

  • ComponentRegistry: 컴포넌트 타입별 고유 ID 부여 및 PackedComponentStorage 중앙 관리
  • EcsCore: EntityRegistry + ComponentRegistry 통합 코어
    • addComponent/removeComponent 시 entity Signature 자동 갱신
    • destroyEntity 시 notifyEntityDestroyed로 등록된 모든 storage cleanup
  • EcsCoreTests: 생명주기, 컴포넌트 추가/제거, cleanup flow, 인덱스 재사용 검증

Related Issue

Area

  • Engine

Architecture Check

  • I kept the dependency direction application -> domain -> engine.
  • I did not add Qt UI code to src/domain.
  • I did not add domain or application dependencies to src/engine.
  • I used src/ as the include root.

Verification

  • cmake --preset windows-debug
  • cmake --build --preset build-debug
  • ctest --preset test-debug
  • Not run (reason below)

로컬 환경의 PATH에 cmake가 없어 직접 실행 불가. CI pipeline에서 검증됨.

Risks / Follow-up

Summary

Related Issue

  • Closes #
  • None (docs/policy-only PR)

Area

  • Engine
  • Domain
  • Application
  • Docs
  • Build
  • Analysis
  • Chore

Architecture Check

  • I kept the dependency direction application -> domain -> engine.
  • I did not add Qt UI code to src/domain.
  • I did not add domain or application dependencies to src/engine.
  • I used src/ as the include root.

Verification

  • cmake --preset windows-debug
  • cmake --build --preset build-debug
  • ctest --preset test-debug
  • Not run (reason below)

Risks / Follow-up

… 구현 (#8)

## Summary

- ComponentRegistry: 컴포넌트 타입별 고유 ID 부여 및 PackedComponentStorage 중앙 관리
- EcsCore: EntityRegistry + ComponentRegistry 통합 코어
  - addComponent/removeComponent 시 entity Signature 자동 갱신
  - destroyEntity 시 notifyEntityDestroyed로 등록된 모든 storage cleanup
- EcsCoreTests: 생명주기, 컴포넌트 추가/제거, cleanup flow, 인덱스 재사용 검증

## Related Issue

- Closes #8

## Area

- [x] Engine

## Architecture Check

- [x] I kept the dependency direction `application -> domain -> engine`.
- [x] I did not add Qt UI code to `src/domain`.
- [x] I did not add `domain` or `application` dependencies to `src/engine`.
- [x] I used `src/` as the include root.

## Verification

- [ ] `cmake --preset windows-debug`
- [ ] `cmake --build --preset build-debug`
- [ ] `ctest --preset test-debug`
- [x] Not run (reason below)

로컬 환경의 PATH에 cmake가 없어 직접 실행 불가. CI pipeline에서 검증됨.

## Risks / Follow-up

- WorldQuery(#9) 구현 시 EntityRegistry::eachAlive() 추가 예정
@SilverSupplier SilverSupplier deleted the feat/issue-8 branch April 2, 2026 15:35
@SilverSupplier SilverSupplier restored the feat/issue-8 branch April 2, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Task-Implement ComponentRegistry, Signature updates, and EcsCore cleanup flow

1 participant