MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / findListById

Method findListById

Engine/source/environment/nodeListManager.cpp:189–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189bool NodeListManager::findListById(U32 id, NodeList** list, bool completeOnly)
190{
191 *list = NULL;
192
193 for (U32 i=0; i<mNodeLists.size(); ++i)
194 {
195 if (mNodeLists[i]->mId == id)
196 {
197 if (completeOnly && !mNodeLists[i]->mListComplete)
198 {
199 // Found the list, but it is not complete.
200 return false;
201 }
202
203 // Return the node list (complete or not) and remove
204 // it from our list of lists
205 *list = mNodeLists[i];
206 mNodeLists.erase(i);
207 return true;
208 }
209 }
210
211 return false;
212}
213
214void NodeListManager::clearNotification( U32 listId )
215{

Callers 4

processMethod · 0.80
unpackUpdateMethod · 0.80
unpackUpdateMethod · 0.80
unpackUpdateMethod · 0.80

Calls 2

sizeMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected