public void FlashLine(Vector3 a, Vector3 b, bool onPlanetSurface = false, int duration = 50)
        {
            DebugWorldLine debugWorldLine = new DebugWorldLine(a, b, onPlanetSurface);

            debugWorldLine.TicksLeft = duration;
            this.debugLines.Add(debugWorldLine);
        }
        public void FlashLine(int tileA, int tileB, int duration = 50)
        {
            WorldGrid      worldGrid      = Find.WorldGrid;
            Vector3        tileCenter     = worldGrid.GetTileCenter(tileA);
            Vector3        tileCenter2    = worldGrid.GetTileCenter(tileB);
            DebugWorldLine debugWorldLine = new DebugWorldLine(tileCenter, tileCenter2, true);

            debugWorldLine.TicksLeft = duration;
            this.debugLines.Add(debugWorldLine);
        }
 public void WorldDebugDrawerTick()
 {
     for (int num = this.debugTiles.Count - 1; num >= 0; num--)
     {
         DebugTile debugTile = this.debugTiles[num];
         debugTile.ticksLeft--;
         if (debugTile.ticksLeft <= 0)
         {
             this.debugTiles.RemoveAt(num);
         }
     }
     for (int num2 = this.debugLines.Count - 1; num2 >= 0; num2--)
     {
         DebugWorldLine debugWorldLine = this.debugLines[num2];
         debugWorldLine.ticksLeft--;
         if (debugWorldLine.ticksLeft <= 0)
         {
             this.debugLines.RemoveAt(num2);
         }
     }
 }
示例#4
0
 public void WorldDebugDrawerTick()
 {
     for (int i = this.debugTiles.Count - 1; i >= 0; i--)
     {
         DebugTile debugTile = this.debugTiles[i];
         debugTile.ticksLeft--;
         if (debugTile.ticksLeft <= 0)
         {
             this.debugTiles.RemoveAt(i);
         }
     }
     for (int j = this.debugLines.Count - 1; j >= 0; j--)
     {
         DebugWorldLine debugWorldLine = this.debugLines[j];
         debugWorldLine.ticksLeft--;
         if (debugWorldLine.ticksLeft <= 0)
         {
             this.debugLines.RemoveAt(j);
         }
     }
 }