Exemplo n.º 1
0
        public static void Start()
        {
            Finished = false;

            _downloaded.Clear();

            stopwatch.Reset();
            stopwatch.Start();
            ChampionSpells = LoadChampionSpells();

            var currentVersion   = GameVersion.CurrentPatch();
            var abillityIconsURL = $"http://ddragon.leagueoflegends.com/cdn/{currentVersion}/img/spell";
            var championIconsURL = $"http://ddragon.leagueoflegends.com/cdn/{currentVersion}/img/champion";

            foreach (var spell in ChampionSpells)
            {
                Download(spell, championIconsURL, abillityIconsURL);
            }

            Game.OnTick += Game_OnTick;
        }
Exemplo n.º 2
0
 public static string ChampionFolder(string Champion) => $"{KappaUtilityFolder}/{GameVersion.CurrentPatch()}/ChampionIcons/{Champion}";