Accessed via FlxG.signals.

Variables

@:value(new FlxSignal())read onlyfocusGained:FlxSignal = new FlxSignal()

@:value(new FlxSignal())read onlyfocusLost:FlxSignal = new FlxSignal()

@:value(new FlxTypedSignal<Int -> Int>())read onlygameResized:FlxTypedSignal<(Int, Int) ‑> Void> = new FlxTypedSignal<Int -> Int>()

Gets dispatched when the game is resized. Passes the new window width and height to callback functions.

read onlygameStarted:FlxSignal

Deprecated: "Use postGameStart instead of gameStarted"

@:value(new FlxSignal())read onlypostDraw:FlxSignal = new FlxSignal()

@:value(new FlxSignal())read onlypostGameReset:FlxSignal = new FlxSignal()

@:value(new FlxSignal())read onlypostGameStart:FlxSignal = new FlxSignal()

Gets dispatched when the game is started (first state after the splash screen).

Available since

4.6.0

.

@:value(new FlxSignal())read onlypostStateSwitch:FlxSignal = new FlxSignal()

Available since

4.6.0

.

@:value(new FlxSignal())read onlypostUpdate:FlxSignal = new FlxSignal()

@:value(new FlxSignal())read onlypreDraw:FlxSignal = new FlxSignal()

@:value(new FlxSignal())read onlypreGameReset:FlxSignal = new FlxSignal()

@:value(new FlxSignal())read onlypreGameStart:FlxSignal = new FlxSignal()

Gets dispatched just before the game is started (before the first state after the splash screen is created)

Available since

4.6.0

.

@:value(new FlxTypedSignal<FlxState>())read onlypreStateCreate:FlxTypedSignal<FlxState ‑> Void> = new FlxTypedSignal<FlxState>()

@:value(new FlxSignal())read onlypreStateSwitch:FlxSignal = new FlxSignal()

Gets dispatched when a state change occurs.

Available since

4.6.0

.

@:value(new FlxSignal())read onlypreUpdate:FlxSignal = new FlxSignal()

read onlystateSwitched:FlxSignal

Deprecated: "Use preStateSwitch instead of stateSwitched"