|
Drag[en]gine Script Module DragonScript 1.35
|
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.
References execute(), getSyntax(), new(), and setSyntax().
Referenced by execute().
| String Dragengine.Commands.ConsoleCommand.getDescription | ( | ) |
Description to display to user.
Referenced by Dragengine.Commands.SystemConsoleCommand.execute(), and setSyntax().
| String Dragengine.Commands.ConsoleCommand.getName | ( | ) |
Unique name of command.
Allowed are upper and lower case letters, numbers and underscore.
References getName().
Referenced by Dragengine.Commands.SystemConsoleCommand.execute(), and getName().
| 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.
References new().
Referenced by execute(), new(), setDescription(), and setSyntax().
| void Dragengine.Commands.ConsoleCommand.setDescription | ( | String | description | ) |
Set description to display to user.
References new(), and setName().
Referenced by Dragengine.Commands.HelpConsoleCommand.getConsoleCommands(), Dragengine.Commands.ScriptModuleStatsConsoleCommand.new(), Dragengine.Commands.SystemConsoleCommand.new(), setSyntax(), and Dragengine.Commands.LanguageConsoleCommand.setTranslationManager().
| void Dragengine.Commands.ConsoleCommand.setName | ( | String | name | ) |
Set unique name of command.
Allowed are upper and lower case letters, numbers and underscore.
Referenced by Dragengine.Commands.HelpConsoleCommand.new(), Dragengine.Commands.ScriptModuleStatsConsoleCommand.new(), Dragengine.Commands.SystemConsoleCommand.new(), setDescription(), and Dragengine.Commands.LanguageConsoleCommand.setTranslationManager().
| void Dragengine.Commands.ConsoleCommand.setSyntax | ( | String | syntax | ) |
Set command syntax.
References getDescription(), new(), and setDescription().
Referenced by execute(), Dragengine.Commands.HelpConsoleCommand.getConsoleCommands(), Dragengine.Commands.AudSysConsoleCommand.new(), Dragengine.Commands.GraSysConsoleCommand.new(), Dragengine.Commands.ScriptModuleStatsConsoleCommand.new(), Dragengine.Commands.SystemConsoleCommand.new(), and Dragengine.Commands.LanguageConsoleCommand.setTranslationManager().