5#ifndef RHYTHMGAME_BMSNOTES_H
6#define RHYTHMGAME_BMSNOTES_H
41 return stream << static_cast<qint64>(time.timestamp) << time.position
49 auto& ret = stream >>
timestamp >> time.position >> time.beatPosition;
77 return stream << bpmChange.time << bpmChange.bpm << bpmChange.scroll;
83 return stream >> bpmChange.time >> bpmChange.bpm >> bpmChange.scroll;
103 auto operator<=>(const
Snap& other) const = default;
107operator<<(QDataStream& stream, const
Snap& snap) -> QDataStream&
109 return stream << snap.
numerator << snap.denominator;
115 return stream >> snap.numerator >> snap.denominator;
132 Q_PROPERTY(
Time time MEMBER time)
133 Q_PROPERTY(
Snap snap MEMBER snap)
139 auto operator<=>(const
Note& other) const = default;
143operator<<(QDataStream& stream, const
Note& note) -> QDataStream&
145 return stream << note.time << note.snap << note.type;
151 return stream >> note.time >> note.snap >> note.type;
157 Q_PROPERTY(QList<QList<Note>> notes READ getNotes CONSTANT)
158 Q_PROPERTY(QList<
Time> barLines READ getBarLines CONSTANT)
160 QList<QList<
Note>> notes;
161 QList<
Time> barLines;
166 QList<
Time> barLines,
167 QObject* parent =
nullptr);
169 auto getNotes() -> QList<QList<
Note>>&;
171 auto getNotes() const -> const QList<QList<
Note>>&;
172 auto getBarLines() const -> const QList<
Time>&;
174 friend auto operator<<(QDataStream& stream, const
BmsNotes& notes)
177 return stream << notes.notes << notes.barLines;
182 return stream >> notes.notes >> notes.barLines;
186 -> std::unique_ptr<BmsNotes>;
187 auto serialize() const -> QByteArray;
QString sha256
Definition BeatorajaReplayImporter.cpp:72
Type type
Definition BmsNotesData.cpp:33
int64_t timestamp
Definition ImportedScoreImporter.cpp:58
Database wrapper for SQLiteCpp.
Definition SqliteCppDb.h:30
Definition BmsNotes.h:155
friend auto operator>>(QDataStream &stream, BmsNotes ¬es) -> QDataStream &
Definition BmsNotes.h:180
auto operator<=>(const BpmChange &other) const =default
double bpm
Definition BmsNotes.h:58
Time time
Definition BmsNotes.h:57
double scroll
Definition BmsNotes.h:59
Definition BmsNotes.h:119
Type
Definition BmsNotes.h:123
Represents the position of the note in a measure.
Definition BmsNotes.h:90
double numerator
The position of the note in a measure, expressed in whole notes.
Definition BmsNotes.h:95
double denominator
How many whole notes fit into a measure.
Definition BmsNotes.h:99
double position
Position expressed in beats after applying scrolls.
Definition BmsNotes.h:19
double beatPosition
Position expressed in beats.
Definition BmsNotes.h:21
auto operator+(const Time &other) const -> Time
Definition BmsNotes.h:29
int64_t timestamp
Timestamp expressed in nanoseconds.
Definition BmsNotes.h:17
auto operator<=>(const Time &other) const =default
Namespace for database related classes and functions.
Definition QtArenaRoundLoader.h:15
Classes and functions mostly related to gameplay.
Definition ArenaGameplaySource.h:10
auto operator>>(QDataStream &stream, BmsGaugeInfo &gaugeInfo) -> QDataStream &
Definition BmsGaugeHistory.cpp:29
auto operator<<(QDataStream &stream, const BmsGaugeInfo &gaugeInfo) -> QDataStream &
Definition BmsGaugeHistory.cpp:23
Contains various helper classes and functions.
Definition Capitalize.h:9
std::string Sha256
Definition Sha256.h:10