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

Method initPrimaryScript

source/game/StarStatusController.cpp:757–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757void StatusController::initPrimaryScript() {
758 m_primaryScript.addCallbacks("status", LuaBindings::makeStatusControllerCallbacks(this));
759 m_primaryScript.addCallbacks("entity", LuaBindings::makeEntityCallbacks(m_parentEntity));
760 if (m_primaryAnimatorId != EffectAnimatorGroup::NullElementId) {
761 auto animator = m_effectAnimators.getNetElement(m_primaryAnimatorId);
762 m_primaryScript.addCallbacks("animator", LuaBindings::makeNetworkedAnimatorCallbacks(&animator->animator));
763 }
764 m_primaryScript.addActorMovementCallbacks(m_movementController);
765 m_primaryScript.init(m_parentEntity->world());
766}
767
768void StatusController::uninitPrimaryScript() {
769 m_primaryScript.uninit();

Callers

nothing calls this directly

Calls 5

getNetElementMethod · 0.80
addCallbacksMethod · 0.45
initMethod · 0.45
worldMethod · 0.45

Tested by

no test coverage detected