public override void Tick()
        {
            if (CurrentReactor != null && CurrentReactor.Destroyed)
            {
                CurrentReactor = null;
            }

            if (ticksSinceHasInput < MAX_TICKS_SINCE_INPUT)
            {
                ticksSinceHasInput++;
            }
            else
            {
                CurrentReactor = null;
                if (ticksSinceHasInput != 69420)
                {
                    ticksSinceHasInput = 69420;
                    CauseRedraw();
                }
            }

            var trader = PowerComp as CompPowerTrader;

            trader.PowerOutput = HasInput ? (PowerOutput) : 0;

            base.Tick();
        }
 public void GiveInput(Building_AntimatterReactor r)
 {
     ticksSinceHasInput = 0;
     CurrentReactor     = r;
     if (!HasInput)
     {
         CauseRedraw();
     }
 }