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

Method _setDescription

Engine/source/sfx/sfxSource.cpp:738–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736//-----------------------------------------------------------------------------
737
738bool SFXSource::_setDescription( void* obj, const char* index, const char* data )
739{
740 SFXSource* source = reinterpret_cast< SFXSource* >( obj );
741
742 source->mDescription = EngineUnmarshallData< SFXDescription* >()( data );
743 if( !source->mDescription )
744 {
745 Con::errorf( "SFXSource::_setDescription - No SFXDescription '%s'", data );
746 return false;
747 }
748
749 source->notifyDescriptionChanged();
750
751 return false;
752}
753
754//-----------------------------------------------------------------------------
755

Callers

nothing calls this directly

Calls 2

errorfFunction · 0.50

Tested by

no test coverage detected