Codename LogoCodename Logo

funkin.game.NoteGroup

APIWikiTools

Group of notes, that handles updating and rendering only the visible notes. To only get the visible notes you gotta do group.forEach() or group.forEachAlive() instead of group.members.

Constructor

View on GitHub

new(?MaxSize:Int)

Variables

limit:Float = Flags.DEFAULT_NOTE_MS_LIMIT

How many milliseconds it should show a note before it should be hit

Methods

View on GitHub

inlineaddNotes(notes:Array<Note>):Void

Adds an array of notes to the group, and sorts them.

View on GitHub

get(id:Int):Note

Gets the correct order of notes

View on GitHub

inlinepreallocate(len:Int):Void

Preallocates the members array with nulls, but if theres anything in the array already it clears it

View on GitHub

inlinesortNotes():Void

Sorts the notes in the group.