5#ifndef RHYTHMGAME_CHARTLOADER_H
6#define RHYTHMGAME_CHARTLOADER_H
24#include <QtQmlIntegration/qqmlintegration.h>
40 using GaugeFactory = std::function<QList<gameplay_logic::rules::BmsGauge*>(
45 std::function<QList<gameplay_logic::rules::BmsGauge*>(
47 const QHash<QString, double>& initialValues)>;
50 using FindChartPath = std::function<std::optional<std::filesystem::path>(
52 const std::filesystem::path& hint)>;
94 bool p2Pre130) const -> std::unique_ptr<
gameplay_logic::ChartRunner>;
98 input::InputTranslator* inputTranslator,
107 QObject* parent =
nullptr);
128 const QString& filename,
130 bool player1AutoPlay,
134 bool player2AutoPlay,
143 const QString& filename,
165 bool samePattern) const;
184 bool player1AutoPlay,
188 bool player2AutoPlay,
203 const QString& filename,
204 const QString& identifier = "",
213 Q_INVOKABLE QVariantMap
QList< qint64 > randomSequence
Definition BeatorajaReplayImporter.cpp:74
size_t hash
Definition SongAssetStore.cpp:435
Database wrapper for SQLiteCpp.
Definition SqliteCppDb.h:30
The result of playing a chart.
Definition BmsScore.h:16
Loads charts and courses with the given parameters.
Definition ChartLoader.h:36
auto loadChartWithConfig(const QString &filename, resource_managers::Profile *player, const resource_managers::ChartPlayConfig &playConfig) const -> gameplay_logic::ChartRunner *
Definition ChartLoader.cpp:349
std::function< double(std::chrono::nanoseconds, gameplay_logic::Judgement)> HitValueFactory
Definition ChartLoader.h:49
std::function< QList< gameplay_logic::rules::BmsGauge * >(resource_managers::Profile *profile, double total, int noteCount)> GaugeFactory
Definition ChartLoader.h:43
Q_INVOKABLE gameplay_logic::ChartRunner * loadChart(const QString &filename, resource_managers::Profile *player1, bool player1AutoPlay, bool player1Replay, gameplay_logic::BmsScore *score1, resource_managers::Profile *player2, bool player2AutoPlay, bool player2Replay, gameplay_logic::BmsScore *score2) const
Loads a chart with the given parameters.
Definition ChartLoader.cpp:270
Q_INVOKABLE QVariantMap loadChartDataFromDb(QList< QString > identifiers) const
Loads chart datas for multiple charts from the database.
Definition ChartLoader.cpp:765
std::function< QList< gameplay_logic::rules::BmsGauge * >(resource_managers::Profile *profile, const QHash< QString, double > &initialValues)> GaugeFactoryCourse
Definition ChartLoader.h:47
Q_INVOKABLE gameplay_logic::ChartRunner * retryChart(gameplay_logic::ChartRunner *current, bool samePattern) const
Definition ChartLoader.cpp:407
Q_INVOKABLE gameplay_logic::ChartData * loadChartData(const QString &filename, const QString &identifier="", QList< int64_t > randomSequence={}) const
Definition ChartLoader.cpp:722
std::function< std::optional< std::filesystem::path >(const QString &hash, const std::filesystem::path &hint)> FindChartPath
Definition ChartLoader.h:52
Q_INVOKABLE bool canRetry(gameplay_logic::ChartRunner *current) const
Definition ChartLoader.cpp:396
Q_INVOKABLE gameplay_logic::CourseRunner * loadCourse(const resource_managers::Course &course, resource_managers::Profile *player1, bool player1AutoPlay, bool player1Replay, gameplay_logic::BmsScoreCourse *score1, resource_managers::Profile *player2, bool player2AutoPlay, bool player2Replay, gameplay_logic::BmsScoreCourse *score2) const
Loads a course with the given parameters.
Definition ChartLoader.cpp:449
The list of local profiles.
Definition ProfileList.h:55
Definition ChartDataFactory.h:23
Definition ChartFactory.h:53
Definition SongAssetStore.h:28
Namespace for database related classes and functions.
Definition QtArenaRoundLoader.h:15
Judgement
The possible judgements for note hits.
Definition Judgement.h:18
Classes and functions mostly related to gameplay.
Definition ArenaGameplaySource.h:10
Contains classes that wrap some functionality for use in QML.
Definition ProfileArenaIdentityProvider.h:9
Classes and functions related to loading and managing resources such as charts, sounds,...
Definition ProfileArenaIdentityProvider.h:12
Definition ChartDataFactory.h:34
Definition ChartPlayConfig.h:17