| 81 | } |
| 82 | |
| 83 | void 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 | |
| 98 | const AbstractClassRep::Field *AbstractClassRep::findField(StringTableEntry name) const |
| 99 | { |
no test coverage detected