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::SeekableReadStream * | getResource (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, Resource > | ResourceMap |
| typedef Common::HashMap< uint32, ResourceMap > | TypeMap |
Protected Attributes | |
| Common::SeekableReadStream * | _stream |
| TypeMap | _types |
| void Mohawk::Archive::offsetResourceIDs | ( | uint32 | type, |
| uint16 | startId, | ||
| int16 | increment | ||
| ) |
Offset the resource ids for a resource type by the specified amount