Example #1
0
 /// <summary>
 /// Create a new seed with the specified traits
 /// </summary>
 /// <param name="traits">The seed genetic traits</param>
 /// <param name="seedType">Type of seed</param>
 /// <param name="catalogId">The server/seed catalog ID</param>
 /// <param name="generation">The seed generation</param>
 /// <param name="parents">The parent seeds information</param>
 /// <param name="probability">The probability of this seed being created from its parents</param>
 public Seed(string traits, SeedTypes seedType, int catalogId, int generation = 0, IEnumerable <Seed> parents = null, decimal probability = 1M)
 {
     this.Traits      = traits;
     this.SeedType    = seedType;
     this.CatalogId   = catalogId;
     this.Generation  = generation;
     this.ParentSeeds = parents?.ToList() ?? new List <Seed>();
     this.Probability = probability;
 }
 public SampleSeedProd()
 {
     SeedTypes.Add(SeedType.Dev);
 }