Server.Items.BasePlayerBB.OnDoubleClick C# (CSharp) Method

OnDoubleClick() public method

public OnDoubleClick ( Server.Mobile from ) : void
from Server.Mobile
return void
		public override void OnDoubleClick( Mobile from )
		{
			BaseHouse house = BaseHouse.FindHouseAt( this );

			if ( house == null || !house.IsLockedDown( this ) )
				from.SendLocalizedMessage( 1062396 ); // This bulletin board must be locked down in a house to be usable.
			else if ( !from.InRange( this.GetWorldLocation(), 2 ) || !from.InLOS( this ) )
				from.LocalOverheadMessage( MessageType.Regular, 0x3B2, 1019045 ); // I can't reach that.
			else if ( CheckAccess( house, from ) )
				from.SendGump( new PlayerBBGump( from, house, this, 0 ) );
		}