First commit for private source control. Older commits available on Github.
This commit is contained in:
72
Assets/Scripts/Data/Identifiers/CodexEntryIDs.cs
Normal file
72
Assets/Scripts/Data/Identifiers/CodexEntryIDs.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user