Server.Items.BaseContainer.OnDragDropInto C# (CSharp) Méthode

OnDragDropInto() public méthode

public OnDragDropInto ( Mobile from, Item item, Point3D p ) : bool
from Mobile
item Item
p Point3D
Résultat bool
		public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
		{
			if ( !CheckHold( from, item, true, true ) )
				return false;

			BaseHouse house = BaseHouse.FindHouseAt( this );

			if ( house != null && house.IsLockedDown( this ) )
			{
				if ( !house.LockDown( from, item, false ) )
					return false;
			}

			item.Location = new Point3D( p.X, p.Y, 0 );
			AddItem( item );

			from.SendSound( GetDroppedSound( item ), GetWorldLocation() );

			return true;
		}