コード例 #1
0
ファイル: Scenario.cs プロジェクト: zemos/Edgar-DotNet
 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
ファイル: Scenario.cs プロジェクト: zemos/Edgar-DotNet
 protected virtual DungeonGeneratorInput <int> GetInput(NamedMapDescription namedMapDescription, Func <NamedMapDescription, DungeonGeneratorConfiguration <int> > configurationFactory)
 {
     return(new DungeonGeneratorInput <int>(namedMapDescription.Name, namedMapDescription.MapDescription, configurationFactory(namedMapDescription)));
 }