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

Method getKeyValue

radiantcore/entity/SpawnArgs.cpp:182–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182std::string SpawnArgs::getKeyValue(const std::string& key) const
183{
184 // Lookup the key in the map
185 KeyValues::const_iterator i = find(key);
186
187 // If key is found, return it, otherwise lookup the default value on
188 // the entity class
189 if (i != _keyValues.end())
190 {
191 return i->second->get();
192 }
193 else
194 {
195 return _eclass->getAttributeValue(key);
196 }
197}
198
199bool SpawnArgs::isInherited(const std::string& key) const
200{

Callers 12

attachObserverMethod · 0.45
observeKeyMethod · 0.45
refreshObserversMethod · 0.45
writeToEntityMethod · 0.45
getNameMethod · 0.45
freezeTransformMethod · 0.45
convertCurveTypeMethod · 0.45
updateIsModelMethod · 0.45
GenericEntityNodeMethod · 0.45
cloneMethod · 0.45
constructMethod · 0.45

Calls 4

findFunction · 0.50
endMethod · 0.45
getMethod · 0.45
getAttributeValueMethod · 0.45

Tested by

no test coverage detected