#include <savefile.h>
Public Member Functions | |
| SavePartInfo (uint32 descMaxLength, uint32 gameID, uint32 gameVersion, byte endian, uint32 varCount) | |
| const char * | getDesc () const |
| uint32 | getDescMaxLength () const |
| void | setVarCount (uint32 varCount) |
| void | setDesc (const char *desc=0) |
| void | setDesc (const byte *desc, uint32 size) |
| bool | read (Common::ReadStream &stream) override |
| bool | write (Common::WriteStream &stream) const override |
Public Member Functions inherited from Gob::SavePart | |
| virtual uint32 | getSize () const |
Static Public Attributes | |
| static const uint32 | kVersion = 1 |
| static const uint32 | kID = MKTAG('I','N','F','O') |
Additional Inherited Members | |
Protected Attributes inherited from Gob::SavePart | |
| SaveHeader | _header |
A save part containing informations about the save's game.
| Gob::SavePartInfo::SavePartInfo | ( | uint32 | descMaxLength, |
| uint32 | gameID, | ||
| uint32 | gameVersion, | ||
| byte | endian, | ||
| uint32 | varCount | ||
| ) |
The constructor.
| descMaxLength | The maximal number of bytes that fit into the description. |
| gameID | An ID for the game (Gob1, Gob2, Gob3, ...). |
| gameVersion | An ID for game specific versioning |
| endian | Endianness of the platform the game originally ran on. |
| varCount | The number of script variables. |
| const char* Gob::SavePartInfo::getDesc | ( | ) | const |
Return the save's description.
| uint32 Gob::SavePartInfo::getDescMaxLength | ( | ) | const |
Return the description's maximal length.
| void Gob::SavePartInfo::setVarCount | ( | uint32 | varCount | ) |
Set the variable count.
| void Gob::SavePartInfo::setDesc | ( | const char * | desc = 0 | ) |
Set the save's description.
| void Gob::SavePartInfo::setDesc | ( | const byte * | desc, |
| uint32 | size | ||
| ) |
Set the save's description.
|
overridevirtual |
Read the part (with header) out of the stream.
Implements Gob::SavePart.
|
overridevirtual |
Write the part (with header) into the stream.
Implements Gob::SavePart.