105 lines
3.9 KiB
C#
105 lines
3.9 KiB
C#
using System.Collections.Generic;
|
||
using System.Collections.ObjectModel;
|
||
|
||
namespace BriarQueen.Data.Identifiers
|
||
{
|
||
public enum ItemInteractKey
|
||
{
|
||
None = 0,
|
||
EmptyHands = 1,
|
||
CantUseItem = 2,
|
||
SomethingMissing = 3,
|
||
CarefulInteract = 4,
|
||
LooksImportant = 5,
|
||
WrongTool = 6,
|
||
CodexLocked = 7
|
||
}
|
||
|
||
public enum LevelInteractKey
|
||
{
|
||
None = 0,
|
||
}
|
||
|
||
public enum EnvironmentInteractKey
|
||
{
|
||
None = 0,
|
||
Locked = 1,
|
||
CantGoThere = 2,
|
||
DoesntBelong = 3,
|
||
FireHot = 4,
|
||
AshwickHallowSign = 5,
|
||
AshwickRidgewayStatue = 6,
|
||
AshwickBlockedRidgwayRoad = 7,
|
||
AshwickRidgewaySkeleton = 8,
|
||
AskwickMarketplaceSign = 9,
|
||
}
|
||
|
||
public enum UIInteractKey
|
||
{
|
||
None = 0,
|
||
EmptySlot = 1,
|
||
}
|
||
|
||
public static class InteractEventIDs
|
||
{
|
||
public static readonly IReadOnlyDictionary<ItemInteractKey, string> ItemInteractions =
|
||
new ReadOnlyDictionary<ItemInteractKey, string>(
|
||
new Dictionary<ItemInteractKey, string>
|
||
{
|
||
{ ItemInteractKey.EmptyHands, "My hands are too full for that." },
|
||
{ ItemInteractKey.CantUseItem, "That won’t work here." },
|
||
{ ItemInteractKey.SomethingMissing, "Something isn’t right." },
|
||
{ ItemInteractKey.CarefulInteract, "I should take care with this." },
|
||
{ ItemInteractKey.LooksImportant, "This feels important." },
|
||
{ ItemInteractKey.WrongTool, "This isn’t the right tool." },
|
||
{ ItemInteractKey.CodexLocked, "I have nowhere to put that." },
|
||
|
||
});
|
||
|
||
public static readonly IReadOnlyDictionary<LevelInteractKey, string> LevelInteractions =
|
||
new ReadOnlyDictionary<LevelInteractKey, string>(
|
||
new Dictionary<LevelInteractKey, string>
|
||
{
|
||
});
|
||
|
||
public static readonly IReadOnlyDictionary<EnvironmentInteractKey, string> EnvironmentInteractions =
|
||
new ReadOnlyDictionary<EnvironmentInteractKey, string>(
|
||
new Dictionary<EnvironmentInteractKey, string>
|
||
{
|
||
{ EnvironmentInteractKey.Locked, "It's locked." },
|
||
{ EnvironmentInteractKey.CantGoThere, "No way through." },
|
||
{ EnvironmentInteractKey.DoesntBelong, "This feels out of place." },
|
||
{ EnvironmentInteractKey.FireHot, "Too hot to get close." },
|
||
{ EnvironmentInteractKey.AshwickHallowSign, "Ashwick Hallow… Even the name feels like a warning."},
|
||
{ EnvironmentInteractKey.AshwickRidgewayStatue, "Lovely sculpture. Mildly terrifying, but lovely."},
|
||
{ EnvironmentInteractKey.AshwickBlockedRidgwayRoad, "Right. Closed road. Of course it is."}
|
||
});
|
||
|
||
public static readonly IReadOnlyDictionary<UIInteractKey, string> UIInteractions =
|
||
new ReadOnlyDictionary<UIInteractKey, string>(
|
||
new Dictionary<UIInteractKey, string>
|
||
{
|
||
{ UIInteractKey.EmptySlot, "Empty." },
|
||
});
|
||
|
||
public static string Get(ItemInteractKey key)
|
||
{
|
||
return ItemInteractions.TryGetValue(key, out var value) ? value : string.Empty;
|
||
}
|
||
|
||
public static string Get(LevelInteractKey key)
|
||
{
|
||
return LevelInteractions.TryGetValue(key, out var value) ? value : string.Empty;
|
||
}
|
||
|
||
public static string Get(EnvironmentInteractKey key)
|
||
{
|
||
return EnvironmentInteractions.TryGetValue(key, out var value) ? value : string.Empty;
|
||
}
|
||
|
||
public static string Get(UIInteractKey key)
|
||
{
|
||
return UIInteractions.TryGetValue(key, out var value) ? value : string.Empty;
|
||
}
|
||
}
|
||
} |