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 () |
Resource * | getResource (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 | |
BaseResourceLoader * | getResourceLoader (uint32 resId) |
void | unloadResource (Resource *resource) |
Protected Attributes | |
IllusionsEngine * | _vm |
ResourceLoadersMap | _resourceLoaders |
ResourcesArray | _resources |