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

One music track: its name and bank/id, plus the maps that use it. More...

#include <music.h>

Public Member Functions

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

Public Attributes

QString name
 Track name (key).
var8 bank = 0
 Audio bank.
var8 id = 0
 Track id within the bank.
QVector< MapDBEntry * > toMaps
 Maps that play this track (back-ref, set by MapsDB).

Detailed Description

One music track: its name and bank/id, plus the maps that use it.

Plain-struct DB entry (public fields). toMaps is a back-reference filled in when MapsDB deep-links. See db.md for the entry convention.

See also
MusicDB.

Definition at line 38 of file music.h.

Constructor & Destructor Documentation

◆ MusicDBEntry() [1/2]

MusicDBEntry::MusicDBEntry ( )

Empty entry.

Definition at line 29 of file music.cpp.

◆ MusicDBEntry() [2/2]

MusicDBEntry::MusicDBEntry ( QJsonValue & data)

Build from a JSON value.

Definition at line 30 of file music.cpp.

References bank, and name.

Member Data Documentation

◆ bank

var8 MusicDBEntry::bank = 0

Audio bank.

Definition at line 43 of file music.h.

Referenced by MusicDBEntry(), and AreaAudio::setTo().

◆ id

var8 MusicDBEntry::id = 0

Track id within the bank.

Definition at line 44 of file music.h.

Referenced by AreaAudio::setTo().

◆ name

QString MusicDBEntry::name

Track name (key).

Definition at line 42 of file music.h.

Referenced by MusicDBEntry().

◆ toMaps

QVector<MapDBEntry*> MusicDBEntry::toMaps

Maps that play this track (back-ref, set by MapsDB).

Definition at line 46 of file music.h.


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