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

Method getAttributeDescription

radiantcore/eclass/EntityClass.cpp:404–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404std::string EntityClass::getAttributeDescription(const std::string& name)
405{
406 ensureParsed();
407
408 // Check the attributes on this class first
409 const auto& attribute = _attributes.find(name);
410
411 if (attribute != _attributes.end())
412 {
413 const auto& description = attribute->second.getDescription();
414
415 if (!description.empty())
416 {
417 return description;
418 }
419 }
420
421 // Walk up the inheritance tree until we spot a non-empty description
422 return _parent ? _parent->getAttributeDescription(name) : "";
423}
424
425void EntityClass::clear()
426{

Callers 4

updateHelpTextMethod · 0.80
TEST_FFunction · 0.80
setEntityMethod · 0.80
setEntityMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
getDescriptionMethod · 0.45
emptyMethod · 0.45

Tested by 1

updateHelpTextMethod · 0.64