| 163 | |
| 164 | template <typename Element> |
| 165 | void NetElementDynamicGroup<Element>::netStore(DataStream& ds, NetCompatibilityRules rules) const { |
| 166 | if (!checkWithRules(rules)) return; |
| 167 | ds.writeVlqU(m_idMap.size()); |
| 168 | |
| 169 | m_buffer.setStreamCompatibilityVersion(rules); |
| 170 | for (auto& pair : m_idMap) { |
| 171 | ds.writeVlqU(pair.first); |
| 172 | pair.second->netStore(m_buffer, rules); |
| 173 | ds.write(m_buffer.data()); |
| 174 | m_buffer.clear(); |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | template <typename Element> |
| 179 | void NetElementDynamicGroup<Element>::netLoad(DataStream& ds, NetCompatibilityRules rules) { |