Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BindKey()

RgbKey ReLogic.Peripherals.RGB.HotkeyCollection.BindKey ( Keys key,
string keyTriggerName )
inline

Definition at line 11 of file HotkeyCollection.cs.

12 {
13 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
14 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
15 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
16 //IL_0015: Unknown result type (might be due to invalid IL or missing references)
17 if (!_keys.ContainsKey(key))
18 {
19 _keys.Add(key, new RgbKey(key, keyTriggerName));
20 }
21 return _keys[key];
22 }
void Add(TKey key, TValue value)

References ReLogic.Peripherals.RGB.HotkeyCollection._keys, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), and System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey().

Referenced by ReLogic.Peripherals.RGB.ChromaEngine.BindKey().