feat: add play mode pause resume and step controls

This commit is contained in:
2026-04-02 19:56:07 +08:00
parent fb15d60be9
commit 1f29dfd611
11 changed files with 270 additions and 3 deletions

View File

@@ -22,11 +22,15 @@ public:
bool StartPlay(IEditorContext& context);
bool StopPlay(IEditorContext& context);
bool PausePlay(IEditorContext& context);
bool ResumePlay(IEditorContext& context);
bool StepPlay(IEditorContext& context);
private:
uint64_t m_playStartRequestedHandlerId = 0;
uint64_t m_playStopRequestedHandlerId = 0;
uint64_t m_playPauseRequestedHandlerId = 0;
uint64_t m_playResumeRequestedHandlerId = 0;
uint64_t m_playStepRequestedHandlerId = 0;
SceneSnapshot m_editorSnapshot = {};
XCEngine::Components::RuntimeLoop m_runtimeLoop;
};