ScummVM API documentation
Xeen::SaveArchive Class Reference
Inheritance diagram for Xeen::SaveArchive:
Xeen::BaseCCArchive Common::Archive

Public Member Functions

 SaveArchive (Party *party)
 
void reset (CCArchive *src)
 
Common::SeekableReadStreamcreateReadStreamForMember (const Common::Path &path) const override
 
virtual Common::SeekableReadStreamcreateReadStreamForMember (uint16 id) const
 
void load (Common::SeekableReadStream &stream)
 
void save (Common::WriteStream &s)
 
void loadParty ()
 
void replaceEntry (uint16 id, const byte *data, size_t size)
 
- Public Member Functions inherited from Xeen::BaseCCArchive
bool hasFile (const Common::Path &path) const override
 
int listMembers (Common::ArchiveMemberList &list) const override
 
const Common::ArchiveMemberPtr getMember (const Common::Path &path) const override
 
- Public Member Functions inherited from Common::Archive
virtual int listMatchingMembers (ArchiveMemberList &list, const Path &pattern) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Xeen::BaseCCArchive
static uint16 convertNameToId (const Common::String &resourceName)
 
- Protected Member Functions inherited from Xeen::BaseCCArchive
void loadIndex (Common::SeekableReadStream &stream)
 
void saveIndex (Common::WriteStream &stream)
 
virtual bool getHeaderEntry (const Common::String &resourceName, CCEntry &ccEntry) const
 
virtual bool getHeaderEntry (uint16 id, CCEntry &ccEntry) const
 
- Protected Attributes inherited from Xeen::BaseCCArchive
Common::Array< CCEntry_index
 

Member Function Documentation

◆ reset()

void Xeen::SaveArchive::reset ( CCArchive src)

Sets up the dynamic data for the game for a new game

◆ createReadStreamForMember() [1/2]

Common::SeekableReadStream* Xeen::SaveArchive::createReadStreamForMember ( const Common::Path path) const
overridevirtual

Archive implementation

Implements Common::Archive.

◆ createReadStreamForMember() [2/2]

virtual Common::SeekableReadStream* Xeen::SaveArchive::createReadStreamForMember ( uint16  id) const
virtual

Archive implementation

◆ load()

void Xeen::SaveArchive::load ( Common::SeekableReadStream stream)

Loads a save archive from a stream

◆ save()

void Xeen::SaveArchive::save ( Common::WriteStream s)

Saves a save archive to a savegame

◆ loadParty()

void Xeen::SaveArchive::loadParty ( )

Load the character roster and party

◆ replaceEntry()

void Xeen::SaveArchive::replaceEntry ( uint16  id,
const byte *  data,
size_t  size 
)

Sets a new resource entry


The documentation for this class was generated from the following file: