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

Method onNewDataBlock

Engine/source/T3D/item.cpp:415–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415bool Item::onNewDataBlock( GameBaseData *dptr, bool reload )
416{
417 mDataBlock = dynamic_cast<ItemData*>(dptr);
418 if (!mDataBlock || !Parent::onNewDataBlock(dptr,reload))
419 return false;
420
421 if (!mSubclassItemHandlesScene)
422 scriptOnNewDataBlock();
423
424 if ( isProperlyAdded() )
425 _updatePhysics();
426
427 return true;
428}
429
430void Item::onRemove()
431{

Callers 2

startImageEmitterMethod · 0.45
ejectShellCasingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected