|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One story-event definition: its name and where its flag lives in the save. More...
#include <eventdbentry.h>
Public Member Functions | |
| const QString | getName () const |
| < Event name. | |
| int | getInd () const |
| int | getByte () const |
| int | getBit () const |
| const QVector< QString > | getMaps () const |
| Associated map names. | |
| int | getMapsSize () const |
| const QString | getMapAt (int ind) const |
Associated map name ind (for QML). | |
| const QVector< MapDBEntry * > | getToMaps () const |
| Resolved associated maps. | |
| int | getToMapsSize () const |
| const MapDBEntry * | getToMapAt (int ind) const |
Resolved map ind (for QML). | |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| EventDBEntry () | |
| Empty entry (built by EventsDB). | |
| EventDBEntry (QJsonValue &data) | |
| Build from a JSON value. | |
| void | deepLink () |
| Resolve the associated maps. | |
| void | qmlRegister () const |
| Register with QML. | |
Protected Attributes | |
| QString | name = "" |
| int | ind = 0 |
| int | byte = 0 |
| int | bit = 0 |
| QVector< QString > | maps |
| QVector< MapDBEntry * > | toMaps |
Friends | |
| class | EventsDB |
| Owning DB constructs/populates entries. | |
One story-event definition: its name and where its flag lives in the save.
QObject-getter style DB entry. Pinpoints the event flag (byte / bit) the save's WorldEvents bitfield stores, and lists the maps it relates to (maps -> toMaps in deepLink). Surfaced lists use the size + invokable ...At() accessor workaround. See db.md.
Definition at line 42 of file eventdbentry.h.
|
protected |
Empty entry (built by EventsDB).
Definition at line 38 of file eventdbentry.cpp.
References qmlRegister().
|
protected |
Build from a JSON value.
Definition at line 41 of file eventdbentry.cpp.
References bit, ind, maps, name, and qmlRegister().
|
protected |
Resolve the associated maps.
Definition at line 54 of file eventdbentry.cpp.
References MapsDB::getIndAt(), MapsDB::inst(), maps, name, and toMaps.
| int EventDBEntry::getBit | ( | ) | const |
| int EventDBEntry::getByte | ( | ) | const |
| int EventDBEntry::getInd | ( | ) | const |
| const QString EventDBEntry::getMapAt | ( | int | ind | ) | const |
Associated map name ind (for QML).
Definition at line 114 of file eventdbentry.cpp.
| const QVector< QString > EventDBEntry::getMaps | ( | ) | const |
| int EventDBEntry::getMapsSize | ( | ) | const |
| const QString EventDBEntry::getName | ( | ) | const |
< Event name.
Internal event index. Byte in the SAV holding the flag. Bit within that byte. Count of associated map names. Count of resolved maps.
Definition at line 137 of file eventdbentry.cpp.
References name.
| const MapDBEntry * EventDBEntry::getToMapAt | ( | int | ind | ) | const |
Resolved map ind (for QML).
Definition at line 91 of file eventdbentry.cpp.
| const QVector< MapDBEntry * > EventDBEntry::getToMaps | ( | ) | const |
| int EventDBEntry::getToMapsSize | ( | ) | const |
| void EventDBEntry::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 99 of file eventdbentry.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 71 of file eventdbentry.cpp.
Referenced by EventDBEntry(), and EventDBEntry().
|
friend |
Owning DB constructs/populates entries.
Definition at line 82 of file eventdbentry.h.
References EventsDB.
Referenced by EventsDB.
|
protected |
Definition at line 78 of file eventdbentry.h.
Referenced by EventDBEntry(), and getBit().
|
protected |
Definition at line 77 of file eventdbentry.h.
Referenced by getByte().
|
protected |
Definition at line 76 of file eventdbentry.h.
Referenced by EventDBEntry(), getInd(), getMapAt(), and getToMapAt().
|
protected |
Definition at line 79 of file eventdbentry.h.
Referenced by deepLink(), EventDBEntry(), getMapAt(), getMaps(), and getMapsSize().
|
protected |
Definition at line 75 of file eventdbentry.h.
Referenced by deepLink(), EventDBEntry(), and getName().
|
protected |
Definition at line 80 of file eventdbentry.h.
Referenced by deepLink(), getToMapAt(), getToMaps(), and getToMapsSize().