ScummVM API documentation
hpl::iResourceManager Class Referenceabstract
Inheritance diagram for hpl::iResourceManager:
hpl::cAnimationManager hpl::cFontManager hpl::cGpuProgramManager hpl::cImageEntityManager hpl::cImageManager hpl::cMaterialManager hpl::cMeshManager hpl::cParticleManager hpl::cScriptManager hpl::cSoundEntityManager hpl::cSoundManager hpl::cTextureManager hpl::cTileSetManager hpl::cVideoManager

Public Member Functions

 iResourceManager (cFileSearcher *apFileSearcher, LowLevelResources *apLowLevelResources, LowLevelSystem *apLowLevelSystem)
 
virtual iResourceBaseCreate (const tString &asName)=0
 
iResourceBaseGetByName (const tString &asName)
 
iResourceBaseGetByHandle (unsigned long alHandle)
 
cResourceBaseIterator GetResourceBaseIterator ()
 
void DestroyUnused (int alMaxToKeep)
 
virtual void Destroy (iResourceBase *apResource)=0
 
virtual void DestroyAll ()
 
virtual void Unload (iResourceBase *apResource)=0
 
virtual void Update (float afTimeStep)
 

Protected Member Functions

void BeginLoad (const tString &asFile)
 
void EndLoad ()
 
iResourceBaseFindLoadedResource (const tString &asName, tString &asFilePath)
 
void AddResource (iResourceBase *apResource, bool abLog=true)
 
void RemoveResource (iResourceBase *apResource)
 
unsigned long GetHandle ()
 
tString GetTabs ()
 

Protected Attributes

unsigned long mlHandleCount
 
tResourceNameMap m_mapNameResources
 
tResourceHandleMap m_mapHandleResources
 
cFileSearchermpFileSearcher
 
LowLevelResourcesmpLowLevelResources
 
LowLevelSystemmpLowLevelSystem
 
unsigned long mlTimeStart
 

Static Protected Attributes

static int mlTabCount
 

Member Function Documentation

◆ FindLoadedResource()

iResourceBase* hpl::iResourceManager::FindLoadedResource ( const tString asName,
tString asFilePath 
)
protected

Checks if a resource alllready is in the manager, else searches the resources.

Parameters
&asNameName of the resource.
&asFilePathIf the file is not in the manager, the path is put here. "" if there is no such file.
Returns
A pointer to the resource. NULL if not in manager.

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