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

Method getObject

Engine/source/Verve/Core/VController.cpp:454–472  ·  view source on GitHub ↗

----------------------------------------------------------------------------- VController::getObject( pLabel ); Returns the group with the given name. If no group belongs to the Controller with that name, then a NULL value is returned. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

452//
453//-----------------------------------------------------------------------------
454VGroup *VController::getObject( const String &pLabel )
455{
456 VGroup *node = ( VGroup* )mChildNode;
457 while ( node )
458 {
459 // Compare Names.
460 if ( node->getLabel().equal( pLabel, String::NoCase ) )
461 {
462 // Valid.
463 return node;
464 }
465
466 // Next Sibling.
467 node = ( VGroup* )node->mSiblingNextNode;
468 }
469
470 // Invalid.
471 return NULL;
472}
473
474//-----------------------------------------------------------------------------
475//

Callers

nothing calls this directly

Calls 2

getLabelMethod · 0.80
equalMethod · 0.45

Tested by

no test coverage detected