Similar to NetworkValue, except each frame contains an array of elements.
More...
#include <Urho3D/Replica/NetworkValue.h>
|
|
void | Resize (unsigned size, unsigned capacity) |
| |
|
unsigned | Size () const |
| | Return dynamic size of the vector.
|
| |
|
ea::span< T > | SetUninitialized (NetworkFrame frame) |
| | Set value and return uninitialized buffer to be filled.
|
| |
|
void | Set (NetworkFrame frame, ValueSpan value) |
| | Set value for given frame if possible.
|
| |
|
ea::optional< ValueSpan > | GetRaw (NetworkFrame frame) const |
| | Return raw value at given frame.
|
| |
|
ValueSpan | GetClosestRaw (NetworkFrame frame) const |
| | Return closest valid raw value, if possible. Prior values take precedence.
|
| |
| InterpolatedValueSpan | SampleValid (const NetworkTime &time, float snapThreshold=M_LARGE_VALUE) const |
| |
|
|
unsigned | size_ {} |
| |
|
ea::vector< T > | values_ |
| |
|
ea::vector< T > | compressedValues_ |
| |
template<class T, class Traits = NetworkValueTraits<T>>
class Urho3D::NetworkValueVector< T, Traits >
Similar to NetworkValue, except each frame contains an array of elements.
◆ SampleValid()
template<class T , class Traits = NetworkValueTraits<T>>
Server-side sampling: interpolate between consequent frames or return value of the closest valid frame.
The documentation for this class was generated from the following file: