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

Method initNetVersion

source/core/StarNetElementContainers.hpp:122–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121template <typename BaseMap>
122void NetElementMapWrapper<BaseMap>::initNetVersion(NetElementVersion const* version) {
123 m_netVersion = version;
124
125 m_changeData.clear();
126 m_changeDataLastVersion = 0;
127
128 for (auto& change : Star::take(m_pendingChangeData))
129 applyChange(std::move(change.second));
130
131 addChangeData(ClearChange());
132 for (auto const& p : *this)
133 addChangeData(SetChange{p.first, p.second});
134}
135
136template <typename BaseMap>
137void NetElementMapWrapper<BaseMap>::enableNetInterpolation(float) {

Callers

nothing calls this directly

Calls 3

takeFunction · 0.85
ClearChangeClass · 0.85
clearMethod · 0.45

Tested by

no test coverage detected