|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
Database of real-world event/distribution Pokemon presets. More...
#include <eventpokemondb.h>
Public Member Functions | |
| const QVector< EventPokemonDBEntry * > | getStore () const |
| All event Pokemon. | |
| int | getStoreSize () const |
| Event-Pokemon count. | |
| EventPokemonDBEntry * | getStoreAt (const int ind) const |
| Event Pokemon by store index (for QML). | |
| void | load () |
| Load event Pokemon from JSON. | |
| void | deepLink () |
| Resolve each entry's species/move links. | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Static Public Member Functions | |
| static EventPokemonDB * | inst () |
| < Number of event Pokemon. | |
Database of real-world event/distribution Pokemon presets.
As the note above says: Pokemon handed out at real-life events around the world. Standard DB-singleton (no key index; accessed by store index) with a deepLink() pass. See CreditsDB / db.md; the entry type is in entries/eventpokemondbentry.h.
Definition at line 40 of file eventpokemondb.h.
| void EventPokemonDB::deepLink | ( | ) |
Resolve each entry's species/move links.
Definition at line 83 of file eventpokemondb.cpp.
| const QVector< EventPokemonDBEntry * > EventPokemonDB::getStore | ( | ) | const |
All event Pokemon.
Definition at line 43 of file eventpokemondb.cpp.
| EventPokemonDBEntry * EventPokemonDB::getStoreAt | ( | const int | ind | ) | const |
Event Pokemon by store index (for QML).
Definition at line 53 of file eventpokemondb.cpp.
| int EventPokemonDB::getStoreSize | ( | ) | const |
Event-Pokemon count.
Definition at line 48 of file eventpokemondb.cpp.
|
static |
< Number of event Pokemon.
The process-wide EventPokemonDB singleton.
Definition at line 37 of file eventpokemondb.cpp.
Referenced by DB::eventPokemon(), and DB::qmlProtect().
| void EventPokemonDB::load | ( | ) |
Load event Pokemon from JSON.
Definition at line 61 of file eventpokemondb.cpp.
References GameData::inst(), and GameData::json().
| void EventPokemonDB::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 97 of file eventpokemondb.cpp.
References Utility::qmlProtectUtil().
Referenced by DB::qmlProtect().