public static LevelUpInfo GetLevelUpInfo(WHeroData heroData)
 {
     return(new LevelUpInfo(heroData.attack,
                            heroData.max_health,
                            heroData.max_shield,
                            heroData.miss_chance,
                            heroData.dodge_chance,
                            heroData.critical_ratio,
                            heroData.critical_chance,
                            heroData.next_upgrade_stats,
                            heroData.chakra));
 }
    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);
    }