重构UI架构:分离数据模型和显示逻辑
- 新增 Core 模块:GameObject、LogEntry、AssetItem 数据模型 - 新增 Managers 模块:SceneManager、LogSystem、ProjectManager - Panel 层只负责显示,不再持有数据 - 解耦 HierarchyPanel 和 InspectorPanel 之间的直接依赖
This commit is contained in:
13
ui/src/Core/LogEntry.h
Normal file
13
ui/src/Core/LogEntry.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace UI {
|
||||
|
||||
struct LogEntry {
|
||||
enum class Level { Info, Warning, Error };
|
||||
Level level;
|
||||
std::string message;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user