| 187 | |
| 188 | template <typename BaseMap> |
| 189 | bool 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 | |
| 201 | template <typename BaseMap> |
| 202 | bool NetElementMapWrapper<BaseMap>::writeNetDelta(DataStream& ds, uint64_t fromVersion, NetCompatibilityRules rules) const { |