BuildingFloorCoordDict: Difference between revisions

From The Colonists
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
placeholder - explanation of building footprint shown during construction - relative to '''floor_buildings.png''', '''floor_base.png''', or '''floor_extra.png''' files<br>
<s>placeholder - explanation of building footprint shown during construction - relative to '''floor_buildings.png''', '''floor_base.png''', or '''floor_extra.png''' files</s> obsolete<br>
Note that some buildings (BoatYard, Harbour, Large Harbour, FishingHut, probably any building using PIER - "layerTypeToCreate": 3) will ignore buildingFloorCoordDict. <br> "Floor" is built into the 3D assets. <br>
Controls the building footprint shown during construction - relative to the respective image file (e.g. '''buildingfloor_201_L2.png''')<br>
Note that some buildings (BoatYard, Harbour, Large Harbour, FishingHut, probably any building using PIER - "layerTypeToCreate": 3) will ignore buildingFloorCoordDict. <br>  
Example entry in render.json<br>
Example entry in render.json<br>
<pre>
{
{
   "buildingFloorCoordDict": {
   "buildingFloorCoordDict": {
     "201": {  // building ID
     "201": {  // building ID
       "LEVEL_1": {  // level 1, 2, or 3
       "LEVEL_1": {  // building level 1
         "x": 2, // x coord  
         "x": 2, // x coord of entrance
         "y": 0 // y coord  
         "y": 0 // y coord of entrance
       },
       },
       "LEVEL_2": {  // level 1, 2, or 3
       "LEVEL_2": {  // building level 2
         "x": 0, // x coord  
         "x": 0, // x coord of entrance
         "y": 13 // y coord  
         "y": 0 // y coord of entrance
       }
       }
     }
     }
   }
   }
}
}
</pre>

Revision as of 19:39, 13 December 2022

placeholder - explanation of building footprint shown during construction - relative to floor_buildings.png, floor_base.png, or floor_extra.png files obsolete
Controls the building footprint shown during construction - relative to the respective image file (e.g. buildingfloor_201_L2.png)
Note that some buildings (BoatYard, Harbour, Large Harbour, FishingHut, probably any building using PIER - "layerTypeToCreate": 3) will ignore buildingFloorCoordDict.
Example entry in render.json

{
  "buildingFloorCoordDict": {
    "201": {  // building ID
      "LEVEL_1": {  // building level 1
        "x": 2, // x coord of entrance
        "y": 0 // y coord of entrance
      },
      "LEVEL_2": {  // building level 2
        "x": 0, // x coord of entrance
        "y": 0 // y coord of entrance
      }
    }
  }
}