重构UI架构:分离数据模型和显示逻辑

- 新增 Core 模块:GameObject、LogEntry、AssetItem 数据模型
- 新增 Managers 模块:SceneManager、LogSystem、ProjectManager
- Panel 层只负责显示,不再持有数据
- 解耦 HierarchyPanel 和 InspectorPanel 之间的直接依赖
This commit is contained in:
2026-03-12 16:13:34 +08:00
parent 7d3e3b464d
commit a2f3db8718
19 changed files with 306 additions and 137 deletions

13
ui/src/Core/LogEntry.h Normal file
View File

@@ -0,0 +1,13 @@
#pragma once
#include <string>
namespace UI {
struct LogEntry {
enum class Level { Info, Warning, Error };
Level level;
std::string message;
};
}