|
Drag[en]gine Script Module DragonScript 1.32.1
|
Console command. More...
Public Member Functions | |
| void | execute (Console console, Array params) |
| Execute command. | |
| String | getDescription () |
| Description to display to user. | |
| String | getName () |
| Unique name of command. | |
| String | getSyntax () |
| Command syntax. | |
| ConsoleCommand | new () |
| Create console command. | |
| void | setDescription (String description) |
| void | setName (String name) |
| Set unique name of command. | |
| void | setSyntax (String syntax) |
| Set command syntax. | |
Console command.
Console commands are special commands taking parameters. They supposed to be used with a game console window or panel where the user can specify these parameters. These commands can not be bound to input events directly except using a wrapper.
| void Dragengine.Commands.ConsoleCommand.execute | ( | Console | console, |
| Array | params | ||
| ) |
Execute command.
Default implementation prints syntax to console.
| console | Console to send output to. |
| params | List of parameters. Has to match command syntax. |
Reimplemented in Dragengine.Commands.GraSysConsoleCommand, Dragengine.Commands.HelpConsoleCommand, Dragengine.Commands.LanguageConsoleCommand, Dragengine.Commands.ScriptModuleStatsConsoleCommand, and Dragengine.Commands.SystemConsoleCommand.
| String Dragengine.Commands.ConsoleCommand.getDescription | ( | ) |
Description to display to user.
| String Dragengine.Commands.ConsoleCommand.getName | ( | ) |
Unique name of command.
Allowed are upper and lower case letters, numbers and underscore.
| String Dragengine.Commands.ConsoleCommand.getSyntax | ( | ) |
Command syntax.
| ConsoleCommand Dragengine.Commands.ConsoleCommand.new | ( | ) |
Create console command.
Reimplemented in Dragengine.Commands.AISysConsoleCommand, Dragengine.Commands.AmrSysConsoleCommand, Dragengine.Commands.AudSysConsoleCommand, Dragengine.Commands.CRSysConsoleCommand, Dragengine.Commands.GraSysConsoleCommand, Dragengine.Commands.InpSysConsoleCommand, Dragengine.Commands.NetSysConsoleCommand, Dragengine.Commands.PhySysConsoleCommand, Dragengine.Commands.ScriptModuleStatsConsoleCommand, Dragengine.Commands.ScrSysConsoleCommand, and Dragengine.Commands.SynthSysConsoleCommand.
| void Dragengine.Commands.ConsoleCommand.setDescription | ( | String | description | ) |
Set description to display to user.
| void Dragengine.Commands.ConsoleCommand.setName | ( | String | name | ) |
Set unique name of command.
Allowed are upper and lower case letters, numbers and underscore.
| void Dragengine.Commands.ConsoleCommand.setSyntax | ( | String | syntax | ) |
Set command syntax.