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

Method updateAnimators

source/game/StarStatusController.cpp:666–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666void StatusController::updateAnimators(float dt) {
667 for (auto const& animator : m_effectAnimators.netElements()) {
668 if (m_parentEntity->world()->isServer()) {
669 animator->animator.update(dt, nullptr);
670 } else {
671 animator->animator.update(dt, &animator->dynamicTarget);
672 animator->dynamicTarget.updatePosition(m_movementController->position());
673 }
674 }
675}
676
677void StatusController::updatePersistentUniqueEffects() {
678 Set<UniqueStatusEffect> activePersistentUniqueEffects;

Callers

nothing calls this directly

Calls 6

netElementsMethod · 0.80
isServerMethod · 0.80
updatePositionMethod · 0.80
worldMethod · 0.45
updateMethod · 0.45
positionMethod · 0.45

Tested by

no test coverage detected