Constructor
(package) new ConsoleCommand(triggeropt, callbackopt, scopeopt)
Creates a new ConsoleCommand.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
trigger |
string |
<optional> |
Command trigger. |
callback |
function |
<optional> |
Command function. |
scope |
Object |
<optional> |
Command scope. |
- Source:
Members
callback :function
Command function, ie the function that is executed when the command
is called.
Type:
- function
- Source:
scope :Object
Within what scope the command is executed.
Type:
- Object
- Source:
trigger :string
String value that activates the command, ie. the command name.
Type:
- string
- Source: