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

One tileset definition: its type, graphics/block/collision pointers, etc. More...

#include <tileset.h>

Public Member Functions

 TilesetDBEntry ()
 Empty entry.
 TilesetDBEntry (QJsonValue &data)
 Build from a JSON value.
TilesetType typeAsEnum () const
 type parsed to the TilesetType enum.

Public Attributes

QString name
 Internal tileset name (key).
QString type
 Behaviour type as a string.
QString nameAlias
 Friendly name.
QString typeAlias
 Friendly type label.
var8 ind = 0
 Tileset index.
var8 talk [3] = {0, 0, 0}
 Talk-over tile ids.
var8 grass = 0
 Grass tile id.
var8 bank = 0
 Bank holding GFX + blocks.
var16 blockPtr = 0
 Blocks pointer.
var16 gfxPtr = 0
 Graphics pointer.
var16 collPtr = 0
 Collision pointer.
QVector< MapDBEntry * > toMaps
 Maps using this tileset (back-ref).

Detailed Description

One tileset definition: its type, graphics/block/collision pointers, etc.

Plain-struct DB entry. Carries the canonical tileset data the save's AreaTileset mirrors (bank/pointers, grass tile, talk-over tiles). typeAsEnum converts the type string to TilesetType. toMaps lists the maps using this tileset (back-ref). See db.md.

See also
TilesetDB, AreaTileset (the save-side tileset).

Definition at line 45 of file tileset.h.

Constructor & Destructor Documentation

◆ TilesetDBEntry() [1/2]

TilesetDBEntry::TilesetDBEntry ( )

Empty entry.

Definition at line 29 of file tileset.cpp.

◆ TilesetDBEntry() [2/2]

TilesetDBEntry::TilesetDBEntry ( QJsonValue & data)

Build from a JSON value.

Definition at line 30 of file tileset.cpp.

References bank, blockPtr, collPtr, gfxPtr, grass, ind, name, nameAlias, talk, talkCount, type, and typeAlias.

Member Function Documentation

◆ typeAsEnum()

TilesetType TilesetDBEntry::typeAsEnum ( ) const

type parsed to the TilesetType enum.

Definition at line 49 of file tileset.cpp.

References CAVE, INDOOR, OUTDOOR, and type.

Member Data Documentation

◆ bank

var8 TilesetDBEntry::bank = 0

Bank holding GFX + blocks.

Definition at line 59 of file tileset.h.

Referenced by TilesetDBEntry().

◆ blockPtr

var16 TilesetDBEntry::blockPtr = 0

Blocks pointer.

Definition at line 60 of file tileset.h.

Referenced by TilesetDBEntry().

◆ collPtr

var16 TilesetDBEntry::collPtr = 0

Collision pointer.

Definition at line 62 of file tileset.h.

Referenced by TilesetDBEntry().

◆ gfxPtr

var16 TilesetDBEntry::gfxPtr = 0

Graphics pointer.

Definition at line 61 of file tileset.h.

Referenced by TilesetDBEntry().

◆ grass

var8 TilesetDBEntry::grass = 0

Grass tile id.

Definition at line 58 of file tileset.h.

Referenced by TilesetDBEntry().

◆ ind

var8 TilesetDBEntry::ind = 0

Tileset index.

Definition at line 56 of file tileset.h.

Referenced by TilesetDBEntry().

◆ name

QString TilesetDBEntry::name

Internal tileset name (key).

Definition at line 49 of file tileset.h.

Referenced by TilesetDBEntry().

◆ nameAlias

QString TilesetDBEntry::nameAlias

Friendly name.

Definition at line 51 of file tileset.h.

Referenced by TilesetDBEntry().

◆ talk

var8 TilesetDBEntry::talk[3] = {0, 0, 0}

Talk-over tile ids.

Definition at line 57 of file tileset.h.

Referenced by TilesetDBEntry().

◆ toMaps

QVector<MapDBEntry*> TilesetDBEntry::toMaps

Maps using this tileset (back-ref).

Definition at line 64 of file tileset.h.

◆ type

QString TilesetDBEntry::type

Behaviour type as a string.

Definition at line 50 of file tileset.h.

Referenced by TilesetDBEntry(), and typeAsEnum().

◆ typeAlias

QString TilesetDBEntry::typeAlias

Friendly type label.

Definition at line 52 of file tileset.h.

Referenced by TilesetDBEntry().


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