Ejemplo n.º 1
0
        /// <summary>
        /// Deletes the account, all characters of the account, and all houses of those characters
        /// </summary>
        public void Delete()
        {
            for (int i = 0; i < this.Length; ++i)
            {
                Mobile m = this[i];

                if (m == null)
                {
                    continue;
                }

                List <BaseHouse> list = BaseHouse.GetHouses(m);

                for (int j = 0; j < list.Count; ++j)
                {
                    list[j].Delete();
                }

                m.Delete();

                m.Account    = null;
                m_Mobiles[i] = null;
            }

            m_Deleted = true;
            Accounts.UnregisterEmail(m_Email);
            Accounts.Remove(m_Username);
        }