editor: centralize engine runtime access

This commit is contained in:
2026-04-28 17:23:10 +08:00
parent 23aab98a09
commit 357dc136fe
36 changed files with 337 additions and 102 deletions

View File

@@ -34,10 +34,13 @@ class EditorHostResourceService;
namespace XCEngine::UI::Editor::App {
class EditorEngineServices;
class EditorWindowRuntimeController final {
public:
EditorWindowRuntimeController(
EditorFrameServices& frameServices,
EditorEngineServices& engineServices,
Host::EditorHostResourceService& resourceService,
std::unique_ptr<EditorWindowContentController> contentController,
std::unique_ptr<Rendering::Host::EditorWindowRenderRuntime> renderRuntime);
@@ -102,6 +105,7 @@ private:
void RefreshDisplayedFrameStats();
EditorFrameServices& m_frameServices;
EditorEngineServices& m_engineServices;
Host::EditorHostResourceService& m_resourceService;
std::unique_ptr<Rendering::Host::EditorWindowRenderRuntime> m_renderRuntime = {};
EditorWindowScreenshotController m_screenshotController = {};