refactor(savesystem): 正式存档目录更名为demo_saves
This commit is contained in:
@@ -167,7 +167,7 @@ namespace AibisDream.SaveSystem.Editor
|
||||
EditorGUILayout.LabelField("存读档测试工具", EditorStyles.boldLabel);
|
||||
EditorGUILayout.HelpBox(
|
||||
"用于 Play Mode 下验证自动存档、槽位读档与 testsavs 测试归档。\n" +
|
||||
"正式存档目录: saves/ | 测试归档: testsavs/(每次自动存档独立子文件夹)",
|
||||
"正式存档目录: demo_saves/ | 测试归档: testsavs/(每次自动存档独立子文件夹)",
|
||||
MessageType.Info);
|
||||
|
||||
if (!Application.isPlaying)
|
||||
@@ -193,7 +193,7 @@ namespace AibisDream.SaveSystem.Editor
|
||||
|
||||
EditorGUILayout.LabelField($"testsavs 路径: {ConstRef.TestAutoSaveArchivePath}", EditorStyles.miniLabel);
|
||||
EditorGUILayout.HelpBox(
|
||||
"开启后:每次 AutoSave 仅在 testsavs 下新建一份独立存档,不写入、不覆盖 saves/slot_0。\n" +
|
||||
"开启后:每次 AutoSave 仅在 testsavs 下新建一份独立存档,不写入、不覆盖 demo_saves/slot_0。\n" +
|
||||
"存多少次就保留多少份;关闭后恢复正式行为(仅覆盖 slot_0)。",
|
||||
MessageType.None);
|
||||
}
|
||||
@@ -224,7 +224,7 @@ namespace AibisDream.SaveSystem.Editor
|
||||
private void DrawSlotRestoreSection()
|
||||
{
|
||||
EditorGUILayout.LabelField("从正式槽位读档", EditorStyles.boldLabel);
|
||||
EditorGUILayout.LabelField($"saves 路径: {ConstRef.SaveFilePath}", EditorStyles.miniLabel);
|
||||
EditorGUILayout.LabelField($"demo_saves 路径: {ConstRef.SaveFilePath}", EditorStyles.miniLabel);
|
||||
|
||||
var latest = SlotManager.GetLatestSlotIndex();
|
||||
EditorGUILayout.LabelField($"最近槽位: {(latest.HasValue ? $"slot_{latest.Value}" : "无")}");
|
||||
@@ -391,7 +391,7 @@ namespace AibisDream.SaveSystem.Editor
|
||||
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
if (GUILayout.Button("打开 saves 文件夹"))
|
||||
if (GUILayout.Button("打开 demo_saves 文件夹"))
|
||||
{
|
||||
OpenDirectory(ConstRef.SaveFilePath);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace AibisDream.Utility
|
||||
public static readonly string TestSaveFilePath =
|
||||
Path.GetFullPath(Path.Combine(Application.dataPath, "..", "DevSaveFiles"));
|
||||
|
||||
public static readonly string SaveFilePath = Path.Combine(Application.persistentDataPath, "AllOurBrokenParts", "saves");
|
||||
public static readonly string SaveFilePath = Path.Combine(Application.persistentDataPath, "AllOurBrokenParts", "demo_saves");
|
||||
|
||||
/// <summary>测试阶段自动存档历史目录;每次自动存档独立子文件夹,不覆盖正式槽位。</summary>
|
||||
public static readonly string TestAutoSaveArchivePath =
|
||||
|
||||
@@ -67,7 +67,7 @@ Yarn 脚本:
|
||||
|
||||
逻辑集中在 `SavePointEvaluator.cs`,**不新增**独立 Tracker 文件。
|
||||
|
||||
正式槽位路径:`persistentDataPath/AllOurBrokenParts/saves/slot_x/{snapshot.json, meta.json, thumbnail.png}`
|
||||
正式槽位路径:`persistentDataPath/AllOurBrokenParts/demo_saves/slot_x/{snapshot.json, meta.json, thumbnail.png}`
|
||||
|
||||
P1 测试落盘路径:`persistentDataPath/AllOurBrokenParts/snapshot_test/latest_snapshot.json`(首次访问槽位系统时会尝试迁移到 `slot_0`)
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace AibisDream.SaveSystem
|
||||
{
|
||||
/// <summary>
|
||||
/// 测试存档模式:每次自动存档写入 <see cref="ConstRef.TestAutoSaveArchivePath"/> 下的独立子目录。
|
||||
/// 开启后不写入 slot_0,存多少次就保留多少份,与正式 saves/ 完全隔离。
|
||||
/// 开启后不写入 slot_0,存多少次就保留多少份,与正式 demo_saves/ 完全隔离。
|
||||
/// </summary>
|
||||
public static class TestSaveArchive
|
||||
{
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@
|
||||
|
||||
### 2. 存档文件组织(全新)
|
||||
|
||||
- 槽位制、sidecar、原子写、截图缩略图——**P2 基础实现已落地**,统一由 `SlotManager` / `SlotDirectory` 写入 `persistentDataPath/AllOurBrokenParts/saves/slot_x/`。Steam 云存档目前仅保留 `CloudSaveManager` / `ICloudSaveBackend` 扩展点,尚未接真实平台后端。
|
||||
- 槽位制、sidecar、原子写、截图缩略图——**P2 基础实现已落地**,统一由 `SlotManager` / `SlotDirectory` 写入 `persistentDataPath/AllOurBrokenParts/demo_saves/slot_x/`。Steam 云存档目前仅保留 `CloudSaveManager` / `ICloudSaveBackend` 扩展点,尚未接真实平台后端。
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user