关键节点
This commit is contained in:
24
editor/app/Features/Scene/SceneEditCommandRoute.h
Normal file
24
editor/app/Features/Scene/SceneEditCommandRoute.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include "Commands/EditorEditCommandRoute.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace XCEngine::UI::Editor::App {
|
||||
|
||||
class EditorSceneRuntime;
|
||||
|
||||
class SceneEditCommandRoute final : public EditorEditCommandRoute {
|
||||
public:
|
||||
void BindSceneRuntime(EditorSceneRuntime* sceneRuntime);
|
||||
|
||||
UIEditorHostCommandEvaluationResult EvaluateEditCommand(
|
||||
std::string_view commandId) const override;
|
||||
UIEditorHostCommandDispatchResult DispatchEditCommand(
|
||||
std::string_view commandId) override;
|
||||
|
||||
private:
|
||||
EditorSceneRuntime* m_sceneRuntime = nullptr;
|
||||
};
|
||||
|
||||
} // namespace XCEngine::UI::Editor::App
|
||||
Reference in New Issue
Block a user