| 162 | } |
| 163 | |
| 164 | void StatCollection::netElementsNeedLoad(bool) { |
| 165 | if (m_statModifiersNetState.pullUpdated()) { |
| 166 | StatModifierGroupMap allModifiers; |
| 167 | for (auto const& p : m_statModifiersNetState) |
| 168 | allModifiers.add(p.first, p.second); |
| 169 | m_stats.setAllStatModifierGroups(std::move(allModifiers)); |
| 170 | } |
| 171 | |
| 172 | for (auto const& pair : m_resourceValuesNetStates) |
| 173 | m_stats.setResourceValue(pair.first, pair.second.get()); |
| 174 | |
| 175 | for (auto& pair : m_resourceLockedNetStates) |
| 176 | m_stats.setResourceLocked(pair.first, pair.second.get()); |
| 177 | } |
| 178 | |
| 179 | void StatCollection::netElementsNeedStore() { |
| 180 | m_statModifiersNetState.setContents(m_stats.allStatModifierGroups()); |
nothing calls this directly
no test coverage detected