Migrate InspectorPanel to use IEditorContext and EventBus

- Replace SelectionManager::Get() singleton with m_context->GetSelectionManager()
- Use EventBus for selection change events instead of direct subscription
- Store entity ID (uint64_t) instead of GameObject* pointer
- Resolve entity ID to GameObject* via SceneManager::GetEntity()
- Remove direct includes of SelectionManager.h
This commit is contained in:
2026-03-25 15:54:22 +08:00
parent 008fb98dee
commit b08f682e5c
3 changed files with 33 additions and 10 deletions

View File

@@ -474,6 +474,12 @@ private:
- `editor/src/Core/IEditorContext.h` - 编辑器上下文接口
- `editor/src/Core/EditorContextImpl.h` - 编辑器上下文实现
**2026-03-25 更新**
- `editor/src/panels/HierarchyPanel.h/cpp` - 已迁移至 IEditorContext
- `editor/src/panels/InspectorPanel.h/cpp` - 已迁移至 IEditorContext + EventBus
- 移除了所有 Panel 中的 `SelectionManager::Get()``EditorSceneManager::Get()` 单例调用
- SceneManager::RenameEntity 实现已添加
### 阶段二:核心功能(第 3-4 周)
| 任务 | 依赖 | 状态 |