Refactor identifiers and add subtitle UI
This commit is contained in:
@@ -1,23 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace BriarQueen.Data.Identifiers
|
||||
{
|
||||
public enum PuzzleKey
|
||||
{
|
||||
AshwickMarketGate,
|
||||
AshwickOutskirtsGate,
|
||||
}
|
||||
|
||||
public static class PuzzleIdentifiers
|
||||
{
|
||||
public static readonly Dictionary<PuzzleKey, string> AllPuzzles = new()
|
||||
{
|
||||
{ PuzzleKey.AshwickMarketGate, "CH1:Puzzle:AshwickMarketGate" },
|
||||
};
|
||||
private static readonly IReadOnlyDictionary<PuzzleKey, string> _allPuzzles =
|
||||
new ReadOnlyDictionary<PuzzleKey, string>(
|
||||
new Dictionary<PuzzleKey, string>
|
||||
{
|
||||
{ PuzzleKey.AshwickOutskirtsGate, "CH1:Puzzle:AshwickOutskirtsGate" },
|
||||
});
|
||||
|
||||
public static string Get(PuzzleKey key)
|
||||
{
|
||||
return _allPuzzles.TryGetValue(key, out var value) ? value : string.Empty;
|
||||
}
|
||||
|
||||
// Optional helper to get all puzzle IDs
|
||||
public static IEnumerable<string> GetAllPuzzleIDs()
|
||||
{
|
||||
return AllPuzzles.Values;
|
||||
return _allPuzzles.Values;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user