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

Method tickNetInterpolation

source/core/StarNetElementContainers.hpp:149–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147
148template <typename BaseMap>
149void NetElementMapWrapper<BaseMap>::tickNetInterpolation(float dt) {
150 for (auto& p : m_pendingChangeData)
151 p.first -= dt;
152
153 while (!m_pendingChangeData.empty() && m_pendingChangeData.first().first <= 0.0f)
154 applyChange(m_pendingChangeData.takeFirst().second);
155}
156
157template <typename BaseMap>
158void NetElementMapWrapper<BaseMap>::netStore(DataStream& ds, NetCompatibilityRules rules) const {

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
firstMethod · 0.45
takeFirstMethod · 0.45

Tested by

no test coverage detected