|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
The story-events database – metadata for the 508 event flags, keyed by name. More...
#include <eventsdb.h>
Public Member Functions | |
| const QVector< EventDBEntry * > | getStore () const |
| All event definitions. | |
| const QHash< QString, EventDBEntry * > | getInd () const |
| Name->entry index. | |
| int | getStoreSize () const |
| Event count. | |
| EventDBEntry * | getStoreAt (const int ind) const |
| Event by store index (for QML). | |
| EventDBEntry * | getIndAt (const QString val) const |
| Event by name key (for QML). | |
| void | load () |
| Load events from JSON. | |
| void | index () |
| Build the name->entry index. | |
| void | deepLink () |
| Resolve each event's cross-DB links. | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Static Public Member Functions | |
| static EventsDB * | inst () |
| < Number of event definitions. | |
The story-events database – metadata for the 508 event flags, keyed by name.
The DB-side companion to the save's WorldEvents bitfield: it names and describes each known event flag. Standard DB-singleton with a name index and deepLink(). See CreditsDB / db.md; the entry type is in entries/eventdbentry.h.
Definition at line 40 of file eventsdb.h.
| void EventsDB::deepLink | ( | ) |
Resolve each event's cross-DB links.
Definition at line 107 of file eventsdb.cpp.
| const QHash< QString, EventDBEntry * > EventsDB::getInd | ( | ) | const |
Name->entry index.
Definition at line 46 of file eventsdb.cpp.
| EventDBEntry * EventsDB::getIndAt | ( | const QString | val | ) | const |
Event by name key (for QML).
Definition at line 64 of file eventsdb.cpp.
| const QVector< EventDBEntry * > EventsDB::getStore | ( | ) | const |
All event definitions.
Definition at line 41 of file eventsdb.cpp.
Referenced by WorldEvents::load(), and WorldEvents::save().
| EventDBEntry * EventsDB::getStoreAt | ( | const int | ind | ) | const |
Event by store index (for QML).
Definition at line 56 of file eventsdb.cpp.
| int EventsDB::getStoreSize | ( | ) | const |
Event count.
Definition at line 51 of file eventsdb.cpp.
Referenced by WorldEvents::load(), and WorldEvents::save().
| void EventsDB::index | ( | ) |
Build the name->entry index.
Definition at line 91 of file eventsdb.cpp.
|
static |
< Number of event definitions.
The process-wide EventsDB singleton.
Definition at line 35 of file eventsdb.cpp.
Referenced by DB::events(), WorldEvents::load(), DB::qmlProtect(), and WorldEvents::save().
| void EventsDB::load | ( | ) |
Load events from JSON.
Definition at line 69 of file eventsdb.cpp.
References GameData::inst(), and GameData::json().
| void EventsDB::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 121 of file eventsdb.cpp.
References Utility::qmlProtectUtil().
Referenced by DB::qmlProtect().