|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The music database – every track, keyed by name. More...
#include <music.h>
Public Member Functions | |
| const QVector< MusicDBEntry * > | getStore () const |
| All tracks. | |
| const QHash< QString, MusicDBEntry * > | getInd () const |
| Name->entry index. | |
| int | getStoreSize () const |
| Track count. | |
| MusicDBEntry * | getStoreAt (int idx) const |
| Track by store index (for QML). | |
| MusicDBEntry * | getIndAt (const QString &key) const |
| Track by name key (for QML). | |
| void | load () |
| Load tracks from JSON. | |
| void | index () |
| Build the name->entry index. | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Static Public Member Functions | |
| static MusicDB * | inst () |
| < Number of tracks. | |
The music database – every track, keyed by name.
Standard DB-singleton with a name index (see CreditsDB / db.md).
|
nodiscard |
| MusicDBEntry * MusicDB::getIndAt | ( | const QString & | key | ) | const |
Track by name key (for QML).
Definition at line 53 of file music.cpp.
Referenced by MapDBEntry::deepLink().
|
nodiscard |
| MusicDBEntry * MusicDB::getStoreAt | ( | int | idx | ) | const |
|
static |
< Number of tracks.
The process-wide MusicDB singleton.
Definition at line 37 of file music.cpp.
Referenced by MapDBEntry::deepLink(), DB::music(), DB::qmlProtect(), and AreaAudio::randomize().
| void MusicDB::load | ( | ) |
Load tracks from JSON.
Definition at line 58 of file music.cpp.
References GameData::inst(), and GameData::json().
| void MusicDB::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 79 of file music.cpp.
References Utility::qmlProtectUtil().
Referenced by DB::qmlProtect().