|add_command(name, help, function)||Add a command.|
|remove_command(string) → boolean||Removes a registered command|
|commands :: dictionary string → LocalisedString [R]|| Commands registered by scripts through |
|game_commands :: dictionary string → LocalisedString [R]||Builtin commands of the core game.|
Custom game console commands. These don't persist through save and load; instead, scripts are expected to re-register their commands in LuaBootstrap::on_load.
Add a command.
The function registered to the command is passed a table when the command is invoked. The table contains:Table with the following fields:
nameis already registered or already exists as a game command.
Removes a registered command
Falseif the command didn't exist.
Commands registered by scripts through