Rebel Fork Framework
Urho3D::SoftNetworkTime Class Reference

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_

Detailed Description

Helper class to smoothly adjust NetworkTime on client.


The documentation for this class was generated from the following files:
  • Urho3D/Replica/NetworkTime.h
  • Urho3D/Replica/NetworkTime.cpp