MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / stopAllSounds

Method stopAllSounds

source/game/StarNetworkedAnimator.cpp:574–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

572}
573
574void NetworkedAnimator::stopAllSounds(String const& soundName, float rampTime) {
575 auto& sound = m_sounds.get(soundName);
576 sound.volumeRampTime.set(rampTime);
577 sound.signals.send(SoundSignal::StopAll);
578}
579
580void NetworkedAnimator::setEffectEnabled(String const& effect, bool enabled) {
581 m_effects.get(effect).enabled.set(enabled);

Callers 1

Calls 3

getMethod · 0.45
setMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected