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

Method uninit

source/game/StarObject.cpp:249–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void 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
272List<LightSource> Object::lightSources() const {
273 List<LightSource> lights;

Callers

nothing calls this directly

Calls 3

removeCallbacksMethod · 0.80
isClientMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected