载入中...
搜索中...
未找到
ReloadSession.cpp
浏览该文件的文档.
bool mergeDefaults(const StateValue &defaults)
Fill missing members from defaults; object members merge recursively, existing values are never overw...
Definition StateValue.cpp:170
const StateValue * find(const std::string &key) const
Look up key; nullptr when absent.
Definition StateValue.cpp:74
One state hot-reload transaction: capture → reload → restore.
Definition ReloadSession.h:27
bool commit(HSQUIRRELVM vm, std::string *err=nullptr)
End the session, restoring captured state over the new definitions (old values win; newly added field...
Definition ReloadSession.cpp:28
bool abort(HSQUIRRELVM vm, std::string *err=nullptr)
End the session, rolling back to the captured state.
Definition ReloadSession.cpp:59
bool begin(HSQUIRRELVM vm, std::string *err=nullptr)
Start a session: capture current script + native state.
Definition ReloadSession.cpp:12
bool restoreState(HSQUIRRELVM vm, const StateValue &state, std::string *error=nullptr) const
Restore a captured state; v1-shaped values restore roots only.
Definition Snapshot.cpp:418
bool saveFile(HSQUIRRELVM vm, const std::string &path, std::string *error=nullptr) const
Definition Snapshot.cpp:482
Definition AiPanel.cpp:8