private static Champion parseChampionJSON(JSONNode championJSON) { Image image = Image.ParseImageJson(championJSON["image"]); List <Skin> skins = Skin.parseSkinsJSON(championJSON["skins"]); List <string> allyTips = Chompers.Chompers.parseStringArrayJSON(championJSON["allyTips"].AsArray); List <string> enemyTips = Chompers.Chompers.parseStringArrayJSON(championJSON["enemyTips"].AsArray); Info info = Info.parseInfoJSON(championJSON["info"]); List <string> tags = Chompers.Chompers.parseStringArrayJSON(championJSON["tags"].AsArray); Stats stats = Stats.parseStatsJSON(championJSON["stats"]); List <Spell> spells = Spell.parseSpellsJSON(championJSON["spells"]); Passive passive = Passive.parsePassiveJSON(championJSON["passive"]); Recommended recommended = Recommended.parseRecommendedJSON(championJSON["recommended"]); return(new Champion(championJSON["id"], championJSON["key"], championJSON["name"], championJSON["title"], image, skins, championJSON["lore"], championJSON["blurb"], allyTips, enemyTips, info, tags, championJSON["partype"], stats, spells, passive, recommended)); }
public Champion(string id, string key, string name, string title, Image image, List <Skin> skins, string lore, string blurb, List <string> allyTips, List <string> enemyTips, Info info, List <string> tags, string parType, Stats stats, List <Spell> spells, Passive passive, Recommended recommended) { Id = id; Key = key; Name = name; Title = title; Image = image; Skins = skins; Lore = lore; Blurb = blurb; AllyTips = allyTips; EnemyTips = enemyTips; Info = info; Tags = tags; ParType = parType; Stats = stats; Spells = spells; Passive = passive; Recommended = recommended; }