Esempio n. 1
0
        public void FillArmorData(ArmorNotificationDto data)
        {
            var defenceDto = new DefenceNotificationDto
            {
                Tags = new List <string>()
            };

            range.FillDefenceData(defenceDto);
            defenceDto.Tags = tags.Select(tag => tag.ToString()).ToList();
            data.Defence.Add(defenceDto);
        }
Esempio n. 2
0
        public void FillSquadData(SquadNotificationDto data)
        {
            var armorDto = new ArmorNotificationDto
            {
                Defence = new List <DefenceNotificationDto>(),
                Tags    = new List <string>()
            };

            armorDto.Name = Name;
            defense.ForEach(offence => offence.FillArmorData(armorDto));
            armorDto.Tags = tags.Select(tag => tag.ToString()).ToList();
            data.Armors.Add(armorDto);
        }