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

Method netElementsNeedLoad

source/game/StarNetworkedAnimator.cpp:1094–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092}
1093
1094void NetworkedAnimator::netElementsNeedLoad(bool initial) {
1095 for (auto& pair : m_stateInfo) {
1096 if (pair.second.startedEvent.pullOccurred() || initial)
1097 m_animatedParts.setActiveStateIndex(pair.first, pair.second.stateIndex.get(), true);
1098 }
1099
1100 for (auto& pair : m_rotationGroups) {
1101 if (pair.second.netImmediateEvent.pullOccurred() || initial)
1102 pair.second.currentAngle = pair.second.targetAngle.get();
1103 }
1104}
1105
1106void NetworkedAnimator::netElementsNeedStore() {
1107 for (auto& pair : m_stateInfo)

Callers

nothing calls this directly

Calls 3

pullOccurredMethod · 0.80
setActiveStateIndexMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected