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

Method cloneAndPerformSubstitutions

Engine/source/T3D/debris.cpp:181–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181DebrisData* DebrisData::cloneAndPerformSubstitutions(const SimObject* owner, S32 index)
182{
183 if (!owner || getSubstitutionCount() == 0)
184 return this;
185
186 DebrisData* sub_debris_db = new DebrisData(*this, true);
187 performSubstitutions(sub_debris_db, owner, index);
188
189 return sub_debris_db;
190}
191
192void DebrisData::onPerformSubstitutions()
193{

Callers 2

onAddMethod · 0.45
explodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected