Files
Terrarum/work_files/DataFormats/poi.md
2023-10-22 13:42:36 +09:00

1.0 KiB

POI (Point of Interest) is a placement of blocks that can be used by the world generator.

POIs are serialised as following:

{
  "genver": 1234567890, /* game version in Int64 */
  "id": "test_struct_with_enumerable_variations",
  "wlen": 8, /* word length of the tile number. Can be 8 or 16 */
  "lut": {"0": "basegame:0", "1": "basegame:48"},
  "w": 7, "h": 4,
  "layers": [ /* order matters! */
    {"name": "base", "dat": [
      "...layer_0.gz.b85", /* each byte matches what's on the LUT, except 0xFF (0xFFFF if wlen=16) always refers to the null tile. Endianness: little; byte of 0 is NOT guaranteed to be an air tile */
      "...layer_1.gz.b85"
    ]},
    {"name": "varianceA", "dat": [
      "...layer_0.gz.b85",
      "...layer_1.gz.b85"
    ]},
    {"name": "varianceB", "dat": [
      "...layer_0.gz.b85",
      "...layer_1.gz.b85"
    ]},
    {"name": "varianceC", "dat": [
      "...layer_0.gz.b85",
      "...layer_1.gz.b85"
    ]},
    {"name": "overlay", "dat": [
      "...layer_0.gz.b85",
      "...layer_1.gz.b85"
    ]}
  ]
}