Rebel Fork Framework
|
Helper class to smoothly adjust NetworkTime on client. More...
#include <Urho3D/Replica/NetworkTime.h>
Public Member Functions | |
SoftNetworkTime (unsigned updateFrequency, float snapThreshold, float tolerance, float minTimeScale, float maxTimeScale) | |
void | Reset (const NetworkTime &targetTime) |
Reset time unconditionally. | |
float | Update (float timeStep, const NetworkTime &targetTime) |
Update time, result should be as close to target as possible. | |
const NetworkTime & | GetTime () const |
Private Attributes | |
const unsigned | updateFrequency_ {} |
const float | snapThreshold_ {} |
const float | tolerance_ {} |
const float | minTimeScale_ {} |
const float | maxTimeScale_ {} |
NetworkTime | smoothTime_ |
Helper class to smoothly adjust NetworkTime on client.