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

Method init

Engine/source/console/consoleObject.cpp:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

initializeMethod · 0.45

Calls 2

addVariableFunction · 0.85
avarFunction · 0.85

Tested by

no test coverage detected