Accessed via FlxG.console.

Variables

@:value(true)autoPause:Bool = true

Whether the console should auto-pause or not when it's focused.

@:value(true)stepAfterCommand:Bool = true

Whether the console should step() the game after a command is entered. Setting this to false allows inputting multiple console commands within the same frame. Use the step() command to step the game from the console.

Available since

4.2.0

.

Methods

inlineregisterClass(cl:Class<Dynamic>):Void

Register a new class to use in any command.

Parameters:

cl

The class to register.

inlineregisterEnum(e:Enum<Dynamic>):Void

Register a new enum to use in any command.

Parameters:

e

The enum to register.

Available since

4.4.0

.

inlineregisterFunction(FunctionAlias:String, Function:Dynamic):Void

Register a new function to use in any command.

Parameters:

FunctionAlias

The name with which you want to access the function.

Function

The function to register.

inlineregisterObject(ObjectAlias:String, AnyObject:Dynamic):Void

Register a new object to use in any command.

Parameters:

ObjectAlias

The name with which you want to access the object.

AnyObject

The object to register.