feat(new_editor): wire project, inspector, and viewport runtime

This commit is contained in:
2026-04-19 00:03:25 +08:00
parent 8257403036
commit a57b322bc7
168 changed files with 14829 additions and 2507 deletions

View File

@@ -1,15 +1,17 @@
#include "Composition/EditorShellRuntimeInternal.h"
#include <XCEditor/App/EditorPanelIds.h>
namespace XCEngine::UI::Editor::App::Internal {
namespace {
bool IsViewportPanel(std::string_view panelId) {
return panelId == "scene" || panelId == "game";
return IsEditorViewportPanelId(panelId);
}
ViewportKind ResolveViewportKind(std::string_view panelId) {
return panelId == "game"
return panelId == kGamePanelId
? ViewportKind::Game
: ViewportKind::Scene;
}