chore: grammarly mistake
This commit is contained in:
@@ -35,8 +35,8 @@ namespace Ragon.Client
|
|||||||
private RagonStatus _status;
|
private RagonStatus _status;
|
||||||
private NetworkStatistics _stats;
|
private NetworkStatistics _stats;
|
||||||
|
|
||||||
private float _replicatationRate = 0;
|
private float _replicationRate = 0;
|
||||||
private float _replicatationTime = 0;
|
private float _replicationTime = 0;
|
||||||
|
|
||||||
public IRagonConnection Connection => _connection;
|
public IRagonConnection Connection => _connection;
|
||||||
public RagonStatus Status => _status;
|
public RagonStatus Status => _status;
|
||||||
@@ -67,8 +67,8 @@ namespace Ragon.Client
|
|||||||
_connection.OnConnected += OnConnected;
|
_connection.OnConnected += OnConnected;
|
||||||
_connection.OnDisconnected += OnDisconnected;
|
_connection.OnDisconnected += OnDisconnected;
|
||||||
|
|
||||||
_replicatationRate = (1000.0f / rate) / 1000.0f;
|
_replicationRate = (1000.0f / rate) / 1000.0f;
|
||||||
_replicatationTime = 0;
|
_replicationTime = 0;
|
||||||
|
|
||||||
_eventCache = new RagonEventCache();
|
_eventCache = new RagonEventCache();
|
||||||
_stats = new NetworkStatistics();
|
_stats = new NetworkStatistics();
|
||||||
@@ -129,11 +129,11 @@ namespace Ragon.Client
|
|||||||
|
|
||||||
public void Update(float dt)
|
public void Update(float dt)
|
||||||
{
|
{
|
||||||
_replicatationTime += dt;
|
_replicationTime += dt;
|
||||||
if (_replicatationTime >= _replicatationRate)
|
if (_replicationTime >= _replicationRate)
|
||||||
{
|
{
|
||||||
_entityCache.WriteState(_readBuffer);
|
_entityCache.WriteState(_readBuffer);
|
||||||
_replicatationTime = 0;
|
_replicationTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_stats.Update(_connection.BytesSent, _connection.BytesReceived, _connection.Ping, dt);
|
_stats.Update(_connection.BytesSent, _connection.BytesReceived, _connection.Ping, dt);
|
||||||
|
|||||||
Reference in New Issue
Block a user