ClassLuaCommandProcessor
Members
| add_command(name, help, function) | Add a custom console command. [...] | |
Add a custom console command. [...] | ||
| remove_command(name) | → boolean | Remove a custom console command. |
Remove a custom console command. | ||
| commands | :: R dictionary[string → LocalisedString] | Lists the custom commands registered by scripts through |
Lists the custom commands registered by scripts through | ||
| game_commands | :: R dictionary[string → LocalisedString] | Lists the built-in commands of the core game. [...] |
Lists the built-in commands of the core game. [...] | ||
| object_name | :: R string | The class name of this object. [...] |
The class name of this object. [...] | ||
Methods
add_command(name, help, function)
Parameters
| name | :: string | The desired name of the command (case sensitive). |
The desired name of the command (case sensitive). | ||
| help | :: LocalisedString | The localised help message. It will be shown to players using the |
The localised help message. It will be shown to players using the | ||
| function | :: function(CustomCommandData) | The function that will be called when this command is invoked. |
The function that will be called when this command is invoked. | ||

