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

Method uninit

source/game/StarNpc.cpp:199–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void 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
217void Npc::enableInterpolation(float extrapolationHint) {
218 m_netGroup.enableNetInterpolation(extrapolationHint);

Callers 11

destructEntityMethod · 0.45
removeEntityMethod · 0.45
stopLuaMethod · 0.45
runStatScriptMethod · 0.45
~WorldServerMethod · 0.45
removeEntityMethod · 0.45
stopLuaMethod · 0.45
applyAugmentMethod · 0.45
ageItemMethod · 0.45
dismissedMethod · 0.45
dismissedMethod · 0.45

Calls 3

resetAnchorStateMethod · 0.80
removeCallbacksMethod · 0.80

Tested by

no test coverage detected