MCPcopy Create free account
hub / github.com/MyGUI/mygui / getChildData

Method getChildData

Tools/SkinEditor/SkinExportSerializer.cpp:334–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 }
333
334 DataPtr SkinExportSerializer::getChildData(DataPtr _data, std::string_view _dataType, std::string_view _name)
335 {
336 for (Data::VectorData::const_iterator child = _data->getChilds().begin(); child != _data->getChilds().end();
337 child++)
338 {
339 if ((*child)->getType()->getName() == _dataType && (*child)->getPropertyValue("Name") == _name)
340 return (*child);
341 }
342
343 return nullptr;
344 }
345
346 void SkinExportSerializer::fillRegionData(DataPtr _data, pugi::xml_node _node)
347 {

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
getTypeMethod · 0.45

Tested by

no test coverage detected