Ejemplo n.º 1
0
 public override void PostPrintOnto(SectionLayer layer)
 {
     base.PostPrintOnto(layer);
     if (this.connectParent != null)
     {
         PowerNetGraphics.PrintWirePieceConnecting(layer, this.parent, this.connectParent.parent, false);
     }
 }
Ejemplo n.º 2
0
 public override void CompPrintForPowerGrid(SectionLayer layer)
 {
     if (this.TransmitsPowerNow)
     {
         PowerOverlayMats.LinkedOverlayGraphic.Print(layer, this.parent);
     }
     if (this.parent.def.ConnectToPower)
     {
         PowerNetGraphics.PrintOverlayConnectorBaseFor(layer, this.parent);
     }
     if (this.connectParent != null)
     {
         PowerNetGraphics.PrintWirePieceConnecting(layer, this.parent, this.connectParent.parent, true);
     }
 }