|
RhythmGame 1.4.3
|
The result of playing a chart. More...
#include <BmsScore.h>


Classes | |
| struct | PreparedData |
Public Types | |
| enum class | Source { RhythmGame = 0 , Lr2 = 1 , Beatoraja = 2 , Bokutachi = 3 } |
| enum class | LongNoteMode { Ln = 0 , Cn = 1 , Hcn = 2 } |
| enum class | SubmissionState { NotSubmitted , NotSubmitting , Submitting , Submitted , Failed , Duplicate } |
Signals | |
| void | submissionStateChanged () |
Public Member Functions | |
| BmsScore (std::unique_ptr< BmsResult > result, std::unique_ptr< BmsReplayData > replayData, std::unique_ptr< BmsGaugeHistory > gaugeHistory, QObject *parent=nullptr) | |
| BmsScore (std::unique_ptr< BmsResult > result, std::unique_ptr< BmsReplayData > replayData, std::unique_ptr< BmsGaugeHistory > gaugeHistory, QObject *parent, Source source, LongNoteMode longNoteMode) | |
| auto | getResult () const -> BmsResult * |
| auto | getReplayData () const -> BmsReplayData * |
| auto | getGaugeHistory () const -> BmsGaugeHistory * |
| auto | getSource () const -> Source |
| auto | getLongNoteMode () const -> LongNoteMode |
| auto | getSourceName () const -> QString |
| auto | isImported () const -> bool |
| void | setSubmissionState (SubmissionState newState) |
| auto | getSubmissionState () const -> SubmissionState |
| auto | clone (QObject *parent=nullptr) const -> std::unique_ptr< BmsScore > |
| auto | prepareSave () const -> PreparedData |
| void | save (db::SqliteCppDb &db) const |
| void | save (db::SqliteCppDb &db, const PreparedData &prepared) const |
Static Public Member Functions | |
| static auto | fromImportedResult (std::unique_ptr< BmsResult > result, Source source, LongNoteMode longNoteMode=LongNoteMode::Ln, QObject *parent=nullptr) -> std::unique_ptr< BmsScore > |
| Construct an incomplete score from imported aggregate result data. | |
| static auto | sourceName (Source source) -> QString |
| static auto | fromRemoteJson (const QByteArray &data, const QString &expectedGuid) -> std::unique_ptr< BmsScore > |
Properties | |
| BmsResult * | result |
| The aggregated info about the score. | |
| BmsReplayData * | replayData |
| The replay data of the score. | |
| BmsGaugeHistory * | gaugeHistory |
| The gauge history of the score. | |
| Source | source { Source::RhythmGame } |
| Whether this is an incomplete score imported without the data produced by a local play. | |
| QString | sourceName |
| bool | imported |
| SubmissionState | submissionState { SubmissionState::NotSubmitted } |
| The state of score submission to the online server. | |
The result of playing a chart.
|
strong |
|
strong |
|
strong |
|
explicit |
| gameplay_logic::BmsScore::BmsScore | ( | std::unique_ptr< BmsResult > | result, |
| std::unique_ptr< BmsReplayData > | replayData, | ||
| std::unique_ptr< BmsGaugeHistory > | gaugeHistory, | ||
| QObject * | parent, | ||
| Source | source, | ||
| LongNoteMode | longNoteMode | ||
| ) |
| auto gameplay_logic::BmsScore::clone | ( | QObject * | parent = nullptr | ) | const -> std::unique_ptr<BmsScore> |
Owns a copy of the score and its attachments, independent of QML lists.
|
static |
Construct an incomplete score from imported aggregate result data.
Imported scores intentionally have no replay or gauge history.
|
static |
| auto gameplay_logic::BmsScore::getGaugeHistory | ( | ) | const -> BmsGaugeHistory* |
| auto gameplay_logic::BmsScore::getLongNoteMode | ( | ) | const -> LongNoteMode |
| auto gameplay_logic::BmsScore::getReplayData | ( | ) | const -> BmsReplayData* |
| auto gameplay_logic::BmsScore::getResult | ( | ) | const -> BmsResult* |
| auto gameplay_logic::BmsScore::getSource | ( | ) | const -> Source |
| auto gameplay_logic::BmsScore::getSourceName | ( | ) | const -> QString |
| auto gameplay_logic::BmsScore::getSubmissionState | ( | ) | const -> SubmissionState |
| auto gameplay_logic::BmsScore::isImported | ( | ) | const -> bool |
| auto gameplay_logic::BmsScore::prepareSave | ( | ) | const -> PreparedData |
| void gameplay_logic::BmsScore::save | ( | db::SqliteCppDb & | db | ) | const |
| void gameplay_logic::BmsScore::save | ( | db::SqliteCppDb & | db, |
| const PreparedData & | prepared | ||
| ) | const |
| void gameplay_logic::BmsScore::setSubmissionState | ( | SubmissionState | newState | ) |
|
static |
|
signal |
|
read |
The gauge history of the score.
|
read |
|
read |
The replay data of the score.
|
read |
The aggregated info about the score.
|
read |
Whether this is an incomplete score imported without the data produced by a local play.
|
read |
| SubmissionState gameplay_logic::BmsScore::submissionState { SubmissionState::NotSubmitted } |
The state of score submission to the online server.