Beispiel #1
0
 public void DrawRadiusRing(IntVec3 center)
 {
     if (Find.CurrentMap != null && !IsMeleeAttack)
     {
         float num = EffectiveMinRange(allowAdjacentShot: true);
         if (num > 0f && num < GenRadial.MaxRadialPatternRadius)
         {
             GenDraw.DrawRadiusRing(center, num);
         }
         if (range < (float)(Find.CurrentMap.Size.x + Find.CurrentMap.Size.z) && range < GenRadial.MaxRadialPatternRadius)
         {
             GenDraw.DrawRadiusRing(center, range);
         }
     }
 }
Beispiel #2
0
 public void DrawRadiusRing(IntVec3 center)
 {
     if (Find.CurrentMap != null)
     {
         if (!this.IsMeleeAttack)
         {
             if (this.minRange > 0f && this.minRange < GenRadial.MaxRadialPatternRadius)
             {
                 GenDraw.DrawRadiusRing(center, this.minRange);
             }
             if (this.range < (float)(Find.CurrentMap.Size.x + Find.CurrentMap.Size.z) && this.range < GenRadial.MaxRadialPatternRadius)
             {
                 GenDraw.DrawRadiusRing(center, this.range);
             }
         }
     }
 }
Beispiel #3
0
 public virtual void DrawExtraSelectionOverlays()
 {
     if (this.def.specialDisplayRadius > 0.10000000149011612)
     {
         GenDraw.DrawRadiusRing(this.Position, this.def.specialDisplayRadius);
     }
     if (this.def.drawPlaceWorkersWhileSelected && this.def.PlaceWorkers != null)
     {
         for (int i = 0; i < this.def.PlaceWorkers.Count; i++)
         {
             this.def.PlaceWorkers[i].DrawGhost(this.def, this.Position, this.Rotation);
         }
     }
     if (this.def.hasInteractionCell)
     {
         GenDraw.DrawInteractionCell(this.def, this.Position, this.rotationInt);
     }
 }
Beispiel #4
0
 public virtual void DrawExtraSelectionOverlays()
 {
     if (def.specialDisplayRadius > 0.1f)
     {
         GenDraw.DrawRadiusRing(Position, def.specialDisplayRadius);
     }
     if (def.drawPlaceWorkersWhileSelected && def.PlaceWorkers != null)
     {
         for (int i = 0; i < def.PlaceWorkers.Count; i++)
         {
             def.PlaceWorkers[i].DrawGhost(def, Position, Rotation, Color.white, this);
         }
     }
     if (def.hasInteractionCell)
     {
         GenDraw.DrawInteractionCell(def, Position, rotationInt);
     }
 }
Beispiel #5
0
 public void DrawRadiusRing(IntVec3 center)
 {
     if (Find.CurrentMap == null)
     {
         return;
     }
     if (!this.IsMeleeAttack)
     {
         float num = this.EffectiveMinRange(true);
         if (num > 0f && num < GenRadial.MaxRadialPatternRadius)
         {
             GenDraw.DrawRadiusRing(center, num);
         }
         if (this.range < (float)(Find.CurrentMap.Size.x + Find.CurrentMap.Size.z) && this.range < GenRadial.MaxRadialPatternRadius)
         {
             GenDraw.DrawRadiusRing(center, this.range);
         }
     }
 }
Beispiel #6
0
 public static void DrawTargetingHightlight_Explosion(IntVec3 c, float Radius)
 {
     GenDraw.DrawRadiusRing(c, Radius);
 }