Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Commands.ConsoleCommand Class Reference

Console command. More...

Inheritance diagram for Dragengine.Commands.ConsoleCommand:
Dragengine.Commands.HelpConsoleCommand Dragengine.Commands.LanguageConsoleCommand Dragengine.Commands.ScriptModuleStatsConsoleCommand Dragengine.Commands.SystemConsoleCommand 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.ScrSysConsoleCommand Dragengine.Commands.SynthSysConsoleCommand

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.

Detailed Description

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.

Member Function Documentation

◆ execute()

void Dragengine.Commands.ConsoleCommand.execute ( Console console,
Array params )

Execute command.

Default implementation prints syntax to console.

Parameters
consoleConsole to send output to.
paramsList 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().

◆ getDescription()

String Dragengine.Commands.ConsoleCommand.getDescription ( )

Description to display to user.

Referenced by Dragengine.Commands.SystemConsoleCommand.execute(), and setSyntax().

◆ getName()

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().

◆ getSyntax()

String Dragengine.Commands.ConsoleCommand.getSyntax ( )

Command syntax.

Referenced by execute().

◆ new()

◆ setDescription()

◆ setName()

void Dragengine.Commands.ConsoleCommand.setName ( String name)

◆ setSyntax()


The documentation for this class was generated from the following file: