| 200 | |
| 201 | template <typename T> |
| 202 | void NetElementBasicField<T>::tickNetInterpolation(float dt) { |
| 203 | if (m_pendingInterpolatedValues) { |
| 204 | for (auto& p : *m_pendingInterpolatedValues) |
| 205 | p.first -= dt; |
| 206 | while (!m_pendingInterpolatedValues->empty() && m_pendingInterpolatedValues->first().first <= 0.0f) { |
| 207 | m_value = m_pendingInterpolatedValues->takeFirst().second; |
| 208 | updated(); |
| 209 | } |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | template <typename T> |
| 214 | void NetElementBasicField<T>::netStore(DataStream& ds, NetCompatibilityRules rules) const { |