7#include <unordered_set>
35 void markRoot(std::string
name);
36 void unmarkRoot(
const std::string&
name);
38 std::vector<std::string> roots()
const;
42 bool restore(
HSQUIRRELVM vm,
const std::string& json, std::string*
error =
nullptr)
const;
44 bool saveFile(
HSQUIRRELVM vm,
const std::string& path, std::string*
error =
nullptr)
const;
45 bool loadFile(
HSQUIRRELVM vm,
const std::string& path, std::string*
error =
nullptr)
const;
65 static bool isEngineBinding(
const std::string&
name);
72 mutable std::vector<std::string> marked_;
struct SQVM * HSQUIRRELVM
#define EVENGINE_API
宿主(eve / libmain)导出宏;插件从进程导入同一批符号。
JobSystemThreadPool::State * state
struct SQVM * HSQUIRRELVM
JSON-compatible state value tree used by state hot reload.
Script + native state snapshot for state hot reload.
std::vector< std::string > rootsFor(HSQUIRRELVM vm) const
Marked roots, or heuristic roots when none marked (script-facing).
Snapshot(const Snapshot &)=delete
Snapshot & operator=(const Snapshot &)=delete