| 197 | } |
| 198 | |
| 199 | void Npc::uninit() { |
| 200 | if (isMaster()) { |
| 201 | m_movementController->resetAnchorState(); |
| 202 | m_scriptComponent.uninit(); |
| 203 | m_scriptComponent.removeCallbacks("npc"); |
| 204 | m_scriptComponent.removeCallbacks("config"); |
| 205 | m_scriptComponent.removeCallbacks("entity"); |
| 206 | m_scriptComponent.removeCallbacks("status"); |
| 207 | m_scriptComponent.removeCallbacks("behavior"); |
| 208 | m_scriptComponent.removeCallbacks("songbook"); |
| 209 | m_scriptComponent.removeActorMovementCallbacks(); |
| 210 | } |
| 211 | m_tools->uninit(); |
| 212 | m_statusController->uninit(); |
| 213 | m_movementController->uninit(); |
| 214 | Entity::uninit(); |
| 215 | } |
| 216 | |
| 217 | void Npc::enableInterpolation(float extrapolationHint) { |
| 218 | m_netGroup.enableNetInterpolation(extrapolationHint); |
no test coverage detected