| 478 | } |
| 479 | |
| 480 | void 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 | |
| 494 | LuaCallbacks TechController::makeTechCallbacks(TechModule& techModule) { |
| 495 | LuaCallbacks callbacks; |
nothing calls this directly
no test coverage detected