refactor: make it clearer that connection id is 0 or possitive

This commit is contained in:
Paul Pacheco 2019-10-23 07:20:42 -05:00
parent 035e6307f9
commit 13e4e6fe3a

View File

@ -30,7 +30,7 @@ public class NetworkConnection : IDisposable
/// <para>Transport layers connections begin at one. So on a client with a single connection to a server, the connectionId of that connection will be one. In NetworkServer, the connectionId of the local connection is zero.</para>
/// <para>Clients do not know their connectionId on the server, and do not know the connectionId of other clients on the server.</para>
/// </remarks>
public readonly int connectionId = -1;
public readonly int connectionId;
/// <summary>
/// Flag that indicates the client has been authenticated.
@ -117,7 +117,6 @@ internal set
internal NetworkConnection(string networkAddress)
{
address = networkAddress;
connectionId = 0;
}
/// <summary>