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

Method findListById

Engine/source/environment/nodeListManager.cpp:190–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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