Skip to main content

EditorPlayStateHelpers

Kindclass
Packageeditors.helpers
Full nameeditors.helpers.EditorPlayStateHelpers
Sourcesource/editors/helpers/EditorPlayStateHelpers.hx
Metadata@:access(editors.EditorPlayState) @:access(backend.MusicBeatState)

Public methods​

generateSong​

static function generateSong(state:EditorPlayState, startingPoint:Float = 0):Void
ParameterTypeDefault
stateEditorPlayState—
startingPoint (optional)Float0

View source

endSong​

static function endSong(state:EditorPlayState)
ParameterTypeDefault
stateEditorPlayState—

View source

onKeyPress​

static function onKeyPress(state:EditorPlayState, event:KeyboardEvent):Void
ParameterTypeDefault
stateEditorPlayState—
eventKeyboardEvent—

View source

sortHitNotes​

static function sortHitNotes(a:Note, b:Note):Int
ParameterTypeDefault
aNote—
bNote—

View source

onKeyRelease​

static function onKeyRelease(state:EditorPlayState, event:KeyboardEvent):Void
ParameterTypeDefault
stateEditorPlayState—
eventKeyboardEvent—

View source

getKeyFromEvent​

static function getKeyFromEvent(state:EditorPlayState, key:FlxKey):Int
ParameterTypeDefault
stateEditorPlayState—
keyFlxKey—

View source

handleKeyInput​

static function handleKeyInput(state:EditorPlayState):Void
ParameterTypeDefault
stateEditorPlayState—

View source

invalidateNote​

static function invalidateNote(state:EditorPlayState, note:Note):Void
ParameterTypeDefault
stateEditorPlayState—
noteNote—

View source

destroyNotes​

static function destroyNotes(state:EditorPlayState):Void
ParameterTypeDefault
stateEditorPlayState—

View source

cachePopUpScore​

static function cachePopUpScore(state:EditorPlayState)
ParameterTypeDefault
stateEditorPlayState—

View source

popUpScore​

static function popUpScore(state:EditorPlayState, note:Note = null):Void
ParameterTypeDefault
stateEditorPlayState—
note (optional)Notenull

View source

generateStaticArrows​

static function generateStaticArrows(state:EditorPlayState, player:Int):Void
ParameterTypeDefault
stateEditorPlayState—
playerInt—

View source

spawnHoldSplashOnNote​

static function spawnHoldSplashOnNote(state:EditorPlayState, note:Note, isDad:Bool = false)
ParameterTypeDefault
stateEditorPlayState—
noteNote—
isDad (optional)Boolfalse

View source

spawnHoldSplash​

static function spawnHoldSplash(state:EditorPlayState, note:Note)
ParameterTypeDefault
stateEditorPlayState—
noteNote—

View source

Internals​

Private / internal members
Method
static function sortByTime(state:EditorPlayState, Obj1:Dynamic, Obj2:Dynamic):Int