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

Method _onAddSource

Engine/source/sfx/sfxSystem.cpp:657–669  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655//-----------------------------------------------------------------------------
656
657void SFXSystem::_onAddSource( SFXSource* source )
658{
659 if( dynamic_cast< SFXSound* >( source ) )
660 {
661 SFXSound* sound = static_cast< SFXSound* >( source );
662 mSounds.push_back( sound );
663
664 mStatNumSounds = mSounds.size();
665 }
666
667 // Update the stats.
668 mStatNumSources ++;
669}
670
671//-----------------------------------------------------------------------------
672

Callers 1

onAddMethod · 0.80

Calls 2

push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected