Server.Items.AddressBook.OnDragDrop C# (CSharp) Méthode

OnDragDrop() public méthode

public OnDragDrop ( Server.Mobile from, Item dropped ) : bool
from Server.Mobile
dropped Item
Résultat bool
        public override bool OnDragDrop(Mobile from, Item dropped)
        {
            if (dropped is BlankScroll)
            {
                from.SendMessage("You place an extra scroll in the book");
                m_Scrolls += dropped.Amount;
                dropped.Delete();
                this.Name = this.Name;
                return true;
            }
            else if (dropped is SealingWax)
            {
                from.SendMessage("You place an extra lump of wax in the book");
                m_Wax += dropped.Amount;
                dropped.Delete();
                this.Name = this.Name;
                return true;
            }
            return false;
        }