mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
refactor: make it clearer that connection id is 0 or possitive
This commit is contained in:
parent
035e6307f9
commit
13e4e6fe3a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user