class
ResourceListenerManager
Handles all active implementations of IResourceListener interface and notifies them when events they're listening to occur.
Public
Constructors
ResourceListenerManager
Methods
~ResourceListenerManager
RegisterListener
Register a new listener to notify for events.
UnregisterListener
Unregister a listener so it will no longer receive notifications.
MarkListenerDirty
Marks the listener as dirty which forces the manager to updates its internal list of resources for the listener.
Update
Refreshes the resource maps based on dirty listeners and sends out the necessary events.
NotifyListeners
Forces the listener to send out events about the specified resource immediately, instead of waiting for the next Update() call.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.
Private
Methods
UpdateListeners
Refreshes the listener mapping for any listeners marked as dirty.
OnResourceLoaded
Triggered by the resources system when a resource has finished loading.
OnResourceModified
Triggered by the resources system after a resource handle is modified (points to a new resource).
SendResourceLoaded
Sends resource loaded event to all listeners referencing this resource.
SendResourceModified
Sends resource modified event to all listeners referencing this resource.
ClearDependencies
Clears all the stored dependencies for the listener.
AddDependencies
Registers all the resource dependencies for the listener.