ResourceManager
Engine/source/core/resourceManager.h
Public Types
Signal< void(const Torque::Path &path)>
ChangedSignal
Protected Types
ResourceHeaderMap
Public Friends
class
Protected Attributes
The map of old resources which have been replaced by new resources from a file change notification.
The map of resources.
Public Static Functions
get()
Public Functions
find(const Torque::Path & path)
Registering with this signal will give an opportunity to handle a change to the resource on disk.
load(const Torque::Path & path)
reloadResource(const Torque::Path & path, bool showMessage)
startResourceList(ResourceBase::Signature inSignature)
Protected Functions
notifiedFileChanged(const Torque::Path & path)
bool
remove(ResourceBase::Header * header)
Detailed Description
Public Types
typedef Signal< void(const Torque::Path &path)> ChangedSignal
Protected Types
typedef HashTable< String, ResourceBase::Header * > ResourceHeaderMap
Public Friends
Protected Attributes
ChangedSignal mChangeSignal
ResourceHeaderMap::Iterator mIter
U32 mIterSigFilter
ResourceHeaderMap mPrevResourceHeaderMap
The map of old resources which have been replaced by new resources from a file change notification.
ResourceHeaderMap mResourceHeaderMap
The map of resources.
Public Static Functions
get()
Public Functions
~ResourceManager()
find(const Torque::Path & path)
getChangedSignal()
Registering with this signal will give an opportunity to handle a change to the resource on disk.
For example, if a PNG file is edited by the artist and saved the ResourceManager will signal that the file has changed so the TextureManager may act appropriately - which probably means to re-init the materials using that PNG. The signal passes the Resource's signature so the callee may filter these.
load(const Torque::Path & path)
nextResource()
reloadResource(const Torque::Path & path, bool showMessage)
startResourceList(ResourceBase::Signature inSignature)
Protected Functions
ResourceManager()
notifiedFileChanged(const Torque::Path & path)
remove(ResourceBase::Header * header)