ScummVM API documentation
Illusions::ResourceSystem Class Reference

Classes

struct  ResourceEqualById
 
struct  ResourceEqualBySceneId
 
struct  ResourceEqualByValue
 
struct  ResourceNotEqualByScenes
 

Public Member Functions

 ResourceSystem (IllusionsEngine *vm)
 
void addResourceLoader (uint32 resTypeId, BaseResourceLoader *resourceLoader)
 
void loadResource (uint32 resId, uint32 sceneId, uint32 threadId)
 
void unloadResourceById (uint32 resId)
 
void unloadResourcesBySceneId (uint32 sceneId)
 
void unloadSceneResources (uint32 sceneId1, uint32 sceneId2)
 
void unloadAllResources ()
 
ResourcegetResource (uint32 resId)
 

Protected Types

typedef Common::HashMap< uint32, BaseResourceLoader * > ResourceLoadersMap
 
typedef ResourceLoadersMap::iterator ResourceLoadersMapIterator
 
typedef Common::Array< Resource * > ResourcesArray
 
typedef ResourcesArray::iterator ResourcesArrayIterator
 

Protected Member Functions

BaseResourceLoadergetResourceLoader (uint32 resId)
 
void unloadResource (Resource *resource)
 

Protected Attributes

IllusionsEngine_vm
 
ResourceLoadersMap _resourceLoaders
 
ResourcesArray _resources
 

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