tModLoader v0.11.8.9
A mod to make and play Terraria mods
HotkeyLoader.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
4namespace Terraria.ModLoader
5{
6 internal static class HotKeyLoader
7 {
8 internal static readonly IDictionary<string, ModHotKey> modHotKeys = new Dictionary<string, ModHotKey>();
9
10 internal static IEnumerable<ModHotKey> HotKeys => modHotKeys.Values;
11
12 internal static ModHotKey RegisterHotKey(ModHotKey hotkey) {
13 modHotKeys[hotkey.uniqueName] = hotkey;
14 return hotkey;
15 }
16
17 internal static void Unload() {
18 modHotKeys.Clear();
19 }
20 }
21}