示例#1
0
        public PlantSet Copy()
        {
            var plantSet = new PlantSet();

            foreach (var p in this)
            {
                plantSet.Add(p.Copy());
            }
            return(plantSet);
        }
示例#2
0
        public static PlantSet Generate()
        {
            Init();
            var plantSet = new PlantSet();

            foreach (var gene in PlantLib)
            {
                plantSet.Add(gene.NextRandom());
            }
            return(plantSet);
        }