ModState
| Kind | class |
| Package | states |
| Full name | states.ModState |
| Source | source/states/ModState.hx |
| Extends | MusicBeatState |
Blank MusicBeatState whose behaviour comes entirely from
data/states/<name>.hx. Use StateScripts.switchState("MyMenu") or
switchCustomState("MyMenu") from Lua/Python/HScript.
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
lastName | String | yes | null | Last script name passed to a ModState. Used across FlxG.resetState(). |
lastData | Dynamic | yes | null | Last extra payload passed to a ModState. |
data | Dynamic | no | null | Extra data forwarded from the previous screen (JSON-friendly). |
Public methods
new (constructor)
function new(?stateName:String, ?data:Dynamic)
| Parameter | Type | Default |
|---|---|---|
stateName (optional) | String | — |
data (optional) | Dynamic | — |