class
ScriptResourceManager
Handles creation and lookup of script interop objects for resources.
Since resources can be created in native code yet used by managed code this manager provides lookups to find managed equivalents of native resources.
Public
Constructors
ScriptResourceManager
Methods
~ScriptResourceManager
GetScriptRRef
Attempts to find an existing interop object for the specified resource reference, or creates a new object if one cannot be found.
- resource
- Resource handle to create the reference wrapper object for.
- rrefClass
- Class of the managed RRef object to create.
NotifyScriptRRefScriptObjectDestroyed
Notifies the system that script object holding the resource reference has been garbage collected.
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
OnResourceDestroyed
Triggered when the native resource has been unloaded and therefore destroyed.
ClearRRefs
Clears all cached RRefs.
Should be called before assembly refresh since the refs will no longer be valid after.