protected virtual DungeonGeneratorConfiguration <int> GetBasicConfiguration(NamedMapDescription namedMapDescription) { return(new DungeonGeneratorConfiguration <int>() { RoomsCanTouch = Options.CanTouch || !namedMapDescription.IsWithCorridors, EarlyStopIfIterationsExceeded = Options.EarlyStopIterations, EarlyStopIfTimeExceeded = Options.EarlyStopTime != null?TimeSpan.FromMilliseconds(Options.EarlyStopTime.Value) : default(TimeSpan?), }); }
protected virtual DungeonGeneratorInput <int> GetInput(NamedMapDescription namedMapDescription, Func <NamedMapDescription, DungeonGeneratorConfiguration <int> > configurationFactory) { return(new DungeonGeneratorInput <int>(namedMapDescription.Name, namedMapDescription.MapDescription, configurationFactory(namedMapDescription))); }