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

Method netElementsNeedStore

source/game/StarStatCollection.cpp:179–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void StatCollection::netElementsNeedStore() {
180 m_statModifiersNetState.setContents(m_stats.allStatModifierGroups());
181
182 for (auto& pair : m_resourceValuesNetStates)
183 pair.second.set(m_stats.resourceValue(pair.first));
184
185 for (auto& pair : m_resourceLockedNetStates)
186 pair.second.set(m_stats.resourceLocked(pair.first));
187}
188
189}

Callers

nothing calls this directly

Calls 4

setContentsMethod · 0.80
resourceValueMethod · 0.80
setMethod · 0.45
resourceLockedMethod · 0.45

Tested by

no test coverage detected