|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One missable definition: a script/sprite that can be hidden or shown. More...
#include <missabledbentry.h>
Public Member Functions | |
| const QString | getName () const |
| < Missable name. | |
| int | getInd () const |
| const QString | getMap () const |
| int | getSprite () const |
| bool | getDefShow () const |
| MapDBEntry * | getToMap () const |
| MapDBEntrySprite * | getToMapSprite () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| MissableDBEntry () | |
| Empty entry (built by MissablesDB). | |
| MissableDBEntry (QJsonValue &data) | |
| Build from a JSON value. | |
| void | deepLink () |
| Resolve the map + map-sprite links. | |
| void | qmlRegister () const |
| Register with QML. | |
Protected Attributes | |
| QString | name = "" |
| Backing field (read via getName()). | |
| int | ind = 0 |
| Backing field (read via getInd()). | |
| QString | map = "" |
| Backing field (read via getMap()). | |
| int | sprite = 0 |
| Backing field (read via getSprite()). | |
| bool | defShow = false |
| Backing field (read via getDefShow()). | |
| MapDBEntry * | toMap = nullptr |
| Resolved map (may be null; see note above). | |
| MapDBEntrySprite * | toMapSprite = nullptr |
| Resolved map sprite (may be null; see note above). | |
Friends | |
| class | MissablesDB |
| Owning DB constructs/populates entries. | |
One missable definition: a script/sprite that can be hidden or shown.
QObject-getter style DB entry. A "missable" is the game's mechanism for hiding/showing things based on progress (see the explanation above). Each entry names the missable and links to the toMap / toMapSprite it controls (resolved in deepLink). defShow is its default visibility.
Definition at line 51 of file missabledbentry.h.
|
protected |
Empty entry (built by MissablesDB).
Definition at line 35 of file missabledbentry.cpp.
References qmlRegister().
|
protected |
Build from a JSON value.
Definition at line 38 of file missabledbentry.cpp.
References defShow, ind, map, name, qmlRegister(), and sprite.
|
protected |
Resolve the map + map-sprite links.
Definition at line 50 of file missabledbentry.cpp.
References MapsDB::getInd(), MapsDB::inst(), map, name, sprite, toMap, and toMapSprite.
| bool MissableDBEntry::getDefShow | ( | ) | const |
Definition at line 108 of file missabledbentry.cpp.
References defShow.
| int MissableDBEntry::getInd | ( | ) | const |
| const QString MissableDBEntry::getMap | ( | ) | const |
| const QString MissableDBEntry::getName | ( | ) | const |
< Missable name.
Missable index (the bit it controls). Name of the map it's on. Sprite index on that map. Default visibility. Resolved map. Resolved map sprite.
Definition at line 128 of file missabledbentry.cpp.
References name.
| int MissableDBEntry::getSprite | ( | ) | const |
| MapDBEntry * MissableDBEntry::getToMap | ( | ) | const |
| MapDBEntrySprite * MissableDBEntry::getToMapSprite | ( | ) | const |
Definition at line 93 of file missabledbentry.cpp.
References toMapSprite.
| void MissableDBEntry::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 98 of file missabledbentry.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 82 of file missabledbentry.cpp.
Referenced by MissableDBEntry(), and MissableDBEntry().
|
friend |
Owning DB constructs/populates entries.
Definition at line 100 of file missabledbentry.h.
References MissablesDB.
Referenced by MissablesDB.
|
protected |
Backing field (read via getDefShow()).
Definition at line 88 of file missabledbentry.h.
Referenced by getDefShow(), and MissableDBEntry().
|
protected |
Backing field (read via getInd()).
Definition at line 81 of file missabledbentry.h.
Referenced by getInd(), and MissableDBEntry().
|
protected |
Backing field (read via getMap()).
Definition at line 84 of file missabledbentry.h.
Referenced by deepLink(), getMap(), and MissableDBEntry().
|
protected |
Backing field (read via getName()).
Definition at line 80 of file missabledbentry.h.
Referenced by deepLink(), getName(), and MissableDBEntry().
|
protected |
Backing field (read via getSprite()).
Definition at line 85 of file missabledbentry.h.
Referenced by deepLink(), getSprite(), and MissableDBEntry().
|
protected |
Resolved map (may be null; see note above).
Definition at line 97 of file missabledbentry.h.
Referenced by deepLink(), and getToMap().
|
protected |
Resolved map sprite (may be null; see note above).
Definition at line 98 of file missabledbentry.h.
Referenced by deepLink(), and getToMapSprite().