34 lines
935 B
C#
34 lines
935 B
C#
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace BriarQueen.Data.Identifiers
|
|
{
|
|
public enum SubtitleKey
|
|
{
|
|
None = 0,
|
|
// Example:
|
|
// IntroLine = 1,
|
|
// TutorialTip = 2
|
|
}
|
|
|
|
public static class SubtitleIdentifiers
|
|
{
|
|
public static readonly IReadOnlyDictionary<SubtitleKey, string> Subtitles =
|
|
new ReadOnlyDictionary<SubtitleKey, string>(
|
|
new Dictionary<SubtitleKey, string>
|
|
{
|
|
// { SubtitleKey.IntroLine, "SUB_IntroLine" },
|
|
// { SubtitleKey.TutorialTip, "SUB_TutorialTip" }
|
|
});
|
|
|
|
public static string Get(SubtitleKey key)
|
|
{
|
|
return Subtitles.TryGetValue(key, out var value) ? value : string.Empty;
|
|
}
|
|
|
|
public static IEnumerable<string> GetAll()
|
|
{
|
|
return Subtitles.Values;
|
|
}
|
|
}
|
|
} |