/// <summary> /// 自动存储 /// </summary> /// <param name="isSnapshot"></param> /// <returns></returns> public TGameData AutoSave(bool isSnapshot = false) { Callback_OnStartAutoSave?.Invoke(AutoSaveType.None); var ret = SaveCurGameAs(BaseConstMgr.Prefix_AutoSave + "Last", isSnapshot, false, false); Callback_OnEndAutoSave?.Invoke(AutoSaveType.None); return(ret); }
// 自动存储 public DBBaseGame AutoSave(bool useSnapshot = false) { AutoSaveType saveType = SettingsMgr.GetBaseSettings().AutoSaveType; if (saveType == AutoSaveType.None) { return(null); } Callback_OnStartAutoSave?.Invoke(saveType); var ret = SaveCurGameAs(Const.Prefix_AutoSave + Util.GetStr(BaseLocalPlayer.TDID), useSnapshot, true, false, false, true); Callback_OnEndAutoSave?.Invoke(saveType); return(ret); }