#include <ResourceManager.h>
Inheritance diagram for CResourceManager:
Public Member Functions | |
virtual CXMLResource * | LoadResource (TiXmlNode *pDataNode, CString strFilename, UINT uiID=0, CString strName="")=0 |
virtual CXMLResource * | GetResource (int uiIndex, int uiID=-1, CString strName="", CString strFilename="") |
virtual CXMLResource * | AddResource (CString strName, UINT uiID=0, eEntityType ResourceType=Entity_Default) |
int | RemoveResource (CXMLResource *pResource) |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual void | Destroy () |
virtual bool | IsOfType (eEntityType eType) |
This class serves as a base class for other resource managers. It manages a collection of resources (although not pooled yet!) and allow to retrieve them by index, name, ID or filename.
Definition at line 15 of file ResourceManager.h.
|
Method details:
Reimplemented in CAnimationManager, CFontManager, CMaterialManager, and CTextureManager. Definition at line 34 of file ResourceManager.cpp. |
|
Method details: This is where clean-up occurs Reimplemented from CXMLResource.
Reimplemented in CAnimationManager, CFontManager, CMaterialManager, and CTextureManager. Definition at line 96 of file ResourceManager.cpp. References CXMLResource::Destroy(), CDoubleList< CXMLResource * >::pop_back(), and CDoubleList< CXMLResource * >::size(). Referenced by CTextureManager::Destroy(), CMaterialManager::Destroy(), CFontManager::Destroy(), and CAnimationManager::Destroy(). |
|
Method details:
Reimplemented in CAnimationManager, CFontManager, CMaterialManager, and CTextureManager. Definition at line 40 of file ResourceManager.cpp. References CDoubleList< CXMLResource * >::at(), CDoubleList< CXMLResource * >::begin(), CXMLResource::GetFilename(), CEntity::GetID(), CEntity::GetName(), CDoubleList< CXMLResource * >::next(), CDoubleList< CXMLResource * >::set_ptr(), and CDoubleList< CXMLResource * >::size(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CXMLResource.
Reimplemented in CAnimationManager, CFontManager, CMaterialManager, and CTextureManager. Definition at line 107 of file ResourceManager.cpp. References CXMLResource::IsOfType(). Referenced by CTextureManager::IsOfType(), CMaterialManager::IsOfType(), CFontManager::IsOfType(), and CAnimationManager::IsOfType(). |
|
Method details:
Implemented in CAnimationManager, CFontManager, CMaterialManager, and CTextureManager.
|
|
Method details:
Reimplemented from CXMLResource.
Reimplemented in CAnimationManager, CFontManager, CMaterialManager, and CTextureManager. Definition at line 14 of file ResourceManager.cpp. References CXMLResource::LoadXML(). Referenced by CTextureManager::LoadXML(), CMaterialManager::LoadXML(), CFontManager::LoadXML(), and CAnimationManager::LoadXML(). |
|
Method details:
|
|
Method details:
Reimplemented from CXMLResource.
Reimplemented in CAnimationManager, CFontManager, CMaterialManager, and CTextureManager. Definition at line 28 of file ResourceManager.cpp. |