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

Method shouldWriteNetDelta

source/core/StarNetElementContainers.hpp:189–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187
188template <typename BaseMap>
189bool NetElementMapWrapper<BaseMap>::shouldWriteNetDelta(uint64_t fromVersion, NetCompatibilityRules rules) const {
190 if (!checkWithRules(rules)) return false;
191 if (fromVersion < m_changeDataLastVersion)
192 return true;
193
194 for (auto const& p : m_changeData)
195 if (p.first >= fromVersion)
196 return true;
197
198 return false;
199}
200
201template <typename BaseMap>
202bool NetElementMapWrapper<BaseMap>::writeNetDelta(DataStream& ds, uint64_t fromVersion, NetCompatibilityRules rules) const {

Callers 1

StatusControllerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected