Utility function in NoteGroup

This commit is contained in:
NeeEoo
2024-02-16 10:36:12 +01:00
parent 3f2d35730c
commit ae721ed4e4
+7
View File
@@ -71,6 +71,13 @@ class NoteGroup extends FlxTypedGroup<Note> {
@:privateAccess FlxCamera._defaultCameras = oldDefaultCameras;
}
/**
* Gets the correct order of notes
**/
public function get(id:Int) {
return members[length - 1 - id];
}
public override function forEach(noteFunc:Note->Void, recursive:Bool = false) {
i = length-1;
__loopSprite = null;