Server.Commands.GenTeleporter.TeleportersCreator.FindTeleporter C# (CSharp) Méthode

FindTeleporter() public static méthode

public static FindTeleporter ( Server.Map map, Server.Point3D p ) : bool
map Server.Map
p Server.Point3D
Résultat bool
			public static bool FindTeleporter( Map map, Point3D p )
			{
				IPooledEnumerable eable = map.GetItemsInRange( p, 0 );

				foreach ( Item item in eable )
				{
					if ( item is Teleporter && !(item is KeywordTeleporter) && !(item is SkillTeleporter) )
					{
						int delta = item.Z - p.Z;

						if ( delta >= -12 && delta <= 12 )
							m_Queue.Enqueue( item );
					}
				}

				eable.Free();

				while ( m_Queue.Count > 0 )
					((Item)m_Queue.Dequeue()).Delete();

				return false;
			}