protected OldGraphBasedGeneratorFactory <TNode> GetOldGenerator <TNode>(BenchmarkOptions options, bool withInit = false) { return(new OldGraphBasedGeneratorFactory <TNode>(new DungeonGeneratorConfiguration <TNode>() { EarlyStopIfTimeExceeded = options.EarlyStopTime != null ? TimeSpan.FromMilliseconds(options.EarlyStopTime.Value) : default(TimeSpan?) }, withInit)); }
protected GraphBasedGeneratorFactory <TNode> GetNewGenerator <TNode>(BenchmarkOptions options, bool withInit = false, bool optimizeCorridorConstraints = false, string name = null) { return(new GraphBasedGeneratorFactory <TNode>(new GraphBasedGeneratorConfiguration <TNode>() { EarlyStopIfTimeExceeded = options.EarlyStopTime != null ? TimeSpan.FromMilliseconds(options.EarlyStopTime.Value) : default(TimeSpan?), OptimizeCorridorConstraints = optimizeCorridorConstraints, }, withInit, name)); }