mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 18:14:06 +09:00
poi wip
This commit is contained in:
35
work_files/DataFormats/poi.md
Normal file
35
work_files/DataFormats/poi.md
Normal file
@@ -0,0 +1,35 @@
|
||||
POI (Point of Interest) is a placement of blocks that can be used by the world generator.
|
||||
|
||||
POIs are serialised as following:
|
||||
|
||||
```json
|
||||
{
|
||||
"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 */
|
||||
"...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"
|
||||
]}
|
||||
]
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user