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

Method GetFloat

BG3Extender/GameDefinitions/Stats/Stats.cpp:423–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423std::optional<float*> RPGStats::GetFloat(int attributeId)
424{
425 if (attributeId > 0) {
426 return &Floats[attributeId];
427 } else {
428 return {};
429 }
430}
431
432float* RPGStats::GetOrCreateFloat(int& attributeId)
433{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected