Codebreak.Service.World.Game.Entity.AbstractEntity.Dispose C# (CSharp) Method

Dispose() public method

public Dispose ( ) : void
return void
        public override void Dispose()
        {
            CurrentAction = null;

            if (Statistics != null)
            {
                Statistics.Dispose();
                Statistics = null;
            }

            if (SpellBook != null)
            {
                SpellBook.Dispose();
                SpellBook = null;
            }

            if (Inventory != null)
            {
                Inventory.Dispose();
                Inventory = null;
            }

            m_listeners.Clear();
            m_listeners = null;

            m_chatByChannel.Clear();
            m_chatByChannel = null;
            m_map = null;

            base.Dispose();
        }