Пример #1
0
        public void Dump()
        {
            //this.MLinkDump();

            // we are using HASH code as its unique identifier
            Debug.WriteLine("   {0} ({1})", this.name, this.GetHashCode());
            if (this.pMNext == null)
            {
                Debug.WriteLine("      next: null");
            }
            else
            {
                TimerEvent pTmp = (TimerEvent)this.pMNext;
                Debug.WriteLine("      next: {0} ({1})", pTmp.GetName(), pTmp.GetHashCode());
            }

            if (this.pMPrev == null)
            {
                Debug.WriteLine("      prev: null");
            }
            else

            {
                TimerEvent pTmp = (TimerEvent)this.pMPrev;
                Debug.WriteLine("      prev: {0} ({1})", pTmp.GetName(), pTmp.GetHashCode());
            }

            // Data:
            Debug.WriteLine("      Command: {0}", this.pCommand);
            Debug.WriteLine("   Event Name: {0}", this.name);
            Debug.WriteLine(" Trigger Time: {0}", this.triggerTime);
            Debug.WriteLine("   Delta Time: {0}", this.deltaTime);
        }
Пример #2
0
        public void Dump()
        {
            // Dump - Print contents to the debug output window
            //        Using HASH code as its unique identifier
            Debug.WriteLine("   Name: {0} ({1})", this.name, this.GetHashCode());

            // Data:
            Debug.WriteLine("      Command: {0}", this.pCommand);
            Debug.WriteLine("   Event Name: {0}", this.name);
            Debug.WriteLine(" Trigger Time: {0}", this.triggerTime);
            Debug.WriteLine("   Delta Time: {0}", this.deltaTime);

            if (this.pNext == null)
            {
                Debug.WriteLine("      next: null");
            }
            else
            {
                TimerEvent pTmp = (TimerEvent)this.pNext;
                Debug.WriteLine("      next: {0} ({1})", pTmp.name, pTmp.GetHashCode());
            }

            if (this.pPrev == null)
            {
                Debug.WriteLine("      prev: null");
            }
            else
            {
                TimerEvent pTmp = (TimerEvent)this.pPrev;
                Debug.WriteLine("      prev: {0} ({1})", pTmp.name, pTmp.GetHashCode());
            }
        }
Пример #3
0
        protected override void DumpNode(DLink node)
        {
            Debug.Assert(node != null);
            TimerEvent tEvent = (TimerEvent)node;

            Debug.WriteLine(String.Format("TimerEvent:({0})", tEvent.GetHashCode()));
            Debug.WriteLine(String.Format("TimerEventName:{0}", tEvent.name.ToString()));
            Debug.WriteLine(String.Format("triggerTime:{0}", tEvent.triggerTime.ToString()));
            Debug.WriteLine(String.Format("deltaTime:{0}", tEvent.deltaTime.ToString()));
        }