Torque3D Documentation / _generateds / ResourceManager

ResourceManager

Engine/source/core/resourceManager.h

More...

Public Types

ChangedSignal 

Protected Types

ResourceHeaderMap 

Public Friends

Protected Attributes

The map of old resources which have been replaced by new resources from a file change notification.

Public Static Functions

Public Functions

Registering with this signal will give an opportunity to handle a change to the resource on disk.

reloadResource(const Torque::Path & path, bool showMessage)

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)