| 247 | } |
| 248 | |
| 249 | void Object::uninit() { |
| 250 | if (isMaster()) { |
| 251 | m_scriptComponent.uninit(); |
| 252 | m_scriptComponent.removeCallbacks("object"); |
| 253 | m_scriptComponent.removeCallbacks("config"); |
| 254 | m_scriptComponent.removeCallbacks("entity"); |
| 255 | m_scriptComponent.removeCallbacks("animator"); |
| 256 | } |
| 257 | |
| 258 | if (world()->isClient()) { |
| 259 | m_scriptedAnimator.uninit(); |
| 260 | m_scriptedAnimator.removeCallbacks("animationConfig"); |
| 261 | m_scriptedAnimator.removeCallbacks("objectAnimator"); |
| 262 | m_scriptedAnimator.removeCallbacks("config"); |
| 263 | m_scriptedAnimator.removeCallbacks("entity"); |
| 264 | } |
| 265 | |
| 266 | if (m_soundEffect) |
| 267 | m_soundEffect->stop(); |
| 268 | |
| 269 | Entity::uninit(); |
| 270 | } |
| 271 | |
| 272 | List<LightSource> Object::lightSources() const { |
| 273 | List<LightSource> lights; |
nothing calls this directly
no test coverage detected