コード例 #1
0
 public override string ToString()
 {
     return(string.Concat("rect=", rect, ", faction=", (faction != null) ? faction.ToString() : "null", ", custom=", (custom != null) ? custom.Count.ToString() : "null", ", pawnGroupMakerParams=", (pawnGroupMakerParams != null) ? pawnGroupMakerParams.ToString() : "null", ", pawnGroupKindDef=", (pawnGroupKindDef != null) ? pawnGroupKindDef.ToString() : "null", ", roofDef=", (roofDef != null) ? roofDef.ToString() : "null", ", noRoof=", noRoof.HasValue ? noRoof.ToString() : "null", ", addRoomCenterToRootsToUnfog=", addRoomCenterToRootsToUnfog.HasValue ? addRoomCenterToRootsToUnfog.ToString() : "null", ", singleThingToSpawn=", (singleThingToSpawn != null) ? singleThingToSpawn.ToString() : "null", ", singleThingDef=", (singleThingDef != null) ? singleThingDef.ToString() : "null", ", singleThingStuff=", (singleThingStuff != null) ? singleThingStuff.ToString() : "null", ", singleThingStackCount=", singleThingStackCount.HasValue ? singleThingStackCount.ToString() : "null", ", skipSingleThingIfHasToWipeBuildingOrDoesntFit=", skipSingleThingIfHasToWipeBuildingOrDoesntFit.HasValue ? skipSingleThingIfHasToWipeBuildingOrDoesntFit.ToString() : "null", ", spawnBridgeIfTerrainCantSupportThing=", spawnBridgeIfTerrainCantSupportThing.HasValue ? spawnBridgeIfTerrainCantSupportThing.ToString() : "null", ", singlePawnToSpawn=", (singlePawnToSpawn != null) ? singlePawnToSpawn.ToString() : "null", ", singlePawnKindDef=", (singlePawnKindDef != null) ? singlePawnKindDef.ToString() : "null", ", disableSinglePawn=", disableSinglePawn.HasValue ? disableSinglePawn.ToString() : "null", ", singlePawnLord=", (singlePawnLord != null) ? singlePawnLord.ToString() : "null", ", singlePawnSpawnCellExtraPredicate=", (singlePawnSpawnCellExtraPredicate != null) ? singlePawnSpawnCellExtraPredicate.ToString() : "null", ", singlePawnGenerationRequest=", singlePawnGenerationRequest.HasValue ? singlePawnGenerationRequest.ToString() : "null", ", postThingSpawn=", (postThingSpawn != null) ? postThingSpawn.ToString() : "null", ", postThingGenerate=", (postThingGenerate != null) ? postThingGenerate.ToString() : "null", ", mechanoidsCount=", mechanoidsCount.HasValue ? mechanoidsCount.ToString() : "null", ", hivesCount=", hivesCount.HasValue ? hivesCount.ToString() : "null", ", disableHives=", disableHives.HasValue ? disableHives.ToString() : "null", ", thingRot=", thingRot.HasValue ? thingRot.ToString() : "null", ", wallStuff=", (wallStuff != null) ? wallStuff.ToString() : "null", ", chanceToSkipWallBlock=", chanceToSkipWallBlock.HasValue ? chanceToSkipWallBlock.ToString() : "null", ", floorDef=", (floorDef != null) ? floorDef.ToString() : "null", ", chanceToSkipFloor=", chanceToSkipFloor.HasValue ? chanceToSkipFloor.ToString() : "null", ", filthDef=", (filthDef != null) ? filthDef.ToString() : "null", ", filthDensity=", filthDensity.HasValue ? filthDensity.ToString() : "null", ", floorOnlyIfTerrainSupports=", floorOnlyIfTerrainSupports.HasValue ? floorOnlyIfTerrainSupports.ToString() : "null", ", allowBridgeOnAnyImpassableTerrain=", allowBridgeOnAnyImpassableTerrain.HasValue ? allowBridgeOnAnyImpassableTerrain.ToString() : "null", ", clearEdificeOnly=", clearEdificeOnly.HasValue ? clearEdificeOnly.ToString() : "null", ", clearFillageOnly=", clearFillageOnly.HasValue ? clearFillageOnly.ToString() : "null", ", clearRoof=", clearRoof.HasValue ? clearRoof.ToString() : "null", ", ancientCryptosleepCasketGroupID=", ancientCryptosleepCasketGroupID.HasValue ? ancientCryptosleepCasketGroupID.ToString() : "null", ", podContentsType=", podContentsType.HasValue ? podContentsType.ToString() : "null", ", thingSetMakerDef=", (thingSetMakerDef != null) ? thingSetMakerDef.ToString() : "null", ", thingSetMakerParams=", thingSetMakerParams.HasValue ? thingSetMakerParams.ToString() : "null", ", stockpileConcreteContents=", (stockpileConcreteContents != null) ? stockpileConcreteContents.Count.ToString() : "null", ", stockpileMarketValue=", stockpileMarketValue.HasValue ? stockpileMarketValue.ToString() : "null", ", innerStockpileSize=", innerStockpileSize.HasValue ? innerStockpileSize.ToString() : "null", ", edgeDefenseWidth=", edgeDefenseWidth.HasValue ? edgeDefenseWidth.ToString() : "null", ", edgeDefenseTurretsCount=", edgeDefenseTurretsCount.HasValue ? edgeDefenseTurretsCount.ToString() : "null", ", edgeDefenseMortarsCount=", edgeDefenseMortarsCount.HasValue ? edgeDefenseMortarsCount.ToString() : "null", ", edgeDefenseGuardsCount=", edgeDefenseGuardsCount.HasValue ? edgeDefenseGuardsCount.ToString() : "null", ", mortarDef=", (mortarDef != null) ? mortarDef.ToString() : "null", ", pathwayFloorDef=", (pathwayFloorDef != null) ? pathwayFloorDef.ToString() : "null", ", cultivatedPlantDef=", (cultivatedPlantDef != null) ? cultivatedPlantDef.ToString() : "null", ", fillWithThingsPadding=", fillWithThingsPadding.HasValue ? fillWithThingsPadding.ToString() : "null", ", settlementPawnGroupPoints=", settlementPawnGroupPoints.HasValue ? settlementPawnGroupPoints.ToString() : "null", ", settlementPawnGroupSeed=", settlementPawnGroupSeed.HasValue ? settlementPawnGroupSeed.ToString() : "null", ", streetHorizontal=", streetHorizontal.HasValue ? streetHorizontal.ToString() : "null", ", edgeThingAvoidOtherEdgeThings=", edgeThingAvoidOtherEdgeThings.HasValue ? edgeThingAvoidOtherEdgeThings.ToString() : "null", ", edgeThingMustReachMapEdge=", edgeThingMustReachMapEdge.HasValue ? edgeThingMustReachMapEdge.ToString() : "null", ", allowPlacementOffEdge=", allowPlacementOffEdge.HasValue ? allowPlacementOffEdge.ToString() : "null", ", thrustAxis=", thrustAxis.HasValue ? thrustAxis.ToString() : "null", ", makeWarningLetter=", makeWarningLetter.HasValue ? makeWarningLetter.ToString() : "null", ", allowedMonumentThings=", (allowedMonumentThings != null) ? allowedMonumentThings.ToString() : "null"));
 }
