MCPcopy Create free account
hub / github.com/Norbyte/ositools / GetAttributeInfo

Method GetAttributeInfo

OsiInterface/DivInterface.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 CRPGStats_Modifier * ModifierList::GetAttributeInfo(const char * name, int * attributeIndex) const
54 {
55 auto index = Attributes.FindIndex(name);
56 if (index == -1) {
57 return nullptr;
58 }
59 else {
60 *attributeIndex = index;
61 return Attributes.Find(index);
62 }
63 }
64
65 bool CRPGStatsManager::ObjectExists(FixedString statsId, FixedString type)
66 {

Callers 1

StatAttributeExistsFunction · 0.80

Calls 2

FindIndexMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected