MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / GetReputationAsText

Method GetReputationAsText

ogsr_engine/xrGame/ui/UIInventoryUtilities.cpp:413–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411//////////////////////////////////////////////////////////////////////////
412
413LPCSTR InventoryUtilities::GetReputationAsText(CHARACTER_REPUTATION_VALUE rankID)
414{
415 InitCharacterInfoStrings();
416
417 CharInfoStrings::const_iterator cit = charInfoReputationStrings->upper_bound(rankID);
418 if (charInfoReputationStrings->end() == cit)
419 return charInfoReputationStrings->rbegin()->second.c_str();
420
421 return cit->second.c_str();
422}
423
424//////////////////////////////////////////////////////////////////////////
425

Callers

nothing calls this directly

Calls 4

InitCharacterInfoStringsFunction · 0.85
rbeginMethod · 0.80
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected