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

Method netLoad

source/core/StarNetElementBasicFields.hpp:223–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221
222template <typename T>
223void NetElementBasicField<T>::netLoad(DataStream& ds, NetCompatibilityRules rules) {
224 if (!checkWithRules(rules)) return;
225 readData(ds, m_value);
226 m_latestUpdateVersion = m_netVersion ? m_netVersion->current() : 0;
227 updated();
228 if (m_pendingInterpolatedValues)
229 m_pendingInterpolatedValues->clear();
230}
231
232template <typename T>
233bool NetElementBasicField<T>::writeNetDelta(DataStream& ds, uint64_t fromVersion, NetCompatibilityRules rules) const {

Callers

nothing calls this directly

Calls 2

currentMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected