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

Method enableNetInterpolation

source/core/StarNetElementGroup.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void NetElementGroup::enableNetInterpolation(float extrapolationHint) {
39 m_interpolationEnabled = true;
40 m_extrapolationHint = extrapolationHint;
41 for (auto& p : m_elements) {
42 if (p.second)
43 p.first->enableNetInterpolation(extrapolationHint);
44 }
45}
46
47void NetElementGroup::disableNetInterpolation() {
48 m_interpolationEnabled = false;

Callers 1

addNetElementMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected