MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / loadMapSettings

Method loadMapSettings

plugins/dm.difficulty/DifficultySettingsManager.cpp:55–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void DifficultySettingsManager::loadMapSettings()
56{
57 // Construct a helper walker
58 DifficultyEntityFinder finder;
59 GlobalSceneGraph().root()->traverse(finder);
60
61 const DifficultyEntityFinder::EntityList& found = finder.getEntities();
62
63 // Pop all entities into each difficulty setting
64 for (DifficultyEntityFinder::EntityList::const_iterator ent = found.begin();
65 ent != found.end(); ent++)
66 {
67 for (std::size_t i = 0; i < _settings.size(); i++) {
68 _settings[i]->parseFromMapEntity(*ent);
69 }
70 }
71}
72
73namespace
74{

Callers

nothing calls this directly

Calls 6

parseFromMapEntityMethod · 0.80
traverseMethod · 0.45
rootMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected