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); }
public GenericLeaf(Petiole petiole) { Petiole = petiole; Connections = new[] { Petiole }; }