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

112 lines
3.4 KiB
C#

using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace BriarQueen.Data.Identifiers
{
public enum MusicKey
{
None = 0,
}
public enum SFXKey
{
None = 0,
WorkshopSafeUnlocked,
WorkshopPuzzleBoxUnlocked,
DoorCreek,
ItemCollected,
GateOpening,
PuzzleIncorrect,
ResetPuzzle,
SharpenKnife
}
public enum UIFXKey
{
None = 0,
AchievementUnlocked,
CodexEntryUnlocked
}
public enum AmbienceKey
{
None = 0,
}
public enum VoiceKey
{
None = 0,
}
public static class AudioNameIdentifiers
{
public static readonly IReadOnlyDictionary<MusicKey, string> Music =
new ReadOnlyDictionary<MusicKey, string>(
new Dictionary<MusicKey, string>
{
// Add when you have music
// { MusicKey.SomeTrack, "MUSIC_SomeTrack" }
});
public static readonly IReadOnlyDictionary<SFXKey, string> SFX =
new ReadOnlyDictionary<SFXKey, string>(
new Dictionary<SFXKey, string>
{
{ SFXKey.WorkshopSafeUnlocked, "SFX_WorkshopSafeUnlocked" },
{ SFXKey.WorkshopPuzzleBoxUnlocked, "SFX_WorkshopPuzzleBoxUnlocked" },
{ SFXKey.DoorCreek, "SFX_DoorCreek" },
{ SFXKey.ItemCollected, "SFX_ItemCollected" },
{ SFXKey.GateOpening, "SFX_GateOpening" },
{ SFXKey.PuzzleIncorrect, "SFX_PuzzleIncorrect" },
{ SFXKey.ResetPuzzle, "SFX_ResetPuzzle" },
{ SFXKey.SharpenKnife, "SFX_SharpenKnife"}
});
public static readonly IReadOnlyDictionary<UIFXKey, string> UIFX =
new ReadOnlyDictionary<UIFXKey, string>(
new Dictionary<UIFXKey, string>
{
{ UIFXKey.AchievementUnlocked, "UIFX_AchievementUnlocked" },
{ UIFXKey.CodexEntryUnlocked, "UIFX_CodexEntryUnlocked" },
});
public static readonly IReadOnlyDictionary<AmbienceKey, string> Ambience =
new ReadOnlyDictionary<AmbienceKey, string>(
new Dictionary<AmbienceKey, string>
{
// Add ambience mappings here
});
public static readonly IReadOnlyDictionary<VoiceKey, string> Voice =
new ReadOnlyDictionary<VoiceKey, string>(
new Dictionary<VoiceKey, string>
{
// Add voice mappings here
});
public static string Get(MusicKey key)
{
return Music.TryGetValue(key, out var value) ? value : string.Empty;
}
public static string Get(SFXKey key)
{
return SFX.TryGetValue(key, out var value) ? value : string.Empty;
}
public static string Get(UIFXKey key)
{
return UIFX.TryGetValue(key, out var value) ? value : string.Empty;
}
public static string Get(AmbienceKey key)
{
return Ambience.TryGetValue(key, out var value) ? value : string.Empty;
}
public static string Get(VoiceKey key)
{
return Voice.TryGetValue(key, out var value) ? value : string.Empty;
}
}
}