ScummVM API documentation
MM::Xeen::SaveArchive Class Reference
Inheritance diagram for MM::Xeen::SaveArchive:
MM::Shared::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 MM::Shared::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 bool isPathDirectory (const Path &path) const
 
virtual int listMatchingMembers (ArchiveMemberList &list, const Path &pattern, bool matchPathComponents=false) const
 
virtual SeekableReadStreamcreateReadStreamForMemberAltStream (const Path &path, AltStreamType altStreamType) const
 
virtual SeekableReadStreamcreateReadStreamForMemberNext (const Path &path, const Archive *starting) const
 
Common::Error dumpArchive (const Path &destPath)
 
virtual char getPathSeparator () const
 

Additional Inherited Members

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

Member Function Documentation

◆ reset()

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

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

◆ createReadStreamForMember() [1/2]

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

Archive implementation

Implements Common::Archive.

◆ createReadStreamForMember() [2/2]

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

Archive implementation

◆ load()

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

Loads a save archive from a stream

◆ save()

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

Saves a save archive to a savegame

◆ loadParty()

void MM::Xeen::SaveArchive::loadParty ( )

Load the character roster and party

◆ replaceEntry()

void MM::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: