|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
A warp-in point: a destination spot other maps' warp-outs land on. More...
#include <mapdbentrywarpin.h>
Public Member Functions | |
| int | getX () const |
| < Warp-in tile X. | |
| int | getY () const |
| const QVector< MapDBEntryWarpOut * > | getToConnectingWarps () const |
| Warp-outs that land here. | |
| int | getToConnectingWarpsSize () const |
| MapDBEntryWarpOut * | getToConnectingWarpsAt (const int ind) const |
Connecting warp ind (for QML). | |
| MapDBEntry * | getParent () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| MapDBEntryWarpIn () | |
| Empty entry. | |
| MapDBEntryWarpIn (const QJsonValue &data, MapDBEntry *const parent) | |
Build from JSON under parent. | |
| void | qmlRegister () const |
| Register with QML. | |
Protected Attributes | |
| int | x = 0 |
| Warp-in tile X. | |
| int | y = 0 |
| Warp-in tile Y. | |
| QVector< MapDBEntryWarpOut * > | toConnectingWarps |
| Warp-outs arriving here (filled by warp-out deepLink). | |
| MapDBEntry * | parent = nullptr |
| Owning map. | |
Friends | |
| class | MapDBEntry |
| class | MapsDB |
| class | MapDBEntryWarpOut |
A warp-in point: a destination spot other maps' warp-outs land on.
Counterpart to MapDBEntryWarpOut – a warp-out targets a warp-in by index. The toConnectingWarps list (surfaced via size + invokable accessor) is the set of warp-outs that arrive here. A leaf of MapDBEntry. See db.md.
Definition at line 35 of file mapdbentrywarpin.h.
|
protected |
|
protected |
Build from JSON under parent.
Definition at line 30 of file mapdbentrywarpin.cpp.
References MapDBEntry, parent, qmlRegister(), x, and y.
| MapDBEntry * MapDBEntryWarpIn::getParent | ( | ) | const |
Definition at line 50 of file mapdbentrywarpin.cpp.
References MapDBEntry, and parent.
| const QVector< MapDBEntryWarpOut * > MapDBEntryWarpIn::getToConnectingWarps | ( | ) | const |
Warp-outs that land here.
Definition at line 60 of file mapdbentrywarpin.cpp.
References toConnectingWarps.
| MapDBEntryWarpOut * MapDBEntryWarpIn::getToConnectingWarpsAt | ( | const int | ind | ) | const |
Connecting warp ind (for QML).
Definition at line 70 of file mapdbentrywarpin.cpp.
References MapDBEntryWarpOut, and toConnectingWarps.
| int MapDBEntryWarpIn::getToConnectingWarpsSize | ( | ) | const |
Definition at line 65 of file mapdbentrywarpin.cpp.
References toConnectingWarps.
| int MapDBEntryWarpIn::getX | ( | ) | const |
< Warp-in tile X.
Warp-in tile Y. Count of warp-outs arriving here. Owning map.
Definition at line 83 of file mapdbentrywarpin.cpp.
References x.
| int MapDBEntryWarpIn::getY | ( | ) | const |
| void MapDBEntryWarpIn::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 55 of file mapdbentrywarpin.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 39 of file mapdbentrywarpin.cpp.
Referenced by MapDBEntryWarpIn(), and MapDBEntryWarpIn().
|
friend |
Definition at line 67 of file mapdbentrywarpin.h.
References MapDBEntry.
Referenced by getParent(), MapDBEntry, and MapDBEntryWarpIn().
|
friend |
Definition at line 69 of file mapdbentrywarpin.h.
References MapDBEntryWarpOut.
Referenced by getToConnectingWarpsAt(), and MapDBEntryWarpOut.
|
friend |
|
protected |
Owning map.
Definition at line 65 of file mapdbentrywarpin.h.
Referenced by getParent(), and MapDBEntryWarpIn().
|
protected |
Warp-outs arriving here (filled by warp-out deepLink).
Definition at line 64 of file mapdbentrywarpin.h.
Referenced by getToConnectingWarps(), getToConnectingWarpsAt(), and getToConnectingWarpsSize().
|
protected |
Warp-in tile X.
Definition at line 61 of file mapdbentrywarpin.h.
Referenced by getX(), and MapDBEntryWarpIn().
|
protected |
Warp-in tile Y.
Definition at line 62 of file mapdbentrywarpin.h.
Referenced by getY(), and MapDBEntryWarpIn().