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

Method at

Engine/modules/Verve/Core/VTreeNode.cpp:220–236  ·  view source on GitHub ↗

----------------------------------------------------------------------------- VTreeNode::at( pIndex ); Returns the object at the given index. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

218//
219//-----------------------------------------------------------------------------
220ITreeNode *VTreeNode::at( const int pIndex )
221{
222 int index = 0;
223
224 ITreeNode *node = mChildNode;
225 while ( node )
226 {
227 if ( index++ == pIndex )
228 {
229 return node;
230 }
231
232 node = node->mSiblingNextNode;
233 }
234
235 return NULL;
236}
237
238//-----------------------------------------------------------------------------
239//

Callers 2

VController.cppFile · 0.45
VObject.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected