| 107 | } |
| 108 | |
| 109 | void 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 | |
| 125 | String Projectile::typeName() const { |
| 126 | return m_config->typeName; |
nothing calls this directly
no test coverage detected