Class: ConsoleCommand

(package) rune.console.ConsoleCommand(triggeropt, callbackopt, scopeopt)

The ConsoleCommand class represents a command that can be called from the text console.

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: