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

One elemental type: its name plus the moves and Pokemon of that type. More...

#include <types.h>

Public Member Functions

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

Public Attributes

QString name
 Internal type name (key).
var8 ind = 0
 Type index/id.
QString readable
 Human-readable type name.
QVector< MoveDBEntry * > toMoves
 Moves of this type (back-ref).
QVector< PokemonDBEntry * > toPokemon
 Pokemon of this type (back-ref).

Detailed Description

One elemental type: its name plus the moves and Pokemon of that type.

Plain-struct DB entry (public fields). toMoves / toPokemon are back-references filled in when MovesDB / PokemonDB deep-link. See db.md.

See also
TypesDB.

Definition at line 39 of file types.h.

Constructor & Destructor Documentation

◆ TypeDBEntry() [1/2]

TypeDBEntry::TypeDBEntry ( )

Empty entry.

Definition at line 29 of file types.cpp.

◆ TypeDBEntry() [2/2]

TypeDBEntry::TypeDBEntry ( QJsonValue & data)

Build from a JSON value.

Definition at line 30 of file types.cpp.

References ind, name, and readable.

Member Data Documentation

◆ ind

var8 TypeDBEntry::ind = 0

Type index/id.

Definition at line 44 of file types.h.

Referenced by TypeDBEntry().

◆ name

QString TypeDBEntry::name

Internal type name (key).

Definition at line 43 of file types.h.

Referenced by TypeDBEntry().

◆ readable

QString TypeDBEntry::readable

Human-readable type name.

Definition at line 45 of file types.h.

Referenced by PokemonMove::moveType(), and TypeDBEntry().

◆ toMoves

QVector<MoveDBEntry*> TypeDBEntry::toMoves

Moves of this type (back-ref).

Definition at line 47 of file types.h.

◆ toPokemon

QVector<PokemonDBEntry*> TypeDBEntry::toPokemon

Pokemon of this type (back-ref).

Definition at line 48 of file types.h.


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