class
ScriptManagedComponent
Interop class between C++
& CLR for ManagedComponent.
Public
Constructors
ScriptManagedComponent
Methods
staticGetAssemblyName
staticGetNamespace
staticGetTypeName
staticSetupScriptBindings
staticCreateScriptObject
Returns null as managed components cannot be created statically.
Their script object type is mutable depending on the script type they are referencing. Use non-static CreateAndBindScriptObject() member instead.
CreateAndBindScriptObject
Creates a new script object of the correct component type and binds it to the script object wrapper.
Script object wrapper must not have a script object assigned.
ShouldPersistScriptReload
GetLifetimeTrackingMode
GetNativeObjectAsHandle
Returns the wrapped native object as a handle.
staticCreateScriptObjectAndWrapper
Creates a new script object and a script object wrapper of , and associates them with the provided native object.
Should not be called if already has an associated script object.
staticGetScriptExportable
Casts the reflectable object to script exportable.
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.
~TScriptObjectWrapper<SelfType, BaseType>
staticGetScriptObjectWrapper
Returns the script object wrapper associated with the provided script object.
staticGetMetaData
Returns the meta-data storing information about the script type.
staticInitializeMetaDataAtLoadTime
Takes care of initializing the meta-data when the application first load.
The meta-data will be registered with a global manager that will ensure it is kept up-to-date after operations such as assembly (re)load.
Protected
Methods
staticInitializeAdditionalMetaData
Initialize RTTI type ID and callback used to create the script object/script object wrapper.
BindToScriptObject
Stores a pointer to itself in the script object.
This ensures that calls to GetScriptObjectWrapper() can return the script object wrapper associated with the script object.
Private
Methods
RecreateScriptObjectAfterScriptReload
BackupDataBeforeScriptReload
Called on all script object wrappers when script reload is about to happen.
Allows the script object to back up its current state so it may be restored after reload completes. Only relevant for script objects that persist script reload (i.e. ShouldPersistScriptReload() returns true).
RestoreDataAfterScriptReload
Called on all script object wrappers after script objects have been created in RecreateScriptObjectAfterScriptReload().
Allows you to restore data backed up in BackupDataBeforeScriptReload() call to the newly created script object. Only relevant for script objects that persist script reload (i.e. ShouldPersistScriptReload() returns true).
NotifyScriptReloadFinished
Called on all script object wrappers as the final step in script reload, after RestoreDataAfterScriptReload().
Allows you to perform actions that require the entire scripting world to be fully recreated.
staticInternalInvoke
*********************************************************************