Refactor editor command state contracts into core

This commit is contained in:
2026-04-28 01:57:06 +08:00
parent cadababab5
commit 946c19f876
35 changed files with 65 additions and 66 deletions

View File

@@ -128,14 +128,12 @@ if(TARGET XCEditorCore)
target_include_directories(editor_app_core_tests
PRIVATE
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Commands
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Composition
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Core
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Features
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Host/Interfaces
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Scene
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Services
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/State
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Support
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/include
${CMAKE_SOURCE_DIR}/engine/include
@@ -172,7 +170,6 @@ if(TARGET XCEditorCore)
target_include_directories(editor_app_feature_tests
PRIVATE
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Commands
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Composition
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Core
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Features
@@ -180,7 +177,6 @@ if(TARGET XCEditorCore)
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Rendering
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Scene
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Services
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/State
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/app/Support
${XCENGINE_EDITOR_UI_TESTS_EDITOR_ROOT}/include
${CMAKE_SOURCE_DIR}/engine/include

View File

@@ -1,10 +1,10 @@
#include <gtest/gtest.h>
#include "Panels/EditorPanelIds.h"
#include "EditorEditCommandRoute.h"
#include "EditorHostCommandBridge.h"
#include "EditorCommandFocusService.h"
#include "EditorSession.h"
#include "Commands/EditorEditCommandRoute.h"
#include "Commands/EditorHostCommandBridge.h"
#include "State/EditorCommandFocusService.h"
#include "State/EditorSession.h"
namespace {

View File

@@ -1,5 +1,5 @@
#include "Project/EditorProjectRuntime.h"
#include "EditorSelectionService.h"
#include "State/EditorSelectionService.h"
#include <gtest/gtest.h>

View File

@@ -5,7 +5,7 @@
#include "Viewport/ViewportHostService.h"
#include "Viewport/ViewportRenderTargets.h"
#include "Viewport/ViewportRenderTargetUtils.h"
#include "EditorSelectionService.h"
#include "State/EditorSelectionService.h"
#include "Panels/EditorPanelIds.h"
#include <XCEditor/Viewport/UIEditorViewportInputBridge.h>