Aura.Channel.World.Dungeons.Dungeon.CreatePuzzles C# (CSharp) Метод

CreatePuzzles() приватный Метод

Calls OnCreate on all of region's puzzles.
private CreatePuzzles ( int iRegion ) : void
iRegion int
Результат void
		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);
					}
				}
			}
		}