|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The TM/HM database – the ordered list of TM/HM moves and their items. More...
#include <tmHm.h>
Public Member Functions | |
| const QVector< QString > | getStore () const |
| Move names in TM/HM order. | |
| int | getStoreSize () const |
| TM+HM count. | |
| const QVector< ItemDBEntry * > & | getTmHmItems () const |
| The item for each TM/HM (parallel to store). | |
| const QVector< MoveDBEntry * > & | getTmHmMoves () const |
| The move for each TM/HM (parallel to store). | |
| void | load () |
| Load the TM/HM list from JSON. | |
| void | deepLink () |
| Resolve the parallel item/move vectors. | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Static Public Member Functions | |
| static TmHmsDB * | inst () |
| < Number of TMs+HMs. | |
The TM/HM database – the ordered list of TM/HM moves and their items.
Slightly different shape from the other DBs: the store is just a vector of move-name strings (TM/HM order), and deepLink() resolves two parallel vectors – getTmHmItems (the item for each TM/HM) and getTmHmMoves (the move). No per-entry struct. See db.md for the singleton/deepLink convention.
| void TmHmsDB::deepLink | ( | ) |
Resolve the parallel item/move vectors.
Definition at line 56 of file tmHm.cpp.
References ItemsDB::getIndAt(), MovesDB::getIndAt(), ItemsDB::inst(), and MovesDB::inst().
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
static |
< Number of TMs+HMs.
The process-wide TmHmsDB singleton.
Definition at line 35 of file tmHm.cpp.
Referenced by DB::qmlProtect(), and DB::tmHms().
| void TmHmsDB::load | ( | ) |
Load the TM/HM list from JSON.
Definition at line 46 of file tmHm.cpp.
References GameData::inst(), and GameData::json().
| void TmHmsDB::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 75 of file tmHm.cpp.
References Utility::qmlProtectUtil().
Referenced by DB::qmlProtect().