namespace AibisDream.SaveSystem
{
///
/// 快照层捕获 API。恢复必须通过 GameManager 会话命令进入。
/// 游戏逻辑应优先使用 完成存读档流程。
///
public static class SnapshotService
{
/// 捕获当前运行时快照。
/// 见 。
/// 见 。
public static SaveSnapshot Capture(string triggerNodeName = null, bool omitAnchor = false)
{
SnapshotRegistry.EnsureInitialized();
return SnapshotCapture.Capture(YarnVariableStorage.Instance, triggerNodeName, omitAnchor);
}
}
}