ScummVM API documentation
Saga2::hResource Class Reference
Inheritance diagram for Saga2::hResource:
Saga2::hResContext

Public Member Functions

 hResource (const char *resname)
 
hResContextnewContext (hResID id, const char [])
 
void disposeContext (hResContext *con)
 
void readEntry (hResEntry &element)
 
void readResource (hResEntry &element)
 
- Public Member Functions inherited from Saga2::hResContext
 hResContext (hResContext *sire, hResID id, const char [])
 
uint32 getResID ()
 
uint32 size (hResID id)
 
uint32 count ()
 
uint32 count (hResID id)
 
bool seek (hResID id)
 
void rest ()
 
uint32 readbytes (void *buffer, uint32 size)
 
bool eor ()
 
size_t bytesleft ()
 
bool read (void *buffer, uint32 size)
 
bool skip (uint32 amount)
 
bool get (hResID id, void *buffer, uint32 size)
 
uint32 getSize (hResID id, const char desc[])
 
byte * loadResource (hResID id, const char desc[], const Common::Path &filename=Common::Path())
 
byte * loadIndexResource (int16 index, const char desc[], const Common::Path &filename=Common::Path())
 
void releaseIndexData ()
 
Common::FileresFileHandle ()
 

Additional Inherited Members

- Public Attributes inherited from Saga2::hResContext
bool _valid
 
Common::Path _filename
 
- Protected Member Functions inherited from Saga2::hResContext
hResEntryfindEntry (hResID id)
 
- Protected Attributes inherited from Saga2::hResContext
uint16 _numEntries
 
hResource_res
 
hResContext_parent
 
hResEntry_base
 
DataMap _indexData
 
Common::File _file
 
Common::File_handle
 
uint32 _bytecount
 
uint32 _bytepos
 

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