Exemplo n.º 1
0
        private List <Stat> makeStatsList(string feed)
        {
            var rawStats = convertFeedToArray(feed);

            var stats = new List <Stat>();

            for (var i = 0; i < _skillRepository.Length(); i++)
            {
                var statLine     = rawStats[i];
                var currentSkill = _skillRepository.Skill(i);

                var stat = convertFeedLineToStat(currentSkill, statLine);

                stats.Add(stat);
            }

            return(stats);
        }