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

Method GetOrCreateFloat

BG3Extender/GameDefinitions/Stats/Stats.cpp:432–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432float* RPGStats::GetOrCreateFloat(int& attributeId)
433{
434 if (attributeId < 0) {
435 attributeId = (int)Floats.Size();
436 Floats.push_back(.0f);
437 }
438
439 return &Floats[attributeId];
440}
441
442std::optional<Guid*> RPGStats::GetGuid(int attributeId)
443{

Callers

nothing calls this directly

Calls 2

SizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected