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

Method _onAddSource

Engine/source/sfx/sfxSystem.cpp:654–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

onAddMethod · 0.80

Calls 2

push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected