Beispiel #1
0
        public void FillWeaponData(WeaponNotificationDto data)
        {
            var offenceDto = new OffenceNotificationDto
            {
                Tags = new List <string>()
            };

            range.FillOffenceData(offenceDto);
            offenceDto.Tags = tags.Select(tag => tag.ToString()).ToList();
            data.Offence.Add(offenceDto);
        }
Beispiel #2
0
        public void FillSquadData(SquadNotificationDto data)
        {
            var weaponDto = new WeaponNotificationDto
            {
                Offence = new List <OffenceNotificationDto>(),
                Tags    = new List <string>()
            };

            weaponDto.Name = Name;
            offence.ForEach(offence => offence.FillWeaponData(weaponDto));
            weaponDto.Tags = tags.Select(tag => tag.ToString()).ToList();
            data.Weapons.Add(weaponDto);
        }