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

Method cancelAll

source/game/StarAmbient.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void AmbientManager::cancelAll() {
155 if (m_weatherTrack) {
156 m_weatherTrack->stop();
157 m_weatherTrack = {};
158 }
159 if (m_currentTrack) {
160 m_currentTrack->stop();
161 m_currentTrack = {};
162 }
163}
164
165void AmbientManager::setVolume(float volume, float delay, float duration) {
166 if (m_volume == volume)

Callers 2

clearWorldMethod · 0.80
switchStateMethod · 0.80

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected