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

Method GetGoodwillAsText

ogsr_engine/xrGame/ui/UIInventoryUtilities.cpp:426–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424//////////////////////////////////////////////////////////////////////////
425
426LPCSTR InventoryUtilities::GetGoodwillAsText(CHARACTER_GOODWILL goodwill)
427{
428 InitCharacterInfoStrings();
429
430 CharInfoStrings::const_iterator cit = charInfoGoodwillStrings->upper_bound(goodwill);
431 if (charInfoGoodwillStrings->end() == cit)
432 return charInfoGoodwillStrings->rbegin()->second.c_str();
433
434 return cit->second.c_str();
435}
436
437//////////////////////////////////////////////////////////////////////////
438// специальная функция для передачи info_portions при нажатии кнопок UI

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