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