StructureDynamicFloorSpecs: Difference between revisions

From The Colonists
Jump to navigation Jump to search
straighten "dynamicfloor_x.png" vs "structurefloor_x.png"
128x128 image details
Line 1: Line 1:
placeholder - explanation of dynamic floors of structures. <br>
placeholder - explanation of dynamic floors of structures. <br>
Specifies which image file is used for the "floor" of structures (e.g. Sheep Farm Fields, Orchard Plots).<br>
Specifies which image file is used for the "floor" of structures (e.g. Sheep Farm Fields, Orchard Plots).<br>
An entry of "structureId": 202, "dynamicFloorId": 222 would use the image "dynamicfloor_222.png" for rendering the floor of structure 202. <br>
An entry of "structureId": 202, "dynamicFloorId": 222 would use the image '''"dynamicfloor_222.png"''' for rendering the floor of structure 202. <br>


Note some buildings use images built into 3D prefabs for structures and do not need structureDynamicFloorSpecs entries (e.g. platforms in TranStations and pies in boat -related buildings). <br>
Note some buildings use images built into 3D prefabs for structures and do not need structureDynamicFloorSpecs entries (e.g. platforms in TranStations and pies in boat -related buildings). <br>
Line 27: Line 27:
</pre>
</pre>


(placeholder - image is 128 pixels wide - plus 4 pixel side bleed?) <br>
Note the image uses 128x128 pixels per tile - plus 8 pixel bleed on each side.<br>
 
Example image showing (from bottom to top): <br>
Example image showing (from bottom to top): <br>
All 4 sides adjacent to plots<br>
All 4 sides adjacent to plots<br>
Line 37: Line 38:
[[File:Floor_buildings_Plot_Example.png|Plot]]
[[File:Floor_buildings_Plot_Example.png|Plot]]


Note that a single, non-dynamic, image can also be used for the floor of a structure, using files names such as "structurefloor_XXX.png" <br>
Note that a single, non-dynamic, image can also be used for the floor of a structure, using files names such as '''"structurefloor_XXX.png"''' <br>

Revision as of 22:15, 19 December 2022

placeholder - explanation of dynamic floors of structures.
Specifies which image file is used for the "floor" of structures (e.g. Sheep Farm Fields, Orchard Plots).
An entry of "structureId": 202, "dynamicFloorId": 222 would use the image "dynamicfloor_222.png" for rendering the floor of structure 202.

Note some buildings use images built into 3D prefabs for structures and do not need structureDynamicFloorSpecs entries (e.g. platforms in TranStations and pies in boat -related buildings).

Example entry in render.json

  "structureDynamicFloorSpecs": [
    {
      "structureId": 1,
      "dynamicFloorId": 1
    },
    {
      "structureId": 2,
      "dynamicFloorId": 1
    },
    {
      "structureId": 3,
      "dynamicFloorId": 2
    },
    {
      "structureId": 202,
      "dynamicFloorId": 222
    }
  ]

Note the image uses 128x128 pixels per tile - plus 8 pixel bleed on each side.

Example image showing (from bottom to top):
All 4 sides adjacent to plots
2 sides adjacent to plots
3 sides adjacent to plots
2 opposite sides adjacent to plots
1 side adjacent to plots

Plot

Note that a single, non-dynamic, image can also be used for the floor of a structure, using files names such as "structurefloor_XXX.png"