public static HeroInfo GetHeroInfo(WHeroData heroData) { var stats = new BattleObjStats( heroData.health, heroData.max_health, heroData.attack, heroData.shield, heroData.max_shield); HeroInfo hInfo = new HeroInfo( heroData.moniker, stats, CharInfoHelper.GetCharacterSpells(heroData.moniker), heroData.dexterity, 0, heroData.level, heroData.id, 0, heroData.quantity, GetNextUpgradeStats(heroData.next_upgrade_stats)); hInfo.SetOtherStats(heroData.critical_ratio, heroData.critical_chance, heroData.miss_chance); hInfo.SetChakra(heroData.chakra, GetCharacterSpells(heroData.chakra.chakra_moniker)); hInfo.SetIsSelectedHero(heroData.selected_hero); hInfo.SetHeroItems(heroData.items); return(hInfo); }