internal string DebugString()
        {
            string result;

            if (this.roomGroup.UsesOutdoorTemperature)
            {
                result = "uses outdoor temperature";
            }
            else
            {
                if (Time.frameCount > RoomGroupTempTracker.debugGetFrame + 120)
                {
                    RoomGroupTempTracker.debugWallEq = 0f;
                    for (int i = 0; i < 40; i++)
                    {
                        RoomGroupTempTracker.debugWallEq += this.WallEqualizationTempChangePerInterval();
                    }
                    RoomGroupTempTracker.debugWallEq  /= 40f;
                    RoomGroupTempTracker.debugGetFrame = Time.frameCount;
                }
                result = string.Concat(new object[]
                {
                    "  thick roof coverage: ",
                    this.thickRoofCoverage.ToStringPercent("F0"),
                    "\n  thin roof coverage: ",
                    this.ThinRoofCoverage.ToStringPercent("F0"),
                    "\n  no roof coverage: ",
                    this.noRoofCoverage.ToStringPercent("F0"),
                    "\n\n  wall equalization: ",
                    RoomGroupTempTracker.debugWallEq.ToStringTemperatureOffset("F3"),
                    "\n  thin roof equalization: ",
                    this.ThinRoofEqualizationTempChangePerInterval().ToStringTemperatureOffset("F3"),
                    "\n  no roof equalization: ",
                    this.NoRoofEqualizationTempChangePerInterval().ToStringTemperatureOffset("F3"),
                    "\n  deep equalization: ",
                    this.DeepEqualizationTempChangePerInterval().ToStringTemperatureOffset("F3"),
                    "\n\n  temp diff from outdoors, adjusted: ",
                    this.TempDiffFromOutdoorsAdjusted().ToStringTemperatureOffset("F3"),
                    "\n  tempChange e=20 targ= 200C: ",
                    GenTemperature.ControlTemperatureTempChange(this.roomGroup.Cells.First <IntVec3>(), this.roomGroup.Map, 20f, 200f),
                    "\n  tempChange e=20 targ=-200C: ",
                    GenTemperature.ControlTemperatureTempChange(this.roomGroup.Cells.First <IntVec3>(), this.roomGroup.Map, 20f, -200f),
                    "\n  equalize interval ticks: ",
                    120,
                    "\n  equalize cells count:",
                    this.equalizeCells.Count
                });
            }
            return(result);
        }
Пример #2
0
 internal string DebugString()
 {
     if (roomGroup.UsesOutdoorTemperature)
     {
         return("uses outdoor temperature");
     }
     if (Time.frameCount > debugGetFrame + 120)
     {
         debugWallEq = 0f;
         for (int i = 0; i < 40; i++)
         {
             debugWallEq += WallEqualizationTempChangePerInterval();
         }
         debugWallEq  /= 40f;
         debugGetFrame = Time.frameCount;
     }
     return("  thick roof coverage: " + thickRoofCoverage.ToStringPercent("F0") + "\n  thin roof coverage: " + ThinRoofCoverage.ToStringPercent("F0") + "\n  no roof coverage: " + noRoofCoverage.ToStringPercent("F0") + "\n\n  wall equalization: " + debugWallEq.ToStringTemperatureOffset("F3") + "\n  thin roof equalization: " + ThinRoofEqualizationTempChangePerInterval().ToStringTemperatureOffset("F3") + "\n  no roof equalization: " + NoRoofEqualizationTempChangePerInterval().ToStringTemperatureOffset("F3") + "\n  deep equalization: " + DeepEqualizationTempChangePerInterval().ToStringTemperatureOffset("F3") + "\n\n  temp diff from outdoors, adjusted: " + TempDiffFromOutdoorsAdjusted().ToStringTemperatureOffset("F3") + "\n  tempChange e=20 targ= 200C: " + GenTemperature.ControlTemperatureTempChange(roomGroup.Cells.First(), roomGroup.Map, 20f, 200f) + "\n  tempChange e=20 targ=-200C: " + GenTemperature.ControlTemperatureTempChange(roomGroup.Cells.First(), roomGroup.Map, 20f, -200f) + "\n  equalize interval ticks: " + 120 + "\n  equalize cells count:" + equalizeCells.Count);
 }