Refactor identifiers and add subtitle UI
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user