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(c:Class<Dynamic>):Void

Register a new class to use in any command.

Parameters:

c

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

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

inlineremoveByAlias(alias:String):Void

Removes an alias from the command registry.

Parameters:

alias

The alias to remove.

Available since

5.4.0

.

inlineremoveClass(c:Class<Dynamic>):Void

Removes a class from the command registry.

Parameters:

c

The class to remove.

Available since

5.4.0

.

inlineremoveEnum(e:Enum<Dynamic>):Void

Removes an enum from the command registry.

Parameters:

e

The enum to remove.

Available since

5.4.0

.

inlineremoveFunction(func:Dynamic):Void

Removes a function from the command registry.

Note: removeByAlias is more performant, as this method searches the list for the function.

Parameters:

func

The object to remove.

Available since

5.4.0

.

inlineremoveObject(object:Dynamic):Void

Removes an object from the command registry.

Note: removeByAlias is more performant, as this method searches the list for the object.

Parameters:

object

The object to remove.

Available since

5.4.0

.