载入中...
搜索中...
未找到
SoftRestart.hpp 文件参考

Soft-restart a live game without unloading the resource cache. 更多...

#include "common/Export.h"
#include "common/Result.h"
#include <Poco/JSON/Object.h>
#include <cstddef>
#include <cstdint>
#include <string>

浏览源代码.

类

struct  eve::dev::SoftRestartRequest
 Inputs for one soft restart. @thread Game / MCP poll thread only. 更多...
 
struct  eve::dev::SoftRestartReport
 Outcome of a successful soft restart. @ownership Owning value; safe to keep across frames. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::dev
 

类型定义

typedef struct SQVM * HSQUIRRELVM
 

函数

Result< SoftRestartReport > eve::dev::executeSoftRestart (HSQUIRRELVM vm, SoftRestartRequest request)
 Soft-restart the game attached to vm.
 
std::uint32_t eve::dev::resetNativeStateProviders ()
 Reset every registered IStateProvider to its defaults.
 
std::size_t eve::dev::resourceCacheCount ()
 Current ResourceManager cache entry count (for restart telemetry).
 

详细描述

Soft-restart a live game without unloading the resource cache.

AI agents debugging a game should not kill the process (and re-decode every asset) just to get a clean run. Soft restart keeps Vulkan, modules, MCP and ResourceManager intact while re-running script init with optional parameters.

在文件 SoftRestart.hpp 中定义.

类型定义说明

◆ HSQUIRRELVM

typedef struct SQVM* HSQUIRRELVM

在文件 SoftRestart.hpp 第 22 行定义.