Reset
method in Coherence.INetworkTime
Methods
void Reset(AbsoluteSimulationFrame newClientAndServerFrame = default, bool notify = true)
Resets client and server frames to the given value. Happens on connect, disconnect and when client/server frames are too far apart. Sets Coherence.Core.NetworkTime.IsTimeSynced to false, causing Coherence.Core.NetworkTime.SessionTime to reset back to zero. Triggers Coherence.Core.NetworkTime.OnTimeReset.
The new frame value that will be applied to both Coherence.Core.NetworkTime.ClientSimulationFrame and Coherence.Core.NetworkTime.ServerSimulationFrame. Default is frame zero.Parameters
Type | Name | Description |
---|---|---|
AbsoluteSimulationFrame | newClientAndServerFrame | |
bool | notify |