Inherits Terraria.ModLoader.Loader< T >.
|
T | Get (int id) |
|
int | Register (T obj) |
|
int | Reserve () |
|
int | VanillaCount [get, set] |
|
◆ RegisterKeybind() [1/2]
static ModKeybind Terraria.ModLoader.KeybindLoader.RegisterKeybind |
( |
Mod |
mod, |
|
|
string |
name, |
|
|
Keys |
defaultBinding |
|
) |
| |
|
static |
Registers a keybind with a name and defaultBinding . Use the returned ModKeybind to detect when buttons are pressed.
- Parameters
-
mod | The mod that this keybind will belong to. Usually, this would be your mod instance. |
name | The internal name of the keybind. The localization key "Mods.{ModName}.Keybind.{KeybindName}" will be used for the display name. |
defaultBinding | The default binding. |
◆ RegisterKeybind() [2/2]
static ModKeybind Terraria.ModLoader.KeybindLoader.RegisterKeybind |
( |
Mod |
mod, |
|
|
string |
name, |
|
|
string |
defaultBinding |
|
) |
| |
|
static |
Registers a keybind with a name and defaultBinding . Use the returned ModKeybind to detect when buttons are pressed.
- Parameters
-
mod | The mod that this keybind will belong to. Usually, this would be your mod instance. |
name | The internal name of the keybind. The localization key "Mods.{ModName}.Keybind.{KeybindName}" will be used for the display name. |
defaultBinding | The default binding. |