|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The tilesets database, keyed by name. More...
#include <tileset.h>
Public Member Functions | |
| const QVector< TilesetDBEntry * > | getStore () const |
| All tilesets. | |
| const QHash< QString, TilesetDBEntry * > | getInd () const |
| Name->entry index. | |
| int | getStoreSize () const |
| Tileset count. | |
| TilesetDBEntry * | getStoreAt (int idx) const |
| Tileset by store index (for QML). | |
| TilesetDBEntry * | getIndAt (const QString &key) const |
| Tileset by name key (for QML). | |
| void | load () |
| Load tilesets 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 TilesetDB * | inst () |
| < Number of tilesets. | |
The tilesets database, keyed by name.
Standard DB-singleton with a name index (see CreditsDB / db.md).
|
nodiscard |
Name->entry index.
Definition at line 63 of file tileset.cpp.
| TilesetDBEntry * TilesetDB::getIndAt | ( | const QString & | key | ) | const |
Tileset by name key (for QML).
Definition at line 72 of file tileset.cpp.
Referenced by MapDBEntry::deepLink().
|
nodiscard |
All tilesets.
Definition at line 62 of file tileset.cpp.
| TilesetDBEntry * TilesetDB::getStoreAt | ( | int | idx | ) | const |
Tileset by store index (for QML).
Definition at line 66 of file tileset.cpp.
|
nodiscard |
Tileset count.
Definition at line 64 of file tileset.cpp.
| void TilesetDB::index | ( | ) |
Build the name->entry index.
Definition at line 87 of file tileset.cpp.
|
static |
< Number of tilesets.
The process-wide TilesetDB singleton.
Definition at line 56 of file tileset.cpp.
Referenced by MapDBEntry::deepLink(), DB::qmlProtect(), and DB::tilesets().
| void TilesetDB::load | ( | ) |
Load tilesets from JSON.
Definition at line 77 of file tileset.cpp.
References GameData::inst(), and GameData::json().
| void TilesetDB::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 98 of file tileset.cpp.
References Utility::qmlProtectUtil().
Referenced by DB::qmlProtect().