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

Method setDataBlockProperty

Engine/source/T3D/gameBase/gameBase.cpp:680–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680bool GameBase::setDataBlockProperty( void *obj, const char *index, const char *db)
681{
682 if( db == NULL || !db[ 0 ] )
683 {
684 Con::errorf( "GameBase::setDataBlockProperty - Can't unset datablock on GameBase objects" );
685 return false;
686 }
687
688 GameBase* object = static_cast< GameBase* >( obj );
689 GameBaseData* data;
690 if( Sim::findObject( db, data ) )
691 return object->setDataBlock( data );
692
693 Con::errorf( "GameBase::setDatablockProperty - Could not find data block \"%s\"", db );
694 return false;
695}
696
697MoveList* GameBase::getMoveList()
698{

Callers

nothing calls this directly

Calls 3

setDataBlockMethod · 0.80
errorfFunction · 0.50
findObjectFunction · 0.50

Tested by

no test coverage detected