public Client(string ip, int port, PacketHandlerStorage handlers, IAuthen auth,AfterConnected conn, List<Connection.prefabid> RemotesPrototypes) { this._tcpClient = new TcpClient(ip, port); this._connection = new Connection(this._tcpClient, handlers, auth, conn); this._connection.Context = this; this._connection.RunClient(RemotesPrototypes); }
public object MakeContext(Connection connection) { return new ClientContext(connection); }
public ClientContext(Connection connection) { this.Connection = connection; }