feat: expand editor scripting asset and viewport flow

This commit is contained in:
2026-04-03 13:22:30 +08:00
parent ed8c27fde2
commit a05d0b80a2
124 changed files with 10397 additions and 1737 deletions

View File

@@ -3,8 +3,11 @@
#include "EditorRuntimeMode.h"
#include "SceneSnapshot.h"
#include "Core/EditorEvents.h"
#include <XCEngine/Scene/RuntimeLoop.h>
#include <cstddef>
#include <cstdint>
namespace XCEngine {
@@ -26,12 +29,19 @@ public:
bool StepPlay(IEditorContext& context);
private:
void ResetRuntimeInputBridge();
void ApplyGameViewInputFrame(float deltaTime);
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;
uint64_t m_gameViewInputFrameHandlerId = 0;
SceneSnapshot m_editorSnapshot = {};
GameViewInputFrameEvent m_pendingGameViewInput = {};
GameViewInputFrameEvent m_appliedGameViewInput = {};
bool m_hasPendingGameViewInput = false;
XCEngine::Components::RuntimeLoop m_runtimeLoop;
};