Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
Loading...
Searching...
No Matches
SpriteDBEntry Struct Reference

One sprite definition: its name/picture-id and the maps that use it. More...

#include <sprites.h>

Public Member Functions

 SpriteDBEntry ()
 Empty entry.
 SpriteDBEntry (QJsonValue &data)
 Build from a JSON value.

Public Attributes

QString name
 Sprite name (key).
var8 ind = 0
 Picture id.
QVector< MapDBEntrySprite * > toMaps
 Map-sprites using this picture (back-ref).

Detailed Description

One sprite definition: its name/picture-id and the maps that use it.

Plain-struct DB entry. toMaps is a back-reference of every map-sprite that uses this picture. See db.md.

See also
SpritesDB, SpriteData (the save-side sprite), SpriteSetDB.

Definition at line 38 of file sprites.h.

Constructor & Destructor Documentation

◆ SpriteDBEntry() [1/2]

SpriteDBEntry::SpriteDBEntry ( )

Empty entry.

Definition at line 29 of file sprites.cpp.

◆ SpriteDBEntry() [2/2]

SpriteDBEntry::SpriteDBEntry ( QJsonValue & data)

Build from a JSON value.

Definition at line 30 of file sprites.cpp.

References ind, and name.

Member Data Documentation

◆ ind

var8 SpriteDBEntry::ind = 0

Picture id.

Definition at line 43 of file sprites.h.

Referenced by SpriteData::load(), and SpriteDBEntry().

◆ name

QString SpriteDBEntry::name

Sprite name (key).

Definition at line 42 of file sprites.h.

Referenced by SpriteDBEntry().

◆ toMaps

QVector<MapDBEntrySprite*> SpriteDBEntry::toMaps

Map-sprites using this picture (back-ref).

Definition at line 45 of file sprites.h.


The documentation for this struct was generated from the following files: