|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The aggregate of every game-data database – the single entry point that boots the whole db layer. More...
#include <db.h>
Public Member Functions | |
| GameData * | json () const |
The GameData JSON source (backs json). | |
| CreditsDB * | credits () const |
The credits database (backs credits). | |
| EventPokemonDB * | eventPokemon () const |
The event-Pokemon database (backs eventPokemon). | |
| EventsDB * | events () const |
The events database (backs events). | |
| Examples * | examples () const |
The examples database (backs examples). | |
| Names * | names () const |
The names database (backs names). | |
| FlyDB * | fly () const |
The fly-destinations database (backs fly). | |
| FontsDB * | fonts () const |
The fonts database (backs fonts). | |
| GameCornerDB * | gameCorner () const |
The Game Corner database (backs gameCorner). | |
| HiddenCoinsDB * | hiddenCoins () const |
The hidden-coins database (backs hiddenCoins). | |
| HiddenItemsDB * | hiddenItems () const |
The hidden-items database (backs hiddenItems). | |
| ItemsDB * | items () const |
The items database (backs items). | |
| MapsDB * | maps () const |
The maps database (backs maps). | |
| MissablesDB * | missables () const |
The missables database (backs missables). | |
| MovesDB * | moves () const |
The moves database (backs moves). | |
| MusicDB * | music () const |
The music database (backs music). | |
| PokemonDB * | pokemon () const |
The Pokemon database (backs pokemon). | |
| ScriptsDB * | scripts () const |
The scripts database (backs scripts). | |
| SpriteSetDB * | spriteSets () const |
The sprite-sets database (backs spriteSets). | |
| SpritesDB * | sprites () const |
The sprites database (backs sprites). | |
| StarterPokemonDB * | starters () const |
The starters database (backs starters). | |
| TilesetDB * | tilesets () const |
The tilesets database (backs tilesets). | |
| TmHmsDB * | tmHms () const |
The TM/HM database (backs tmHms). | |
| TradesDB * | trades () const |
The trades database (backs trades). | |
| TrainersDB * | trainers () const |
The trainers database (backs trainers). | |
| TypesDB * | types () const |
The types database (backs types). | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin the DB aggregate (and every sub-DB) to C++ ownership so QML never GCs them. | |
| void | qmlHook (QQmlContext *const context) const |
| Install this DB into a QML context (exposes the db root). | |
Static Public Member Functions | |
| static DB * | inst () |
| < Raw parsed JSON assets behind every DB. | |
The aggregate of every game-data database – the single entry point that boots the whole db layer.
db holds the game's static reference data (every Pokemon, move, item, map, font glyph, trainer, ...), loaded from JSON assets, independent of any save file. This class gathers all 26 sub-databases under one QObject and exposes each as a Q_PROPERTY, so QML reaches them as db.pokemon, db.moves, etc.
|
nodiscard |
The credits database (backs credits).
Definition at line 42 of file db.cpp.
References CreditsDB::inst().
|
nodiscard |
The event-Pokemon database (backs eventPokemon).
Definition at line 43 of file db.cpp.
References EventPokemonDB::inst().
|
nodiscard |
The events database (backs events).
Definition at line 44 of file db.cpp.
References EventsDB::inst().
|
nodiscard |
The examples database (backs examples).
Definition at line 45 of file db.cpp.
References Examples::inst().
|
nodiscard |
The fly-destinations database (backs fly).
Definition at line 47 of file db.cpp.
References FlyDB::inst().
|
nodiscard |
|
nodiscard |
The Game Corner database (backs gameCorner).
Definition at line 49 of file db.cpp.
References GameCornerDB::inst().
|
nodiscard |
The hidden-coins database (backs hiddenCoins).
Definition at line 50 of file db.cpp.
References HiddenCoinsDB::inst().
|
nodiscard |
The hidden-items database (backs hiddenItems).
Definition at line 51 of file db.cpp.
References HiddenItemsDB::inst().
|
staticnodiscard |
< Raw parsed JSON assets behind every DB.
Credits/attribution entries. Event/gift Pokemon definitions. Story-event metadata. Example player/pokemon/rival presets. Default player/pokemon name lists. Fly destinations. In-game font glyphs / text encoding. Game Corner prize data. Hidden-coin definitions. Hidden-item definitions. All items (with prices). Every map and its layout/connections. Missable-sprite definitions. All moves (type, PP, ...). Music tracks. All 151 species and their data. Map script metadata. Sprite-set definitions. Individual sprite definitions. Valid starter species. Tileset definitions. TM/HM mappings. In-game trade definitions. Trainer rosters. Type chart / type names. Bootstraps and returns the process-wide DB (creates + loads + indexes + deep-links).
Definition at line 33 of file db.cpp.
Referenced by bootDatabase().
|
nodiscard |
|
nodiscard |
The GameData JSON source (backs json).
Definition at line 41 of file db.cpp.
References GameData::inst().
|
nodiscard |
|
nodiscard |
The missables database (backs missables).
Definition at line 54 of file db.cpp.
References MissablesDB::inst().
|
nodiscard |
|
nodiscard |
|
nodiscard |
|
nodiscard |
The Pokemon database (backs pokemon).
Definition at line 57 of file db.cpp.
References PokemonDB::inst().
| void DB::qmlHook | ( | QQmlContext *const | context | ) | const |
| void DB::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin the DB aggregate (and every sub-DB) to C++ ownership so QML never GCs them.
Definition at line 192 of file db.cpp.
References CreditsDB::inst(), EventPokemonDB::inst(), EventsDB::inst(), Examples::inst(), FlyDB::inst(), FontsDB::inst(), GameCornerDB::inst(), GameData::inst(), HiddenCoinsDB::inst(), HiddenItemsDB::inst(), ItemsDB::inst(), MapsDB::inst(), MissablesDB::inst(), MovesDB::inst(), MusicDB::inst(), Names::inst(), PokemonDB::inst(), ScriptsDB::inst(), SpritesDB::inst(), SpriteSetDB::inst(), StarterPokemonDB::inst(), TilesetDB::inst(), TmHmsDB::inst(), TradesDB::inst(), TrainersDB::inst(), TypesDB::inst(), AbstractHiddenItemDB::qmlProtect(), CreditsDB::qmlProtect(), EventPokemonDB::qmlProtect(), EventsDB::qmlProtect(), Examples::qmlProtect(), FlyDB::qmlProtect(), FontsDB::qmlProtect(), GameCornerDB::qmlProtect(), GameData::qmlProtect(), ItemsDB::qmlProtect(), MapsDB::qmlProtect(), MissablesDB::qmlProtect(), MovesDB::qmlProtect(), MusicDB::qmlProtect(), Names::qmlProtect(), PokemonDB::qmlProtect(), ScriptsDB::qmlProtect(), SpritesDB::qmlProtect(), SpriteSetDB::qmlProtect(), StarterPokemonDB::qmlProtect(), TilesetDB::qmlProtect(), TmHmsDB::qmlProtect(), TradesDB::qmlProtect(), TrainersDB::qmlProtect(), TypesDB::qmlProtect(), and Utility::qmlProtectUtil().
|
nodiscard |
The scripts database (backs scripts).
Definition at line 58 of file db.cpp.
References ScriptsDB::inst().
|
nodiscard |
The sprites database (backs sprites).
Definition at line 60 of file db.cpp.
References SpritesDB::inst().
|
nodiscard |
The sprite-sets database (backs spriteSets).
Definition at line 59 of file db.cpp.
References SpriteSetDB::inst().
|
nodiscard |
The starters database (backs starters).
Definition at line 61 of file db.cpp.
References StarterPokemonDB::inst().
|
nodiscard |
The tilesets database (backs tilesets).
Definition at line 62 of file db.cpp.
References TilesetDB::inst().
|
nodiscard |
|
nodiscard |
The trades database (backs trades).
Definition at line 64 of file db.cpp.
References TradesDB::inst().
|
nodiscard |
The trainers database (backs trainers).
Definition at line 65 of file db.cpp.
References TrainersDB::inst().
|
nodiscard |