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:
@@ -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 周)
|
||||
|
||||
| 任务 | 依赖 | 状态 |
|
||||
|
||||
Reference in New Issue
Block a user