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

Method update

source/core/StarNetElementBasicFields.hpp:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169template <typename T>
170template <typename Mutator>
171void NetElementBasicField<T>::update(Mutator&& mutator) {
172 if (mutator(m_value)) {
173 updated();
174 m_latestUpdateVersion = m_netVersion ? m_netVersion->current() : 0;
175 if (m_pendingInterpolatedValues)
176 m_pendingInterpolatedValues->clear();
177 }
178}
179
180template <typename T>
181void NetElementBasicField<T>::initNetVersion(NetElementVersion const* version) {

Callers

nothing calls this directly

Calls 2

currentMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected