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

Method isField

Engine/source/console/simObject.cpp:876–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874//-----------------------------------------------------------------------------
875
876bool SimObject::isField( const char* fieldName, bool includeStatic, bool includeDynamic )
877{
878 const char* strFieldName = StringTable->insert( fieldName );
879
880 if( includeStatic && getClassRep()->findField( strFieldName ) )
881 return true;
882
883 if( includeDynamic && getFieldDictionary() && getFieldDictionary()->findDynamicField( strFieldName ) )
884 return true;
885
886 return false;
887}
888
889//-----------------------------------------------------------------------------
890

Callers 3

simObject.cppFile · 0.80
addFieldMethod · 0.80
renameFieldMethod · 0.80

Calls 3

findDynamicFieldMethod · 0.80
insertMethod · 0.45
findFieldMethod · 0.45

Tested by 1

addFieldMethod · 0.64