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

Method unloadModule

source/game/StarTechController.cpp:440–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440void TechController::unloadModule(TechModule& techModule) {
441 techModule.scriptComponent.uninit();
442 techModule.scriptComponent.removeCallbacks("tech");
443 techModule.scriptComponent.removeCallbacks("config");
444 techModule.scriptComponent.removeCallbacks("entity");
445 techModule.scriptComponent.removeCallbacks("animator");
446 techModule.scriptComponent.removeCallbacks("status");
447 techModule.scriptComponent.removeCallbacks("player");
448 techModule.scriptComponent.removeActorMovementCallbacks();
449}
450
451void TechController::initializeModules() {
452 for (auto& module : m_techModules) {

Callers

nothing calls this directly

Calls 3

removeCallbacksMethod · 0.80
uninitMethod · 0.45

Tested by

no test coverage detected