Refactor identifiers and add subtitle UI

This commit is contained in:
2026-05-17 11:56:08 +01:00
parent 3174079e37
commit 9f9ef72390
25 changed files with 276 additions and 6871 deletions

View File

@@ -13,7 +13,7 @@ namespace BriarQueen.Data.IO.Saves
[MemoryPackable]
public partial class SaveGame
{
public string SaveVersion = "0.0.2-alpha";
public string SaveVersion;
public string SaveFileName;
// Key Unlocks
@@ -115,12 +115,12 @@ namespace BriarQueen.Data.IO.Saves
// -------- Helper Methods --------
public bool IsPuzzleCompleted(PuzzleKey puzzle)
{
return PuzzleCompleted.TryGetValue(PuzzleIdentifiers.AllPuzzles[puzzle], out var completed) && completed;
return PuzzleCompleted.TryGetValue(PuzzleIdentifiers.Get(puzzle), out var completed) && completed;
}
public void SetPuzzleCompleted(PuzzleKey puzzle, bool completed = true)
{
PuzzleCompleted[PuzzleIdentifiers.AllPuzzles[puzzle]] = completed;
PuzzleCompleted[PuzzleIdentifiers.Get(puzzle)] = completed;
}
public bool GetLevelFlag(LevelFlag flag)
@@ -133,4 +133,4 @@ namespace BriarQueen.Data.IO.Saves
LevelFlags[flag] = value;
}
}
}
}