private static async void Load() { PVPNetConnection connection = new PVPNetConnection(); ChampionDTO[] champs = await connection.GetAvailableChampions(); throw new Exception(champs[0].SkinName); }
public void AppTest() { pvp = new PVPNetConnection(); pvp.Connect("tryme123xxx1", "XXXXXXXxx", Region.NA, "4.21.14"); pvp.OnLogin += pvp_OnLogin; Console.ReadLine(); }
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()); }
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"); }
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); }
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); }
internal async static void GameInvite(object sender, PVPNetConnection PVPConnect, string GameID) { await PVPConnect.Accept(GameID); }