载入中...
搜索中...
未找到
SoftRestart.cpp
浏览该文件的文档.
Soft-restart a live game without unloading the resource cache.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Runtime-state serialization for state hot reload.
Definition IStateProvider.h:28
virtual bool resetToDefaults()=0
Reset this provider to its default state (restore fallback).
Definition AgentDevelopmentMcp.cpp:12
std::size_t resourceCacheCount()
Current ResourceManager cache entry count (for restart telemetry).
Definition SoftRestart.cpp:140
std::uint32_t resetNativeStateProviders()
Reset every registered IStateProvider to its defaults.
Definition SoftRestart.cpp:132
Result< SoftRestartReport > executeSoftRestart(HSQUIRRELVM vm, SoftRestartRequest request)
Soft-restart the game attached to vm.
Definition SoftRestart.cpp:142
std::string formatScriptError(const ScriptErrorContext &ctx)
Formats a context into a human-readable multi-line report.
Definition ScriptError.cpp:200
ScriptErrorContext takeLastScriptError(HSQUIRRELVM vm)
Consumes and clears the last recorded error for a VM.
Definition ScriptError.cpp:222
@ NotFound
@ Failed
@ Conflict
Outcome of a successful soft restart. @ownership Owning value; safe to keep across frames.
Definition SoftRestart.hpp:45
Poco::JSON::Object::Ptr args
Echo of the args table that was installed (may be empty).
Definition SoftRestart.hpp:55
std::size_t resourceCountBefore
Cached resource entries before the restart (must equal after).
Definition SoftRestart.hpp:47
std::size_t resourceCountAfter
Cached resource entries after the restart.
Definition SoftRestart.hpp:49
Inputs for one soft restart. @thread Game / MCP poll thread only.
Definition SoftRestart.hpp:30
Structured snapshot of a script error: message, throw site and stack.
Definition ScriptError.h:25