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

Method updateAnimators

source/game/StarTechController.cpp:480–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480void TechController::updateAnimators(float dt) {
481 for (auto const& module : m_techModules)
482 m_techAnimators.getNetElement(module.animatorId)->setVisible(module.visible);
483
484 for (auto const& animator : m_techAnimators.netElements()) {
485 if (m_parentEntity->world()->isServer() || !animator->isVisible()) {
486 animator->animator.update(dt, nullptr);
487 } else {
488 animator->animator.update(dt, &animator->dynamicTarget);
489 animator->dynamicTarget.updatePosition(m_movementController->position());
490 }
491 }
492}
493
494LuaCallbacks TechController::makeTechCallbacks(TechModule& techModule) {
495 LuaCallbacks callbacks;

Callers

nothing calls this directly

Calls 9

setVisibleMethod · 0.80
getNetElementMethod · 0.80
netElementsMethod · 0.80
isServerMethod · 0.80
isVisibleMethod · 0.80
updatePositionMethod · 0.80
worldMethod · 0.45
updateMethod · 0.45
positionMethod · 0.45

Tested by

no test coverage detected