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 |
| |
|
|
ValueSpan | GetSpanForIndex (unsigned index) const |
| |
|
bool | IsInitialized () const |
| |
|
unsigned | GetCapacity () const |
| |
|
NetworkFrame | GetFirstFrame () const |
| |
|
NetworkFrame | GetLastFrame () const |
| |
|
void | Resize (unsigned capacity) |
| |
|
ea::optional< unsigned > | FrameToIndex (NetworkFrame frame) const |
| |
|
unsigned | FrameToIndexUnchecked (NetworkFrame frame) const |
| |
|
ea::optional< unsigned > | AllocatedFrameToIndex (NetworkFrame frame) const |
| |
|
template<class T > |
| bool | AllocateFrame (NetworkFrame frame, const T &compressCallback) |
| |
|
bool | HasFrame (NetworkFrame frame) const |
| |
|
ea::optional< NetworkFrame > | FindClosestAllocatedFrame (NetworkFrame frame, bool searchPast, bool searchFuture) const |
| |
|
NetworkFrame | GetClosestAllocatedFrame (NetworkFrame frame) const |
| |
|
InterpolationBase | GetValidFrameInterpolation (const NetworkTime &time) 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:
- Urho3D/Replica/NetworkValue.h