25 lines
610 B
C
25 lines
610 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <XCEditor/App/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
|