private IEnumerable <Petiole> CreatePetioles(IPlantPartDescriptor descriptor)
        {
            var amount = Options.Plant.PetiolesPerNode.RandomNumberBetween();

            Petiole[] petioles = new Petiole[amount];

            for (int i = 0; i < amount; i++)
            {
                petioles[i] = CreatePetiole(descriptor);
            }

            return(petioles);
        }
Esempio n. 2
0
 public GenericLeaf(Petiole petiole)
 {
     Petiole     = petiole;
     Connections = new[] { Petiole };
 }