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

Method cloneAndPerformSubstitutions

Engine/source/T3D/fx/explosion.cpp:377–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377ExplosionData* ExplosionData::cloneAndPerformSubstitutions(const SimObject* owner, S32 index)
378{
379 if (!owner || getSubstitutionCount() == 0)
380 return this;
381
382 ExplosionData* sub_explosion_db = new ExplosionData(*this, true);
383 performSubstitutions(sub_explosion_db, owner, index);
384
385 return sub_explosion_db;
386}
387
388void ExplosionData::initPersistFields()
389{

Callers 3

launchDebrisMethod · 0.45
spawnSubExplosionsMethod · 0.45
explodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected