@bendyline/molen-tooling 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +15 -0
  3. package/README.md +91 -0
  4. package/dist/capture/THIRD-PARTY-NOTICES.md +223 -0
  5. package/dist/capture/basis/LICENSE.txt +55 -0
  6. package/dist/capture/basis/basis_transcoder.js +19 -0
  7. package/dist/capture/basis/basis_transcoder.wasm +0 -0
  8. package/dist/capture/capture.html +15 -0
  9. package/dist/capture/harness.js +4671 -0
  10. package/dist/capture/worldgen-preview.html +15 -0
  11. package/dist/capture/worldgen-preview.js +4617 -0
  12. package/dist/cli.d.mts +1 -0
  13. package/dist/cli.mjs +1276 -0
  14. package/dist/docs-src/guide/3d-art-guidelines.md +157 -0
  15. package/dist/docs-src/guide/3d-model-assets.md +286 -0
  16. package/dist/docs-src/guide/adaptive-performance.md +89 -0
  17. package/dist/docs-src/guide/agent-loop.md +156 -0
  18. package/dist/docs-src/guide/aircraft.md +225 -0
  19. package/dist/docs-src/guide/browser-mount.md +185 -0
  20. package/dist/docs-src/guide/building-interiors.md +175 -0
  21. package/dist/docs-src/guide/capability-authoring.md +69 -0
  22. package/dist/docs-src/guide/determinism.md +285 -0
  23. package/dist/docs-src/guide/entities.md +47 -0
  24. package/dist/docs-src/guide/examples.md +58 -0
  25. package/dist/docs-src/guide/experience-playback.md +57 -0
  26. package/dist/docs-src/guide/figures.md +164 -0
  27. package/dist/docs-src/guide/game-samples.md +100 -0
  28. package/dist/docs-src/guide/graphics-performance.md +167 -0
  29. package/dist/docs-src/guide/input.md +205 -0
  30. package/dist/docs-src/guide/materials.md +125 -0
  31. package/dist/docs-src/guide/project.md +157 -0
  32. package/dist/docs-src/guide/quickstart.md +63 -0
  33. package/dist/docs-src/guide/recognizable-places.md +158 -0
  34. package/dist/docs-src/guide/rendering-backends.md +231 -0
  35. package/dist/docs-src/guide/scripting.md +330 -0
  36. package/dist/docs-src/guide/sky.md +192 -0
  37. package/dist/docs-src/guide/source-bundles.md +42 -0
  38. package/dist/docs-src/guide/structure-library.md +114 -0
  39. package/dist/docs-src/guide/surface-rendering.md +203 -0
  40. package/dist/docs-src/guide/terrain.md +389 -0
  41. package/dist/docs-src/guide/three-surface.md +70 -0
  42. package/dist/docs-src/guide/vehicle-interiors.md +126 -0
  43. package/dist/docs-src/guide/vehicles.md +110 -0
  44. package/dist/docs-src/guide/weather.md +123 -0
  45. package/dist/docs-src/guide/worldgen.md +434 -0
  46. package/dist/docs-src/llms.txt +129 -0
  47. package/dist/docs-src/schemas/README.md +36 -0
  48. package/dist/docs-src/schemas/archstyle.md +2340 -0
  49. package/dist/docs-src/schemas/assert.md +169 -0
  50. package/dist/docs-src/schemas/asset.md +543 -0
  51. package/dist/docs-src/schemas/business-catalog.md +162 -0
  52. package/dist/docs-src/schemas/cameratrack.md +132 -0
  53. package/dist/docs-src/schemas/command.md +112 -0
  54. package/dist/docs-src/schemas/components.md +5826 -0
  55. package/dist/docs-src/schemas/delta.md +204 -0
  56. package/dist/docs-src/schemas/experience-play.md +452 -0
  57. package/dist/docs-src/schemas/figure.md +290 -0
  58. package/dist/docs-src/schemas/interior-catalog.md +230 -0
  59. package/dist/docs-src/schemas/keyframe.md +314 -0
  60. package/dist/docs-src/schemas/landmark-catalog.md +56 -0
  61. package/dist/docs-src/schemas/landmark.md +293 -0
  62. package/dist/docs-src/schemas/matgraph.md +1163 -0
  63. package/dist/docs-src/schemas/pack-index.md +82 -0
  64. package/dist/docs-src/schemas/pack-source.md +139 -0
  65. package/dist/docs-src/schemas/pack.md +225 -0
  66. package/dist/docs-src/schemas/pixelgrid.md +108 -0
  67. package/dist/docs-src/schemas/prefab.md +106 -0
  68. package/dist/docs-src/schemas/project.md +271 -0
  69. package/dist/docs-src/schemas/region-atlas.md +612 -0
  70. package/dist/docs-src/schemas/replay.md +807 -0
  71. package/dist/docs-src/schemas/scatter.md +541 -0
  72. package/dist/docs-src/schemas/scene.md +1152 -0
  73. package/dist/docs-src/schemas/source-bundle.md +266 -0
  74. package/dist/docs-src/schemas/stylepack.md +420 -0
  75. package/dist/docs-src/schemas/terrain-package.md +731 -0
  76. package/dist/docs-src/schemas/terrain.md +313 -0
  77. package/dist/docs-src/schemas/types.md +218 -0
  78. package/dist/docs-src/schemas/uvpaint.md +149 -0
  79. package/dist/docs-src/schemas/worldgen-batch.md +743 -0
  80. package/dist/index.d.mts +1271 -0
  81. package/dist/index.mjs +78 -0
  82. package/dist/mcp-BFnCWrg0.mjs +796 -0
  83. package/dist/ops-BGxhSP6w.mjs +7246 -0
  84. package/package.json +96 -0
