public void DebugDrawerTick()
 {
     for (int num = this.debugCells.Count - 1; num >= 0; num--)
     {
         DebugCell debugCell = this.debugCells[num];
         debugCell.ticksLeft--;
         if (debugCell.ticksLeft <= 0)
         {
             this.debugCells.RemoveAt(num);
         }
     }
     for (int num2 = this.debugLines.Count - 1; num2 >= 0; num2--)
     {
         List <DebugLine> list = this.debugLines;
         int       index       = num2;
         DebugLine debugLine   = this.debugLines[num2];
         Vector3   a           = debugLine.a;
         DebugLine debugLine2  = this.debugLines[num2];
         list[index] = new DebugLine(a, debugLine2.b, this.debugLines[num2].TicksLeft - 1);
         if (this.debugLines[num2].TicksLeft <= 0)
         {
             this.debugLines.RemoveAt(num2);
         }
     }
 }
Exemplo n.º 2
0
        public void FlashCell(IntVec3 c, Material mat, string text = null, int duration = 50)
        {
            DebugCell debugCell = new DebugCell();

            debugCell.c             = c;
            debugCell.displayString = text;
            debugCell.customMat     = mat;
            debugCell.ticksLeft     = duration;
            this.debugCells.Add(debugCell);
        }
Exemplo n.º 3
0
        public void FlashCell(IntVec3 c, float colorPct = 0f, string text = null, int duration = 50)
        {
            DebugCell debugCell = new DebugCell();

            debugCell.c             = c;
            debugCell.displayString = text;
            debugCell.colorPct      = colorPct;
            debugCell.ticksLeft     = duration;
            this.debugCells.Add(debugCell);
        }
Exemplo n.º 4
0
 public void DebugDrawerTick()
 {
     for (int i = this.debugCells.Count - 1; i >= 0; i--)
     {
         DebugCell debugCell = this.debugCells[i];
         debugCell.ticksLeft--;
         if (debugCell.ticksLeft <= 0)
         {
             this.debugCells.RemoveAt(i);
         }
     }
     this.debugLines.RemoveAll((DebugLine dl) => dl.Done);
 }
Exemplo n.º 5
0
 public void DebugDrawerTick()
 {
     for (int num = debugCells.Count - 1; num >= 0; num--)
     {
         DebugCell debugCell = debugCells[num];
         debugCell.ticksLeft--;
         if (debugCell.ticksLeft <= 0)
         {
             debugCells.RemoveAt(num);
         }
     }
     debugLines.RemoveAll((DebugLine dl) => dl.Done);
 }
Exemplo n.º 6
0
 public void DebugDrawerTick()
 {
     for (int i = this.debugCells.Count - 1; i >= 0; i--)
     {
         DebugCell debugCell = this.debugCells[i];
         debugCell.ticksLeft--;
         if (debugCell.ticksLeft <= 0)
         {
             this.debugCells.RemoveAt(i);
         }
     }
     for (int j = this.debugLines.Count - 1; j >= 0; j--)
     {
         this.debugLines[j] = new DebugLine(this.debugLines[j].a, this.debugLines[j].b, this.debugLines[j].TicksLeft - 1);
         if (this.debugLines[j].TicksLeft <= 0)
         {
             this.debugLines.RemoveAt(j);
         }
     }
 }