ScummVM API documentation
Mohawk::Archive Class Referenceabstract
Inheritance diagram for Mohawk::Archive:
Mohawk::DOSArchive_v2 Mohawk::LivingBooksArchive_v1 Mohawk::MohawkArchive

Classes

struct  Resource
 

Public Member Functions

bool openFile (const Common::Path &fileName)
 
virtual bool openStream (Common::SeekableReadStream *stream)=0
 
void close ()
 
bool isOpen () const
 
bool hasResource (uint32 tag, uint16 id) const
 
bool hasResource (uint32 tag, const Common::String &resName) const
 
Common::SeekableReadStreamgetResource (uint32 tag, uint16 id)
 
uint32 getOffset (uint32 tag, uint16 id) const
 
uint16 findResourceID (uint32 tag, const Common::String &resName) const
 
Common::String getName (uint32 tag, uint16 id) const
 
Common::Array< uint32 > getResourceTypeList () const
 
Common::Array< uint16 > getResourceIDList (uint32 type) const
 
void offsetResourceIDs (uint32 type, uint16 startId, int16 increment)
 

Protected Types

typedef Common::HashMap< uint16, ResourceResourceMap
 
typedef Common::HashMap< uint32, ResourceMapTypeMap
 

Protected Attributes

Common::SeekableReadStream_stream
 
TypeMap _types
 

Member Function Documentation

◆ offsetResourceIDs()

void Mohawk::Archive::offsetResourceIDs ( uint32  type,
uint16  startId,
int16  increment 
)

Offset the resource ids for a resource type by the specified amount


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