class
ScriptResourceWrapper
Provides a base class for all script object wrappers that wrap a Resource object that may be passed as a shared pointer.
Public
Methods
GetBaseNativeObjectAsHandle
Returns the root base class of the wrapped native object as a handle.
IsNativeObjectValid
Checks is the native object alive and valid.
staticGetOrCreateScriptObject
Attempts to retrieve an existing associated script object from the provided native object.
If one doesn't exist, a new script object and the associated script wrapper will be created.
Unlike GetOrCreateScriptObject implemented on TScriptResourceWrapper, this always accepts the object as a Resource, and needs to perform type lookup to get the exact script wrapper type.
staticGetScriptObjectWrapper
Returns the script object wrapper associated with the provided script object, and wrapped by a wrapper that owns the provided meta-data.
staticGetOrCreateResourceReference
Returns a resource reference script object, that is wrapping the provided resource.
- resource
- Handle to the resource to retrieve the reference for.
- rttiId
- Type ID for the resource type to create a reference for.
Returns: Script object representing the resource reference.
staticGetResourceScriptClass
Maps a RTTI ID to a class representing the specified resource type in script code.
Returns null if the ID cannot be mapped to a script resource class.
staticGetResourceReferenceScriptClass
Returns a RRef <T > type that can be used for wrapping a resource of the type represented by the provided RTTI ID.