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

Method onNewDataBlock

Engine/source/T3D/item.cpp:419–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

startImageEmitterMethod · 0.45
ejectShellCasingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected