A set of helper functions used by the console.
Static variables
Static methods
staticinlinelog(text:Dynamic):Void
Shortcut to log a text with the Console LogStyle.
Parameters:
text | The text to log. |
---|
staticparseCommand(input:String):Expr
Converts the input string into its AST form to be executed.
Parameters:
input | The user's input command. |
---|
Returns:
The parsed out AST.
staticregisterFunction(alias:String, func:Dynamic):Void
Register a new function to use in any command.
Parameters:
alias | The name with which you want to access the function. |
---|---|
func | The function to register. |
staticregisterObject(alias:String, object:Dynamic):Void
Register a new object to use in any command.
Parameters:
alias | The name with which you want to access the object. |
---|---|
object | The object to register. |
staticremoveByAlias(alias:String):Void
Removes an alias from the command registry.
Parameters:
alias | The alias to remove. |
---|
Available since
5.4.0
.staticrunCommand(input:String):Dynamic
Parses and runs the input command.
Parameters:
input | The user's input command. |
---|
Returns:
Whatever the input code evaluates to.