Esempio n. 1
0
        public BotInstance(ISettings clientSettings)
        {

            _clientSettings = clientSettings;
            _client = new Client(_clientSettings);
            _inventory = new Inventory(_client);
            _navigation = new Navigation(_client);
            _stats = new Statistics();
        }
Esempio n. 2
0
        public async Task<string> _getcurrentLevelInfos(Inventory _inventory)
        {
            var stats = await _inventory.GetPlayerStats();
            var output = string.Empty;
            PlayerStats stat = stats.FirstOrDefault();
            if (stat != null)
            {
                var _ep = (stat.NextLevelXp - stat.PrevLevelXp) - (stat.Experience - stat.PrevLevelXp);
                var _hours = Math.Round(_ep / (_totalExperience / _getSessionRuntime()), 2);

                output = $"Currently {stat.Level} - Level Up in {_hours} hour(s) (Required XP: {_ep})";
            }
            return output;
        }
Esempio n. 3
0
 public async void updateConsoleTitle(Inventory _inventory)
 {
     _currentLevelInfos = await _getcurrentLevelInfos(_inventory);
     //Console.Title = ToString();
 }