diff --git a/rhythm_game/note/editor/editor_note.gd b/rhythm_game/note/editor/editor_note.gd new file mode 100644 index 0000000..32af579 --- /dev/null +++ b/rhythm_game/note/editor/editor_note.gd @@ -0,0 +1,5 @@ +class_name EditorNote extends Node + +@export var hit_beat: float = 0.0 +@export var type: Note.TYPE = Note.TYPE.TAP +@export var lane: int = 0 diff --git a/rhythm_game/note/editor/editor_note.gd.uid b/rhythm_game/note/editor/editor_note.gd.uid new file mode 100644 index 0000000..2d4a3f7 --- /dev/null +++ b/rhythm_game/note/editor/editor_note.gd.uid @@ -0,0 +1 @@ +uid://cgif6nuped1v1 diff --git a/rhythm_game/note/editor/editor_note_array.gd b/rhythm_game/note/editor/editor_note_array.gd new file mode 100644 index 0000000..f0b009c --- /dev/null +++ b/rhythm_game/note/editor/editor_note_array.gd @@ -0,0 +1,10 @@ +class_name EditorNoteArray extends NoteArray + +func _ready() -> void: + for note: EditorNote in get_children(): + if note == null: + return + # TODO: Make this insert sorted. + _beats.append(note.hit_beat) + _types.append(note.type) + _lanes.append(note.lane) diff --git a/rhythm_game/note/editor/editor_note_array.gd.uid b/rhythm_game/note/editor/editor_note_array.gd.uid new file mode 100644 index 0000000..f2b76c8 --- /dev/null +++ b/rhythm_game/note/editor/editor_note_array.gd.uid @@ -0,0 +1 @@ +uid://b1x25i77v5nag