Ejemplo n.º 1
0
        public override void Remove()
        {
            /*if ( IsMulti )
             *   UOAssist.PostRemoveMulti( this );*/

            List <Item> rem = new List <Item>(m_Items);

            m_Items.Clear();
            for (int i = 0; i < rem.Count; i++)
            {
                (rem[i]).Remove();
            }

            Counter.Uncount(this);

            if (m_Parent is Mobile)
            {
                ((Mobile)m_Parent).RemoveItem(this);
            }
            else if (m_Parent is Item)
            {
                ((Item)m_Parent).RemoveItem(this);
            }

            World.RemoveItem(this);
            base.Remove();
        }
Ejemplo n.º 2
0
        public override void Remove()
        {
            if (IsMulti)
            {
                ClientCommunication.PostRemoveMulti(this);
            }

            ArrayList rem = new ArrayList(m_Items);

            m_Items.Clear();
            for (int i = 0; i < rem.Count; i++)
            {
                ((Item)rem[i]).Remove();
            }

            Counter.Uncount(this);

            if (m_Parent is Mobile)
            {
                ((Mobile)m_Parent).RemoveItem(this);
            }
            else if (m_Parent is Item)
            {
                ((Item)m_Parent).RemoveItem(this);
            }

            World.RemoveItem(this);
            base.Remove();
        }