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

Method getObject

Engine/modules/Verve/Core/VController.cpp:453–471  ·  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

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

Callers

nothing calls this directly

Calls 2

getLabelMethod · 0.80
equalMethod · 0.45

Tested by

no test coverage detected