AddClient() static private method

static private AddClient ( NetworkClient client ) : void
client NetworkClient
return void
Exemplo n.º 1
0
 public NetworkClient()
 {
     if (LogFilter.logDev)
     {
         Debug.Log("Client created version " + Version.Current);
     }
     this.m_MsgBuffer = new byte[65535];
     this.m_MsgReader = new NetworkReader(this.m_MsgBuffer);
     NetworkClient.AddClient(this);
 }
Exemplo n.º 2
0
 /// <summary>
 ///   <para>Creates a new NetworkClient instance.</para>
 /// </summary>
 public NetworkClient()
 {
     if (LogFilter.logDev)
     {
         Debug.Log((object)("Client created version " + (object)Version.Current));
     }
     this.m_MsgBuffer = new byte[(int)ushort.MaxValue];
     this.m_MsgReader = new NetworkReader(this.m_MsgBuffer);
     NetworkClient.AddClient(this);
 }
Exemplo n.º 3
0
 public NetworkClient(NetworkConnection conn)
 {
     if (LogFilter.logDev)
     {
         Debug.Log("Client created version " + Version.Current);
     }
     this.m_MsgBuffer = new byte[65535];
     this.m_MsgReader = new NetworkReader(this.m_MsgBuffer);
     NetworkClient.AddClient(this);
     NetworkClient.SetActive(true);
     this.m_Connection   = conn;
     this.m_AsyncConnect = NetworkClient.ConnectState.Connected;
     conn.SetHandlers(this.m_MessageHandlers);
     this.RegisterSystemHandlers(false);
 }