Extract new editor host command session bridge

This commit is contained in:
2026-04-12 01:49:08 +08:00
parent 838f676fa6
commit 7ad4bfbb1c
10 changed files with 344 additions and 84 deletions

View File

@@ -24,17 +24,12 @@
namespace XCEngine::UI::Editor {
class Application : public UIEditorHostCommandHandler {
class Application {
public:
Application() = default;
int Run(HINSTANCE hInstance, int nCmdShow);
UIEditorHostCommandEvaluationResult EvaluateHostCommand(
std::string_view commandId) const override;
UIEditorHostCommandDispatchResult DispatchHostCommand(
std::string_view commandId) override;
private:
static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);