Пример #1
0
			public override void ExecuteList(CommandEventArgs e, ArrayList list)
			{
				string filename = e.GetString(0);

				var spawners = new List<Spawner>();

				spawners.AddRange(
					list.AsParallel()
						.OfType<Spawner>()
						.Where(spawner => spawner != null && !spawner.Deleted && spawner.Map != Map.Internal && spawner.Parent == null));

				AddResponse(String.Format("{0} spawners exported to Saves/Spawners/{1}.", spawners.Count.ToString("#,0"), filename));

				ExportSpawners(spawners, filename);
			}