docs(save): 补充严格开发跳转使用说明
This commit is contained in:
@@ -30,6 +30,13 @@ yield return SaveRestoreOrchestrator.RestoreFromSlot(slotIndex);
|
||||
// 文件读档(旧档 / 调试)
|
||||
yield return SaveRestoreOrchestrator.RestoreFromFile(path);
|
||||
|
||||
// 严格开发跳转:完整清理旧会话,并取得实际成功/失败结果
|
||||
RestoreResult result = null;
|
||||
yield return SaveRestoreOrchestrator.RestoreFromFile(
|
||||
path,
|
||||
RestoreOptions.DevJump,
|
||||
value => result = value);
|
||||
|
||||
// 仅内存快照
|
||||
var snap = SnapshotService.Capture();
|
||||
yield return SnapshotService.Restore(snap);
|
||||
|
||||
Reference in New Issue
Block a user