| 422 | } |
| 423 | |
| 424 | void 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 | |
| 438 | void StatusController::initNetVersion(NetElementVersion const* version) { |
| 439 | m_netGroup.initNetVersion(version); |
no test coverage detected