载入中...
搜索中...
未找到
PlayHost.h
浏览该文件的文档.
87[[nodiscard]] EVENGINE_API_FOUNDATION Result<Value> executePlayRequest(const Value& request, IPlayHostRuntime& runtime);
99[[nodiscard]] EVENGINE_API_FOUNDATION Result<std::string> executePlayJson(std::string_view requestJson);
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
Injected runtime used by Play Host. Tests supply a fake; MCP uses the engine adapter....
Definition PlayHost.h:25
virtual ~IPlayHostRuntime()=default
Releases IPlayHostRuntime resources.
virtual Result< Value > observeScriptRoot(std::string_view root, const std::vector< std::string > &fields) const =0
Project one marked script root without evaluating arbitrary code.
virtual Result< void > stepFrames(std::int64_t count)=0
Request count host frames then pause.
virtual Result< void > restoreCheckpoint(std::string_view json)=0
Restore a previously captured checkpoint.
virtual Result< Value > capturePng(std::string path)=0
Capture the last presented frame through IRenderCapture.
virtual std::vector< std::string > gameplayDomains() const =0
Published gameplay-control domain names, sorted.
virtual Result< Value > loadContract() const =0
Load game.agent.json as an owning Value object.
virtual std::uint64_t hostFrame() const =0
Monotonic host-frame counter owned by this runtime (0 if unknown).
virtual Result< Value > invokeScriptAction(std::string_view id, std::string_view source)=0
Run one contract-mapped script snippet. Not an open eval surface.
virtual Result< std::string > captureCheckpoint()=0
Capture marked script snapshot JSON.
Definition AgentDevelopmentMcp.cpp:12
Result< std::string > executePlayJson(std::string_view requestJson)
Parse, execute and serialize one Play JSON request against the live engine.
Definition PlayHost.cpp:866
Result< Value > executePlayRequest(const Value &request, IPlayHostRuntime &runtime)
Execute one versioned Play request against an injected runtime.
Definition PlayHost.cpp:858