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

Method find

Engine/source/gui/worldEditor/creator.cpp:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79//------------------------------------------------------------------------------
80
81CreatorTree::Node * CreatorTree::Node::find(S32 id)
82{
83 if(mId == id)
84 return(this);
85
86 if(!isGroup())
87 return(0);
88
89 for(U32 i = 0; i < mChildren.size(); i++)
90 {
91 Node * node = mChildren[i]->find(id);
92 if(node)
93 return(node);
94 }
95
96 return(0);
97}
98
99//------------------------------------------------------------------------------
100

Callers 7

onAddMethod · 0.45
isGroupFilteredMethod · 0.45
findNodeMethod · 0.45
addMethod · 0.45
findIconMethod · 0.45
hasIconNoRecurseMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by 2

isGroupFilteredMethod · 0.36