Пример #1
0
        public void Destruct()
        {
            if (this.m_commandList != null)
            {
                for (int i = this.m_commandList.Size() - 1; i >= 0; i--)
                {
                    this.m_commandList[i].Destruct();
                    this.m_commandList.Remove(i);
                }

                this.m_commandList = null;
            }

            this.m_listener = null;
            this.m_level    = null;
        }
Пример #2
0
        /// <summary>
        ///     Destructs this instance.
        /// </summary>
        public void Destruct()
        {
            if (this._commandList != null)
            {
                if (this._commandList.Count != 0)
                {
                    do
                    {
                        this._commandList[0].Destruct();
                        this._commandList.Remove(0);
                    } while (this._commandList.Count != 0);
                }

                this._commandList = null;
            }

            this._listener = null;
            this._level    = null;
        }
Пример #3
0
 public void SetListener(LogicCommandManagerListener listener)
 {
     this.m_listener = listener;
 }