コード例 #2
0
        public override string ToString()
        {
            object[] obj = new object[116]
            {
                "rect=",
                rect,
                ", faction=",
                (faction == null) ? "null" : faction.ToString(),
                ", custom=",
                (custom == null) ? "null" : custom.Count.ToString(),
                ", ancientTempleEntranceHeight=",
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            };
            int?num = ancientTempleEntranceHeight;

            obj[7]  = ((!num.HasValue) ? "null" : ancientTempleEntranceHeight.ToString());
            obj[8]  = ", pawnGroupMakerParams=";
            obj[9]  = ((pawnGroupMakerParams == null) ? "null" : pawnGroupMakerParams.ToString());
            obj[10] = ", pawnGroupKindDef=";
            obj[11] = ((pawnGroupKindDef == null) ? "null" : pawnGroupKindDef.ToString());
            obj[12] = ", roofDef=";
            obj[13] = ((roofDef == null) ? "null" : roofDef.ToString());
            obj[14] = ", noRoof=";
            bool?flag = noRoof;

            obj[15] = ((!flag.HasValue) ? "null" : noRoof.ToString());
            obj[16] = ", addRoomCenterToRootsToUnfog=";
            bool?flag2 = addRoomCenterToRootsToUnfog;

            obj[17] = ((!flag2.HasValue) ? "null" : addRoomCenterToRootsToUnfog.ToString());
            obj[18] = ", singleThingToSpawn=";
            obj[19] = ((singleThingToSpawn == null) ? "null" : singleThingToSpawn.ToString());
            obj[20] = ", singleThingDef=";
            obj[21] = ((singleThingDef == null) ? "null" : singleThingDef.ToString());
            obj[22] = ", singleThingStuff=";
            obj[23] = ((singleThingStuff == null) ? "null" : singleThingStuff.ToString());
            obj[24] = ", singleThingStackCount=";
            int?num2 = singleThingStackCount;

            obj[25] = ((!num2.HasValue) ? "null" : singleThingStackCount.ToString());
            obj[26] = ", skipSingleThingIfHasToWipeBuildingOrDoesntFit=";
            bool?flag3 = skipSingleThingIfHasToWipeBuildingOrDoesntFit;

            obj[27] = ((!flag3.HasValue) ? "null" : skipSingleThingIfHasToWipeBuildingOrDoesntFit.ToString());
            obj[28] = ", spawnBridgeIfTerrainCantSupportThing=";
            bool?flag4 = spawnBridgeIfTerrainCantSupportThing;

            obj[29] = ((!flag4.HasValue) ? "null" : spawnBridgeIfTerrainCantSupportThing.ToString());
            obj[30] = ", singlePawnToSpawn=";
            obj[31] = ((singlePawnToSpawn == null) ? "null" : singlePawnToSpawn.ToString());
            obj[32] = ", singlePawnKindDef=";
            obj[33] = ((singlePawnKindDef == null) ? "null" : singlePawnKindDef.ToString());
            obj[34] = ", disableSinglePawn=";
            bool?flag5 = disableSinglePawn;

            obj[35] = ((!flag5.HasValue) ? "null" : disableSinglePawn.ToString());
            obj[36] = ", singlePawnLord=";
            obj[37] = ((singlePawnLord == null) ? "null" : singlePawnLord.ToString());
            obj[38] = ", singlePawnSpawnCellExtraPredicate=";
            obj[39] = ((singlePawnSpawnCellExtraPredicate == null) ? "null" : singlePawnSpawnCellExtraPredicate.ToString());
            obj[40] = ", singlePawnGenerationRequest=";
            PawnGenerationRequest?pawnGenerationRequest = singlePawnGenerationRequest;

            obj[41] = ((!pawnGenerationRequest.HasValue) ? "null" : singlePawnGenerationRequest.ToString());
            obj[42] = ", postThingSpawn=";
            obj[43] = ((postThingSpawn == null) ? "null" : postThingSpawn.ToString());
            obj[44] = ", postThingGenerate=";
            obj[45] = ((postThingGenerate == null) ? "null" : postThingGenerate.ToString());
            obj[46] = ", mechanoidsCount=";
            int?num3 = mechanoidsCount;

            obj[47] = ((!num3.HasValue) ? "null" : mechanoidsCount.ToString());
            obj[48] = ", hivesCount=";
            int?num4 = hivesCount;

            obj[49] = ((!num4.HasValue) ? "null" : hivesCount.ToString());
            obj[50] = ", disableHives=";
            bool?flag6 = disableHives;

            obj[51] = ((!flag6.HasValue) ? "null" : disableHives.ToString());
            obj[52] = ", thingRot=";
            Rot4?rot = thingRot;

            obj[53] = ((!rot.HasValue) ? "null" : thingRot.ToString());
            obj[54] = ", wallStuff=";
            obj[55] = ((wallStuff == null) ? "null" : wallStuff.ToString());
            obj[56] = ", chanceToSkipWallBlock=";
            float?num5 = chanceToSkipWallBlock;

            obj[57] = ((!num5.HasValue) ? "null" : chanceToSkipWallBlock.ToString());
            obj[58] = ", floorDef=";
            obj[59] = ((floorDef == null) ? "null" : floorDef.ToString());
            obj[60] = ", chanceToSkipFloor=";
            float?num6 = chanceToSkipFloor;

            obj[61] = ((!num6.HasValue) ? "null" : chanceToSkipFloor.ToString());
            obj[62] = ", filthDef=";
            obj[63] = ((filthDef == null) ? "null" : filthDef.ToString());
            obj[64] = ", filthDensity=";
            FloatRange?floatRange = filthDensity;

            obj[65] = ((!floatRange.HasValue) ? "null" : filthDensity.ToString());
            obj[66] = ", floorOnlyIfTerrainSupports=";
            bool?flag7 = floorOnlyIfTerrainSupports;

            obj[67] = ((!flag7.HasValue) ? "null" : floorOnlyIfTerrainSupports.ToString());
            obj[68] = ", clearEdificeOnly=";
            bool?flag8 = clearEdificeOnly;

            obj[69] = ((!flag8.HasValue) ? "null" : clearEdificeOnly.ToString());
            obj[70] = ", clearFillageOnly=";
            bool?flag9 = clearFillageOnly;

            obj[71] = ((!flag9.HasValue) ? "null" : clearFillageOnly.ToString());
            obj[72] = ", clearRoof=";
            bool?flag10 = clearRoof;

            obj[73] = ((!flag10.HasValue) ? "null" : clearRoof.ToString());
            obj[74] = ", ancientCryptosleepCasketGroupID=";
            int?num7 = ancientCryptosleepCasketGroupID;

            obj[75] = ((!num7.HasValue) ? "null" : ancientCryptosleepCasketGroupID.ToString());
            obj[76] = ", podContentsType=";
            PodContentsType?podContentsType = this.podContentsType;

            obj[77] = ((!podContentsType.HasValue) ? "null" : this.podContentsType.ToString());
            obj[78] = ", thingSetMakerDef=";
            obj[79] = ((thingSetMakerDef == null) ? "null" : thingSetMakerDef.ToString());
            obj[80] = ", thingSetMakerParams=";
            ThingSetMakerParams?thingSetMakerParams = this.thingSetMakerParams;

            obj[81] = ((!thingSetMakerParams.HasValue) ? "null" : this.thingSetMakerParams.ToString());
            obj[82] = ", stockpileConcreteContents=";
            obj[83] = ((stockpileConcreteContents == null) ? "null" : stockpileConcreteContents.Count.ToString());
            obj[84] = ", stockpileMarketValue=";
            float?num8 = stockpileMarketValue;

            obj[85] = ((!num8.HasValue) ? "null" : stockpileMarketValue.ToString());
            obj[86] = ", innerStockpileSize=";
            int?num9 = innerStockpileSize;

            obj[87] = ((!num9.HasValue) ? "null" : innerStockpileSize.ToString());
            obj[88] = ", edgeDefenseWidth=";
            int?num10 = edgeDefenseWidth;

            obj[89] = ((!num10.HasValue) ? "null" : edgeDefenseWidth.ToString());
            obj[90] = ", edgeDefenseTurretsCount=";
            int?num11 = edgeDefenseTurretsCount;

            obj[91] = ((!num11.HasValue) ? "null" : edgeDefenseTurretsCount.ToString());
            obj[92] = ", edgeDefenseMortarsCount=";
            int?num12 = edgeDefenseMortarsCount;

            obj[93] = ((!num12.HasValue) ? "null" : edgeDefenseMortarsCount.ToString());
            obj[94] = ", edgeDefenseGuardsCount=";
            int?num13 = edgeDefenseGuardsCount;

            obj[95]  = ((!num13.HasValue) ? "null" : edgeDefenseGuardsCount.ToString());
            obj[96]  = ", mortarDef=";
            obj[97]  = ((mortarDef == null) ? "null" : mortarDef.ToString());
            obj[98]  = ", pathwayFloorDef=";
            obj[99]  = ((pathwayFloorDef == null) ? "null" : pathwayFloorDef.ToString());
            obj[100] = ", cultivatedPlantDef=";
            obj[101] = ((cultivatedPlantDef == null) ? "null" : cultivatedPlantDef.ToString());
            obj[102] = ", fillWithThingsPadding=";
            int?num14 = fillWithThingsPadding;

            obj[103] = ((!num14.HasValue) ? "null" : fillWithThingsPadding.ToString());
            obj[104] = ", settlementPawnGroupPoints=";
            float?num15 = settlementPawnGroupPoints;

            obj[105] = ((!num15.HasValue) ? "null" : settlementPawnGroupPoints.ToString());
            obj[106] = ", settlementPawnGroupSeed=";
            int?num16 = settlementPawnGroupSeed;

            obj[107] = ((!num16.HasValue) ? "null" : settlementPawnGroupSeed.ToString());
            obj[108] = ", streetHorizontal=";
            bool?flag11 = streetHorizontal;

            obj[109] = ((!flag11.HasValue) ? "null" : streetHorizontal.ToString());
            obj[110] = ", edgeThingAvoidOtherEdgeThings=";
            bool?flag12 = edgeThingAvoidOtherEdgeThings;

            obj[111] = ((!flag12.HasValue) ? "null" : edgeThingAvoidOtherEdgeThings.ToString());
            obj[112] = ", allowPlacementOffEdge=";
            bool?flag13 = allowPlacementOffEdge;

            obj[113] = ((!flag13.HasValue) ? "null" : allowPlacementOffEdge.ToString());
            obj[114] = ", thrustAxis=";
            Rot4?rot2 = thrustAxis;

            obj[115] = ((!rot2.HasValue) ? "null" : thrustAxis.ToString());
            return(string.Concat(obj));
        }