Пример #1
0
        private void GetSkills(PlayerInfo pInfo)
        {
            Skills = new List <BCMSkill>();

            foreach (var skill in pInfo.EP != null ? pInfo.EP.Skills.GetAllSkills() : pInfo.PDF.skills)
            {
                var s = new BCMSkill();

                int l;
                try
                {
                    l = skill.Level;
                }
                catch
                {
                    l = 0;
                }
                s.Name    = skill.Name;
                s.Level   = l;
                s.Percent = Math.Round(skill.PercentThisLevel * 100, 1);

                Skills.Add(s);
            }
            Bin.Add("Skills", Skills);
        }
Пример #2
0
 private void GetSkills(Skill obj) => Bin = new BCMSkill(obj, TypeStr, Options, StrFilter).Data();