public static Brain OffspringMerged(ref NAPI.OffspringBuilderConfig config, Brain brainA, Brain brainB) { var handle = NAPI.BrainOffspringMerged(ref config, brainA.handle, brainB.handle); if (handle != UIntPtr.Zero) { return(new Brain(handle)); } return(null); }
public Brain OffspringMutated(ref NAPI.OffspringBuilderConfig config) { var handle = NAPI.BrainOffspringMutated(ref config, this.handle); if (handle != UIntPtr.Zero) { return(new Brain(handle)); } return(null); }