Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HotkeyCollection.cs
Go to the documentation of this file.
3using Microsoft.Xna.Framework.Input;
4
6
7internal class HotkeyCollection : IEnumerable<RgbKey>, IEnumerable
8{
10
11 public RgbKey BindKey(Keys key, string keyTriggerName)
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 }
23
24 public void UnbindKey(Keys key)
25 {
26 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
27 _keys.Remove(key);
28 }
29
34
39
40 public void UpdateAll(float timeElapsed)
41 {
42 foreach (RgbKey value in _keys.Values)
43 {
44 value.Update(timeElapsed);
45 }
46 }
47}
RgbKey BindKey(Keys key, string keyTriggerName)
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
new IEnumerator< T > GetEnumerator()