ProtoZed  awesome branch
A simple but powerful game framework
Public Member Functions | List of all members
PZ::AssetManager Class Reference
Inheritance diagram for PZ::AssetManager:
PZ::NonCopyable

Public Member Functions

 AssetManager (Application &application)
 
 ~AssetManager ()
 
template<class T >
bool RegisterArchiveHandler (const ArchiveType &type)
 
bool UnregisterArchiveHandler (const ArchiveType &type)
 
template<class T >
bool RegisterAssetType (const AssetType &type)
 
bool UnregisterAssetType (const AssetType &type)
 
void SetType (const std::string &extension, const AssetType &type)
 
bool AddArchive (const Path &filename, const ArchiveType &type, bool indexAll=true, bool onlyIndexRegisteredTypes=true)
 
bool RemoveArchive (const Path &filename)
 
void IndexAll (bool onlyIndexRegisteredTypes=true)
 
bool IndexFile (const Path &filename)
 
void LoadAll ()
 
void UnloadAll ()
 
bool Load (const Path &filename)
 
bool LoadAs (const Path &filename, const AssetType &type)
 
bool Unload (const Path &filename)
 
template<class T >
const T * Get (const Path &filename, bool autoLoad=true)
 
const AssetGet (const Path &filename, bool autoLoad=true)
 

Additional Inherited Members

- Protected Member Functions inherited from PZ::NonCopyable
 NonCopyable ()
 

Constructor & Destructor Documentation

PZ::AssetManager::AssetManager ( Application application)
PZ::AssetManager::~AssetManager ( )

Member Function Documentation

bool PZ::AssetManager::AddArchive ( const Path filename,
const ArchiveType type,
bool  indexAll = true,
bool  onlyIndexRegisteredTypes = true 
)
template<class T >
const T* PZ::AssetManager::Get ( const Path filename,
bool  autoLoad = true 
)
inline
const Asset* PZ::AssetManager::Get ( const Path filename,
bool  autoLoad = true 
)
void PZ::AssetManager::IndexAll ( bool  onlyIndexRegisteredTypes = true)
bool PZ::AssetManager::IndexFile ( const Path filename)
bool PZ::AssetManager::Load ( const Path filename)
void PZ::AssetManager::LoadAll ( )
bool PZ::AssetManager::LoadAs ( const Path filename,
const AssetType type 
)
template<class T >
bool PZ::AssetManager::RegisterArchiveHandler ( const ArchiveType type)
inline
template<class T >
bool PZ::AssetManager::RegisterAssetType ( const AssetType type)
inline
bool PZ::AssetManager::RemoveArchive ( const Path filename)
void PZ::AssetManager::SetType ( const std::string &  extension,
const AssetType type 
)
bool PZ::AssetManager::Unload ( const Path filename)
void PZ::AssetManager::UnloadAll ( )
bool PZ::AssetManager::UnregisterArchiveHandler ( const ArchiveType type)
inline
bool PZ::AssetManager::UnregisterAssetType ( const AssetType type)
inline

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