Esempio n. 1
0
        AvatarStatus Convert(CSVBattleStatus bs)
        {
            var ast = new AvatarStatus();

            ast.Name        = CreateName(bs);
            ast.Level       = bs.Level;
            ast.Rank        = bs.Rank;
            ast.PAtk        = bs.PAtk;
            ast.PDef        = bs.PDef;
            ast.MaxHp       = bs.MaxHp;
            ast.Avoid       = bs.Avoid;
            ast.Accuracy    = bs.Accuracy;
            ast.HPAuto      = bs.HPAuto;
            ast.TPAuto      = bs.TPAuto;
            ast.HPDrain     = bs.HPDrain;
            ast.HealUp      = bs.HealUp;
            ast.TPUp        = bs.TPUp;
            ast.TPReduction = bs.TPReduction;
            ast.MAtk        = bs.MAtk;
            ast.MDef        = bs.MDef;
            ast.PCri        = bs.PCri;
            ast.MCri        = bs.MCri;

            return(ast);
        }
Esempio n. 2
0
 string CreateName(CSVBattleStatus bs)
 {
     return($"Level:{bs.Level} Rank:{bs.Rank} Equip:{bs.Equip} ");
 }