MCPcopy Create free account
hub / github.com/cuberite/cuberite / ForEachWorld

Method ForEachWorld

src/Root.cpp:396–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394
395
396bool cRoot::ForEachWorld(cWorldListCallback & a_Callback)
397{
398 for (WorldMap::iterator itr = m_WorldsByName.begin(), itr2 = itr; itr != m_WorldsByName.end(); itr = itr2)
399 {
400 ++itr2;
401 if (a_Callback.Item(itr->second))
402 {
403 return false;
404 }
405 }
406 return true;
407}
408
409
410

Callers 2

StartMethod · 0.80
ExecuteMethod · 0.80

Calls 3

beginMethod · 0.80
endMethod · 0.80
ItemMethod · 0.45

Tested by

no test coverage detected