AutoSharp.Auto.HowlingAbyss.ARAMShopAI.Main.Init C# (CSharp) Method

Init() public static method

public static Init ( ) : void
return void
        public static void Init()
        {
            string itemJson = "https://raw.githubusercontent.com/myo/Experimental/master/item.json";
            string itemsData = Request(itemJson);
            string itemArray = itemsData.Split(new[] { "data" }, StringSplitOptions.None)[1];
            MatchCollection itemIdArray = Regex.Matches(itemArray, "[\"]\\d*[\"][:][{].*?(?=},\"\\d)");
            foreach (Item item in from object iItem in itemIdArray select new Item(iItem.ToString()))
                ItemList.Add(item);
            LeagueSharp.Common.CustomEvents.Game.OnGameLoad += Game_OnGameLoad;
        }