Server.Regions.HouseRegion.OnLocationChanged C# (CSharp) Method

OnLocationChanged() public method

public OnLocationChanged ( Server.Mobile m, Server.Point3D oldLocation ) : void
m Server.Mobile
oldLocation Server.Point3D
return void
		public override void OnLocationChanged( Mobile m, Point3D oldLocation )
		{
			if ( m_Recursion )
				return;

			base.OnLocationChanged( m, oldLocation );

			m_Recursion = true;

			if ( m is BaseCreature && ((BaseCreature)m).NoHouseRestrictions )
			{
			}
			else if ( m is BaseCreature && ((BaseCreature)m).IsHouseSummonable && !(BaseCreature.Summoning || m_House.IsInside( oldLocation, 16 )) )
			{
			}
			else if ( (m_House.Public) && m_House.IsBanned( m ) && m_House.IsInside( m ) )
			{
				m.Location = m_House.BanLocation;
                m.SendLocalizedMessage( 501284 ); // You may not enter.
			}

			m_Recursion = false;
		}