MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getDataFieldPrefix

Method getDataFieldPrefix

Engine/source/console/simObject.cpp:1213–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211//-----------------------------------------------------------------------------
1212
1213StringTableEntry SimObject::getDataFieldPrefix(StringTableEntry fieldName)
1214{
1215 // Sanity!
1216 AssertFatal(fieldName != NULL, "Cannot get field prefix with NULL field name.");
1217
1218 // Find the field.
1219 const AbstractClassRep::Field* pField = findField(fieldName);
1220
1221 // Return nothing if field was not found.
1222 if (pField == NULL)
1223 return StringTable->EmptyString();
1224
1225 // Yes, so fetch the console base type.
1226 ConsoleBaseType* pConsoleBaseType = ConsoleBaseType::getType(pField->type);
1227
1228 // Fetch the type prefix.
1229 return pConsoleBaseType->getTypePrefix();
1230}
1231
1232
1233//-----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

getTypeFunction · 0.85
EmptyStringMethod · 0.80
getTypePrefixMethod · 0.80

Tested by

no test coverage detected