Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public object MakeContext(Connection connection)
 {
     return new ClientContext(connection);
 }
Esempio n. 3
0
 public ClientContext(Connection connection)
 {
     this.Connection = connection;
 }