internal Construction(ConstructionDto dto, TypeRepository types) { Id = dto.Id; Type = types.GetConstructionType(dto.TypeId); Center = dto.Center; foreach (var itemBunchDto in dto.Items) { AddItemBunch(new ItemBunch(itemBunchDto, types)); } }
internal Construction(ConstructionType type, Position2 center, int id) { Id = id; Type = type; Center = center; }