ScummVM API documentation
Neverhood::ResourceMan Class Reference

Public Member Functions

void addArchive (const Common::Path &filename, bool isOptional=false)
 
bool addNhcArchive (const Common::Path &filename)
 
ResourceFileEntryfindEntrySimple (uint32 fileHash)
 
ResourceFileEntryfindEntry (uint32 fileHash, ResourceFileEntry **firstEntry=NULL)
 
Common::SeekableReadStreamcreateStream (uint32 fileHash)
 
Common::SeekableReadStreamcreateNhcStream (uint32 fileHash, uint32 type)
 
bool nhcExists (uint32 fileHash, uint32 type)
 
bool exists (uint32 fileHash)
 
const ResourceFileEntrygetEntry (uint index)
 
uint getEntryCount ()
 
void queryResource (uint32 fileHash, ResourceHandle &resourceHandle)
 
void loadResource (ResourceHandle &resourceHandle, bool applyResourceFixes)
 
void unloadResource (ResourceHandle &resourceHandle)
 
void purgeResources ()
 

Protected Types

typedef Common::HashMap< uint32, ResourceFileEntryEntriesMap
 

Protected Attributes

Common::Array< BlbArchive * > _archives
 
Common::Array< NhcArchive * > _nhcArchives
 
EntriesMap _entries
 
Common::HashMap< uint32, ResourceData * > _data
 
Common::Array< Resource * > _resources
 

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