|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
One map-script definition: its id/size and which maps use it. More...
#include <scripts.h>
Public Member Functions | |
| ScriptDBEntry () | |
| Empty entry. | |
| ScriptDBEntry (QJsonValue &data) | |
| Build from a JSON value. | |
| void | deepLink () |
| Resolve the maps names to entries. | |
Public Attributes | |
| QString | name |
| Script name (key). | |
| var8 | ind = 0 |
| Script index. | |
| var8 | size = 0 |
| Script size. | |
| QVector< QString > | maps |
| Map names using this script. | |
| std::optional< var8 > | skip |
| Optional skip value. | |
| QVector< MapDBEntry * > | toMaps |
| Resolved map entries (deepLink). | |
One map-script definition: its id/size and which maps use it.
Plain-struct DB entry. maps is the list of map names that share this script; toMaps resolves them in deepLink(). skip is an optional skip-value. See db.md for the entry convention.
| ScriptDBEntry::ScriptDBEntry | ( | ) |
Empty entry.
Definition at line 35 of file scripts.cpp.
| ScriptDBEntry::ScriptDBEntry | ( | QJsonValue & | data | ) |
| void ScriptDBEntry::deepLink | ( | ) |
Resolve the maps names to entries.
Definition at line 53 of file scripts.cpp.
References MapsDB::getIndAt(), MapsDB::inst(), maps, name, and toMaps.
| var8 ScriptDBEntry::ind = 0 |
| QVector<QString> ScriptDBEntry::maps |
Map names using this script.
Definition at line 49 of file scripts.h.
Referenced by deepLink(), and ScriptDBEntry().
| QString ScriptDBEntry::name |
Script name (key).
Definition at line 45 of file scripts.h.
Referenced by deepLink(), and ScriptDBEntry().
| var8 ScriptDBEntry::size = 0 |
| std::optional<var8> ScriptDBEntry::skip |
| QVector<MapDBEntry*> ScriptDBEntry::toMaps |