PlantableFieldRenderSpecDict

From The Colonists
Jump to navigation Jump to search

This entry in render.json allows # per tile, offset, and continuity for 3D assets of Plantable Fields.
See WheatFarm (StructureID=1) and VegetableFarm (StructureID=2).

Example entry in render.json

{
  "plantableFieldRenderSpecDict": {

    "201": {   // mod plantableField ID
      "numPerTile": {
        "x": 3, // number of 3D assets inY X direction per tile
        "y": 3  // number of 3D assets in  direction per tile
      },
      "isContinuous": true,   // distribute 3D assets to be equidistant within a tile if there is a neighbouring tile 
      "doesCutCorners": true, // removes the 3D asset in corners
      "offsetRange": {
        "x": 0.02,  // maximum randomized X offset of 3D assets in X direction
        "y": 0.02   // maximum randomized Y offset of 3D assets in X direction
      }
    }
  }
}