#include <savehandler.h>
Public Member Functions | |
SaveHandler (GobEngine *vm) | |
virtual int32 | getSize ()=0 |
virtual bool | load (int16 dataVar, int32 size, int32 offset)=0 |
virtual bool | save (int16 dataVar, int32 size, int32 offset)=0 |
virtual bool | loadToRaw (byte *ptr, int32 size, int32 offset) |
virtual bool | saveFromRaw (const byte *ptr, int32 size, int32 offset) |
virtual bool | deleteFile () |
Static Public Member Functions | |
static uint32 | getVarSize (GobEngine *vm) |
Protected Attributes | |
GobEngine * | _vm |
A handler for a specific save file.
|
pure virtual |
Returns the file's (virtual) size.
Implemented in Gob::SaveLoad_v7::GameFileHandler, Gob::SaveLoad_v7::DrawingOnFloppyDiskHandler, Gob::SaveLoad_v7::SpriteHandler, Gob::SaveLoad_Playtoons::GameHandler, Gob::SaveLoad_v6::ExtraHandler, Gob::SaveLoad_v6::TempHandler, Gob::SaveLoad_v6::AutoSpriteHandler, Gob::SaveLoad_v6::AutoHandler, Gob::SaveLoad_v6::GameHandler, Gob::SaveLoad_v4::ScreenPropsHandler, Gob::SaveLoad_v4::CurScreenPropsHandler, Gob::SaveLoad_v4::GameHandler, Gob::SaveLoad_Inca2::ScreenshotHandler, Gob::SaveLoad_Inca2::GameHandler, Gob::SaveLoad_Inca2::VoiceHandler, Gob::SaveLoad_v3::ScreenshotHandler, Gob::SaveLoad_v3::GameHandler, Gob::SaveLoad_Adibou1::GameFileHandler, Gob::SaveLoad_Adibou1::DrawingWithThumbnailHandler, Gob::SaveLoad_Adibou1::SpriteHandler, Gob::SaveLoad_Fascination::GameHandler, Gob::FakeFileHandler, Gob::NotesHandler, Gob::SaveLoad_v2::GameHandler, Gob::TempSpriteHandler, and Gob::SaveLoad_Geisha::GameHandler.
|
pure virtual |
Loads (parts of) the file.
Implemented in Gob::SaveLoad_v7::GameFileHandler, Gob::SaveLoad_v7::DrawingOnFloppyDiskHandler, Gob::SaveLoad_v7::SpriteHandler, Gob::SaveLoad_Playtoons::GameHandler, Gob::SaveLoad_v6::ExtraHandler, Gob::SaveLoad_v6::TempHandler, Gob::SaveLoad_v6::AutoSpriteHandler, Gob::SaveLoad_v6::AutoHandler, Gob::SaveLoad_v6::GameHandler, Gob::SaveLoad_v4::ScreenPropsHandler, Gob::SaveLoad_v4::CurScreenPropsHandler, Gob::SaveLoad_v4::GameHandler, Gob::SaveLoad_Inca2::ScreenshotHandler, Gob::SaveLoad_Inca2::GameHandler, Gob::SaveLoad_Inca2::VoiceHandler, Gob::SaveLoad_v3::ScreenshotHandler, Gob::SaveLoad_v3::GameHandler, Gob::SaveLoad_Adibou1::GameFileHandler, Gob::SaveLoad_Adibou1::DrawingWithThumbnailHandler, Gob::SaveLoad_Adibou1::SpriteHandler, Gob::SaveLoad_Fascination::GameHandler, Gob::FakeFileHandler, Gob::NotesHandler, Gob::SaveLoad_v2::GameHandler, Gob::TempSpriteHandler, and Gob::SaveLoad_Geisha::GameHandler.
|
pure virtual |
Saves (parts of) the file.
Implemented in Gob::SaveLoad_v7::GameFileHandler, Gob::SaveLoad_v7::DrawingOnFloppyDiskHandler, Gob::SaveLoad_v7::SpriteHandler, Gob::SaveLoad_Playtoons::GameHandler, Gob::SaveLoad_v6::ExtraHandler, Gob::SaveLoad_v6::TempHandler, Gob::SaveLoad_v6::AutoSpriteHandler, Gob::SaveLoad_v6::AutoHandler, Gob::SaveLoad_v6::GameHandler, Gob::SaveLoad_v4::ScreenPropsHandler, Gob::SaveLoad_v4::CurScreenPropsHandler, Gob::SaveLoad_v4::GameHandler, Gob::SaveLoad_Inca2::ScreenshotHandler, Gob::SaveLoad_Inca2::GameHandler, Gob::SaveLoad_Inca2::VoiceHandler, Gob::SaveLoad_v3::ScreenshotHandler, Gob::SaveLoad_v3::GameHandler, Gob::SaveLoad_Adibou1::GameFileHandler, Gob::SaveLoad_Adibou1::DrawingWithThumbnailHandler, Gob::SaveLoad_Adibou1::SpriteHandler, Gob::SaveLoad_Fascination::GameHandler, Gob::FakeFileHandler, Gob::NotesHandler, Gob::SaveLoad_v2::GameHandler, Gob::TempSpriteHandler, and Gob::SaveLoad_Geisha::GameHandler.
|
virtual |
Deletes the file.
Reimplemented in Gob::SaveLoad_v7::GameFileHandler, Gob::SaveLoad_v7::DrawingOnFloppyDiskHandler, Gob::SaveLoad_v7::SpriteHandler, Gob::SaveLoad_v6::TempHandler, Gob::SaveLoad_Adibou1::GameFileHandler, and Gob::FakeFileHandler.