Athena IO Library
|
ZQuestFile is an export format for save data. More...
#include <ZQuestFile.hpp>
Public Types | |
enum | Game { NoGame, LoZ, AoL, ALttP, LA, OoT, OoT3D, MM, OoS, OoA, FS, WW, FSA, MC, TP, PH, ST, SS, ALBW, GameCount } |
The list of games currently supported by ZQuest. More... | |
Public Member Functions | |
ZQuestFile () | |
ZQuest. | |
ZQuestFile (Game game, Endian endian, std::unique_ptr< atUint8[]> &&data, atUint32 length, const std::string &gameString=std::string()) | |
ZQuest. More... | |
void | setGame (Game game) |
setGame More... | |
Game | game () const |
game More... | |
void | setEndian (Endian endian) |
setEndian More... | |
Endian | endian () const |
endian More... | |
void | setData (std::unique_ptr< atUint8[]> &&data, atUint32 length) |
setData More... | |
atUint8 * | data () const |
data More... | |
atUint32 | length () const |
length More... | |
void | setGameString (const std::string &gameString) |
std::string | gameString () const |
gameString More... | |
Static Public Member Functions | |
static const std::vector< std::string > | gameStringList () |
Static Public Attributes | |
static const atUint32 | Major |
The current major version of the ZQuest format. | |
static const atUint32 | Minor |
The current minor version of the ZQuest format. | |
static const atUint32 | Revision |
The current revision of the ZQuest format. | |
static const atUint32 | Version |
The current version of the ZQuest format. | |
static const atUint32 | Magic |
The magic number used to identify the file e.g. "ZQS1". | |
Protected Attributes | |
Game | m_game |
std::string | m_gameString |
Endian | m_endian |
std::unique_ptr< atUint8[]> | m_data |
atUint32 | m_length |
ZQuestFile is an export format for save data.
Definition at line 34 of file ZQuestFile.hpp.
The list of games currently supported by ZQuest.
Definition at line 63 of file ZQuestFile.hpp.
athena::ZQuestFile::ZQuestFile | ( | Game | game, |
Endian | endian, | ||
std::unique_ptr< atUint8[]> && | data, | ||
atUint32 | length, | ||
const std::string & | gameString = std::string() |
||
) |
ZQuest.
game | |
endian | |
data | |
length |
atUint8* athena::ZQuestFile::data | ( | ) | const |
data
Endian athena::ZQuestFile::endian | ( | ) | const |
endian
Game athena::ZQuestFile::game | ( | ) | const |
game
std::string athena::ZQuestFile::gameString | ( | ) | const |
gameString
atUint32 athena::ZQuestFile::length | ( | ) | const |
length
void athena::ZQuestFile::setData | ( | std::unique_ptr< atUint8[]> && | data, |
atUint32 | length | ||
) |
setData
data | The data to assign |
length | The length of the data |
void athena::ZQuestFile::setEndian | ( | Endian | endian | ) |
setEndian
endian |
void athena::ZQuestFile::setGame | ( | Game | game | ) |
setGame
game |