コード例 #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;
            }

            if (m_LoginIPs.Length != 0 && AccountHandler.IPTable.ContainsKey(m_LoginIPs[0]))
            {
                --AccountHandler.IPTable[m_LoginIPs[0]];
            }

            Accounts.Remove(m_Username);
        }
コード例 #2
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;
            }

            Accounts.Remove(m_Username);
        }
コード例 #3
0
ファイル: Account.cs プロジェクト: zerodowned/UO-Forever
        /// <summary>
        ///     Deletes the account, all characters of the account, and all houses of those characters
        /// </summary>
        public void Delete()
        {
            for (int i = 0; i < Length; ++i)
            {
                Mobile m = this[i];

                if (m == null)
                {
                    continue;
                }

                foreach (BaseHouse h in BaseHouse.GetHouses(m))
                {
                    h.Delete();
                }

                m.Delete();

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

            if (LoginIPs.Count != 0 && AccountHandler.IPTable.ContainsKey(LoginIPs[0]))
            {
                --AccountHandler.IPTable[LoginIPs[0]];
            }

            Accounts.Remove(Username);
        }
コード例 #4
0
ファイル: Account.cs プロジェクト: danscava/RunUO.T2A
        /// <summary>
        /// Deletes the account, all characters of the account
        /// </summary>
        public void Delete()
        {
            for (int i = 0; i < this.Length; ++i)
            {
                Mobile m = this[i];

                if (m == null)
                {
                    continue;
                }

                m.Delete();

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

            if (m_LoginIPs.Length != 0 && AccountHandler.IPTable.ContainsKey(m_LoginIPs[0]))
            {
                --AccountHandler.IPTable[m_LoginIPs[0]];
            }

            Accounts.Remove(m_Username);
        }