Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
EventPokemonDB Class Reference

Database of real-world event/distribution Pokemon presets. More...

#include <eventpokemondb.h>

Inheritance diagram for EventPokemonDB:
Collaboration diagram for EventPokemonDB:

Public Member Functions

const QVector< EventPokemonDBEntry * > getStore () const
 All event Pokemon.
int getStoreSize () const
 Event-Pokemon count.
EventPokemonDBEntrygetStoreAt (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 EventPokemonDBinst ()
 < Number of event Pokemon.

Detailed Description

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.

See also
EventPokemonDBEntry, DB.

Definition at line 40 of file eventpokemondb.h.

Member Function Documentation

◆ deepLink()

void EventPokemonDB::deepLink ( )

Resolve each entry's species/move links.

Definition at line 83 of file eventpokemondb.cpp.

◆ getStore()

const QVector< EventPokemonDBEntry * > EventPokemonDB::getStore ( ) const

All event Pokemon.

Definition at line 43 of file eventpokemondb.cpp.

◆ getStoreAt()

EventPokemonDBEntry * EventPokemonDB::getStoreAt ( const int ind) const

Event Pokemon by store index (for QML).

Definition at line 53 of file eventpokemondb.cpp.

◆ getStoreSize()

int EventPokemonDB::getStoreSize ( ) const

Event-Pokemon count.

Definition at line 48 of file eventpokemondb.cpp.

◆ inst()

EventPokemonDB * EventPokemonDB::inst ( )
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().

◆ load()

void EventPokemonDB::load ( )

Load event Pokemon from JSON.

Definition at line 61 of file eventpokemondb.cpp.

References GameData::inst(), and GameData::json().

◆ qmlProtect()

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().


The documentation for this class was generated from the following files: