|
| NetworkValue (const Traits &traits) |
|
void | Resize (unsigned capacity) |
|
void | Set (NetworkFrame frame, const InternalType &value) |
| Set value for given frame if possible.
|
|
bool | Has (NetworkFrame frame) const |
| Return whether the frame is present.
|
|
ea::optional< InternalType > | GetRaw (NetworkFrame frame) const |
| Return raw value at given frame.
|
|
const InternalType & | GetRawUnchecked (NetworkFrame frame) const |
| Return raw valid value at given frame.
|
|
ea::optional< ea::pair< InternalType, NetworkFrame > > | GetRawOrPrior (NetworkFrame frame) const |
| Return raw value at the given or prior frame.
|
|
InternalType | GetClosestRaw (NetworkFrame frame) const |
| Return closest valid raw value. Prior values take precedence.
|
|
InternalType | SampleValid (const NetworkTime &time, float snapThreshold=M_LARGE_VALUE) const |
| Interpolate between two frames or return value of the closest valid frame.
|
|
ea::optional< InternalType > | SamplePrecise (const NetworkTime &time, float snapThreshold=M_LARGE_VALUE) const |
| Interpolate between two valid frames if possible.
|
|
template<class T, class Traits = NetworkValueTraits<T>>
class Urho3D::NetworkValue< T, Traits >
Value stored at multiple points of time in ring buffer. If value was set at least once, it will have at least one valid value forever. Value can be sampled raw or interpolated. No extrapolation is performed.