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

Method push

source/core/StarNetElementBasicFields.hpp:156–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154
155template <typename T>
156void NetElementBasicField<T>::push(T value) {
157 m_value = std::move(value);
158 updated();
159 m_latestUpdateVersion = m_netVersion ? m_netVersion->current() : 0;
160 if (m_pendingInterpolatedValues)
161 m_pendingInterpolatedValues->clear();
162}
163
164template <typename T>
165bool NetElementBasicField<T>::pullUpdated() {

Callers

nothing calls this directly

Calls 2

currentMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected