Public Member Functions | |
| iResourceManager (cFileSearcher *apFileSearcher, LowLevelResources *apLowLevelResources, LowLevelSystem *apLowLevelSystem) | |
| virtual iResourceBase * | Create (const tString &asName)=0 |
| iResourceBase * | GetByName (const tString &asName) |
| iResourceBase * | GetByHandle (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 () |
| iResourceBase * | FindLoadedResource (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 |
| cFileSearcher * | mpFileSearcher |
| LowLevelResources * | mpLowLevelResources |
| LowLevelSystem * | mpLowLevelSystem |
| unsigned long | mlTimeStart |
Static Protected Attributes | |
| static int | mlTabCount |
|
protected |
Checks if a resource alllready is in the manager, else searches the resources.
| &asName | Name of the resource. |
| &asFilePath | If the file is not in the manager, the path is put here. "" if there is no such file. |