PlayStatePlayback
| Kind | class |
| Package | play.helpers |
| Full name | play.helpers.PlayStatePlayback |
| Source | source/play/helpers/PlayStatePlayback.hx |
| Metadata | @:access(play.PlayState) @:access(backend.MusicBeatState) |
Public methods
setSongTime
static function setSongTime(state:PlayState, time:Float)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
time | Float | — |
startSong
static function startSong(state:PlayState):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
lerpSongSpeed
static function lerpSongSpeed(state:PlayState, num:Float, time:Float):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
num | Float | — |
time | Float | — |
changeTheSettingsBitch
static function changeTheSettingsBitch(state:PlayState)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
resyncVocals
static function resyncVocals(state:PlayState):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
unpauseVocals
static function unpauseVocals(state:PlayState)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
pauseVocals
static function pauseVocals(state:PlayState)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
setVocalsTime
static function setVocalsTime(state:PlayState, time:Float)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
time | Float | — |
finishSong
static function finishSong(state:PlayState, ignoreNoteOffset:Bool = false):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
ignoreNoteOffset (optional) | Bool | false |
loopSongLol
static function loopSongLol(state:PlayState)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
calculateTrollModeStuff
static function calculateTrollModeStuff(state:PlayState, pb:Float):Float
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
pb | Float | — |
calculateResetTime
static function calculateResetTime(state:PlayState):Float
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
loopCallback
static function loopCallback(state:PlayState, startingPoint:Float = 0)
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
startingPoint (optional) | Float | 0 |
endSong
static function endSong(state:PlayState):Void
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
restartSong
static function restartSong(state:PlayState, noTrans:Bool = true)
Only compiled when #if DISCORD_ALLOWED DiscordClient.resetClientID(); #end + #if DISCORD_ALLOWED DiscordClient.resetClientID(); #end.
| Parameter | Type | Default |
|---|---|---|
state | PlayState | — |
noTrans (optional) | Bool | true |