feat(new_editor): wire project, inspector, and viewport runtime
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user