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

Method assignDynamicFieldsFrom

Engine/source/console/simObject.cpp:243–251  ·  view source on GitHub ↗

Copies dynamic fields from one object to another, optionally limited by the settings for and . When true, prohibits the replacement of fields that already have a value. When is specified, only fields with leading characters that exactly match the characters in are copied.

Source from the content-addressed store, hash-verified

241// already have a value. When <filter> is specified, only fields with leading characters that
242// exactly match the characters in <filter> are copied.
243void SimObject::assignDynamicFieldsFrom(SimObject* from, const char* filter, bool no_replace)
244{
245 if (from->mFieldDictionary)
246 {
247 if( mFieldDictionary == NULL )
248 mFieldDictionary = new SimFieldDictionary;
249 mFieldDictionary->assignFrom(from->mFieldDictionary, filter, no_replace);
250 }
251}
252//=============================================================================
253// Persistence.
254//=============================================================================

Callers 3

cast_spellMethod · 0.80
start_effectMethod · 0.80
start_selectronMethod · 0.80

Calls 1

assignFromMethod · 0.80

Tested by

no test coverage detected