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

Method onNewDataBlock

Engine/source/T3D/debris.cpp:591–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591bool Debris::onNewDataBlock( GameBaseData *dptr, bool reload )
592{
593 mDataBlock = dynamic_cast< DebrisData* >( dptr );
594 if( !mDataBlock || !Parent::onNewDataBlock( dptr, reload ) )
595 return false;
596
597 if (mDataBlock->isTempClone())
598 return true;
599 scriptOnNewDataBlock();
600 return true;
601
602}
603
604bool Debris::onAdd()
605{

Callers 2

onAddMethod · 0.45
explodeMethod · 0.45

Calls 1

isTempCloneMethod · 0.80

Tested by

no test coverage detected