@bendyline/molen-tooling 0.0.10 → 0.0.11

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.
@@ -0,0 +1,1436 @@
1
+ # Regional content catalog (`molen/regional-catalog@1`)
2
+
3
+ Composable ecological and architectural channels with explicit dependency versions and replacements. Resolve catalogs together to check cross-document references and selector ambiguity.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/regional-catalog@1",
10
+ "id": "example.regional",
11
+ "version": 1,
12
+ "title": "Regional content",
13
+ "requires": [],
14
+ "overrides": [],
15
+ "profiles": [],
16
+ "scatters": []
17
+ }
18
+ ```
19
+
20
+ ## JSON Schema
21
+
22
+ ```json
23
+ {
24
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
25
+ "type": "object",
26
+ "properties": {
27
+ "format": {
28
+ "type": "string",
29
+ "const": "molen/regional-catalog@1"
30
+ },
31
+ "id": {
32
+ "type": "string",
33
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
34
+ },
35
+ "version": {
36
+ "type": "integer",
37
+ "exclusiveMinimum": 0,
38
+ "maximum": 9007199254740991
39
+ },
40
+ "title": {
41
+ "type": "string",
42
+ "minLength": 1
43
+ },
44
+ "requires": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "object",
48
+ "properties": {
49
+ "id": {
50
+ "type": "string",
51
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
52
+ },
53
+ "version": {
54
+ "type": "integer",
55
+ "exclusiveMinimum": 0,
56
+ "maximum": 9007199254740991
57
+ }
58
+ },
59
+ "required": [
60
+ "id",
61
+ "version"
62
+ ],
63
+ "additionalProperties": false
64
+ }
65
+ },
66
+ "overrides": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "string",
70
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
71
+ }
72
+ },
73
+ "profiles": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "object",
77
+ "properties": {
78
+ "id": {
79
+ "type": "string",
80
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
81
+ },
82
+ "title": {
83
+ "type": "string",
84
+ "minLength": 1
85
+ },
86
+ "priority": {
87
+ "type": "integer",
88
+ "minimum": -9007199254740991,
89
+ "maximum": 9007199254740991
90
+ },
91
+ "match": {
92
+ "type": "object",
93
+ "properties": {
94
+ "biomes": {
95
+ "minItems": 1,
96
+ "type": "array",
97
+ "items": {
98
+ "type": "integer",
99
+ "minimum": 0,
100
+ "maximum": 14
101
+ }
102
+ },
103
+ "realms": {
104
+ "minItems": 1,
105
+ "type": "array",
106
+ "items": {
107
+ "type": "string",
108
+ "minLength": 1
109
+ }
110
+ },
111
+ "ecoregions": {
112
+ "minItems": 1,
113
+ "type": "array",
114
+ "items": {
115
+ "type": "integer",
116
+ "minimum": 0,
117
+ "maximum": 9007199254740991
118
+ }
119
+ },
120
+ "regions": {
121
+ "minItems": 1,
122
+ "type": "array",
123
+ "items": {
124
+ "type": "string",
125
+ "minLength": 1
126
+ }
127
+ }
128
+ },
129
+ "additionalProperties": false
130
+ },
131
+ "scatter": {
132
+ "type": "string",
133
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
134
+ },
135
+ "buildings": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "object",
139
+ "properties": {
140
+ "when": {
141
+ "type": "object",
142
+ "properties": {
143
+ "class": {
144
+ "minItems": 1,
145
+ "type": "array",
146
+ "items": {
147
+ "type": "string",
148
+ "minLength": 1
149
+ },
150
+ "description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
151
+ },
152
+ "notClass": {
153
+ "minItems": 1,
154
+ "type": "array",
155
+ "items": {
156
+ "type": "string",
157
+ "minLength": 1
158
+ },
159
+ "description": "Reject when any label matches one of these words."
160
+ },
161
+ "contextClass": {
162
+ "minItems": 1,
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string",
166
+ "minLength": 1
167
+ },
168
+ "description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
169
+ },
170
+ "notContextClass": {
171
+ "minItems": 1,
172
+ "type": "array",
173
+ "items": {
174
+ "type": "string",
175
+ "minLength": 1
176
+ },
177
+ "description": "Reject when the surrounding label matches."
178
+ },
179
+ "areaMin": {
180
+ "type": "number",
181
+ "minimum": 0,
182
+ "description": "Minimum footprint area in m²."
183
+ },
184
+ "areaMax": {
185
+ "type": "number",
186
+ "minimum": 0,
187
+ "description": "Maximum footprint area in m²."
188
+ },
189
+ "heightMin": {
190
+ "type": "number",
191
+ "minimum": 0,
192
+ "description": "Minimum known height in meters; never matches an unknown height."
193
+ },
194
+ "heightMax": {
195
+ "type": "number",
196
+ "minimum": 0,
197
+ "description": "Maximum known height in meters; never matches an unknown height."
198
+ },
199
+ "hasHeight": {
200
+ "type": "boolean",
201
+ "description": "Require (true) or forbid (false) a known source height."
202
+ },
203
+ "levelsMin": {
204
+ "type": "number",
205
+ "minimum": 0,
206
+ "description": "Minimum floor count; roof choices also use resolved estimates."
207
+ },
208
+ "levelsMax": {
209
+ "type": "number",
210
+ "minimum": 0,
211
+ "description": "Maximum floor count; roof choices also use resolved estimates."
212
+ },
213
+ "elongationMin": {
214
+ "type": "number",
215
+ "minimum": 1,
216
+ "description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
217
+ },
218
+ "elongationMax": {
219
+ "type": "number",
220
+ "minimum": 1,
221
+ "description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
222
+ },
223
+ "rectangularityMin": {
224
+ "type": "number",
225
+ "minimum": 0,
226
+ "maximum": 1,
227
+ "description": "Minimum area / (width * depth), 0..1."
228
+ },
229
+ "rectangularityMax": {
230
+ "type": "number",
231
+ "minimum": 0,
232
+ "maximum": 1,
233
+ "description": "Maximum area / (width * depth), 0..1."
234
+ },
235
+ "verticesMax": {
236
+ "type": "integer",
237
+ "minimum": 3,
238
+ "maximum": 9007199254740991,
239
+ "description": "Maximum outline vertex count after cleaning."
240
+ },
241
+ "holes": {
242
+ "type": "boolean",
243
+ "description": "Require (true) or forbid (false) holes (courtyards)."
244
+ },
245
+ "wingsMin": {
246
+ "type": "integer",
247
+ "minimum": 0,
248
+ "maximum": 9007199254740991,
249
+ "description": "Minimum roof wing count (archstyle rules only)."
250
+ },
251
+ "wingsMax": {
252
+ "type": "integer",
253
+ "minimum": 0,
254
+ "maximum": 9007199254740991,
255
+ "description": "Maximum roof wing count (archstyle rules only)."
256
+ }
257
+ },
258
+ "additionalProperties": false,
259
+ "description": "Conditions; omit for a catch-all rule."
260
+ },
261
+ "style": {
262
+ "type": "string",
263
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
264
+ "description": "Archstyle id to apply, e.g. 'molen.worldgen.pnw.house'."
265
+ },
266
+ "variants": {
267
+ "minItems": 1,
268
+ "maxItems": 120,
269
+ "type": "array",
270
+ "items": {
271
+ "type": "object",
272
+ "properties": {
273
+ "style": {
274
+ "type": "string",
275
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
276
+ },
277
+ "weight": {
278
+ "type": "number",
279
+ "exclusiveMinimum": 0
280
+ }
281
+ },
282
+ "required": [
283
+ "style",
284
+ "weight"
285
+ ],
286
+ "additionalProperties": false
287
+ },
288
+ "description": "Optional weighted styles sampled from stable building identity. Without identity, use style."
289
+ }
290
+ },
291
+ "required": [
292
+ "style"
293
+ ],
294
+ "additionalProperties": false
295
+ }
296
+ },
297
+ "wildlife": {
298
+ "type": "string",
299
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
300
+ },
301
+ "agriculture": {
302
+ "type": "object",
303
+ "properties": {
304
+ "crops": {
305
+ "minItems": 1,
306
+ "type": "array",
307
+ "items": {
308
+ "type": "object",
309
+ "properties": {
310
+ "crop": {
311
+ "type": "string",
312
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
313
+ },
314
+ "weight": {
315
+ "type": "number",
316
+ "exclusiveMinimum": 0
317
+ }
318
+ },
319
+ "required": [
320
+ "crop",
321
+ "weight"
322
+ ],
323
+ "additionalProperties": false
324
+ }
325
+ },
326
+ "orchards": {
327
+ "minItems": 1,
328
+ "type": "array",
329
+ "items": {
330
+ "type": "object",
331
+ "properties": {
332
+ "crop": {
333
+ "type": "string",
334
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
335
+ },
336
+ "weight": {
337
+ "type": "number",
338
+ "exclusiveMinimum": 0
339
+ }
340
+ },
341
+ "required": [
342
+ "crop",
343
+ "weight"
344
+ ],
345
+ "additionalProperties": false
346
+ }
347
+ },
348
+ "tropical": {
349
+ "type": "boolean"
350
+ }
351
+ },
352
+ "required": [
353
+ "crops"
354
+ ],
355
+ "additionalProperties": false
356
+ }
357
+ },
358
+ "required": [
359
+ "id",
360
+ "title",
361
+ "priority",
362
+ "match"
363
+ ],
364
+ "additionalProperties": false
365
+ }
366
+ },
367
+ "scatters": {
368
+ "type": "array",
369
+ "items": {
370
+ "type": "object",
371
+ "properties": {
372
+ "format": {
373
+ "type": "string",
374
+ "const": "molen/scatter@1",
375
+ "description": "Format envelope; always 'molen/scatter@1'."
376
+ },
377
+ "id": {
378
+ "type": "string",
379
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
380
+ "description": "Rule set id under the pack namespace, e.g. 'molen.worldgen.scatter.pnw'."
381
+ },
382
+ "title": {
383
+ "type": "string",
384
+ "minLength": 1,
385
+ "description": "Human title."
386
+ },
387
+ "doc": {
388
+ "type": "string"
389
+ },
390
+ "version": {
391
+ "default": 1,
392
+ "type": "integer",
393
+ "minimum": 1,
394
+ "maximum": 9007199254740991,
395
+ "description": "Bump to re-roll every placement."
396
+ },
397
+ "surface": {
398
+ "type": "object",
399
+ "properties": {
400
+ "default": {
401
+ "type": "string",
402
+ "pattern": "^#[0-9a-fA-F]{6}$",
403
+ "description": "Surface color for unlisted labels."
404
+ },
405
+ "colors": {
406
+ "default": {},
407
+ "type": "object",
408
+ "propertyNames": {
409
+ "type": "string"
410
+ },
411
+ "additionalProperties": {
412
+ "type": "string",
413
+ "pattern": "^#[0-9a-fA-F]{6}$"
414
+ },
415
+ "description": "Label pattern to '#rrggbb' surface color (exact, then word match)."
416
+ }
417
+ },
418
+ "required": [
419
+ "default"
420
+ ],
421
+ "additionalProperties": false
422
+ },
423
+ "defaults": {
424
+ "type": "object",
425
+ "properties": {
426
+ "avoid": {
427
+ "type": "object",
428
+ "properties": {
429
+ "roads": {
430
+ "type": "number",
431
+ "minimum": 0,
432
+ "description": "Clearance from road edges, meters."
433
+ },
434
+ "buildings": {
435
+ "type": "number",
436
+ "minimum": 0,
437
+ "description": "Clearance from building outlines, meters."
438
+ },
439
+ "water": {
440
+ "type": "number",
441
+ "minimum": 0,
442
+ "description": "Clearance from water, meters."
443
+ }
444
+ },
445
+ "required": [
446
+ "roads",
447
+ "buildings",
448
+ "water"
449
+ ],
450
+ "additionalProperties": false
451
+ },
452
+ "slopeMax": {
453
+ "default": 0.75,
454
+ "type": "number",
455
+ "minimum": 0,
456
+ "maximum": 1,
457
+ "description": "Default slope limit."
458
+ },
459
+ "lod": {
460
+ "type": "object",
461
+ "properties": {
462
+ "keepByTier": {
463
+ "minItems": 1,
464
+ "maxItems": 8,
465
+ "type": "array",
466
+ "items": {
467
+ "type": "number",
468
+ "minimum": 0,
469
+ "maximum": 1
470
+ },
471
+ "description": "Keep fraction per detail tier (index 0 = full detail); must be non-increasing."
472
+ },
473
+ "maxInstancesPerBatch": {
474
+ "type": "integer",
475
+ "exclusiveMinimum": 0,
476
+ "maximum": 9007199254740991,
477
+ "description": "Hard cap per batch for this rule."
478
+ }
479
+ },
480
+ "required": [
481
+ "keepByTier",
482
+ "maxInstancesPerBatch"
483
+ ],
484
+ "additionalProperties": false
485
+ }
486
+ },
487
+ "required": [
488
+ "avoid",
489
+ "lod"
490
+ ],
491
+ "additionalProperties": false
492
+ },
493
+ "rules": {
494
+ "default": [],
495
+ "type": "array",
496
+ "items": {
497
+ "type": "object",
498
+ "properties": {
499
+ "id": {
500
+ "type": "string",
501
+ "pattern": "^[a-z][a-z0-9_-]*$",
502
+ "description": "Rule id; part of every placement seed."
503
+ },
504
+ "classes": {
505
+ "minItems": 1,
506
+ "type": "array",
507
+ "items": {
508
+ "type": "string",
509
+ "minLength": 1
510
+ },
511
+ "description": "Labels this rule applies to (word match)."
512
+ },
513
+ "notClasses": {
514
+ "type": "array",
515
+ "items": {
516
+ "type": "string",
517
+ "minLength": 1
518
+ },
519
+ "description": "Labels that exclude the rule."
520
+ },
521
+ "densityPerHectare": {
522
+ "type": "number",
523
+ "minimum": 0,
524
+ "maximum": 20000,
525
+ "description": "Target instances per hectare before clustering and polygon density."
526
+ },
527
+ "minSpacing": {
528
+ "default": 2,
529
+ "type": "number",
530
+ "minimum": 0,
531
+ "description": "Minimum spacing hint in meters."
532
+ },
533
+ "rows": {
534
+ "type": "object",
535
+ "properties": {
536
+ "headland": {
537
+ "type": "number",
538
+ "minimum": 0,
539
+ "maximum": 30
540
+ },
541
+ "spacing": {
542
+ "type": "number",
543
+ "minimum": 0.5,
544
+ "maximum": 100,
545
+ "description": "Distance between cultivation rows, meters."
546
+ },
547
+ "interval": {
548
+ "type": "number",
549
+ "minimum": 0.5,
550
+ "maximum": 100,
551
+ "description": "Distance between plants along a row, meters."
552
+ },
553
+ "angle": {
554
+ "default": 0,
555
+ "type": "number",
556
+ "minimum": 0,
557
+ "maximum": 180,
558
+ "description": "Grid rotation in degrees from world X."
559
+ },
560
+ "jitter": {
561
+ "default": 0.04,
562
+ "type": "number",
563
+ "minimum": 0,
564
+ "maximum": 0.2,
565
+ "description": "Fractional cell jitter; 0 gives exact rows."
566
+ }
567
+ },
568
+ "required": [
569
+ "spacing",
570
+ "interval"
571
+ ],
572
+ "additionalProperties": false,
573
+ "description": "Optional world-anchored cultivation grid. Density may thin it, but cannot overfill it."
574
+ },
575
+ "nearWater": {
576
+ "type": "object",
577
+ "properties": {
578
+ "maxDistance": {
579
+ "type": "number",
580
+ "exclusiveMinimum": 0,
581
+ "maximum": 500,
582
+ "description": "Maximum horizontal distance from mapped water edges, meters."
583
+ },
584
+ "classes": {
585
+ "minItems": 1,
586
+ "type": "array",
587
+ "items": {
588
+ "type": "string",
589
+ "minLength": 1
590
+ },
591
+ "description": "Optional water labels; omitted accepts any mapped water."
592
+ }
593
+ },
594
+ "required": [
595
+ "maxDistance"
596
+ ],
597
+ "additionalProperties": false,
598
+ "description": "Require mapped water nearby, at the exclusion raster resolution. Water itself remains excluded."
599
+ },
600
+ "clustering": {
601
+ "type": "object",
602
+ "properties": {
603
+ "scale": {
604
+ "type": "number",
605
+ "exclusiveMinimum": 0,
606
+ "description": "Noise wavelength in meters."
607
+ },
608
+ "threshold": {
609
+ "default": 0.35,
610
+ "type": "number",
611
+ "minimum": 0,
612
+ "maximum": 1,
613
+ "description": "Noise value below which density is zero."
614
+ },
615
+ "contrast": {
616
+ "default": 1.4,
617
+ "type": "number",
618
+ "exclusiveMinimum": 0,
619
+ "description": "Steepness of the density ramp."
620
+ },
621
+ "seedOffset": {
622
+ "default": 0,
623
+ "type": "integer",
624
+ "minimum": -9007199254740991,
625
+ "maximum": 9007199254740991,
626
+ "description": "Decorrelates rules sharing a class."
627
+ },
628
+ "sharedSeed": {
629
+ "type": "integer",
630
+ "minimum": -9007199254740991,
631
+ "maximum": 9007199254740991,
632
+ "description": "Shared density field across layers; does not change placement seeds."
633
+ },
634
+ "detailScale": {
635
+ "type": "number",
636
+ "exclusiveMinimum": 0,
637
+ "description": "Wavelength of smaller clumps inside density patches, meters."
638
+ }
639
+ },
640
+ "required": [
641
+ "scale"
642
+ ],
643
+ "additionalProperties": false,
644
+ "description": "Noise-modulated density for natural clumps and clearings."
645
+ },
646
+ "layer": {
647
+ "default": "canopy",
648
+ "type": "string",
649
+ "enum": [
650
+ "canopy",
651
+ "understory",
652
+ "groundcover",
653
+ "agriculture"
654
+ ],
655
+ "description": "Budget pool: canopy uses the batch instance and model caps; understory (shrubs and thickets) and groundcover (low patches) have independent caps and never thin canopy trees."
656
+ },
657
+ "slopeMax": {
658
+ "type": "number",
659
+ "minimum": 0,
660
+ "maximum": 1,
661
+ "description": "Slope limit for this rule (0 = flat, 1 = vertical)."
662
+ },
663
+ "altitude": {
664
+ "type": "object",
665
+ "properties": {
666
+ "min": {
667
+ "type": "number",
668
+ "description": "Lowest ground height in meters."
669
+ },
670
+ "max": {
671
+ "type": "number",
672
+ "description": "Highest ground height in meters."
673
+ }
674
+ },
675
+ "additionalProperties": false
676
+ },
677
+ "avoid": {
678
+ "type": "object",
679
+ "properties": {
680
+ "roads": {
681
+ "type": "number",
682
+ "minimum": 0
683
+ },
684
+ "buildings": {
685
+ "type": "number",
686
+ "minimum": 0
687
+ },
688
+ "water": {
689
+ "type": "number",
690
+ "minimum": 0
691
+ }
692
+ },
693
+ "additionalProperties": false,
694
+ "description": "Overrides of the default clearances, meters."
695
+ },
696
+ "populations": {
697
+ "minItems": 1,
698
+ "type": "array",
699
+ "items": {
700
+ "type": "object",
701
+ "properties": {
702
+ "model": {
703
+ "type": "string",
704
+ "pattern": "^(builtin:[a-z][a-z0-9_.]*|[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+)$",
705
+ "description": "Model: an asset id (e.g. 'molen.entities.tree.conifer.fir') or 'builtin:<name>'."
706
+ },
707
+ "weight": {
708
+ "type": "number",
709
+ "minimum": 0,
710
+ "maximum": 1000,
711
+ "description": "Relative weight among sibling entries; 0 disables the entry."
712
+ },
713
+ "variants": {
714
+ "minItems": 1,
715
+ "maxItems": 16,
716
+ "type": "array",
717
+ "items": {
718
+ "type": "object",
719
+ "properties": {
720
+ "model": {
721
+ "type": "string",
722
+ "pattern": "^(builtin:[a-z][a-z0-9_.]*|[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+)$"
723
+ },
724
+ "weight": {
725
+ "type": "number",
726
+ "exclusiveMinimum": 0,
727
+ "maximum": 1000
728
+ }
729
+ },
730
+ "required": [
731
+ "model",
732
+ "weight"
733
+ ],
734
+ "additionalProperties": false
735
+ },
736
+ "description": "Interchangeable model forms sampled independently of species. Unretained forms fall back to model under the model budget; all must share habitat and scale bounds."
737
+ },
738
+ "scale": {
739
+ "type": "object",
740
+ "properties": {
741
+ "min": {
742
+ "type": "number",
743
+ "description": "Minimum uniform scale."
744
+ },
745
+ "max": {
746
+ "type": "number",
747
+ "description": "Maximum uniform scale (>= min)."
748
+ }
749
+ },
750
+ "required": [
751
+ "min",
752
+ "max"
753
+ ]
754
+ },
755
+ "widthScale": {
756
+ "type": "object",
757
+ "properties": {
758
+ "min": {
759
+ "type": "number",
760
+ "exclusiveMinimum": 0
761
+ },
762
+ "max": {
763
+ "type": "number",
764
+ "exclusiveMinimum": 0
765
+ }
766
+ },
767
+ "required": [
768
+ "min",
769
+ "max"
770
+ ],
771
+ "additionalProperties": false,
772
+ "description": "Independent X/Z scale multiplier for crown width/bushiness; omitted means 1."
773
+ },
774
+ "yaw": {
775
+ "default": "random",
776
+ "type": "string",
777
+ "enum": [
778
+ "random",
779
+ "none",
780
+ "rows"
781
+ ],
782
+ "description": "Random, fixed, or aligned with cultivation rows."
783
+ },
784
+ "align": {
785
+ "default": "up",
786
+ "type": "string",
787
+ "enum": [
788
+ "up",
789
+ "normal"
790
+ ],
791
+ "description": "Upright, or tilted to the ground normal."
792
+ },
793
+ "tint": {
794
+ "type": "object",
795
+ "properties": {
796
+ "hue": {
797
+ "default": 0,
798
+ "type": "number",
799
+ "minimum": 0,
800
+ "maximum": 0.5,
801
+ "description": "Hue jitter ± (0..0.5)."
802
+ },
803
+ "saturation": {
804
+ "default": 0,
805
+ "type": "number",
806
+ "minimum": 0,
807
+ "maximum": 1,
808
+ "description": "Saturation jitter ± (0..1)."
809
+ },
810
+ "lightness": {
811
+ "default": 0,
812
+ "type": "number",
813
+ "minimum": 0,
814
+ "maximum": 1,
815
+ "description": "Lightness jitter ± (0..1)."
816
+ }
817
+ },
818
+ "additionalProperties": false,
819
+ "description": "Per-instance HSL jitter applied as instance color."
820
+ },
821
+ "slopeMax": {
822
+ "type": "number",
823
+ "minimum": 0,
824
+ "maximum": 1,
825
+ "description": "Species-specific slope limit (0 = flat, 1 = vertical)."
826
+ },
827
+ "altitude": {
828
+ "type": "object",
829
+ "properties": {
830
+ "min": {
831
+ "type": "number",
832
+ "description": "Lowest ground height in meters."
833
+ },
834
+ "max": {
835
+ "type": "number",
836
+ "description": "Highest ground height in meters."
837
+ }
838
+ },
839
+ "additionalProperties": false,
840
+ "description": "Species-specific ground height limits."
841
+ }
842
+ },
843
+ "required": [
844
+ "model",
845
+ "weight",
846
+ "scale"
847
+ ],
848
+ "additionalProperties": false
849
+ },
850
+ "description": "Weighted species."
851
+ },
852
+ "lod": {
853
+ "type": "object",
854
+ "properties": {
855
+ "keepByTier": {
856
+ "minItems": 1,
857
+ "maxItems": 8,
858
+ "type": "array",
859
+ "items": {
860
+ "type": "number",
861
+ "minimum": 0,
862
+ "maximum": 1
863
+ }
864
+ },
865
+ "maxInstancesPerBatch": {
866
+ "type": "integer",
867
+ "exclusiveMinimum": 0,
868
+ "maximum": 9007199254740991
869
+ }
870
+ },
871
+ "additionalProperties": false,
872
+ "description": "Overrides of the default detail policy."
873
+ }
874
+ },
875
+ "required": [
876
+ "id",
877
+ "classes",
878
+ "densityPerHectare",
879
+ "populations"
880
+ ],
881
+ "additionalProperties": false
882
+ },
883
+ "description": "Placement rules, all matching rules apply."
884
+ }
885
+ },
886
+ "required": [
887
+ "format",
888
+ "id",
889
+ "title",
890
+ "surface",
891
+ "defaults"
892
+ ],
893
+ "additionalProperties": false
894
+ }
895
+ },
896
+ "plants": {
897
+ "type": "array",
898
+ "items": {
899
+ "type": "object",
900
+ "properties": {
901
+ "id": {
902
+ "type": "string",
903
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
904
+ },
905
+ "version": {
906
+ "type": "integer",
907
+ "exclusiveMinimum": 0,
908
+ "maximum": 9007199254740991
909
+ },
910
+ "title": {
911
+ "type": "string",
912
+ "minLength": 1
913
+ },
914
+ "family": {
915
+ "type": "string",
916
+ "enum": [
917
+ "broadleaf",
918
+ "conifer",
919
+ "palm",
920
+ "cactus",
921
+ "succulent",
922
+ "bamboo",
923
+ "banana",
924
+ "grass",
925
+ "fern",
926
+ "reed",
927
+ "mangrove",
928
+ "deadwood",
929
+ "shrub",
930
+ "thicket",
931
+ "forb",
932
+ "vine",
933
+ "mat",
934
+ "fallenwood",
935
+ "crop"
936
+ ]
937
+ },
938
+ "form": {
939
+ "type": "string",
940
+ "enum": [
941
+ "round",
942
+ "columnar",
943
+ "umbrella",
944
+ "feather",
945
+ "fan",
946
+ "branching",
947
+ "paddle"
948
+ ]
949
+ },
950
+ "height": {
951
+ "type": "number",
952
+ "minimum": 0.1,
953
+ "maximum": 100
954
+ },
955
+ "width": {
956
+ "type": "number",
957
+ "minimum": 0.1,
958
+ "maximum": 60
959
+ },
960
+ "crownBase": {
961
+ "type": "number",
962
+ "minimum": 0,
963
+ "maximum": 0.95
964
+ },
965
+ "stemRadius": {
966
+ "type": "number",
967
+ "minimum": 0.01,
968
+ "maximum": 6
969
+ },
970
+ "lean": {
971
+ "type": "number",
972
+ "minimum": 0,
973
+ "maximum": 0.5
974
+ },
975
+ "foliage": {
976
+ "type": "string",
977
+ "pattern": "^#[0-9a-fA-F]{6}$"
978
+ },
979
+ "bark": {
980
+ "type": "string",
981
+ "pattern": "^#[0-9a-fA-F]{6}$"
982
+ },
983
+ "shapeSeed": {
984
+ "type": "integer",
985
+ "minimum": 0,
986
+ "maximum": 65535
987
+ },
988
+ "patch": {
989
+ "type": "boolean"
990
+ },
991
+ "climber": {
992
+ "type": "string",
993
+ "pattern": "^#[0-9a-fA-F]{6}$"
994
+ },
995
+ "cropKind": {
996
+ "type": "string",
997
+ "enum": [
998
+ "maize",
999
+ "cereal",
1000
+ "rice",
1001
+ "broadleaf",
1002
+ "cotton",
1003
+ "cane",
1004
+ "sunflower",
1005
+ "roots"
1006
+ ]
1007
+ },
1008
+ "cropStage": {
1009
+ "type": "string",
1010
+ "enum": [
1011
+ "sown",
1012
+ "growing",
1013
+ "mature",
1014
+ "ripe",
1015
+ "stubble"
1016
+ ]
1017
+ },
1018
+ "taxa": {
1019
+ "minItems": 1,
1020
+ "type": "array",
1021
+ "items": {
1022
+ "type": "string",
1023
+ "minLength": 1
1024
+ }
1025
+ },
1026
+ "leafType": {
1027
+ "type": "string",
1028
+ "enum": [
1029
+ "broadleaved",
1030
+ "needleleaved"
1031
+ ]
1032
+ },
1033
+ "phenology": {
1034
+ "type": "object",
1035
+ "properties": {
1036
+ "spring": {
1037
+ "type": "string",
1038
+ "pattern": "^#[0-9a-fA-F]{6}$"
1039
+ },
1040
+ "autumn": {
1041
+ "type": "string",
1042
+ "pattern": "^#[0-9a-fA-F]{6}$"
1043
+ }
1044
+ },
1045
+ "required": [
1046
+ "spring",
1047
+ "autumn"
1048
+ ],
1049
+ "additionalProperties": false
1050
+ },
1051
+ "leafless": {
1052
+ "type": "boolean"
1053
+ }
1054
+ },
1055
+ "required": [
1056
+ "id",
1057
+ "version",
1058
+ "title",
1059
+ "family",
1060
+ "form",
1061
+ "height",
1062
+ "width",
1063
+ "crownBase",
1064
+ "stemRadius",
1065
+ "lean",
1066
+ "foliage",
1067
+ "bark"
1068
+ ],
1069
+ "additionalProperties": false
1070
+ }
1071
+ },
1072
+ "crops": {
1073
+ "type": "array",
1074
+ "items": {
1075
+ "type": "object",
1076
+ "properties": {
1077
+ "id": {
1078
+ "type": "string",
1079
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
1080
+ },
1081
+ "aliases": {
1082
+ "minItems": 1,
1083
+ "type": "array",
1084
+ "items": {
1085
+ "type": "string",
1086
+ "minLength": 1
1087
+ }
1088
+ },
1089
+ "model": {
1090
+ "type": "string",
1091
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
1092
+ },
1093
+ "variants": {
1094
+ "minItems": 1,
1095
+ "type": "array",
1096
+ "items": {
1097
+ "type": "string",
1098
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
1099
+ }
1100
+ },
1101
+ "kind": {
1102
+ "type": "string",
1103
+ "enum": [
1104
+ "annual",
1105
+ "orchard",
1106
+ "vineyard",
1107
+ "pasture",
1108
+ "fallow"
1109
+ ]
1110
+ },
1111
+ "spacing": {
1112
+ "type": "number",
1113
+ "minimum": 0.25,
1114
+ "maximum": 30
1115
+ },
1116
+ "interval": {
1117
+ "type": "number",
1118
+ "minimum": 0.25,
1119
+ "maximum": 30
1120
+ },
1121
+ "color": {
1122
+ "type": "string",
1123
+ "pattern": "^#[0-9a-fA-F]{6}$"
1124
+ },
1125
+ "soil": {
1126
+ "type": "string",
1127
+ "pattern": "^#[0-9a-fA-F]{6}$"
1128
+ },
1129
+ "ripe": {
1130
+ "type": "string",
1131
+ "pattern": "^#[0-9a-fA-F]{6}$"
1132
+ },
1133
+ "sowingMonth": {
1134
+ "type": "integer",
1135
+ "minimum": 1,
1136
+ "maximum": 12
1137
+ },
1138
+ "growingMonths": {
1139
+ "type": "integer",
1140
+ "minimum": 2,
1141
+ "maximum": 11
1142
+ }
1143
+ },
1144
+ "required": [
1145
+ "id",
1146
+ "aliases",
1147
+ "model",
1148
+ "kind",
1149
+ "spacing",
1150
+ "interval",
1151
+ "color",
1152
+ "soil",
1153
+ "ripe",
1154
+ "sowingMonth",
1155
+ "growingMonths"
1156
+ ],
1157
+ "additionalProperties": false
1158
+ }
1159
+ },
1160
+ "animals": {
1161
+ "type": "array",
1162
+ "items": {
1163
+ "type": "object",
1164
+ "properties": {
1165
+ "id": {
1166
+ "type": "string",
1167
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
1168
+ },
1169
+ "version": {
1170
+ "type": "integer",
1171
+ "exclusiveMinimum": 0,
1172
+ "maximum": 9007199254740991
1173
+ },
1174
+ "title": {
1175
+ "type": "string",
1176
+ "minLength": 1
1177
+ },
1178
+ "taxon": {
1179
+ "type": "string",
1180
+ "minLength": 1
1181
+ },
1182
+ "range": {
1183
+ "type": "string",
1184
+ "minLength": 1
1185
+ },
1186
+ "winterColor": {
1187
+ "type": "string",
1188
+ "pattern": "^#[0-9a-fA-F]{6}$"
1189
+ },
1190
+ "inactiveInWinter": {
1191
+ "type": "boolean"
1192
+ },
1193
+ "body": {
1194
+ "type": "object",
1195
+ "properties": {
1196
+ "family": {
1197
+ "type": "string",
1198
+ "enum": [
1199
+ "ungulate",
1200
+ "canid",
1201
+ "feline",
1202
+ "rodent",
1203
+ "lagomorph",
1204
+ "hopper",
1205
+ "elephant",
1206
+ "bird",
1207
+ "reptile",
1208
+ "fish",
1209
+ "insect"
1210
+ ]
1211
+ },
1212
+ "height": {
1213
+ "type": "number",
1214
+ "minimum": 0.01,
1215
+ "maximum": 7
1216
+ },
1217
+ "length": {
1218
+ "type": "number",
1219
+ "minimum": 0.01,
1220
+ "maximum": 12
1221
+ },
1222
+ "width": {
1223
+ "type": "number",
1224
+ "minimum": 0.005,
1225
+ "maximum": 5
1226
+ },
1227
+ "color": {
1228
+ "type": "string",
1229
+ "pattern": "^#[0-9a-fA-F]{6}$"
1230
+ },
1231
+ "accent": {
1232
+ "type": "string",
1233
+ "pattern": "^#[0-9a-fA-F]{6}$"
1234
+ },
1235
+ "details": {
1236
+ "type": "array",
1237
+ "items": {
1238
+ "type": "string",
1239
+ "enum": [
1240
+ "antlers",
1241
+ "horns",
1242
+ "long-neck",
1243
+ "bushy-tail",
1244
+ "stripes",
1245
+ "spots",
1246
+ "wader",
1247
+ "waterfowl",
1248
+ "raptor",
1249
+ "parrot",
1250
+ "long-tail"
1251
+ ]
1252
+ }
1253
+ }
1254
+ },
1255
+ "required": [
1256
+ "family",
1257
+ "height",
1258
+ "length",
1259
+ "width",
1260
+ "color",
1261
+ "accent",
1262
+ "details"
1263
+ ],
1264
+ "additionalProperties": false
1265
+ },
1266
+ "motion": {
1267
+ "type": "string",
1268
+ "enum": [
1269
+ "walk",
1270
+ "hop",
1271
+ "fly",
1272
+ "swim",
1273
+ "crawl"
1274
+ ]
1275
+ },
1276
+ "speed": {
1277
+ "type": "number",
1278
+ "minimum": 0.01,
1279
+ "maximum": 30
1280
+ },
1281
+ "roam": {
1282
+ "type": "number",
1283
+ "minimum": 1,
1284
+ "maximum": 200
1285
+ },
1286
+ "clearance": {
1287
+ "type": "number",
1288
+ "minimum": 0,
1289
+ "maximum": 80
1290
+ },
1291
+ "rest": {
1292
+ "type": "number",
1293
+ "minimum": 0,
1294
+ "maximum": 1
1295
+ },
1296
+ "margin": {
1297
+ "type": "number",
1298
+ "minimum": 0.02,
1299
+ "maximum": 8
1300
+ }
1301
+ },
1302
+ "required": [
1303
+ "id",
1304
+ "version",
1305
+ "title",
1306
+ "body",
1307
+ "motion",
1308
+ "speed",
1309
+ "roam",
1310
+ "clearance",
1311
+ "rest",
1312
+ "margin"
1313
+ ],
1314
+ "additionalProperties": false
1315
+ }
1316
+ },
1317
+ "populations": {
1318
+ "type": "array",
1319
+ "items": {
1320
+ "type": "object",
1321
+ "properties": {
1322
+ "id": {
1323
+ "type": "string",
1324
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
1325
+ },
1326
+ "title": {
1327
+ "type": "string",
1328
+ "minLength": 1
1329
+ },
1330
+ "rules": {
1331
+ "type": "array",
1332
+ "items": {
1333
+ "type": "object",
1334
+ "properties": {
1335
+ "animal": {
1336
+ "type": "string",
1337
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
1338
+ },
1339
+ "density": {
1340
+ "type": "number",
1341
+ "minimum": 0,
1342
+ "maximum": 100
1343
+ },
1344
+ "habitats": {
1345
+ "minItems": 1,
1346
+ "type": "array",
1347
+ "items": {
1348
+ "type": "string",
1349
+ "minLength": 1
1350
+ }
1351
+ },
1352
+ "match": {
1353
+ "type": "object",
1354
+ "properties": {
1355
+ "biomes": {
1356
+ "minItems": 1,
1357
+ "type": "array",
1358
+ "items": {
1359
+ "type": "integer",
1360
+ "minimum": 0,
1361
+ "maximum": 14
1362
+ }
1363
+ },
1364
+ "realms": {
1365
+ "minItems": 1,
1366
+ "type": "array",
1367
+ "items": {
1368
+ "type": "string",
1369
+ "minLength": 1
1370
+ }
1371
+ },
1372
+ "ecoregions": {
1373
+ "minItems": 1,
1374
+ "type": "array",
1375
+ "items": {
1376
+ "type": "integer",
1377
+ "minimum": 0,
1378
+ "maximum": 9007199254740991
1379
+ }
1380
+ },
1381
+ "regions": {
1382
+ "minItems": 1,
1383
+ "type": "array",
1384
+ "items": {
1385
+ "type": "string",
1386
+ "minLength": 1
1387
+ }
1388
+ }
1389
+ },
1390
+ "additionalProperties": false
1391
+ },
1392
+ "nearWater": {
1393
+ "type": "number",
1394
+ "minimum": 0,
1395
+ "maximum": 500
1396
+ },
1397
+ "protectedOnly": {
1398
+ "type": "boolean"
1399
+ }
1400
+ },
1401
+ "required": [
1402
+ "animal",
1403
+ "density",
1404
+ "habitats",
1405
+ "match"
1406
+ ],
1407
+ "additionalProperties": false
1408
+ }
1409
+ }
1410
+ },
1411
+ "required": [
1412
+ "id",
1413
+ "title",
1414
+ "rules"
1415
+ ],
1416
+ "additionalProperties": false
1417
+ }
1418
+ },
1419
+ "stylePack": {
1420
+ "type": "string",
1421
+ "minLength": 1
1422
+ }
1423
+ },
1424
+ "required": [
1425
+ "format",
1426
+ "id",
1427
+ "version",
1428
+ "title",
1429
+ "requires",
1430
+ "overrides",
1431
+ "profiles",
1432
+ "scatters"
1433
+ ],
1434
+ "additionalProperties": false
1435
+ }
1436
+ ```