| 141 | |
| 142 | template <typename T> |
| 143 | void NetElementFloating<T>::netLoad(DataStream& ds, NetCompatibilityRules rules) { |
| 144 | if (!checkWithRules(rules)) return; |
| 145 | m_value = readValue(ds); |
| 146 | m_latestUpdateVersion = m_netVersion ? m_netVersion->current() : 0; |
| 147 | if (m_interpolationDataPoints) { |
| 148 | m_interpolationDataPoints->clear(); |
| 149 | m_interpolationDataPoints->append({0.0f, m_value}); |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | template <typename T> |
| 154 | bool NetElementFloating<T>::writeNetDelta(DataStream& ds, uint64_t fromVersion, NetCompatibilityRules rules) const { |