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

CreateTeleporter() public méthode

public CreateTeleporter ( Server.Point3D pointLocation, Server.Point3D pointDestination, Server.Map mapLocation, Server.Map mapDestination, bool back ) : void
pointLocation Server.Point3D
pointDestination Server.Point3D
mapLocation Server.Map
mapDestination Server.Map
back bool
Résultat void
			public void CreateTeleporter( Point3D pointLocation, Point3D pointDestination, Map mapLocation, Map mapDestination, bool back )
			{
				if ( !FindTeleporter( mapLocation, pointLocation ) )
				{
					m_Count++;
				
					Teleporter tel = new Teleporter( pointDestination, mapDestination );

					tel.MoveToWorld( pointLocation, mapLocation );
				}

				if ( back && !FindTeleporter( mapDestination, pointDestination ) )
				{
					m_Count++;

					Teleporter telBack = new Teleporter( pointLocation, mapLocation );

					telBack.MoveToWorld( pointDestination, mapDestination );
				}
			}

Same methods

GenTeleporter.TeleportersCreator::CreateTeleporter ( int xLoc, int yLoc, int zLoc, int xDest, int yDest, int zDest, Server.Map mapLocation, Server.Map mapDestination, bool back ) : void
GenTeleporter.TeleportersCreator::CreateTeleporter ( int xLoc, int yLoc, int zLoc, int xDest, int yDest, int zDest, Server.Map map, bool back ) : void