refactor(new_editor): tighten app dependency boundaries
This commit is contained in:
25
new_editor/app/Composition/EditorPanelIds.h
Normal file
25
new_editor/app/Composition/EditorPanelIds.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <string_view>
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
|
||||
inline constexpr std::string_view kHierarchyPanelId = "hierarchy";
|
||||
inline constexpr std::string_view kScenePanelId = "scene";
|
||||
inline constexpr std::string_view kGamePanelId = "game";
|
||||
inline constexpr std::string_view kInspectorPanelId = "inspector";
|
||||
inline constexpr std::string_view kConsolePanelId = "console";
|
||||
inline constexpr std::string_view kProjectPanelId = "project";
|
||||
|
||||
inline constexpr std::string_view kHierarchyPanelTitle = "Hierarchy";
|
||||
inline constexpr std::string_view kScenePanelTitle = "Scene";
|
||||
inline constexpr std::string_view kGamePanelTitle = "Game";
|
||||
inline constexpr std::string_view kInspectorPanelTitle = "Inspector";
|
||||
inline constexpr std::string_view kConsolePanelTitle = "Console";
|
||||
inline constexpr std::string_view kProjectPanelTitle = "Project";
|
||||
|
||||
[[nodiscard]] constexpr bool IsEditorViewportPanelId(std::string_view panelId) {
|
||||
return panelId == kScenePanelId || panelId == kGamePanelId;
|
||||
}
|
||||
|
||||
} // namespace XCEngine::UI::Editor::App
|
||||
Reference in New Issue
Block a user