MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / init

Method init

Engine/source/console/consoleObject.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void AbstractClassRep::init()
84{
85 // Only add the renderable and selectable globals for
86 // classes derived from SceneObject which are the only
87 // objects for which these work.
88 if ( isSubclassOf( "SceneObject" ) )
89 {
90 Con::addVariable( avar( "$%s::isRenderable", getClassName() ), TypeBool, &mIsRenderEnabled,
91 "@brief Disables rendering of all instances of this type.\n\n" );
92
93 Con::addVariable( avar( "$%s::isSelectable", getClassName() ), TypeBool, &mIsSelectionEnabled,
94 "@brief Disables selection of all instances of this type.\n\n" );
95 }
96}
97
98const AbstractClassRep::Field *AbstractClassRep::findField(StringTableEntry name) const
99{

Callers 1

initializeMethod · 0.45

Calls 2

addVariableFunction · 0.85
avarFunction · 0.85

Tested by

no test coverage detected