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

Method uninit

source/game/StarProjectile.cpp:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void Projectile::uninit() {
110 if (m_persistentAudio)
111 m_persistentAudio->stop();
112 m_movementController->uninit();
113 if (isMaster()) {
114 if (!m_config->scripts.empty()) {
115 m_scriptComponent.uninit();
116 m_scriptComponent.removeCallbacks("projectile");
117 m_scriptComponent.removeCallbacks("config");
118 m_scriptComponent.removeCallbacks("entity");
119 m_scriptComponent.removeCallbacks("mcontroller");
120 }
121 }
122 Entity::uninit();
123}
124
125String Projectile::typeName() const {
126 return m_config->typeName;

Callers

nothing calls this directly

Calls 3

removeCallbacksMethod · 0.80
stopMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected