예제 #1
0
 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?),
     });
 }
예제 #2
0
 protected virtual DungeonGeneratorInput <int> GetInput(NamedMapDescription namedMapDescription, Func <NamedMapDescription, DungeonGeneratorConfiguration <int> > configurationFactory)
 {
     return(new DungeonGeneratorInput <int>(namedMapDescription.Name, namedMapDescription.MapDescription, configurationFactory(namedMapDescription)));
 }