コード例 #1
0
ファイル: Client.cs プロジェクト: shdenis21/gamelib
        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);
        }
コード例 #2
0
ファイル: ClientContext.cs プロジェクト: shdenis21/gamelib
 public object MakeContext(Connection connection)
 {
     return new ClientContext(connection);
 }
コード例 #3
0
ファイル: ClientContext.cs プロジェクト: shdenis21/gamelib
 public ClientContext(Connection connection)
 {
     this.Connection = connection;
 }