Torque3D Documentation / _generateds / RuntimeClassRep

RuntimeClassRep

Engine/source/console/runtimeClassRep.h

This class is to allow new types to be added, at run-time, to Torque.

More...

Console Type Interface

setData(void * dptr, S32 argc, const char ** argv, const EnumTable * tbl, BitSet32 flag)
const char *
getData(void * dptr, const EnumTable * tbl, BitSet32 flag)
const bool

Return true if this is datablock object type.

Protected Static Attributes

bool

This variable will be set to true if this class-rep is currently registered.

Public Functions

RuntimeClassRep(const char * name, const char * conTypeName, S32 * conTypeIdPtr, S32 netClassGroupMask, S32 netClassType, S32 netEventDir, AbstractClassRep * parent)

Register this class with the Torque console.

Unregister this class with the Torque console.

Wrap constructor.

init()

Perform class specific initialization tasks.

Public Static Functions

const bool

Returns true if this class type is registered with the console system.

Detailed Description

This class is to allow new types to be added, at run-time, to Torque.

This is primarily for dynamic libraries, plugins etc.

The idea is the same, one instance per type which is getting registered however it doesn't get added to the dictionary until it is told to add itself. It can be removed, as well, though no safe-execution assurances are made by this class. If an object type is removed behavior of existing console objects of that type is undefined. (aka bad stuff will probably happen but I don't know exactly what)

Console Type Interface

setData(void * dptr, S32 argc, const char ** argv, const EnumTable * tbl, BitSet32 flag)

Reimplemented from: ConsoleBaseType

getData(void * dptr, const EnumTable * tbl, BitSet32 flag)

Reimplemented from: ConsoleBaseType

getTypeClassName()

Reimplemented from: ConsoleBaseType

isDatablock()

Reimplemented from: ConsoleBaseType

Protected Static Attributes

bool smConRegistered 

This variable will be set to true if this class-rep is currently registered.

Public Functions

RuntimeClassRep(const char * name, const char * conTypeName, S32 * conTypeIdPtr, S32 netClassGroupMask, S32 netClassType, S32 netEventDir, AbstractClassRep * parent)

consoleRegister()

Register this class with the Torque console.

consoleUnRegister()

Unregister this class with the Torque console.

create()

Reimplemented from: AbstractClassRep

getContainerChildClass(const bool recurse)

Reimplemented from: AbstractClassRep

getCustomTamlSchema(void )

Reimplemented from: AbstractClassRep

init()

Perform class specific initialization tasks.

Link namespaces, call initPersistFields() and consoleInit().

Public Static Functions

isRegistered()

Returns true if this class type is registered with the console system.