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

Method netLoad

source/core/StarNetElementFloatFields.hpp:143–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142template <typename T>
143void NetElementFloating<T>::netLoad(DataStream& ds, NetCompatibilityRules rules) {
144 if (!checkWithRules(rules)) return;
145 m_value = readValue(ds);
146 m_latestUpdateVersion = m_netVersion ? m_netVersion->current() : 0;
147 if (m_interpolationDataPoints) {
148 m_interpolationDataPoints->clear();
149 m_interpolationDataPoints->append({0.0f, m_value});
150 }
151}
152
153template <typename T>
154bool NetElementFloating<T>::writeNetDelta(DataStream& ds, uint64_t fromVersion, NetCompatibilityRules rules) const {

Callers

nothing calls this directly

Calls 3

currentMethod · 0.45
clearMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected