[feat] ru and eng keycodes

# Conflicts:
#	Content.Shared/Chat/SharedChatSystem.cs
This commit is contained in:
rhailrake
2023-04-25 21:16:29 +06:00
committed by Remuchi
parent 505caa556e
commit 95165aacae
4 changed files with 45 additions and 16 deletions

View File

@@ -55,8 +55,19 @@ public abstract class SharedChatSystem : EntitySystem
private void CacheRadios()
{
_keyCodes = _prototypeManager.EnumeratePrototypes<RadioChannelPrototype>()
.ToFrozenDictionary(x => x.KeyCode);
_keyCodes.Clear();
foreach (var proto in _prototypeManager.EnumeratePrototypes<RadioChannelPrototype>())
{
//WD-EDIT
foreach (var keycode in proto.KeyCodes)
{
if (_keyCodes.ContainsKey(keycode))
continue;
_keyCodes.Add(keycode, proto);
}
//WD-EDIT
}
}
/// <summary>