コード例 #1
0
        public static SlimeGenome CombineGenomes(SlimeGenome original, SlimeGenome other)
        {
            var spliceSettings = new SpliceSettings();
            var newGenome      = GetBaseGenome();

            foreach (var trait in original.AllTraits)
            {
                trait.Processor.AssembleSpliceSettings(trait, spliceSettings);
            }
            foreach (var trait in original.AllTraits)
            {
                newGenome[trait.FullID] = trait.Processor.CombineTraits(trait, other[trait.FullID], spliceSettings);
            }
            return(newGenome);
        }
コード例 #2
0
 public virtual void AssembleSpliceSettings(SlimeTrait trait, SpliceSettings settings)
 {
 }
コード例 #3
0
 public abstract SlimeTrait CombineTraits(SlimeTrait original, SlimeTrait other, SpliceSettings settings);