|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The fly-destinations database – where Fly can take you, keyed by name. More...
#include <flydb.h>
Public Member Functions | |
| const QVector< FlyDBEntry * > | getStore () const |
| All fly destinations. | |
| const QHash< QString, FlyDBEntry * > | getInd () const |
| Name->entry index. | |
| int | getStoreSize () const |
| Destination count. | |
| FlyDBEntry * | getStoreAt (const int ind) const |
| Destination by store index (for QML). | |
| FlyDBEntry * | getIndAt (const QString val) const |
| Destination by name key (for QML). | |
| void | load () |
| Load destinations from JSON. | |
| void | index () |
| Build the name->entry index. | |
| void | deepLink () |
| Resolve each destination's map link. | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
| FlyDB () | |
| (Public here, but obtain the singleton via inst().) | |
Static Public Member Functions | |
| static FlyDB * | inst () |
| < Number of fly destinations. | |
Public Attributes | |
| QVector< FlyDBEntry * > | store |
| The loaded destinations. | |
| QHash< QString, FlyDBEntry * > | ind |
| Name->entry lookup. | |
The fly-destinations database – where Fly can take you, keyed by name.
Standard DB-singleton with a name index and a deepLink() pass (resolving each destination to its map). See CreditsDB / db.md for the shared pattern; the entry type lives in entries/flydbentry.h.
| FlyDB::FlyDB | ( | ) |
| void FlyDB::deepLink | ( | ) |
| const QHash< QString, FlyDBEntry * > FlyDB::getInd | ( | ) | const |
| FlyDBEntry * FlyDB::getIndAt | ( | const QString | val | ) | const |
| const QVector< FlyDBEntry * > FlyDB::getStore | ( | ) | const |
| FlyDBEntry * FlyDB::getStoreAt | ( | const int | ind | ) | const |
| int FlyDB::getStoreSize | ( | ) | const |
| void FlyDB::index | ( | ) |
|
static |
| void FlyDB::load | ( | ) |
Load destinations from JSON.
Definition at line 70 of file flydb.cpp.
References GameData::inst(), GameData::json(), and store.
Referenced by FlyDB().
| void FlyDB::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 122 of file flydb.cpp.
References Utility::qmlProtectUtil(), and store.
Referenced by DB::qmlProtect().
| QHash<QString, FlyDBEntry*> FlyDB::ind |
Name->entry lookup.
Definition at line 68 of file flydb.h.
Referenced by getInd(), getIndAt(), getStoreAt(), and index().
| QVector<FlyDBEntry*> FlyDB::store |
The loaded destinations.
Definition at line 67 of file flydb.h.
Referenced by deepLink(), getStore(), getStoreAt(), getStoreSize(), index(), load(), and qmlProtect().