Server.Items.PublicMoongate.OnMovement C# (CSharp) Méthode

OnMovement() public méthode

public OnMovement ( Mobile m, Point3D oldLocation ) : void
m Mobile
oldLocation Point3D
Résultat void
		public override void OnMovement( Mobile m, Point3D oldLocation )
		{
			if ( m is PlayerMobile )
			{
				if ( !Utility.InRange( m.Location, this.Location, 1 ) && Utility.InRange( oldLocation, this.Location, 1 ) )
					m.CloseGump( typeof( MoongateGump ) );
			}
		}