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 name of the keybind. |
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 name of the keybind. |
defaultBinding | The default binding. |