Files
A-Fairytale-Gone-Bad-Briar-…/Assets/Scripts/Data/Identifiers/CodexEntryIDs.cs

72 lines
2.0 KiB
C#

using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace BriarQueen.Data.Identifiers
{
public enum BookEntryID
{
None = 0,
WorkshopDiary = 1
}
public enum ClueEntryID
{
None = 0,
WorkshopBookshelfClue = 1,
WorkshopRainbowClue = 2,
PumphouseScratchedTable = 3
}
public enum PhotoEntryID
{
None = 0,
WorkshopFadedPhoto = 1
}
public enum LocationEntryID
{
None = 0,
Village = 1,
Workshop = 2
}
public static class CodexEntryIDs
{
public static readonly IReadOnlyDictionary<BookEntryID, string> Books =
new ReadOnlyDictionary<BookEntryID, string>(
new Dictionary<BookEntryID, string>
{
{ BookEntryID.WorkshopDiary, "BOOK_WorkshopDiary" }
});
public static readonly IReadOnlyDictionary<ClueEntryID, string> Clues =
new ReadOnlyDictionary<ClueEntryID, string>(
new Dictionary<ClueEntryID, string>
{
{ ClueEntryID.WorkshopBookshelfClue, "CLUE_WorkshopBookshelf" },
{ ClueEntryID.WorkshopRainbowClue , "CLUE_WorkshopRainbow" }
});
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)
{
return Books.TryGetValue(id, out var value) ? value : string.Empty;
}
public static string Get(ClueEntryID id)
{
return Clues.TryGetValue(id, out var value) ? value : string.Empty;
}
public static string Get(PhotoEntryID id)
{
return Photos.TryGetValue(id, out var value) ? value : string.Empty;
}
}
}