MCPcopy Create free account
hub / github.com/Norbyte/bg3se / GetOrCreateTranslatedString

Method GetOrCreateTranslatedString

BG3Extender/GameDefinitions/Stats/Stats.cpp:470–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

468}
469
470TranslatedString* RPGStats::GetOrCreateTranslatedString(int& attributeId)
471{
472 if (attributeId < 0) {
473 attributeId = (int)TranslatedStrings.Size();
474 TranslatedStrings.push_back(TranslatedString{});
475 }
476
477 return &TranslatedStrings[attributeId];
478}
479
480std::optional<STDString*> RPGStats::GetConditions(int conditionsId)
481{

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected