MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / HandleRecentItems

Function HandleRecentItems

Source/Internal/levelxml.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void HandleRecentItems(std::vector<SpawnerItem>& siv, const TiXmlElement* el) {
214 const TiXmlElement* spawner = el->FirstChildElement("SpawnerItem");
215
216 while (spawner != NULL) {
217 SpawnerItem si;
218 si.display_name = spawner->Attribute("display_name");
219 si.path = SanitizePath(spawner->Attribute("path"));
220 si.thumbnail_path = SanitizePath(spawner->Attribute("thumbnail_path"));
221 siv.push_back(si);
222
223 spawner = spawner->NextSiblingElement("SpawnerItem");
224 }
225}
226
227void HandleLoadingScreen(LoadingScreen& siv, const TiXmlElement* el) {
228 const TiXmlElement* image = el->FirstChildElement("Image");

Callers 1

ParseLevelXMLFunction · 0.85

Calls 5

SanitizePathFunction · 0.85
FirstChildElementMethod · 0.45
AttributeMethod · 0.45
push_backMethod · 0.45
NextSiblingElementMethod · 0.45

Tested by

no test coverage detected