Exemple #1
0
        static List <Awards.Award> AwardsHas(string name)
        {
            List <Awards.Award> awards       = new List <Awards.Award>();
            List <string>       playerAwards = Awards.GetPlayerAwards(name);

            if (playerAwards == null)
            {
                return(awards);
            }

            foreach (string awardName in playerAwards)
            {
                Awards.Award award = new Awards.Award();
                award.Name = awardName;

                Awards.Award match = Awards.FindExact(awardName);
                if (match != null)
                {
                    award.Description = match.Description;
                }
                awards.Add(award);
            }
            return(awards);
        }