#include <savemetadata.h>
Public Member Functions | |
| void | setSaveTime (const TimeDate &timeDate) |
| Common::ErrorCode | read (Common::SeekableReadStream *stream, const Common::String &filename) |
| void | write (Common::WriteStream *stream) |
| Graphics::Surface * | readGameScreenThumbnail (Common::SeekableReadStream *stream) |
| void | skipGameScreenThumbnail (Common::SeekableReadStream *stream) |
| void | writeGameScreenThumbnail (Common::WriteStream *stream) |
Public Attributes | |
| Common::String | description |
| uint | levelIndex |
| uint | locationIndex |
| uint | version |
| uint32 | totalPlayTime |
| uint8 | saveDay |
| uint8 | saveMonth |
| uint16 | saveYear |
| uint8 | saveHour |
| uint8 | saveMinute |
| uint8 | saveSecond |
| bool | isAutoSave |
| const Graphics::Surface * | gameWindowThumbnail |
Utility class for reading and writing the save file header
The save file header contains metadata related to the save as well as a thumbnail of the game screen.
| void Stark::SaveMetadata::setSaveTime | ( | const TimeDate & | timeDate | ) |
Set the time the save was created on
| Common::ErrorCode Stark::SaveMetadata::read | ( | Common::SeekableReadStream * | stream, |
| const Common::String & | filename | ||
| ) |
Read the metadata from a stream
| filename | Save filename, used for the error messages only |
| void Stark::SaveMetadata::write | ( | Common::WriteStream * | stream | ) |
Write the metadata to a stream
| Graphics::Surface* Stark::SaveMetadata::readGameScreenThumbnail | ( | Common::SeekableReadStream * | stream | ) |
Read the game screen thumbnail from a stream
| void Stark::SaveMetadata::skipGameScreenThumbnail | ( | Common::SeekableReadStream * | stream | ) |
Skip the game screen thumbnail in a stream
| void Stark::SaveMetadata::writeGameScreenThumbnail | ( | Common::WriteStream * | stream | ) |
Write the game screen thumbnail to a stream