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

Method initNetVersion

source/core/StarNetElementDynamicGroup.hpp:128–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127template <typename Element>
128void NetElementDynamicGroup<Element>::initNetVersion(NetElementVersion const* version) {
129 m_netVersion = version;
130 m_changeData.clear();
131 m_changeDataLastVersion = 0;
132
133 addChangeData(ElementReset());
134 for (auto& pair : m_idMap) {
135 pair.second->initNetVersion(m_netVersion);
136 DataStreamBuffer storeBuffer;
137 pair.second->netStore(storeBuffer, {});
138 addChangeData(ElementAddition(pair.first, storeBuffer.takeData()));
139 }
140}
141
142template <typename Element>
143void NetElementDynamicGroup<Element>::enableNetInterpolation(float extrapolationHint) {

Callers 1

readyElementMethod · 0.45

Calls 3

clearMethod · 0.45
netStoreMethod · 0.45
takeDataMethod · 0.45

Tested by

no test coverage detected