private void CreatePuzzles(int iRegion)
{
var region = this.Regions[iRegion];
var sections = this.Generator.Floors[iRegion - 1].Sections;
foreach (var section in sections)
{
foreach (var puzzle in section.Puzzles)
{
try
{
puzzle.OnCreate(region);
}
catch (PuzzleException e)
{
Log.Warning("Section {0}, puzzle '{1}' : {2}", section, puzzle.Script.Name, e.Message);
}
}
}
}