|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One sign defined on a map: its position and text id. More...
#include <mapdbentrysign.h>
Public Member Functions | |
| int | getX () const |
| < Sign tile X. | |
| int | getY () const |
| int | getTextID () const |
| MapDBEntry * | getParent () const |
| void | qmlProtect (const QQmlEngine *const engine) const |
| Pin to C++ ownership. | |
Protected Member Functions | |
| MapDBEntrySign () | |
| Empty entry. | |
| MapDBEntrySign (const QJsonValue &data, MapDBEntry *const parent) | |
Build from JSON under parent. | |
| void | qmlRegister () const |
| Register with QML. | |
Protected Attributes | |
| int | x = 0 |
| Sign tile X. | |
| int | y = 0 |
| Sign tile Y. | |
| int | textID = 0 |
| Text id shown when read. | |
| MapDBEntry * | parent = nullptr |
| Owning map. | |
Friends | |
| class | MapDBEntry |
One sign defined on a map: its position and text id.
The DB counterpart to the save's SignData. A leaf of MapDBEntry. See db.md.
Definition at line 32 of file mapdbentrysign.h.
|
protected |
|
protected |
Build from JSON under parent.
Definition at line 54 of file mapdbentrysign.cpp.
References MapDBEntry, parent, qmlRegister(), textID, x, and y.
| MapDBEntry * MapDBEntrySign::getParent | ( | ) | const |
Definition at line 30 of file mapdbentrysign.cpp.
References MapDBEntry, and parent.
| int MapDBEntrySign::getTextID | ( | ) | const |
Definition at line 40 of file mapdbentrysign.cpp.
References textID.
Referenced by SignData::setTo().
| int MapDBEntrySign::getX | ( | ) | const |
< Sign tile X.
Sign tile Y. Text id shown when read. Owning map.
Definition at line 50 of file mapdbentrysign.cpp.
References x.
Referenced by SignData::setTo().
| int MapDBEntrySign::getY | ( | ) | const |
Definition at line 45 of file mapdbentrysign.cpp.
References y.
Referenced by SignData::setTo().
| void MapDBEntrySign::qmlProtect | ( | const QQmlEngine *const | engine | ) | const |
Pin to C++ ownership.
Definition at line 35 of file mapdbentrysign.cpp.
References Utility::qmlProtectUtil().
|
protected |
Register with QML.
Definition at line 63 of file mapdbentrysign.cpp.
Referenced by MapDBEntrySign(), and MapDBEntrySign().
|
friend |
Definition at line 64 of file mapdbentrysign.h.
References MapDBEntry.
Referenced by getParent(), MapDBEntry, and MapDBEntrySign().
|
protected |
Owning map.
Definition at line 62 of file mapdbentrysign.h.
Referenced by getParent(), and MapDBEntrySign().
|
protected |
Text id shown when read.
Definition at line 60 of file mapdbentrysign.h.
Referenced by getTextID(), and MapDBEntrySign().
|
protected |
Sign tile X.
Definition at line 56 of file mapdbentrysign.h.
Referenced by getX(), and MapDBEntrySign().
|
protected |
Sign tile Y.
Definition at line 57 of file mapdbentrysign.h.
Referenced by getY(), and MapDBEntrySign().