public void AppTest() { pvp = new PVPNetConnection(); pvp.Connect("tryme123xxx1", "XXXXXXXxx", Region.NA, "4.21.14"); pvp.OnLogin += pvp_OnLogin; Console.ReadLine(); }
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); }
public Engine(Accounts playerBot) { Account = playerBot; Region curRegion = (Region)Enum.Parse(typeof(Region), _setting.Region.ToUpper()); SummonerQueue = _setting.QueueType; AccountName = playerBot.Account; //Console.WriteLine("Region: " + JsonConvert.SerializeObject(curRegion, Formatting.Indented)); #region Callbacks Connections.OnError += (object sender, Error error) => { Console.WriteLine("Error received: " + error.Message); return; }; Connections.OnLogin += OnLogin; Connections.OnMessageReceived += OnMessageReceived; #endregion Connections.Connect(AccountName, playerBot.Password, curRegion, Client.ClientVersion); }