public override void SetUpPowerVars()
        {
            base.SetUpPowerVars();
            CompProperties_SolarCell props = this.Props;

            this.PowerOutput        = -1f * props.basePowerConsumption;
            this.powerLastOutputted = (props.basePowerConsumption <= 0f);
        }
        // Token: 0x06001277 RID: 4727 RVA: 0x0008E924 File Offset: 0x0008CD24
        public override void PostExposeData()
        {
            base.PostExposeData();
            Scribe_Values.Look <float>(ref this.storedEnergy, "storedPower", 0f, false);
            CompProperties_SolarCell props = this.Props;

            if (this.storedEnergy > props.storedEnergyMax)
            {
                this.storedEnergy = props.storedEnergyMax;
            }
        }
        // Token: 0x0600127D RID: 4733 RVA: 0x0008EA80 File Offset: 0x0008CE80
        public override string CompInspectStringExtra()
        {
            CompProperties_SolarCell props = this.Props;
            string text = string.Concat(new string[]
            {
                "PowerBatteryStored".Translate(),
                ": ",
                this.storedEnergy.ToString("F0"),
                " / ",
                props.storedEnergyMax.ToString("F0"),
                " Wd"
            });
            string text2 = text;

            text = string.Concat(new string[]
            {
                text2,
                "\n",
                "PowerBatteryEfficiency".Translate(),
                ": ",
                (props.efficiency * 100f).ToString("F0"),
                "%"
            });
            text += "\n" + "PowerOutput".Translate() + ": " + (this.PowerOutput).ToString() + " W";

            /*
             * text += "\n" + "PowerNeeded".Translate() + ": " + (-this.PowerOutput).ToString() + " W";
             * if (this.PowerNet == null)
             * {
             *  text += "\n" + "PowerNotConnected".Translate();
             * }
             * else
             * {
             *  string value = (this.PowerNet.CurrentEnergyGainRate() / CompPower.WattsToWattDaysPerTick).ToString("F0");
             *  string value2 = this.PowerNet.CurrentStoredEnergy().ToString("F0");
             *  text += "\n" + "PowerConnectedRateStored".Translate(value, value2);
             * }
             */
            return(text);
        }