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

Method _setStatus

Engine/source/sfx/sfxSource.cpp:769–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767//-----------------------------------------------------------------------------
768
769void SFXSource::_setStatus( SFXStatus status )
770{
771 if( mStatus == status )
772 return;
773
774 mStatus = status;
775
776 // Clear saved status.
777
778 mSavedStatus = SFXStatusNull;
779
780 // Do the callback if we have it.
781
782 if( mStatusCallback && mStatusCallback[0] )
783 {
784 const char* statusString = SFXStatusToString( mStatus );
785 Con::executef( mStatusCallback, getIdString(), statusString );
786 }
787 else if( getNamespace() )
788 onStatusChange_callback( status );
789}
790
791//-----------------------------------------------------------------------------
792

Callers

nothing calls this directly

Calls 2

SFXStatusToStringFunction · 0.85
executefFunction · 0.85

Tested by

no test coverage detected