private static async void Load()
        {
            PVPNetConnection connection = new PVPNetConnection();

            ChampionDTO[] champs = await connection.GetAvailableChampions();

            throw new Exception(champs[0].SkinName);
        }
Example #2
0
        public void AppTest()
        {
            pvp = new PVPNetConnection();
            pvp.Connect("tryme123xxx1", "XXXXXXXxx", Region.NA, "4.21.14");

            pvp.OnLogin += pvp_OnLogin;
            Console.ReadLine();
        }
Example #3
0
        internal async static Task <LoginDataPacket> AddAccount(string Username, string Password)
        {
            PVPNetConnection          pvp         = new PVPNetConnection();
            AuthenticationCredentials credentials = new AuthenticationCredentials();

            credentials.ClientVersion = Client.Version;
            credentials.AuthToken     = "";
            credentials.Password      = Password;
            credentials.IpAddress     = "";
            //pvp.Login()
            return(new LoginDataPacket());
        }
Example #4
0
        public Client(Region region, string username, string password)
        {
            Data = new AccountData {
                Username = username, Password = password
            };
            IsCompleted = new TaskCompletionSource <bool>();
            Completed   = false;

            Connection          = new PVPNetConnection();
            Connection.OnLogin += OnLogin;
            Connection.OnError += OnError;

            Connection.Connect(username, password, region, "5.4.15_02_19_22_27");
        }
Example #5
0
        public Client(Region region, string username, string password)
        {
            Data = new AccountData {
                Username = username, Password = password
            };
            _completed = false;

            Connection          = new PVPNetConnection();
            Connection.OnLogin += OnLogin;
            Connection.OnError += OnError;

            Connection.Connect(username, password, region, "5.2.15");

            Console.WriteLine("[{0:HH:mm}] <{1}> Connecting to PvP.net", DateTime.Now, Data.Username);
        }
Example #6
0
        public Client(Region region, string username, string password)
        {
            Data = new Account
            {
                Username = username,
                Password = password
            };
            IsCompleted = new TaskCompletionSource <bool>();
            Completed   = false;

            Connection          = new PVPNetConnection();
            Connection.OnLogin += OnLogin;
            Connection.OnError += OnError;

            Connection.Connect(username, password, region, Settings.Config.ClientVersion);
        }
Example #7
0
 internal async static void GameInvite(object sender, PVPNetConnection PVPConnect, string GameID)
 {
     await PVPConnect.Accept(GameID);
 }