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

Method uninit

source/game/StarStatusController.cpp:424–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424void StatusController::uninit() {
425 m_parentEntity = nullptr;
426 m_movementController = nullptr;
427
428 for (auto& p : m_uniqueEffects.keys())
429 if (auto effect = m_uniqueEffects.ptr(p))
430 uninitUniqueEffectScript(*effect);
431 uninitPrimaryScript();
432
433 m_recentHitsGiven.reset();
434 m_recentDamageGiven.reset();
435 m_recentDamageTaken.reset();
436}
437
438void StatusController::initNetVersion(NetElementVersion const* version) {
439 m_netGroup.initNetVersion(version);

Callers 2

uninitPrimaryScriptMethod · 0.45

Calls 3

keysMethod · 0.45
ptrMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected