| 166 | |
| 167 | template <typename T> |
| 168 | void NetElementFloating<T>::readNetDelta(DataStream& ds, float interpolationTime, NetCompatibilityRules rules) { |
| 169 | _unused(rules); |
| 170 | T t = readValue(ds); |
| 171 | |
| 172 | m_latestUpdateVersion = m_netVersion ? m_netVersion->current() : 0; |
| 173 | if (m_interpolationDataPoints) { |
| 174 | if (interpolationTime < m_interpolationDataPoints->last().first) |
| 175 | m_interpolationDataPoints->clear(); |
| 176 | m_interpolationDataPoints->append({interpolationTime, t}); |
| 177 | m_value = interpolate(); |
| 178 | } else { |
| 179 | m_value = t; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | template <typename T> |
| 184 | void NetElementFloating<T>::blankNetDelta(float interpolationTime) { |