@@ -0,0 +1,2340 @@
1
+ # Architectural style (`molen/archstyle@1`)
2
+
3
+ How to turn any outline into a styled building: massing, roof grammar, facade rhythm, materials, palettes, props, and detail tiers. World-agnostic; bound to places by a pack or a region atlas.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/archstyle@1",
10
+ "id": "molen.worldgen.pnw.house",
11
+ "title": "Pacific Northwest house",
12
+ "doc": "Wood-sided single-family homes: steep gable and hip roofs, deep eaves, muted sage, slate, and cedar palettes, exposed foundations on slopes.",
13
+ "version": 1,
14
+ "applicability": {
15
+ "classes": [
16
+ "house",
17
+ "detached",
18
+ "semidetached",
19
+ "residential",
20
+ "bungalow",
21
+ "yes",
22
+ "building"
23
+ ],
24
+ "contextClasses": [
25
+ "residential",
26
+ "none"
27
+ ],
28
+ "areaMax": 400
29
+ },
30
+ "massing": {
31
+ "floorHeight": {
32
+ "min": 2.7,
33
+ "max": 3.1
34
+ },
35
+ "heightFallback": [
36
+ {
37
+ "when": {
38
+ "areaMax": 90
39
+ },
40
+ "levels": {
41
+ "min": 1,
42
+ "max": 1
43
+ }
44
+ },
45
+ {
46
+ "when": {
47
+ "areaMax": 220
48
+ },
49
+ "levels": {
50
+ "min": 1,
51
+ "max": 2
52
+ }
53
+ },
54
+ {
55
+ "levels": {
56
+ "min": 2,
57
+ "max": 2
58
+ }
59
+ }
60
+ ],
61
+ "groundFit": "platform-max",
62
+ "foundation": {
63
+ "height": {
64
+ "min": 0.4,
65
+ "max": 0.9
66
+ },
67
+ "exposeOnSlope": true
68
+ },
69
+ "wings": {
70
+ "split": "rectangles",
71
+ "maxWingSpan": 12,
72
+ "minWingArea": 18,
73
+ "secondaryHeightScale": {
74
+ "min": 0.6,
75
+ "max": 0.95
76
+ }
77
+ },
78
+ "setbacks": [],
79
+ "respectMinHeight": true
80
+ },
81
+ "roof": {
82
+ "perWing": true,
83
+ "ridge": "long-axis",
84
+ "overhang": {
85
+ "min": 0.45,
86
+ "max": 0.75
87
+ },
88
+ "complexFootprint": "wings",
89
+ "choices": [
90
+ {
91
+ "type": "gable",
92
+ "weight": 6,
93
+ "pitchDeg": {
94
+ "min": 30,
95
+ "max": 42
96
+ },
97
+ "when": {
98
+ "elongationMin": 1.15
99
+ }
100
+ },
101
+ {
102
+ "type": "hip",
103
+ "weight": 3,
104
+ "pitchDeg": {
105
+ "min": 25,
106
+ "max": 35
107
+ }
108
+ },
109
+ {
110
+ "type": "pyramid",
111
+ "weight": 1,
112
+ "pitchDeg": {
113
+ "min": 25,
114
+ "max": 32
115
+ },
116
+ "when": {
117
+ "elongationMax": 1.15,
118
+ "areaMax": 90
119
+ }
120
+ }
121
+ ],
122
+ "fallback": "flat",
123
+ "features": {
124
+ "dormers": {
125
+ "probability": 0.35,
126
+ "perRidgeMeters": 5,
127
+ "style": "gable",
128
+ "when": {
129
+ "areaMin": 110
130
+ }
131
+ }
132
+ }
133
+ },
134
+ "facade": {
135
+ "bays": {
136
+ "width": {
137
+ "min": 2.6,
138
+ "max": 3.6
139
+ },
140
+ "cornerMargin": 0.6
141
+ },
142
+ "windows": {
143
+ "style": "punched",
144
+ "width": {
145
+ "min": 1,
146
+ "max": 1.5
147
+ },
148
+ "height": {
149
+ "min": 1.2,
150
+ "max": 1.5
151
+ },
152
+ "sill": {
153
+ "min": 0.8,
154
+ "max": 1
155
+ },
156
+ "probabilityPerBay": 0.8,
157
+ "groundFloor": "same"
158
+ },
159
+ "bands": {
160
+ "base": {
161
+ "height": {
162
+ "min": 0.3,
163
+ "max": 0.5
164
+ }
165
+ },
166
+ "floorLines": false,
167
+ "cornice": {
168
+ "height": 0.18
169
+ }
170
+ }
171
+ },
172
+ "materials": {
173
+ "wall": {
174
+ "choices": [
175
+ {
176
+ "ref": "matgraph:molen.worldgen.material.siding_lap",
177
+ "weight": 4
178
+ },
179
+ {
180
+ "ref": "matgraph:molen.worldgen.material.siding_shingle",
181
+ "weight": 1
182
+ }
183
+ ],
184
+ "palette": "siding",
185
+ "tint": "multiply",
186
+ "uv": "meters",
187
+ "uvScale": [
188
+ 3,
189
+ 2.9
190
+ ],
191
+ "uvOffset": "meters",
192
+ "uvMirror": true
193
+ },
194
+ "roof": {
195
+ "choices": [
196
+ {
197
+ "ref": "matgraph:molen.worldgen.material.shingle_asphalt",
198
+ "weight": 1
199
+ }
200
+ ],
201
+ "palette": "roof",
202
+ "tint": "multiply",
203
+ "uv": "meters",
204
+ "uvScale": [
205
+ 2,
206
+ 2
207
+ ],
208
+ "uvOffset": "meters",
209
+ "uvMirror": false
210
+ },
211
+ "trim": {
212
+ "choices": [
213
+ {
214
+ "ref": "palette:#f2efe6",
215
+ "weight": 1
216
+ }
217
+ ],
218
+ "palette": "trim",
219
+ "tint": "multiply",
220
+ "uv": "meters",
221
+ "uvOffset": "none",
222
+ "uvMirror": false
223
+ },
224
+ "foundation": {
225
+ "choices": [
226
+ {
227
+ "ref": "matgraph:molen.worldgen.material.concrete_plain",
228
+ "weight": 1
229
+ }
230
+ ],
231
+ "tint": "none",
232
+ "uv": "meters",
233
+ "uvScale": [
234
+ 2,
235
+ 2
236
+ ],
237
+ "uvOffset": "meters",
238
+ "uvMirror": false
239
+ }
240
+ },
241
+ "palettes": {
242
+ "siding": {
243
+ "entries": [
244
+ {
245
+ "color": "#8b9a7a",
246
+ "weight": 3,
247
+ "name": "sage"
248
+ },
249
+ {
250
+ "color": "#5e6b7a",
251
+ "weight": 3,
252
+ "name": "slate"
253
+ },
254
+ {
255
+ "color": "#a89f8e",
256
+ "weight": 2,
257
+ "name": "warm grey"
258
+ },
259
+ {
260
+ "color": "#7a5a45",
261
+ "weight": 2,
262
+ "name": "cedar"
263
+ },
264
+ {
265
+ "color": "#ece7dc",
266
+ "weight": 1,
267
+ "name": "cream"
268
+ }
269
+ ],
270
+ "jitter": {
271
+ "hue": 0.015,
272
+ "saturation": 0.06,
273
+ "lightness": 0.06
274
+ }
275
+ },
276
+ "roof": {
277
+ "entries": [
278
+ {
279
+ "color": "#3f4245",
280
+ "weight": 5
281
+ },
282
+ {
283
+ "color": "#5a4a3c",
284
+ "weight": 2
285
+ },
286
+ {
287
+ "color": "#2f3a34",
288
+ "weight": 2
289
+ }
290
+ ],
291
+ "jitter": {
292
+ "hue": 0.01,
293
+ "saturation": 0.04,
294
+ "lightness": 0.05
295
+ }
296
+ },
297
+ "trim": {
298
+ "entries": [
299
+ {
300
+ "color": "#f4f1ea",
301
+ "weight": 4
302
+ },
303
+ {
304
+ "color": "#d9d4c7",
305
+ "weight": 1
306
+ }
307
+ ],
308
+ "jitter": {
309
+ "hue": 0,
310
+ "saturation": 0.02,
311
+ "lightness": 0.03
312
+ }
313
+ }
314
+ },
315
+ "props": [
316
+ {
317
+ "id": "chimney",
318
+ "model": "molen.worldgen.prop.chimney.brick",
319
+ "anchor": "roof-ridge",
320
+ "probability": 0.55,
321
+ "count": {
322
+ "min": 1,
323
+ "max": 1
324
+ },
325
+ "roof": [
326
+ "gable",
327
+ "hip"
328
+ ],
329
+ "spacing": 4,
330
+ "margin": 1.2,
331
+ "scale": {
332
+ "min": 0.9,
333
+ "max": 1.1
334
+ },
335
+ "yaw": "align-wall",
336
+ "lodTier": 0
337
+ }
338
+ ],
339
+ "lod": {
340
+ "tiers": [
341
+ {
342
+ "minTier": 0,
343
+ "keep": [
344
+ "roof-shape",
345
+ "roof-features",
346
+ "facade-texture",
347
+ "facade-bands",
348
+ "props"
349
+ ]
350
+ },
351
+ {
352
+ "minTier": 1,
353
+ "keep": [
354
+ "roof-shape",
355
+ "facade-texture"
356
+ ]
357
+ },
358
+ {
359
+ "minTier": 2,
360
+ "keep": [
361
+ "roof-shape"
362
+ ]
363
+ }
364
+ ]
365
+ }
366
+ }
367
+ ```
368
+
369
+ ## JSON Schema
370
+
371
+ ```json
372
+ {
373
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
374
+ "type": "object",
375
+ "properties": {
376
+ "format": {
377
+ "type": "string",
378
+ "const": "molen/archstyle@1",
379
+ "description": "Format envelope; always 'molen/archstyle@1'."
380
+ },
381
+ "id": {
382
+ "type": "string",
383
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
384
+ "description": "Style id under the pack namespace, e.g. 'molen.worldgen.pnw.house'."
385
+ },
386
+ "title": {
387
+ "type": "string",
388
+ "minLength": 1,
389
+ "description": "Human title."
390
+ },
391
+ "doc": {
392
+ "type": "string",
393
+ "description": "What the style looks like and where it applies."
394
+ },
395
+ "version": {
396
+ "default": 1,
397
+ "type": "integer",
398
+ "minimum": 1,
399
+ "maximum": 9007199254740991,
400
+ "description": "Bump to re-roll every building using this style."
401
+ },
402
+ "applicability": {
403
+ "type": "object",
404
+ "properties": {
405
+ "classes": {
406
+ "minItems": 1,
407
+ "type": "array",
408
+ "items": {
409
+ "type": "string",
410
+ "minLength": 1
411
+ },
412
+ "description": "Labels this style is meant for."
413
+ },
414
+ "contextClasses": {
415
+ "type": "array",
416
+ "items": {
417
+ "type": "string",
418
+ "minLength": 1
419
+ },
420
+ "description": "Surrounding labels it suits."
421
+ },
422
+ "areaMin": {
423
+ "type": "number",
424
+ "minimum": 0,
425
+ "description": "Smallest suitable footprint, m²."
426
+ },
427
+ "areaMax": {
428
+ "type": "number",
429
+ "minimum": 0,
430
+ "description": "Largest suitable footprint, m²."
431
+ },
432
+ "notes": {
433
+ "type": "string"
434
+ }
435
+ },
436
+ "required": [
437
+ "classes"
438
+ ],
439
+ "additionalProperties": false
440
+ },
441
+ "massing": {
442
+ "type": "object",
443
+ "properties": {
444
+ "floorHeight": {
445
+ "type": "object",
446
+ "properties": {
447
+ "min": {
448
+ "type": "number",
449
+ "description": "Minimum floor height in meters."
450
+ },
451
+ "max": {
452
+ "type": "number",
453
+ "description": "Maximum floor height in meters (>= min)."
454
+ }
455
+ },
456
+ "required": [
457
+ "min",
458
+ "max"
459
+ ],
460
+ "description": "Sampled once per building."
461
+ },
462
+ "groundFloorHeight": {
463
+ "type": "object",
464
+ "properties": {
465
+ "min": {
466
+ "type": "number",
467
+ "description": "Minimum ground floor height in meters."
468
+ },
469
+ "max": {
470
+ "type": "number",
471
+ "description": "Maximum ground floor height in meters (>= min)."
472
+ }
473
+ },
474
+ "required": [
475
+ "min",
476
+ "max"
477
+ ],
478
+ "description": "Ground floor height; defaults to floorHeight."
479
+ },
480
+ "heightFallback": {
481
+ "minItems": 1,
482
+ "type": "array",
483
+ "items": {
484
+ "type": "object",
485
+ "properties": {
486
+ "when": {
487
+ "type": "object",
488
+ "properties": {
489
+ "class": {
490
+ "minItems": 1,
491
+ "type": "array",
492
+ "items": {
493
+ "type": "string",
494
+ "minLength": 1
495
+ },
496
+ "description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
497
+ },
498
+ "notClass": {
499
+ "minItems": 1,
500
+ "type": "array",
501
+ "items": {
502
+ "type": "string",
503
+ "minLength": 1
504
+ },
505
+ "description": "Reject when any label matches one of these words."
506
+ },
507
+ "contextClass": {
508
+ "minItems": 1,
509
+ "type": "array",
510
+ "items": {
511
+ "type": "string",
512
+ "minLength": 1
513
+ },
514
+ "description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
515
+ },
516
+ "notContextClass": {
517
+ "minItems": 1,
518
+ "type": "array",
519
+ "items": {
520
+ "type": "string",
521
+ "minLength": 1
522
+ },
523
+ "description": "Reject when the surrounding label matches."
524
+ },
525
+ "areaMin": {
526
+ "type": "number",
527
+ "minimum": 0,
528
+ "description": "Minimum footprint area in m²."
529
+ },
530
+ "areaMax": {
531
+ "type": "number",
532
+ "minimum": 0,
533
+ "description": "Maximum footprint area in m²."
534
+ },
535
+ "heightMin": {
536
+ "type": "number",
537
+ "minimum": 0,
538
+ "description": "Minimum known height in meters; never matches an unknown height."
539
+ },
540
+ "heightMax": {
541
+ "type": "number",
542
+ "minimum": 0,
543
+ "description": "Maximum known height in meters; never matches an unknown height."
544
+ },
545
+ "hasHeight": {
546
+ "type": "boolean",
547
+ "description": "Require (true) or forbid (false) a known source height."
548
+ },
549
+ "levelsMin": {
550
+ "type": "number",
551
+ "minimum": 0,
552
+ "description": "Minimum floor count; roof choices also use resolved estimates."
553
+ },
554
+ "levelsMax": {
555
+ "type": "number",
556
+ "minimum": 0,
557
+ "description": "Maximum floor count; roof choices also use resolved estimates."
558
+ },
559
+ "elongationMin": {
560
+ "type": "number",
561
+ "minimum": 1,
562
+ "description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
563
+ },
564
+ "elongationMax": {
565
+ "type": "number",
566
+ "minimum": 1,
567
+ "description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
568
+ },
569
+ "rectangularityMin": {
570
+ "type": "number",
571
+ "minimum": 0,
572
+ "maximum": 1,
573
+ "description": "Minimum area / (width * depth), 0..1."
574
+ },
575
+ "rectangularityMax": {
576
+ "type": "number",
577
+ "minimum": 0,
578
+ "maximum": 1,
579
+ "description": "Maximum area / (width * depth), 0..1."
580
+ },
581
+ "verticesMax": {
582
+ "type": "integer",
583
+ "minimum": 3,
584
+ "maximum": 9007199254740991,
585
+ "description": "Maximum outline vertex count after cleaning."
586
+ },
587
+ "holes": {
588
+ "type": "boolean",
589
+ "description": "Require (true) or forbid (false) holes (courtyards)."
590
+ },
591
+ "wingsMin": {
592
+ "type": "integer",
593
+ "minimum": 0,
594
+ "maximum": 9007199254740991,
595
+ "description": "Minimum roof wing count (archstyle rules only)."
596
+ },
597
+ "wingsMax": {
598
+ "type": "integer",
599
+ "minimum": 0,
600
+ "maximum": 9007199254740991,
601
+ "description": "Maximum roof wing count (archstyle rules only)."
602
+ }
603
+ },
604
+ "additionalProperties": false,
605
+ "description": "Conditions; omit on the last (catch-all) rule."
606
+ },
607
+ "levels": {
608
+ "type": "object",
609
+ "properties": {
610
+ "min": {
611
+ "type": "number",
612
+ "description": "Minimum floor count."
613
+ },
614
+ "max": {
615
+ "type": "number",
616
+ "description": "Maximum floor count (>= min)."
617
+ }
618
+ },
619
+ "required": [
620
+ "min",
621
+ "max"
622
+ ],
623
+ "description": "Floor count range to sample from."
624
+ },
625
+ "height": {
626
+ "type": "object",
627
+ "properties": {
628
+ "min": {
629
+ "type": "number",
630
+ "description": "Minimum height in meters."
631
+ },
632
+ "max": {
633
+ "type": "number",
634
+ "description": "Maximum height in meters (>= min)."
635
+ }
636
+ },
637
+ "required": [
638
+ "min",
639
+ "max"
640
+ ],
641
+ "description": "Height range in meters to sample from."
642
+ }
643
+ },
644
+ "additionalProperties": false
645
+ },
646
+ "description": "Used only when a request has neither height nor levels; ordered, first match wins, the last rule must have no \"when\"."
647
+ },
648
+ "groundFit": {
649
+ "default": "platform-average",
650
+ "type": "string",
651
+ "enum": [
652
+ "platform-average",
653
+ "platform-max",
654
+ "platform-min"
655
+ ],
656
+ "description": "How the platform height follows the terrain under the outline."
657
+ },
658
+ "foundation": {
659
+ "type": "object",
660
+ "properties": {
661
+ "height": {
662
+ "type": "object",
663
+ "properties": {
664
+ "min": {
665
+ "type": "number",
666
+ "description": "Minimum exposed foundation height in meters."
667
+ },
668
+ "max": {
669
+ "type": "number",
670
+ "description": "Maximum exposed foundation height in meters (>= min)."
671
+ }
672
+ },
673
+ "required": [
674
+ "min",
675
+ "max"
676
+ ]
677
+ },
678
+ "exposeOnSlope": {
679
+ "default": true,
680
+ "type": "boolean",
681
+ "description": "Emit a foundation skirt where the ground falls below the platform."
682
+ }
683
+ },
684
+ "required": [
685
+ "height"
686
+ ],
687
+ "additionalProperties": false
688
+ },
689
+ "wings": {
690
+ "type": "object",
691
+ "properties": {
692
+ "split": {
693
+ "default": "rectangles",
694
+ "type": "string",
695
+ "enum": [
696
+ "none",
697
+ "rectangles"
698
+ ],
699
+ "description": "'rectangles' decomposes L/T/U/... outlines into roof wings."
700
+ },
701
+ "maxWingSpan": {
702
+ "default": 14,
703
+ "type": "number",
704
+ "exclusiveMinimum": 0,
705
+ "description": "Widest wing (meters) that still gets a pitched roof; wider wings go flat."
706
+ },
707
+ "minWingArea": {
708
+ "default": 12,
709
+ "type": "number",
710
+ "minimum": 0,
711
+ "description": "Wings smaller than this (m²) are dropped from the roof."
712
+ },
713
+ "secondaryHeightScale": {
714
+ "type": "object",
715
+ "properties": {
716
+ "min": {
717
+ "type": "number",
718
+ "description": "Minimum secondary wing height scale, 0..1."
719
+ },
720
+ "max": {
721
+ "type": "number",
722
+ "description": "Maximum secondary wing height scale, 0..1 (>= min)."
723
+ }
724
+ },
725
+ "required": [
726
+ "min",
727
+ "max"
728
+ ],
729
+ "description": "Height of non-dominant wings relative to the main wing."
730
+ }
731
+ },
732
+ "required": [
733
+ "secondaryHeightScale"
734
+ ],
735
+ "additionalProperties": false
736
+ },
737
+ "setbacks": {
738
+ "default": [],
739
+ "type": "array",
740
+ "items": {
741
+ "type": "object",
742
+ "properties": {
743
+ "aboveHeight": {
744
+ "type": "number",
745
+ "minimum": 0,
746
+ "description": "Height in meters above which the setback applies."
747
+ },
748
+ "inset": {
749
+ "type": "number",
750
+ "minimum": 0,
751
+ "description": "Inset in meters."
752
+ }
753
+ },
754
+ "required": [
755
+ "aboveHeight",
756
+ "inset"
757
+ ],
758
+ "additionalProperties": false
759
+ },
760
+ "description": "Stepped insets for tall buildings, lowest first."
761
+ },
762
+ "respectMinHeight": {
763
+ "default": true,
764
+ "type": "boolean",
765
+ "description": "Honor a request minHeight (raised parts) instead of grounding everything."
766
+ }
767
+ },
768
+ "required": [
769
+ "floorHeight",
770
+ "heightFallback",
771
+ "foundation",
772
+ "wings"
773
+ ],
774
+ "additionalProperties": false
775
+ },
776
+ "roof": {
777
+ "type": "object",
778
+ "properties": {
779
+ "perWing": {
780
+ "default": true,
781
+ "type": "boolean",
782
+ "description": "One roof per wing (true) or one over the main wing."
783
+ },
784
+ "ridge": {
785
+ "default": "long-axis",
786
+ "type": "string",
787
+ "enum": [
788
+ "long-axis",
789
+ "short-axis"
790
+ ],
791
+ "description": "Default ridge orientation."
792
+ },
793
+ "overhang": {
794
+ "type": "object",
795
+ "properties": {
796
+ "min": {
797
+ "type": "number",
798
+ "description": "Minimum default eave overhang in meters."
799
+ },
800
+ "max": {
801
+ "type": "number",
802
+ "description": "Maximum default eave overhang in meters (>= min)."
803
+ }
804
+ },
805
+ "required": [
806
+ "min",
807
+ "max"
808
+ ]
809
+ },
810
+ "complexFootprint": {
811
+ "default": "wings",
812
+ "type": "string",
813
+ "enum": [
814
+ "flat",
815
+ "wings"
816
+ ],
817
+ "description": "Roof for outlines that cannot be decomposed: flat, or roofs over whatever wings exist."
818
+ },
819
+ "choices": {
820
+ "minItems": 1,
821
+ "type": "array",
822
+ "items": {
823
+ "type": "object",
824
+ "properties": {
825
+ "type": {
826
+ "type": "string",
827
+ "enum": [
828
+ "flat",
829
+ "gable",
830
+ "hip",
831
+ "pyramid",
832
+ "shed",
833
+ "mansard",
834
+ "gambrel"
835
+ ],
836
+ "description": "Roof form."
837
+ },
838
+ "weight": {
839
+ "type": "number",
840
+ "minimum": 0,
841
+ "maximum": 1000,
842
+ "description": "Relative weight among sibling entries; 0 disables the entry."
843
+ },
844
+ "when": {
845
+ "type": "object",
846
+ "properties": {
847
+ "class": {
848
+ "minItems": 1,
849
+ "type": "array",
850
+ "items": {
851
+ "type": "string",
852
+ "minLength": 1
853
+ },
854
+ "description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
855
+ },
856
+ "notClass": {
857
+ "minItems": 1,
858
+ "type": "array",
859
+ "items": {
860
+ "type": "string",
861
+ "minLength": 1
862
+ },
863
+ "description": "Reject when any label matches one of these words."
864
+ },
865
+ "contextClass": {
866
+ "minItems": 1,
867
+ "type": "array",
868
+ "items": {
869
+ "type": "string",
870
+ "minLength": 1
871
+ },
872
+ "description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
873
+ },
874
+ "notContextClass": {
875
+ "minItems": 1,
876
+ "type": "array",
877
+ "items": {
878
+ "type": "string",
879
+ "minLength": 1
880
+ },
881
+ "description": "Reject when the surrounding label matches."
882
+ },
883
+ "areaMin": {
884
+ "type": "number",
885
+ "minimum": 0,
886
+ "description": "Minimum footprint area in m²."
887
+ },
888
+ "areaMax": {
889
+ "type": "number",
890
+ "minimum": 0,
891
+ "description": "Maximum footprint area in m²."
892
+ },
893
+ "heightMin": {
894
+ "type": "number",
895
+ "minimum": 0,
896
+ "description": "Minimum known height in meters; never matches an unknown height."
897
+ },
898
+ "heightMax": {
899
+ "type": "number",
900
+ "minimum": 0,
901
+ "description": "Maximum known height in meters; never matches an unknown height."
902
+ },
903
+ "hasHeight": {
904
+ "type": "boolean",
905
+ "description": "Require (true) or forbid (false) a known source height."
906
+ },
907
+ "levelsMin": {
908
+ "type": "number",
909
+ "minimum": 0,
910
+ "description": "Minimum floor count; roof choices also use resolved estimates."
911
+ },
912
+ "levelsMax": {
913
+ "type": "number",
914
+ "minimum": 0,
915
+ "description": "Maximum floor count; roof choices also use resolved estimates."
916
+ },
917
+ "elongationMin": {
918
+ "type": "number",
919
+ "minimum": 1,
920
+ "description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
921
+ },
922
+ "elongationMax": {
923
+ "type": "number",
924
+ "minimum": 1,
925
+ "description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
926
+ },
927
+ "rectangularityMin": {
928
+ "type": "number",
929
+ "minimum": 0,
930
+ "maximum": 1,
931
+ "description": "Minimum area / (width * depth), 0..1."
932
+ },
933
+ "rectangularityMax": {
934
+ "type": "number",
935
+ "minimum": 0,
936
+ "maximum": 1,
937
+ "description": "Maximum area / (width * depth), 0..1."
938
+ },
939
+ "verticesMax": {
940
+ "type": "integer",
941
+ "minimum": 3,
942
+ "maximum": 9007199254740991,
943
+ "description": "Maximum outline vertex count after cleaning."
944
+ },
945
+ "holes": {
946
+ "type": "boolean",
947
+ "description": "Require (true) or forbid (false) holes (courtyards)."
948
+ },
949
+ "wingsMin": {
950
+ "type": "integer",
951
+ "minimum": 0,
952
+ "maximum": 9007199254740991,
953
+ "description": "Minimum roof wing count (archstyle rules only)."
954
+ },
955
+ "wingsMax": {
956
+ "type": "integer",
957
+ "minimum": 0,
958
+ "maximum": 9007199254740991,
959
+ "description": "Maximum roof wing count (archstyle rules only)."
960
+ }
961
+ },
962
+ "additionalProperties": false,
963
+ "description": "Eligibility, e.g. elongationMin for gables."
964
+ },
965
+ "pitchDeg": {
966
+ "type": "object",
967
+ "properties": {
968
+ "min": {
969
+ "type": "number",
970
+ "description": "Minimum roof pitch in degrees (5..75)."
971
+ },
972
+ "max": {
973
+ "type": "number",
974
+ "description": "Maximum roof pitch in degrees (5..75) (>= min)."
975
+ }
976
+ },
977
+ "required": [
978
+ "min",
979
+ "max"
980
+ ],
981
+ "description": "Required for every type except flat."
982
+ },
983
+ "lowerPitchDeg": {
984
+ "type": "object",
985
+ "properties": {
986
+ "min": {
987
+ "type": "number",
988
+ "description": "Minimum lower slope pitch in degrees (mansard, gambrel)."
989
+ },
990
+ "max": {
991
+ "type": "number",
992
+ "description": "Maximum lower slope pitch in degrees (mansard, gambrel) (>= min)."
993
+ }
994
+ },
995
+ "required": [
996
+ "min",
997
+ "max"
998
+ ]
999
+ },
1000
+ "overhang": {
1001
+ "type": "object",
1002
+ "properties": {
1003
+ "min": {
1004
+ "type": "number",
1005
+ "description": "Minimum eave overhang in meters."
1006
+ },
1007
+ "max": {
1008
+ "type": "number",
1009
+ "description": "Maximum eave overhang in meters (>= min)."
1010
+ }
1011
+ },
1012
+ "required": [
1013
+ "min",
1014
+ "max"
1015
+ ],
1016
+ "description": "Overrides roof.overhang."
1017
+ },
1018
+ "ridge": {
1019
+ "type": "string",
1020
+ "enum": [
1021
+ "long-axis",
1022
+ "short-axis"
1023
+ ],
1024
+ "description": "Ridge orientation relative to the wing."
1025
+ },
1026
+ "parapet": {
1027
+ "type": "object",
1028
+ "properties": {
1029
+ "height": {
1030
+ "type": "object",
1031
+ "properties": {
1032
+ "min": {
1033
+ "type": "number",
1034
+ "description": "Minimum parapet height in meters."
1035
+ },
1036
+ "max": {
1037
+ "type": "number",
1038
+ "description": "Maximum parapet height in meters (>= min)."
1039
+ }
1040
+ },
1041
+ "required": [
1042
+ "min",
1043
+ "max"
1044
+ ]
1045
+ },
1046
+ "thickness": {
1047
+ "default": 0.3,
1048
+ "type": "number",
1049
+ "exclusiveMinimum": 0,
1050
+ "description": "Parapet thickness in meters."
1051
+ }
1052
+ },
1053
+ "required": [
1054
+ "height"
1055
+ ],
1056
+ "additionalProperties": false,
1057
+ "description": "Flat roofs only."
1058
+ },
1059
+ "shedDirection": {
1060
+ "type": "string",
1061
+ "enum": [
1062
+ "downhill",
1063
+ "random",
1064
+ "long-axis"
1065
+ ],
1066
+ "description": "Which way a shed roof rises."
1067
+ }
1068
+ },
1069
+ "required": [
1070
+ "type",
1071
+ "weight"
1072
+ ],
1073
+ "additionalProperties": false
1074
+ },
1075
+ "description": "Weighted roof forms; eligible ones are drawn by weight."
1076
+ },
1077
+ "fallback": {
1078
+ "default": "flat",
1079
+ "type": "string",
1080
+ "const": "flat",
1081
+ "description": "Always constructible fallback."
1082
+ },
1083
+ "features": {
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "dormers": {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "probability": {
1090
+ "type": "number",
1091
+ "minimum": 0,
1092
+ "maximum": 1,
1093
+ "description": "Chance a qualifying building gets dormers."
1094
+ },
1095
+ "perRidgeMeters": {
1096
+ "type": "number",
1097
+ "exclusiveMinimum": 0,
1098
+ "description": "One dormer per this many ridge meters."
1099
+ },
1100
+ "style": {
1101
+ "type": "string",
1102
+ "enum": [
1103
+ "gable",
1104
+ "shed"
1105
+ ],
1106
+ "description": "Dormer roof form."
1107
+ },
1108
+ "when": {
1109
+ "type": "object",
1110
+ "properties": {
1111
+ "class": {
1112
+ "minItems": 1,
1113
+ "type": "array",
1114
+ "items": {
1115
+ "type": "string",
1116
+ "minLength": 1
1117
+ },
1118
+ "description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
1119
+ },
1120
+ "notClass": {
1121
+ "minItems": 1,
1122
+ "type": "array",
1123
+ "items": {
1124
+ "type": "string",
1125
+ "minLength": 1
1126
+ },
1127
+ "description": "Reject when any label matches one of these words."
1128
+ },
1129
+ "contextClass": {
1130
+ "minItems": 1,
1131
+ "type": "array",
1132
+ "items": {
1133
+ "type": "string",
1134
+ "minLength": 1
1135
+ },
1136
+ "description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
1137
+ },
1138
+ "notContextClass": {
1139
+ "minItems": 1,
1140
+ "type": "array",
1141
+ "items": {
1142
+ "type": "string",
1143
+ "minLength": 1
1144
+ },
1145
+ "description": "Reject when the surrounding label matches."
1146
+ },
1147
+ "areaMin": {
1148
+ "type": "number",
1149
+ "minimum": 0,
1150
+ "description": "Minimum footprint area in m²."
1151
+ },
1152
+ "areaMax": {
1153
+ "type": "number",
1154
+ "minimum": 0,
1155
+ "description": "Maximum footprint area in m²."
1156
+ },
1157
+ "heightMin": {
1158
+ "type": "number",
1159
+ "minimum": 0,
1160
+ "description": "Minimum known height in meters; never matches an unknown height."
1161
+ },
1162
+ "heightMax": {
1163
+ "type": "number",
1164
+ "minimum": 0,
1165
+ "description": "Maximum known height in meters; never matches an unknown height."
1166
+ },
1167
+ "hasHeight": {
1168
+ "type": "boolean",
1169
+ "description": "Require (true) or forbid (false) a known source height."
1170
+ },
1171
+ "levelsMin": {
1172
+ "type": "number",
1173
+ "minimum": 0,
1174
+ "description": "Minimum floor count; roof choices also use resolved estimates."
1175
+ },
1176
+ "levelsMax": {
1177
+ "type": "number",
1178
+ "minimum": 0,
1179
+ "description": "Maximum floor count; roof choices also use resolved estimates."
1180
+ },
1181
+ "elongationMin": {
1182
+ "type": "number",
1183
+ "minimum": 1,
1184
+ "description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
1185
+ },
1186
+ "elongationMax": {
1187
+ "type": "number",
1188
+ "minimum": 1,
1189
+ "description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
1190
+ },
1191
+ "rectangularityMin": {
1192
+ "type": "number",
1193
+ "minimum": 0,
1194
+ "maximum": 1,
1195
+ "description": "Minimum area / (width * depth), 0..1."
1196
+ },
1197
+ "rectangularityMax": {
1198
+ "type": "number",
1199
+ "minimum": 0,
1200
+ "maximum": 1,
1201
+ "description": "Maximum area / (width * depth), 0..1."
1202
+ },
1203
+ "verticesMax": {
1204
+ "type": "integer",
1205
+ "minimum": 3,
1206
+ "maximum": 9007199254740991,
1207
+ "description": "Maximum outline vertex count after cleaning."
1208
+ },
1209
+ "holes": {
1210
+ "type": "boolean",
1211
+ "description": "Require (true) or forbid (false) holes (courtyards)."
1212
+ },
1213
+ "wingsMin": {
1214
+ "type": "integer",
1215
+ "minimum": 0,
1216
+ "maximum": 9007199254740991,
1217
+ "description": "Minimum roof wing count (archstyle rules only)."
1218
+ },
1219
+ "wingsMax": {
1220
+ "type": "integer",
1221
+ "minimum": 0,
1222
+ "maximum": 9007199254740991,
1223
+ "description": "Maximum roof wing count (archstyle rules only)."
1224
+ }
1225
+ },
1226
+ "additionalProperties": false
1227
+ }
1228
+ },
1229
+ "required": [
1230
+ "probability",
1231
+ "perRidgeMeters",
1232
+ "style"
1233
+ ],
1234
+ "additionalProperties": false
1235
+ }
1236
+ },
1237
+ "additionalProperties": false
1238
+ }
1239
+ },
1240
+ "required": [
1241
+ "overhang",
1242
+ "choices"
1243
+ ],
1244
+ "additionalProperties": false
1245
+ },
1246
+ "facade": {
1247
+ "type": "object",
1248
+ "properties": {
1249
+ "details": {
1250
+ "type": "object",
1251
+ "properties": {
1252
+ "shutters": {
1253
+ "type": "boolean",
1254
+ "description": "Paired louvered shutters beside punched windows."
1255
+ },
1256
+ "balconies": {
1257
+ "type": "object",
1258
+ "properties": {
1259
+ "depth": {
1260
+ "default": 0.7,
1261
+ "type": "number",
1262
+ "minimum": 0.25,
1263
+ "maximum": 2,
1264
+ "description": "Balcony projection in meters."
1265
+ },
1266
+ "railing": {
1267
+ "default": "open",
1268
+ "type": "string",
1269
+ "enum": [
1270
+ "open",
1271
+ "solid"
1272
+ ],
1273
+ "description": "Slender rails or a solid parapet."
1274
+ },
1275
+ "every": {
1276
+ "default": 1,
1277
+ "type": "integer",
1278
+ "minimum": 1,
1279
+ "maximum": 8,
1280
+ "description": "One balcony per this many upper-floor window bays."
1281
+ }
1282
+ },
1283
+ "additionalProperties": false
1284
+ },
1285
+ "framing": {
1286
+ "type": "object",
1287
+ "properties": {
1288
+ "style": {
1289
+ "type": "string",
1290
+ "enum": [
1291
+ "timber",
1292
+ "pilasters"
1293
+ ],
1294
+ "description": "Exposed half-timber framing or classical pilasters."
1295
+ },
1296
+ "width": {
1297
+ "default": 0.16,
1298
+ "type": "number",
1299
+ "minimum": 0.08,
1300
+ "maximum": 0.5,
1301
+ "description": "Member width in meters; fitted to available wall."
1302
+ }
1303
+ },
1304
+ "required": [
1305
+ "style"
1306
+ ],
1307
+ "additionalProperties": false
1308
+ },
1309
+ "awnings": {
1310
+ "type": "object",
1311
+ "properties": {
1312
+ "depth": {
1313
+ "default": 0.9,
1314
+ "type": "number",
1315
+ "minimum": 0.25,
1316
+ "maximum": 2,
1317
+ "description": "Sloping canopy projection above windows, meters."
1318
+ }
1319
+ },
1320
+ "additionalProperties": false
1321
+ },
1322
+ "veranda": {
1323
+ "type": "object",
1324
+ "properties": {
1325
+ "depth": {
1326
+ "default": 1.4,
1327
+ "type": "number",
1328
+ "minimum": 0.5,
1329
+ "maximum": 3,
1330
+ "description": "Ground veranda canopy projection, meters."
1331
+ },
1332
+ "columns": {
1333
+ "default": true,
1334
+ "type": "boolean",
1335
+ "description": "Support the canopy with slender posts."
1336
+ }
1337
+ },
1338
+ "additionalProperties": false
1339
+ }
1340
+ },
1341
+ "additionalProperties": false,
1342
+ "description": "Optional near-detail geometry fitted to the live outline and openings; follows facade-bands LOD."
1343
+ },
1344
+ "bays": {
1345
+ "type": "object",
1346
+ "properties": {
1347
+ "width": {
1348
+ "type": "object",
1349
+ "properties": {
1350
+ "min": {
1351
+ "type": "number",
1352
+ "description": "Minimum window bay width in meters."
1353
+ },
1354
+ "max": {
1355
+ "type": "number",
1356
+ "description": "Maximum window bay width in meters (>= min)."
1357
+ }
1358
+ },
1359
+ "required": [
1360
+ "min",
1361
+ "max"
1362
+ ]
1363
+ },
1364
+ "cornerMargin": {
1365
+ "default": 0.5,
1366
+ "type": "number",
1367
+ "minimum": 0,
1368
+ "description": "Blank wall at each corner, meters."
1369
+ }
1370
+ },
1371
+ "required": [
1372
+ "width"
1373
+ ],
1374
+ "additionalProperties": false
1375
+ },
1376
+ "windows": {
1377
+ "type": "object",
1378
+ "properties": {
1379
+ "style": {
1380
+ "default": "punched",
1381
+ "type": "string",
1382
+ "enum": [
1383
+ "punched",
1384
+ "ribbon",
1385
+ "grid",
1386
+ "none"
1387
+ ],
1388
+ "description": "Window rhythm; none omits upper windows but still allows ground-floor storefronts."
1389
+ },
1390
+ "width": {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "min": {
1394
+ "type": "number",
1395
+ "description": "Minimum window width in meters; also controls storefront pane spacing."
1396
+ },
1397
+ "max": {
1398
+ "type": "number",
1399
+ "description": "Maximum window width in meters; also controls storefront pane spacing (>= min)."
1400
+ }
1401
+ },
1402
+ "required": [
1403
+ "min",
1404
+ "max"
1405
+ ]
1406
+ },
1407
+ "height": {
1408
+ "type": "object",
1409
+ "properties": {
1410
+ "min": {
1411
+ "type": "number",
1412
+ "description": "Minimum window height in meters; caps storefront glazing below the solid wall above."
1413
+ },
1414
+ "max": {
1415
+ "type": "number",
1416
+ "description": "Maximum window height in meters; caps storefront glazing below the solid wall above (>= min)."
1417
+ }
1418
+ },
1419
+ "required": [
1420
+ "min",
1421
+ "max"
1422
+ ]
1423
+ },
1424
+ "sill": {
1425
+ "type": "object",
1426
+ "properties": {
1427
+ "min": {
1428
+ "type": "number",
1429
+ "description": "Minimum sill height above the floor in meters."
1430
+ },
1431
+ "max": {
1432
+ "type": "number",
1433
+ "description": "Maximum sill height above the floor in meters (>= min)."
1434
+ }
1435
+ },
1436
+ "required": [
1437
+ "min",
1438
+ "max"
1439
+ ]
1440
+ },
1441
+ "probabilityPerBay": {
1442
+ "default": 0.8,
1443
+ "type": "number",
1444
+ "minimum": 0,
1445
+ "maximum": 1,
1446
+ "description": "Chance each bay carries a window."
1447
+ },
1448
+ "groundFloor": {
1449
+ "default": "same",
1450
+ "type": "string",
1451
+ "enum": [
1452
+ "same",
1453
+ "storefront",
1454
+ "none"
1455
+ ],
1456
+ "description": "Ground floor treatment."
1457
+ }
1458
+ },
1459
+ "required": [
1460
+ "width",
1461
+ "height",
1462
+ "sill"
1463
+ ],
1464
+ "additionalProperties": false
1465
+ },
1466
+ "bands": {
1467
+ "type": "object",
1468
+ "properties": {
1469
+ "base": {
1470
+ "type": "object",
1471
+ "properties": {
1472
+ "height": {
1473
+ "type": "object",
1474
+ "properties": {
1475
+ "min": {
1476
+ "type": "number",
1477
+ "description": "Minimum base band height in meters."
1478
+ },
1479
+ "max": {
1480
+ "type": "number",
1481
+ "description": "Maximum base band height in meters (>= min)."
1482
+ }
1483
+ },
1484
+ "required": [
1485
+ "min",
1486
+ "max"
1487
+ ]
1488
+ }
1489
+ },
1490
+ "required": [
1491
+ "height"
1492
+ ],
1493
+ "additionalProperties": false
1494
+ },
1495
+ "floorLines": {
1496
+ "default": false,
1497
+ "type": "boolean",
1498
+ "description": "Emit a trim line at each floor."
1499
+ },
1500
+ "cornice": {
1501
+ "type": "object",
1502
+ "properties": {
1503
+ "height": {
1504
+ "type": "number",
1505
+ "exclusiveMinimum": 0,
1506
+ "description": "Cornice height in meters."
1507
+ }
1508
+ },
1509
+ "required": [
1510
+ "height"
1511
+ ],
1512
+ "additionalProperties": false
1513
+ }
1514
+ },
1515
+ "required": [
1516
+ "base"
1517
+ ],
1518
+ "additionalProperties": false
1519
+ }
1520
+ },
1521
+ "required": [
1522
+ "bays",
1523
+ "windows",
1524
+ "bands"
1525
+ ],
1526
+ "additionalProperties": false
1527
+ },
1528
+ "materials": {
1529
+ "type": "object",
1530
+ "properties": {
1531
+ "wall": {
1532
+ "type": "object",
1533
+ "properties": {
1534
+ "choices": {
1535
+ "minItems": 1,
1536
+ "type": "array",
1537
+ "items": {
1538
+ "type": "object",
1539
+ "properties": {
1540
+ "ref": {
1541
+ "type": "string",
1542
+ "pattern": "^(palette:#[0-9a-fA-F]{6}|matgraph:\\S+|pixelgrid:\\S+)$",
1543
+ "description": "materialRef: 'palette:#rrggbb', 'matgraph:<pack material id or path>', or 'pixelgrid:<id or path>'."
1544
+ },
1545
+ "weight": {
1546
+ "type": "number",
1547
+ "minimum": 0,
1548
+ "maximum": 1000,
1549
+ "description": "Relative weight among sibling entries; 0 disables the entry."
1550
+ }
1551
+ },
1552
+ "required": [
1553
+ "ref",
1554
+ "weight"
1555
+ ],
1556
+ "additionalProperties": false
1557
+ },
1558
+ "description": "Weighted materials; one is picked per building."
1559
+ },
1560
+ "palette": {
1561
+ "type": "string",
1562
+ "minLength": 1,
1563
+ "description": "Key of `palettes` used to tint this part."
1564
+ },
1565
+ "tint": {
1566
+ "default": "multiply",
1567
+ "type": "string",
1568
+ "enum": [
1569
+ "multiply",
1570
+ "none"
1571
+ ],
1572
+ "description": "'multiply' = vertex color times texture (author textures light); 'none' = texture as is."
1573
+ },
1574
+ "uv": {
1575
+ "default": "meters",
1576
+ "type": "string",
1577
+ "enum": [
1578
+ "meters",
1579
+ "cell"
1580
+ ],
1581
+ "description": "'meters': world-metric UVs; 'cell': one repeat per (bay, floor) facade cell."
1582
+ },
1583
+ "uvScale": {
1584
+ "minItems": 2,
1585
+ "maxItems": 2,
1586
+ "type": "array",
1587
+ "items": {
1588
+ "type": "number",
1589
+ "exclusiveMinimum": 0
1590
+ },
1591
+ "description": "Meters per texture repeat [u, v] when uv is meters."
1592
+ },
1593
+ "uvOffset": {
1594
+ "default": "meters",
1595
+ "type": "string",
1596
+ "enum": [
1597
+ "cell",
1598
+ "meters",
1599
+ "none"
1600
+ ],
1601
+ "description": "Seeded per-building UV shift so neighbours never align."
1602
+ },
1603
+ "uvMirror": {
1604
+ "default": false,
1605
+ "type": "boolean",
1606
+ "description": "Allow a seeded horizontal flip."
1607
+ }
1608
+ },
1609
+ "required": [
1610
+ "choices"
1611
+ ],
1612
+ "additionalProperties": false
1613
+ },
1614
+ "roof": {
1615
+ "type": "object",
1616
+ "properties": {
1617
+ "choices": {
1618
+ "minItems": 1,
1619
+ "type": "array",
1620
+ "items": {
1621
+ "type": "object",
1622
+ "properties": {
1623
+ "ref": {
1624
+ "type": "string",
1625
+ "pattern": "^(palette:#[0-9a-fA-F]{6}|matgraph:\\S+|pixelgrid:\\S+)$",
1626
+ "description": "materialRef: 'palette:#rrggbb', 'matgraph:<pack material id or path>', or 'pixelgrid:<id or path>'."
1627
+ },
1628
+ "weight": {
1629
+ "type": "number",
1630
+ "minimum": 0,
1631
+ "maximum": 1000,
1632
+ "description": "Relative weight among sibling entries; 0 disables the entry."
1633
+ }
1634
+ },
1635
+ "required": [
1636
+ "ref",
1637
+ "weight"
1638
+ ],
1639
+ "additionalProperties": false
1640
+ },
1641
+ "description": "Weighted materials; one is picked per building."
1642
+ },
1643
+ "palette": {
1644
+ "type": "string",
1645
+ "minLength": 1,
1646
+ "description": "Key of `palettes` used to tint this part."
1647
+ },
1648
+ "tint": {
1649
+ "default": "multiply",
1650
+ "type": "string",
1651
+ "enum": [
1652
+ "multiply",
1653
+ "none"
1654
+ ],
1655
+ "description": "'multiply' = vertex color times texture (author textures light); 'none' = texture as is."
1656
+ },
1657
+ "uv": {
1658
+ "default": "meters",
1659
+ "type": "string",
1660
+ "enum": [
1661
+ "meters",
1662
+ "cell"
1663
+ ],
1664
+ "description": "'meters': world-metric UVs; 'cell': one repeat per (bay, floor) facade cell."
1665
+ },
1666
+ "uvScale": {
1667
+ "minItems": 2,
1668
+ "maxItems": 2,
1669
+ "type": "array",
1670
+ "items": {
1671
+ "type": "number",
1672
+ "exclusiveMinimum": 0
1673
+ },
1674
+ "description": "Meters per texture repeat [u, v] when uv is meters."
1675
+ },
1676
+ "uvOffset": {
1677
+ "default": "meters",
1678
+ "type": "string",
1679
+ "enum": [
1680
+ "cell",
1681
+ "meters",
1682
+ "none"
1683
+ ],
1684
+ "description": "Seeded per-building UV shift so neighbours never align."
1685
+ },
1686
+ "uvMirror": {
1687
+ "default": false,
1688
+ "type": "boolean",
1689
+ "description": "Allow a seeded horizontal flip."
1690
+ }
1691
+ },
1692
+ "required": [
1693
+ "choices"
1694
+ ],
1695
+ "additionalProperties": false
1696
+ },
1697
+ "trim": {
1698
+ "type": "object",
1699
+ "properties": {
1700
+ "choices": {
1701
+ "minItems": 1,
1702
+ "type": "array",
1703
+ "items": {
1704
+ "type": "object",
1705
+ "properties": {
1706
+ "ref": {
1707
+ "type": "string",
1708
+ "pattern": "^(palette:#[0-9a-fA-F]{6}|matgraph:\\S+|pixelgrid:\\S+)$",
1709
+ "description": "materialRef: 'palette:#rrggbb', 'matgraph:<pack material id or path>', or 'pixelgrid:<id or path>'."
1710
+ },
1711
+ "weight": {
1712
+ "type": "number",
1713
+ "minimum": 0,
1714
+ "maximum": 1000,
1715
+ "description": "Relative weight among sibling entries; 0 disables the entry."
1716
+ }
1717
+ },
1718
+ "required": [
1719
+ "ref",
1720
+ "weight"
1721
+ ],
1722
+ "additionalProperties": false
1723
+ },
1724
+ "description": "Weighted materials; one is picked per building."
1725
+ },
1726
+ "palette": {
1727
+ "type": "string",
1728
+ "minLength": 1,
1729
+ "description": "Key of `palettes` used to tint this part."
1730
+ },
1731
+ "tint": {
1732
+ "default": "multiply",
1733
+ "type": "string",
1734
+ "enum": [
1735
+ "multiply",
1736
+ "none"
1737
+ ],
1738
+ "description": "'multiply' = vertex color times texture (author textures light); 'none' = texture as is."
1739
+ },
1740
+ "uv": {
1741
+ "default": "meters",
1742
+ "type": "string",
1743
+ "enum": [
1744
+ "meters",
1745
+ "cell"
1746
+ ],
1747
+ "description": "'meters': world-metric UVs; 'cell': one repeat per (bay, floor) facade cell."
1748
+ },
1749
+ "uvScale": {
1750
+ "minItems": 2,
1751
+ "maxItems": 2,
1752
+ "type": "array",
1753
+ "items": {
1754
+ "type": "number",
1755
+ "exclusiveMinimum": 0
1756
+ },
1757
+ "description": "Meters per texture repeat [u, v] when uv is meters."
1758
+ },
1759
+ "uvOffset": {
1760
+ "default": "meters",
1761
+ "type": "string",
1762
+ "enum": [
1763
+ "cell",
1764
+ "meters",
1765
+ "none"
1766
+ ],
1767
+ "description": "Seeded per-building UV shift so neighbours never align."
1768
+ },
1769
+ "uvMirror": {
1770
+ "default": false,
1771
+ "type": "boolean",
1772
+ "description": "Allow a seeded horizontal flip."
1773
+ }
1774
+ },
1775
+ "required": [
1776
+ "choices"
1777
+ ],
1778
+ "additionalProperties": false
1779
+ },
1780
+ "foundation": {
1781
+ "type": "object",
1782
+ "properties": {
1783
+ "choices": {
1784
+ "minItems": 1,
1785
+ "type": "array",
1786
+ "items": {
1787
+ "type": "object",
1788
+ "properties": {
1789
+ "ref": {
1790
+ "type": "string",
1791
+ "pattern": "^(palette:#[0-9a-fA-F]{6}|matgraph:\\S+|pixelgrid:\\S+)$",
1792
+ "description": "materialRef: 'palette:#rrggbb', 'matgraph:<pack material id or path>', or 'pixelgrid:<id or path>'."
1793
+ },
1794
+ "weight": {
1795
+ "type": "number",
1796
+ "minimum": 0,
1797
+ "maximum": 1000,
1798
+ "description": "Relative weight among sibling entries; 0 disables the entry."
1799
+ }
1800
+ },
1801
+ "required": [
1802
+ "ref",
1803
+ "weight"
1804
+ ],
1805
+ "additionalProperties": false
1806
+ },
1807
+ "description": "Weighted materials; one is picked per building."
1808
+ },
1809
+ "palette": {
1810
+ "type": "string",
1811
+ "minLength": 1,
1812
+ "description": "Key of `palettes` used to tint this part."
1813
+ },
1814
+ "tint": {
1815
+ "default": "multiply",
1816
+ "type": "string",
1817
+ "enum": [
1818
+ "multiply",
1819
+ "none"
1820
+ ],
1821
+ "description": "'multiply' = vertex color times texture (author textures light); 'none' = texture as is."
1822
+ },
1823
+ "uv": {
1824
+ "default": "meters",
1825
+ "type": "string",
1826
+ "enum": [
1827
+ "meters",
1828
+ "cell"
1829
+ ],
1830
+ "description": "'meters': world-metric UVs; 'cell': one repeat per (bay, floor) facade cell."
1831
+ },
1832
+ "uvScale": {
1833
+ "minItems": 2,
1834
+ "maxItems": 2,
1835
+ "type": "array",
1836
+ "items": {
1837
+ "type": "number",
1838
+ "exclusiveMinimum": 0
1839
+ },
1840
+ "description": "Meters per texture repeat [u, v] when uv is meters."
1841
+ },
1842
+ "uvOffset": {
1843
+ "default": "meters",
1844
+ "type": "string",
1845
+ "enum": [
1846
+ "cell",
1847
+ "meters",
1848
+ "none"
1849
+ ],
1850
+ "description": "Seeded per-building UV shift so neighbours never align."
1851
+ },
1852
+ "uvMirror": {
1853
+ "default": false,
1854
+ "type": "boolean",
1855
+ "description": "Allow a seeded horizontal flip."
1856
+ }
1857
+ },
1858
+ "required": [
1859
+ "choices"
1860
+ ],
1861
+ "additionalProperties": false
1862
+ },
1863
+ "window": {
1864
+ "type": "object",
1865
+ "properties": {
1866
+ "choices": {
1867
+ "minItems": 1,
1868
+ "type": "array",
1869
+ "items": {
1870
+ "type": "object",
1871
+ "properties": {
1872
+ "ref": {
1873
+ "type": "string",
1874
+ "pattern": "^(palette:#[0-9a-fA-F]{6}|matgraph:\\S+|pixelgrid:\\S+)$",
1875
+ "description": "materialRef: 'palette:#rrggbb', 'matgraph:<pack material id or path>', or 'pixelgrid:<id or path>'."
1876
+ },
1877
+ "weight": {
1878
+ "type": "number",
1879
+ "minimum": 0,
1880
+ "maximum": 1000,
1881
+ "description": "Relative weight among sibling entries; 0 disables the entry."
1882
+ }
1883
+ },
1884
+ "required": [
1885
+ "ref",
1886
+ "weight"
1887
+ ],
1888
+ "additionalProperties": false
1889
+ },
1890
+ "description": "Weighted materials; one is picked per building."
1891
+ },
1892
+ "palette": {
1893
+ "type": "string",
1894
+ "minLength": 1,
1895
+ "description": "Key of `palettes` used to tint this part."
1896
+ },
1897
+ "tint": {
1898
+ "default": "multiply",
1899
+ "type": "string",
1900
+ "enum": [
1901
+ "multiply",
1902
+ "none"
1903
+ ],
1904
+ "description": "'multiply' = vertex color times texture (author textures light); 'none' = texture as is."
1905
+ },
1906
+ "uv": {
1907
+ "default": "meters",
1908
+ "type": "string",
1909
+ "enum": [
1910
+ "meters",
1911
+ "cell"
1912
+ ],
1913
+ "description": "'meters': world-metric UVs; 'cell': one repeat per (bay, floor) facade cell."
1914
+ },
1915
+ "uvScale": {
1916
+ "minItems": 2,
1917
+ "maxItems": 2,
1918
+ "type": "array",
1919
+ "items": {
1920
+ "type": "number",
1921
+ "exclusiveMinimum": 0
1922
+ },
1923
+ "description": "Meters per texture repeat [u, v] when uv is meters."
1924
+ },
1925
+ "uvOffset": {
1926
+ "default": "meters",
1927
+ "type": "string",
1928
+ "enum": [
1929
+ "cell",
1930
+ "meters",
1931
+ "none"
1932
+ ],
1933
+ "description": "Seeded per-building UV shift so neighbours never align."
1934
+ },
1935
+ "uvMirror": {
1936
+ "default": false,
1937
+ "type": "boolean",
1938
+ "description": "Allow a seeded horizontal flip."
1939
+ }
1940
+ },
1941
+ "required": [
1942
+ "choices"
1943
+ ],
1944
+ "additionalProperties": false
1945
+ }
1946
+ },
1947
+ "required": [
1948
+ "wall",
1949
+ "roof",
1950
+ "trim",
1951
+ "foundation"
1952
+ ],
1953
+ "additionalProperties": false
1954
+ },
1955
+ "palettes": {
1956
+ "default": {},
1957
+ "type": "object",
1958
+ "propertyNames": {
1959
+ "type": "string"
1960
+ },
1961
+ "additionalProperties": {
1962
+ "type": "object",
1963
+ "properties": {
1964
+ "entries": {
1965
+ "minItems": 1,
1966
+ "type": "array",
1967
+ "items": {
1968
+ "type": "object",
1969
+ "properties": {
1970
+ "color": {
1971
+ "type": "string",
1972
+ "pattern": "^#[0-9a-fA-F]{6}$",
1973
+ "description": "'#rrggbb' color."
1974
+ },
1975
+ "weight": {
1976
+ "type": "number",
1977
+ "minimum": 0,
1978
+ "maximum": 1000,
1979
+ "description": "Relative weight among sibling entries; 0 disables the entry."
1980
+ },
1981
+ "name": {
1982
+ "type": "string"
1983
+ }
1984
+ },
1985
+ "required": [
1986
+ "color",
1987
+ "weight"
1988
+ ],
1989
+ "additionalProperties": false
1990
+ }
1991
+ },
1992
+ "jitter": {
1993
+ "type": "object",
1994
+ "properties": {
1995
+ "hue": {
1996
+ "default": 0,
1997
+ "type": "number",
1998
+ "minimum": 0,
1999
+ "maximum": 0.5,
2000
+ "description": "Hue jitter, ± fraction of the wheel (0..0.5)."
2001
+ },
2002
+ "saturation": {
2003
+ "default": 0,
2004
+ "type": "number",
2005
+ "minimum": 0,
2006
+ "maximum": 1,
2007
+ "description": "Saturation jitter, ± (0..1)."
2008
+ },
2009
+ "lightness": {
2010
+ "default": 0,
2011
+ "type": "number",
2012
+ "minimum": 0,
2013
+ "maximum": 1,
2014
+ "description": "Lightness jitter, ± (0..1)."
2015
+ }
2016
+ },
2017
+ "additionalProperties": false
2018
+ }
2019
+ },
2020
+ "required": [
2021
+ "entries",
2022
+ "jitter"
2023
+ ],
2024
+ "additionalProperties": false
2025
+ },
2026
+ "description": "Named color palettes referenced by parts and props."
2027
+ },
2028
+ "props": {
2029
+ "default": [],
2030
+ "type": "array",
2031
+ "items": {
2032
+ "type": "object",
2033
+ "properties": {
2034
+ "id": {
2035
+ "type": "string",
2036
+ "pattern": "^[a-z][a-z0-9_-]*$",
2037
+ "description": "Prop id, unique within the style."
2038
+ },
2039
+ "model": {
2040
+ "type": "string",
2041
+ "pattern": "^(builtin:[a-z][a-z0-9_.]*|[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+)$",
2042
+ "description": "Model: an asset id (e.g. 'molen.worldgen.prop.chimney.brick') or 'builtin:<name>'."
2043
+ },
2044
+ "anchor": {
2045
+ "type": "string",
2046
+ "enum": [
2047
+ "roof-ridge",
2048
+ "roof-flat",
2049
+ "roof-edge",
2050
+ "wall-any",
2051
+ "ground-any"
2052
+ ],
2053
+ "description": "Where instances attach."
2054
+ },
2055
+ "probability": {
2056
+ "default": 1,
2057
+ "type": "number",
2058
+ "minimum": 0,
2059
+ "maximum": 1,
2060
+ "description": "Chance the building gets this prop at all."
2061
+ },
2062
+ "count": {
2063
+ "type": "object",
2064
+ "properties": {
2065
+ "min": {
2066
+ "type": "number",
2067
+ "description": "Minimum instance count."
2068
+ },
2069
+ "max": {
2070
+ "type": "number",
2071
+ "description": "Maximum instance count (>= min)."
2072
+ }
2073
+ },
2074
+ "required": [
2075
+ "min",
2076
+ "max"
2077
+ ]
2078
+ },
2079
+ "perAreaM2": {
2080
+ "type": "number",
2081
+ "exclusiveMinimum": 0,
2082
+ "description": "When set, count = clamp(round(area / perAreaM2), count.min, count.max)."
2083
+ },
2084
+ "when": {
2085
+ "type": "object",
2086
+ "properties": {
2087
+ "class": {
2088
+ "minItems": 1,
2089
+ "type": "array",
2090
+ "items": {
2091
+ "type": "string",
2092
+ "minLength": 1
2093
+ },
2094
+ "description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
2095
+ },
2096
+ "notClass": {
2097
+ "minItems": 1,
2098
+ "type": "array",
2099
+ "items": {
2100
+ "type": "string",
2101
+ "minLength": 1
2102
+ },
2103
+ "description": "Reject when any label matches one of these words."
2104
+ },
2105
+ "contextClass": {
2106
+ "minItems": 1,
2107
+ "type": "array",
2108
+ "items": {
2109
+ "type": "string",
2110
+ "minLength": 1
2111
+ },
2112
+ "description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
2113
+ },
2114
+ "notContextClass": {
2115
+ "minItems": 1,
2116
+ "type": "array",
2117
+ "items": {
2118
+ "type": "string",
2119
+ "minLength": 1
2120
+ },
2121
+ "description": "Reject when the surrounding label matches."
2122
+ },
2123
+ "areaMin": {
2124
+ "type": "number",
2125
+ "minimum": 0,
2126
+ "description": "Minimum footprint area in m²."
2127
+ },
2128
+ "areaMax": {
2129
+ "type": "number",
2130
+ "minimum": 0,
2131
+ "description": "Maximum footprint area in m²."
2132
+ },
2133
+ "heightMin": {
2134
+ "type": "number",
2135
+ "minimum": 0,
2136
+ "description": "Minimum known height in meters; never matches an unknown height."
2137
+ },
2138
+ "heightMax": {
2139
+ "type": "number",
2140
+ "minimum": 0,
2141
+ "description": "Maximum known height in meters; never matches an unknown height."
2142
+ },
2143
+ "hasHeight": {
2144
+ "type": "boolean",
2145
+ "description": "Require (true) or forbid (false) a known source height."
2146
+ },
2147
+ "levelsMin": {
2148
+ "type": "number",
2149
+ "minimum": 0,
2150
+ "description": "Minimum floor count; roof choices also use resolved estimates."
2151
+ },
2152
+ "levelsMax": {
2153
+ "type": "number",
2154
+ "minimum": 0,
2155
+ "description": "Maximum floor count; roof choices also use resolved estimates."
2156
+ },
2157
+ "elongationMin": {
2158
+ "type": "number",
2159
+ "minimum": 1,
2160
+ "description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
2161
+ },
2162
+ "elongationMax": {
2163
+ "type": "number",
2164
+ "minimum": 1,
2165
+ "description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
2166
+ },
2167
+ "rectangularityMin": {
2168
+ "type": "number",
2169
+ "minimum": 0,
2170
+ "maximum": 1,
2171
+ "description": "Minimum area / (width * depth), 0..1."
2172
+ },
2173
+ "rectangularityMax": {
2174
+ "type": "number",
2175
+ "minimum": 0,
2176
+ "maximum": 1,
2177
+ "description": "Maximum area / (width * depth), 0..1."
2178
+ },
2179
+ "verticesMax": {
2180
+ "type": "integer",
2181
+ "minimum": 3,
2182
+ "maximum": 9007199254740991,
2183
+ "description": "Maximum outline vertex count after cleaning."
2184
+ },
2185
+ "holes": {
2186
+ "type": "boolean",
2187
+ "description": "Require (true) or forbid (false) holes (courtyards)."
2188
+ },
2189
+ "wingsMin": {
2190
+ "type": "integer",
2191
+ "minimum": 0,
2192
+ "maximum": 9007199254740991,
2193
+ "description": "Minimum roof wing count (archstyle rules only)."
2194
+ },
2195
+ "wingsMax": {
2196
+ "type": "integer",
2197
+ "minimum": 0,
2198
+ "maximum": 9007199254740991,
2199
+ "description": "Maximum roof wing count (archstyle rules only)."
2200
+ }
2201
+ },
2202
+ "additionalProperties": false
2203
+ },
2204
+ "roof": {
2205
+ "type": "array",
2206
+ "items": {
2207
+ "type": "string",
2208
+ "enum": [
2209
+ "flat",
2210
+ "gable",
2211
+ "hip",
2212
+ "pyramid",
2213
+ "shed",
2214
+ "mansard",
2215
+ "gambrel"
2216
+ ]
2217
+ },
2218
+ "description": "Only on these roof forms."
2219
+ },
2220
+ "spacing": {
2221
+ "default": 2,
2222
+ "type": "number",
2223
+ "minimum": 0,
2224
+ "description": "Minimum spacing between instances, meters."
2225
+ },
2226
+ "margin": {
2227
+ "default": 0.5,
2228
+ "type": "number",
2229
+ "minimum": 0,
2230
+ "description": "Distance from edges, meters."
2231
+ },
2232
+ "scale": {
2233
+ "type": "object",
2234
+ "properties": {
2235
+ "min": {
2236
+ "type": "number",
2237
+ "description": "Minimum uniform scale."
2238
+ },
2239
+ "max": {
2240
+ "type": "number",
2241
+ "description": "Maximum uniform scale (>= min)."
2242
+ }
2243
+ },
2244
+ "required": [
2245
+ "min",
2246
+ "max"
2247
+ ]
2248
+ },
2249
+ "yaw": {
2250
+ "default": "align-wall",
2251
+ "type": "string",
2252
+ "enum": [
2253
+ "align-wall",
2254
+ "random",
2255
+ "fixed"
2256
+ ],
2257
+ "description": "Orientation policy."
2258
+ },
2259
+ "tintPalette": {
2260
+ "type": "string",
2261
+ "description": "Palette key for instance tint."
2262
+ },
2263
+ "lodTier": {
2264
+ "default": 0,
2265
+ "type": "integer",
2266
+ "minimum": 0,
2267
+ "maximum": 9007199254740991,
2268
+ "description": "Highest detail tier that still shows this prop."
2269
+ }
2270
+ },
2271
+ "required": [
2272
+ "id",
2273
+ "model",
2274
+ "anchor",
2275
+ "count",
2276
+ "scale"
2277
+ ],
2278
+ "additionalProperties": false
2279
+ },
2280
+ "description": "Attached props (chimneys, rooftop units, ...)."
2281
+ },
2282
+ "lod": {
2283
+ "type": "object",
2284
+ "properties": {
2285
+ "tiers": {
2286
+ "minItems": 1,
2287
+ "type": "array",
2288
+ "items": {
2289
+ "type": "object",
2290
+ "properties": {
2291
+ "minTier": {
2292
+ "type": "integer",
2293
+ "minimum": 0,
2294
+ "maximum": 9007199254740991,
2295
+ "description": "Detail tier this entry applies from (0 = full detail)."
2296
+ },
2297
+ "keep": {
2298
+ "type": "array",
2299
+ "items": {
2300
+ "type": "string",
2301
+ "enum": [
2302
+ "roof-shape",
2303
+ "roof-features",
2304
+ "facade-texture",
2305
+ "facade-bands",
2306
+ "props"
2307
+ ]
2308
+ },
2309
+ "description": "Features kept at this tier."
2310
+ }
2311
+ },
2312
+ "required": [
2313
+ "minTier",
2314
+ "keep"
2315
+ ],
2316
+ "additionalProperties": false
2317
+ },
2318
+ "description": "Ordered by minTier; beyond the last tier the building is a tinted box."
2319
+ }
2320
+ },
2321
+ "required": [
2322
+ "tiers"
2323
+ ],
2324
+ "additionalProperties": false
2325
+ }
2326
+ },
2327
+ "required": [
2328
+ "format",
2329
+ "id",
2330
+ "title",
2331
+ "applicability",
2332
+ "massing",
2333
+ "roof",
2334
+ "facade",
2335
+ "materials",
2336
+ "lod"
2337
+ ],
2338
+ "additionalProperties": false
2339
+ }
2340
+ ```