Drag[en]gine Script Module DragonScript
1.23
|
Console command. More...
Public Member Functions | |
void | execute (Console console, Array params) |
Execute command. More... | |
String | getDescription () |
Description to display to user. More... | |
String | getName () |
Unique name of command. More... | |
String | getSyntax () |
Command syntax. More... | |
ConsoleCommand | new () |
Create console command. More... | |
void | setDescription (String description) |
void | setName (String name) |
Set unique name of command. More... | |
void | setSyntax (String syntax) |
Set command syntax. More... | |
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.SystemConsoleCommand, Dragengine.Commands.ScriptModuleStatsConsoleCommand, Dragengine.Commands.LanguageConsoleCommand, Dragengine.Commands.HelpConsoleCommand, and Dragengine.Commands.GraSysConsoleCommand.
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.SynthSysConsoleCommand, Dragengine.Commands.ScrSysConsoleCommand, Dragengine.Commands.ScriptModuleStatsConsoleCommand, Dragengine.Commands.PhySysConsoleCommand, Dragengine.Commands.NetSysConsoleCommand, Dragengine.Commands.InpSysConsoleCommand, Dragengine.Commands.GraSysConsoleCommand, Dragengine.Commands.CRSysConsoleCommand, Dragengine.Commands.AudSysConsoleCommand, Dragengine.Commands.AmrSysConsoleCommand, and Dragengine.Commands.AISysConsoleCommand.
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.