MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / findDynamicField

Method findDynamicField

Engine/source/console/simFieldDictionary.cpp:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147SimFieldDictionary::Entry *SimFieldDictionary::findDynamicField(const String &fieldName) const
148{
149 U32 bucket = getHashValue(fieldName);
150
151 for (Entry *walk = mHashTable[bucket]; walk; walk = walk->next)
152 {
153 if (fieldName.equal(walk->slotName, String::NoCase))
154 return walk;
155 }
156
157 return NULL;
158}
159
160SimFieldDictionary::Entry *SimFieldDictionary::findDynamicField(StringTableEntry fieldName) const
161{

Callers 4

isFieldMethod · 0.80
onAddMethod · 0.80
renameFieldMethod · 0.80

Calls 1

equalMethod · 0.45

Tested by

no test coverage detected