Restructured for new direction.
This commit is contained in:
@@ -3,62 +3,52 @@ using System.Collections.ObjectModel;
|
||||
|
||||
namespace BriarQueen.Data.Identifiers
|
||||
{
|
||||
public enum BookEntryID
|
||||
public enum DocumentEntryID
|
||||
{
|
||||
None = 0,
|
||||
WorkshopDiary = 1,
|
||||
LaxleyHouseBillOfSale = 2,
|
||||
GranddfatherClockPlaque = 3
|
||||
C1CarNewspaper,
|
||||
}
|
||||
|
||||
public enum ClueEntryID
|
||||
{
|
||||
None = 0,
|
||||
WorkshopBookshelfClue = 1,
|
||||
WorkshopRainbowClue = 2,
|
||||
PumphouseScratchedTable = 3,
|
||||
StreetGatePlaque = 4,
|
||||
GranddfatherClockPlaqueClue = 5
|
||||
AshwickMarketGate,
|
||||
}
|
||||
|
||||
public enum PhotoEntryID
|
||||
{
|
||||
None = 0,
|
||||
WorkshopFadedPhoto = 1
|
||||
}
|
||||
|
||||
public static class CodexEntryIDs
|
||||
{
|
||||
public static readonly IReadOnlyDictionary<BookEntryID, string> Books =
|
||||
new ReadOnlyDictionary<BookEntryID, string>(
|
||||
new Dictionary<BookEntryID, string>
|
||||
private const string DOCUMENT_PREFIX = "Codex:Document:";
|
||||
private const string CLUE_PREFIX = "Codex:Clue:";
|
||||
private const string PHOTO_PREFIX = "Codex:Photo:";
|
||||
|
||||
public static readonly IReadOnlyDictionary<DocumentEntryID, string> Documents =
|
||||
new ReadOnlyDictionary<DocumentEntryID, string>(
|
||||
new Dictionary<DocumentEntryID, string>
|
||||
{
|
||||
{ BookEntryID.WorkshopDiary, "BOOK_WorkshopDiary" },
|
||||
{ BookEntryID.LaxleyHouseBillOfSale, "BOOK_LaxleyHouseBillOfSale" },
|
||||
{ BookEntryID.GranddfatherClockPlaque, "BOOK_GranddfatherClockPlaque" },
|
||||
{ DocumentEntryID.C1CarNewspaper, GetDocumentIdentifier(DocumentEntryID.C1CarNewspaper) },
|
||||
});
|
||||
|
||||
public static readonly IReadOnlyDictionary<ClueEntryID, string> Clues =
|
||||
new ReadOnlyDictionary<ClueEntryID, string>(
|
||||
new Dictionary<ClueEntryID, string>
|
||||
{
|
||||
{ ClueEntryID.WorkshopBookshelfClue, "CLUE_WorkshopBookshelf" },
|
||||
{ ClueEntryID.WorkshopRainbowClue , "CLUE_WorkshopRainbow" },
|
||||
{ ClueEntryID.PumphouseScratchedTable, "CLUE_PumphouseScratchedTable" },
|
||||
{ ClueEntryID.StreetGatePlaque, "CLUE_StreetGatePlaque" },
|
||||
{ ClueEntryID.GranddfatherClockPlaqueClue, "CLUE_GranddfatherClockPlaque" },
|
||||
{ ClueEntryID.AshwickMarketGate, $"{PHOTO_PREFIX}:AshwickMarketGate" },
|
||||
});
|
||||
|
||||
public static readonly IReadOnlyDictionary<PhotoEntryID, string> Photos =
|
||||
new ReadOnlyDictionary<PhotoEntryID, string>(
|
||||
new Dictionary<PhotoEntryID, string>
|
||||
{
|
||||
{ PhotoEntryID.WorkshopFadedPhoto, "PHOTO_WorkshopFadedPhoto" }
|
||||
});
|
||||
|
||||
public static string Get(BookEntryID id)
|
||||
public static string Get(DocumentEntryID id)
|
||||
{
|
||||
return Books.TryGetValue(id, out var value) ? value : string.Empty;
|
||||
return Documents.TryGetValue(id, out var value) ? value : string.Empty;
|
||||
}
|
||||
|
||||
public static string Get(ClueEntryID id)
|
||||
@@ -70,5 +60,20 @@ namespace BriarQueen.Data.Identifiers
|
||||
{
|
||||
return Photos.TryGetValue(id, out var value) ? value : string.Empty;
|
||||
}
|
||||
|
||||
private static string GetDocumentIdentifier(DocumentEntryID id)
|
||||
{
|
||||
return $"{DOCUMENT_PREFIX}{id}";
|
||||
}
|
||||
|
||||
private static string GetClueIdentifier(ClueEntryID id)
|
||||
{
|
||||
return $"{CLUE_PREFIX}{id}";
|
||||
}
|
||||
|
||||
private static string GetPhotoIdentifier(PhotoEntryID id)
|
||||
{
|
||||
return $"{PHOTO_PREFIX}{id}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user