ModSubState
| Kind | class |
| Package | states.substates |
| Full name | states.substates.ModSubState |
| Source | source/states/substates/ModSubState.hx |
| Extends | MusicBeatSubstate |
Blank MusicBeatSubstate whose behaviour comes entirely from
data/states/<name>.hx. Use StateScripts.openSubState("MyPause") or
openModSubState("MyPause") from Lua/Python/HScript.
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
lastName | String | yes | null | Last script name passed to a ModSubState. |
lastData | Dynamic | yes | null | Last extra payload passed to a ModSubState. |
data | Dynamic | no | null | Extra data forwarded from the opener (JSON-friendly). |
Public methods
new (constructor)
function new(?stateName:String, ?data:Dynamic)
| Parameter | Type | Default |
|---|---|---|
stateName (optional) | String | — |
data (optional) | Dynamic | — |