@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.
- package/LICENSE +21 -0
- package/NOTICE.md +15 -0
- package/README.md +91 -0
- package/dist/capture/THIRD-PARTY-NOTICES.md +223 -0
- package/dist/capture/basis/LICENSE.txt +55 -0
- package/dist/capture/basis/basis_transcoder.js +19 -0
- package/dist/capture/basis/basis_transcoder.wasm +0 -0
- package/dist/capture/capture.html +15 -0
- package/dist/capture/harness.js +4671 -0
- package/dist/capture/worldgen-preview.html +15 -0
- package/dist/capture/worldgen-preview.js +4617 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +1276 -0
- package/dist/docs-src/guide/3d-art-guidelines.md +157 -0
- package/dist/docs-src/guide/3d-model-assets.md +286 -0
- package/dist/docs-src/guide/adaptive-performance.md +89 -0
- package/dist/docs-src/guide/agent-loop.md +156 -0
- package/dist/docs-src/guide/aircraft.md +225 -0
- package/dist/docs-src/guide/browser-mount.md +185 -0
- package/dist/docs-src/guide/building-interiors.md +175 -0
- package/dist/docs-src/guide/capability-authoring.md +69 -0
- package/dist/docs-src/guide/determinism.md +285 -0
- package/dist/docs-src/guide/entities.md +47 -0
- package/dist/docs-src/guide/examples.md +58 -0
- package/dist/docs-src/guide/experience-playback.md +57 -0
- package/dist/docs-src/guide/figures.md +164 -0
- package/dist/docs-src/guide/game-samples.md +100 -0
- package/dist/docs-src/guide/graphics-performance.md +167 -0
- package/dist/docs-src/guide/input.md +205 -0
- package/dist/docs-src/guide/materials.md +125 -0
- package/dist/docs-src/guide/project.md +157 -0
- package/dist/docs-src/guide/quickstart.md +63 -0
- package/dist/docs-src/guide/recognizable-places.md +158 -0
- package/dist/docs-src/guide/rendering-backends.md +231 -0
- package/dist/docs-src/guide/scripting.md +330 -0
- package/dist/docs-src/guide/sky.md +192 -0
- package/dist/docs-src/guide/source-bundles.md +42 -0
- package/dist/docs-src/guide/structure-library.md +114 -0
- package/dist/docs-src/guide/surface-rendering.md +203 -0
- package/dist/docs-src/guide/terrain.md +389 -0
- package/dist/docs-src/guide/three-surface.md +70 -0
- package/dist/docs-src/guide/vehicle-interiors.md +126 -0
- package/dist/docs-src/guide/vehicles.md +110 -0
- package/dist/docs-src/guide/weather.md +123 -0
- package/dist/docs-src/guide/worldgen.md +434 -0
- package/dist/docs-src/llms.txt +129 -0
- package/dist/docs-src/schemas/README.md +36 -0
- package/dist/docs-src/schemas/archstyle.md +2340 -0
- package/dist/docs-src/schemas/assert.md +169 -0
- package/dist/docs-src/schemas/asset.md +543 -0
- package/dist/docs-src/schemas/business-catalog.md +162 -0
- package/dist/docs-src/schemas/cameratrack.md +132 -0
- package/dist/docs-src/schemas/command.md +112 -0
- package/dist/docs-src/schemas/components.md +5826 -0
- package/dist/docs-src/schemas/delta.md +204 -0
- package/dist/docs-src/schemas/experience-play.md +452 -0
- package/dist/docs-src/schemas/figure.md +290 -0
- package/dist/docs-src/schemas/interior-catalog.md +230 -0
- package/dist/docs-src/schemas/keyframe.md +314 -0
- package/dist/docs-src/schemas/landmark-catalog.md +56 -0
- package/dist/docs-src/schemas/landmark.md +293 -0
- package/dist/docs-src/schemas/matgraph.md +1163 -0
- package/dist/docs-src/schemas/pack-index.md +82 -0
- package/dist/docs-src/schemas/pack-source.md +139 -0
- package/dist/docs-src/schemas/pack.md +225 -0
- package/dist/docs-src/schemas/pixelgrid.md +108 -0
- package/dist/docs-src/schemas/prefab.md +106 -0
- package/dist/docs-src/schemas/project.md +271 -0
- package/dist/docs-src/schemas/region-atlas.md +612 -0
- package/dist/docs-src/schemas/replay.md +807 -0
- package/dist/docs-src/schemas/scatter.md +541 -0
- package/dist/docs-src/schemas/scene.md +1152 -0
- package/dist/docs-src/schemas/source-bundle.md +266 -0
- package/dist/docs-src/schemas/stylepack.md +420 -0
- package/dist/docs-src/schemas/terrain-package.md +731 -0
- package/dist/docs-src/schemas/terrain.md +313 -0
- package/dist/docs-src/schemas/types.md +218 -0
- package/dist/docs-src/schemas/uvpaint.md +149 -0
- package/dist/docs-src/schemas/worldgen-batch.md +743 -0
- package/dist/index.d.mts +1271 -0
- package/dist/index.mjs +78 -0
- package/dist/mcp-BFnCWrg0.mjs +796 -0
- package/dist/ops-BGxhSP6w.mjs +7246 -0
- package/package.json +96 -0
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
# Region style atlas (`molen/region-atlas@1`)
|
|
2
|
+
|
|
3
|
+
Binds archstyles and scatter rule sets to places on Earth: prioritized lon/lat regions with ordered style rules, plus a worldwide default chain evaluated before the pack defaults.
|
|
4
|
+
|
|
5
|
+
## Example
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"format": "molen/region-atlas@1",
|
|
10
|
+
"id": "molen.worldgen.atlas.world",
|
|
11
|
+
"title": "World style atlas",
|
|
12
|
+
"version": 1,
|
|
13
|
+
"regions": [
|
|
14
|
+
{
|
|
15
|
+
"id": "us.pnw",
|
|
16
|
+
"title": "Pacific Northwest",
|
|
17
|
+
"priority": 10,
|
|
18
|
+
"bbox": [
|
|
19
|
+
-125.5,
|
|
20
|
+
41.9,
|
|
21
|
+
-116.4,
|
|
22
|
+
51.6
|
|
23
|
+
],
|
|
24
|
+
"bindings": {
|
|
25
|
+
"buildings": [
|
|
26
|
+
{
|
|
27
|
+
"when": {
|
|
28
|
+
"class": [
|
|
29
|
+
"house",
|
|
30
|
+
"detached",
|
|
31
|
+
"semidetached",
|
|
32
|
+
"residential",
|
|
33
|
+
"bungalow",
|
|
34
|
+
"cabin"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"style": "molen.worldgen.pnw.house"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"when": {
|
|
41
|
+
"class": [
|
|
42
|
+
"yes",
|
|
43
|
+
"building"
|
|
44
|
+
],
|
|
45
|
+
"contextClass": [
|
|
46
|
+
"residential",
|
|
47
|
+
"none"
|
|
48
|
+
],
|
|
49
|
+
"areaMax": 400
|
|
50
|
+
},
|
|
51
|
+
"style": "molen.worldgen.pnw.house"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"scatter": "molen.worldgen.scatter.pnw"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "jp",
|
|
59
|
+
"title": "Japan",
|
|
60
|
+
"priority": 10,
|
|
61
|
+
"bbox": [
|
|
62
|
+
122.9,
|
|
63
|
+
24,
|
|
64
|
+
146.2,
|
|
65
|
+
45.8
|
|
66
|
+
],
|
|
67
|
+
"polygons": [
|
|
68
|
+
[
|
|
69
|
+
[
|
|
70
|
+
129,
|
|
71
|
+
30.9
|
|
72
|
+
],
|
|
73
|
+
[
|
|
74
|
+
131.6,
|
|
75
|
+
30.6
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
142.4,
|
|
79
|
+
34.4
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
146.2,
|
|
83
|
+
43.4
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
141.2,
|
|
87
|
+
45.8
|
|
88
|
+
],
|
|
89
|
+
[
|
|
90
|
+
139.4,
|
|
91
|
+
41.4
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
136,
|
|
95
|
+
38.2
|
|
96
|
+
],
|
|
97
|
+
[
|
|
98
|
+
130.8,
|
|
99
|
+
35.2
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
129,
|
|
103
|
+
32.4
|
|
104
|
+
]
|
|
105
|
+
]
|
|
106
|
+
],
|
|
107
|
+
"bindings": {
|
|
108
|
+
"buildings": [
|
|
109
|
+
{
|
|
110
|
+
"when": {
|
|
111
|
+
"class": [
|
|
112
|
+
"house",
|
|
113
|
+
"detached",
|
|
114
|
+
"residential"
|
|
115
|
+
],
|
|
116
|
+
"areaMax": 250
|
|
117
|
+
},
|
|
118
|
+
"style": "molen.worldgen.japan.house"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"scatter": "molen.worldgen.scatter.japan"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"default": {
|
|
126
|
+
"buildings": [
|
|
127
|
+
{
|
|
128
|
+
"when": {
|
|
129
|
+
"class": [
|
|
130
|
+
"mall",
|
|
131
|
+
"supermarket",
|
|
132
|
+
"warehouse"
|
|
133
|
+
],
|
|
134
|
+
"areaMin": 1500
|
|
135
|
+
},
|
|
136
|
+
"style": "molen.worldgen.generic.mall"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"scatter": "molen.worldgen.scatter.global"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## JSON Schema
|
|
145
|
+
|
|
146
|
+
```json
|
|
147
|
+
{
|
|
148
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
149
|
+
"type": "object",
|
|
150
|
+
"properties": {
|
|
151
|
+
"format": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"const": "molen/region-atlas@1",
|
|
154
|
+
"description": "Format envelope; always 'molen/region-atlas@1'."
|
|
155
|
+
},
|
|
156
|
+
"id": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
159
|
+
"description": "Atlas id, e.g. 'molen.worldgen.atlas.world'."
|
|
160
|
+
},
|
|
161
|
+
"title": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"minLength": 1
|
|
164
|
+
},
|
|
165
|
+
"doc": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
},
|
|
168
|
+
"version": {
|
|
169
|
+
"default": 1,
|
|
170
|
+
"type": "integer",
|
|
171
|
+
"minimum": 1,
|
|
172
|
+
"maximum": 9007199254740991,
|
|
173
|
+
"description": "Bump when bindings change on purpose."
|
|
174
|
+
},
|
|
175
|
+
"regions": {
|
|
176
|
+
"default": [],
|
|
177
|
+
"type": "array",
|
|
178
|
+
"items": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"properties": {
|
|
181
|
+
"id": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"pattern": "^[a-z][a-z0-9_.-]*$",
|
|
184
|
+
"description": "Region id, e.g. 'us.pnw'."
|
|
185
|
+
},
|
|
186
|
+
"title": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"priority": {
|
|
190
|
+
"default": 0,
|
|
191
|
+
"type": "integer",
|
|
192
|
+
"minimum": -1000,
|
|
193
|
+
"maximum": 1000,
|
|
194
|
+
"description": "Higher priority wins where regions overlap."
|
|
195
|
+
},
|
|
196
|
+
"bbox": {
|
|
197
|
+
"minItems": 4,
|
|
198
|
+
"maxItems": 4,
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "number"
|
|
202
|
+
},
|
|
203
|
+
"description": "[minLon, minLat, maxLon, maxLat] in degrees; the sole geometry when polygons are absent."
|
|
204
|
+
},
|
|
205
|
+
"polygons": {
|
|
206
|
+
"type": "array",
|
|
207
|
+
"items": {
|
|
208
|
+
"minItems": 3,
|
|
209
|
+
"type": "array",
|
|
210
|
+
"items": {
|
|
211
|
+
"minItems": 2,
|
|
212
|
+
"maxItems": 2,
|
|
213
|
+
"type": "array",
|
|
214
|
+
"items": {
|
|
215
|
+
"type": "number"
|
|
216
|
+
},
|
|
217
|
+
"description": "[longitude, latitude] in degrees (WGS84)."
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"description": "WGS84 outer rings (union). No holes; must not cross the antimeridian."
|
|
221
|
+
},
|
|
222
|
+
"bindings": {
|
|
223
|
+
"type": "object",
|
|
224
|
+
"properties": {
|
|
225
|
+
"buildings": {
|
|
226
|
+
"default": [],
|
|
227
|
+
"type": "array",
|
|
228
|
+
"items": {
|
|
229
|
+
"type": "object",
|
|
230
|
+
"properties": {
|
|
231
|
+
"when": {
|
|
232
|
+
"type": "object",
|
|
233
|
+
"properties": {
|
|
234
|
+
"class": {
|
|
235
|
+
"minItems": 1,
|
|
236
|
+
"type": "array",
|
|
237
|
+
"items": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"minLength": 1
|
|
240
|
+
},
|
|
241
|
+
"description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
|
|
242
|
+
},
|
|
243
|
+
"notClass": {
|
|
244
|
+
"minItems": 1,
|
|
245
|
+
"type": "array",
|
|
246
|
+
"items": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"minLength": 1
|
|
249
|
+
},
|
|
250
|
+
"description": "Reject when any label matches one of these words."
|
|
251
|
+
},
|
|
252
|
+
"contextClass": {
|
|
253
|
+
"minItems": 1,
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"minLength": 1
|
|
258
|
+
},
|
|
259
|
+
"description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
|
|
260
|
+
},
|
|
261
|
+
"notContextClass": {
|
|
262
|
+
"minItems": 1,
|
|
263
|
+
"type": "array",
|
|
264
|
+
"items": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"minLength": 1
|
|
267
|
+
},
|
|
268
|
+
"description": "Reject when the surrounding label matches."
|
|
269
|
+
},
|
|
270
|
+
"areaMin": {
|
|
271
|
+
"type": "number",
|
|
272
|
+
"minimum": 0,
|
|
273
|
+
"description": "Minimum footprint area in m²."
|
|
274
|
+
},
|
|
275
|
+
"areaMax": {
|
|
276
|
+
"type": "number",
|
|
277
|
+
"minimum": 0,
|
|
278
|
+
"description": "Maximum footprint area in m²."
|
|
279
|
+
},
|
|
280
|
+
"heightMin": {
|
|
281
|
+
"type": "number",
|
|
282
|
+
"minimum": 0,
|
|
283
|
+
"description": "Minimum known height in meters; never matches an unknown height."
|
|
284
|
+
},
|
|
285
|
+
"heightMax": {
|
|
286
|
+
"type": "number",
|
|
287
|
+
"minimum": 0,
|
|
288
|
+
"description": "Maximum known height in meters; never matches an unknown height."
|
|
289
|
+
},
|
|
290
|
+
"hasHeight": {
|
|
291
|
+
"type": "boolean",
|
|
292
|
+
"description": "Require (true) or forbid (false) a known source height."
|
|
293
|
+
},
|
|
294
|
+
"levelsMin": {
|
|
295
|
+
"type": "number",
|
|
296
|
+
"minimum": 0,
|
|
297
|
+
"description": "Minimum floor count; roof choices also use resolved estimates."
|
|
298
|
+
},
|
|
299
|
+
"levelsMax": {
|
|
300
|
+
"type": "number",
|
|
301
|
+
"minimum": 0,
|
|
302
|
+
"description": "Maximum floor count; roof choices also use resolved estimates."
|
|
303
|
+
},
|
|
304
|
+
"elongationMin": {
|
|
305
|
+
"type": "number",
|
|
306
|
+
"minimum": 1,
|
|
307
|
+
"description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
|
|
308
|
+
},
|
|
309
|
+
"elongationMax": {
|
|
310
|
+
"type": "number",
|
|
311
|
+
"minimum": 1,
|
|
312
|
+
"description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
|
|
313
|
+
},
|
|
314
|
+
"rectangularityMin": {
|
|
315
|
+
"type": "number",
|
|
316
|
+
"minimum": 0,
|
|
317
|
+
"maximum": 1,
|
|
318
|
+
"description": "Minimum area / (width * depth), 0..1."
|
|
319
|
+
},
|
|
320
|
+
"rectangularityMax": {
|
|
321
|
+
"type": "number",
|
|
322
|
+
"minimum": 0,
|
|
323
|
+
"maximum": 1,
|
|
324
|
+
"description": "Maximum area / (width * depth), 0..1."
|
|
325
|
+
},
|
|
326
|
+
"verticesMax": {
|
|
327
|
+
"type": "integer",
|
|
328
|
+
"minimum": 3,
|
|
329
|
+
"maximum": 9007199254740991,
|
|
330
|
+
"description": "Maximum outline vertex count after cleaning."
|
|
331
|
+
},
|
|
332
|
+
"holes": {
|
|
333
|
+
"type": "boolean",
|
|
334
|
+
"description": "Require (true) or forbid (false) holes (courtyards)."
|
|
335
|
+
},
|
|
336
|
+
"wingsMin": {
|
|
337
|
+
"type": "integer",
|
|
338
|
+
"minimum": 0,
|
|
339
|
+
"maximum": 9007199254740991,
|
|
340
|
+
"description": "Minimum roof wing count (archstyle rules only)."
|
|
341
|
+
},
|
|
342
|
+
"wingsMax": {
|
|
343
|
+
"type": "integer",
|
|
344
|
+
"minimum": 0,
|
|
345
|
+
"maximum": 9007199254740991,
|
|
346
|
+
"description": "Maximum roof wing count (archstyle rules only)."
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"additionalProperties": false,
|
|
350
|
+
"description": "Conditions; omit for a catch-all rule."
|
|
351
|
+
},
|
|
352
|
+
"style": {
|
|
353
|
+
"type": "string",
|
|
354
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
355
|
+
"description": "Archstyle id to apply, e.g. 'molen.worldgen.pnw.house'."
|
|
356
|
+
},
|
|
357
|
+
"variants": {
|
|
358
|
+
"minItems": 1,
|
|
359
|
+
"maxItems": 120,
|
|
360
|
+
"type": "array",
|
|
361
|
+
"items": {
|
|
362
|
+
"type": "object",
|
|
363
|
+
"properties": {
|
|
364
|
+
"style": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
|
|
367
|
+
},
|
|
368
|
+
"weight": {
|
|
369
|
+
"type": "number",
|
|
370
|
+
"exclusiveMinimum": 0
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"required": [
|
|
374
|
+
"style",
|
|
375
|
+
"weight"
|
|
376
|
+
],
|
|
377
|
+
"additionalProperties": false
|
|
378
|
+
},
|
|
379
|
+
"description": "Optional weighted styles sampled from stable building identity. Without identity, use style."
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"required": [
|
|
383
|
+
"style"
|
|
384
|
+
],
|
|
385
|
+
"additionalProperties": false
|
|
386
|
+
},
|
|
387
|
+
"description": "Ordered style rules for buildings inside the region; first match wins."
|
|
388
|
+
},
|
|
389
|
+
"default": {
|
|
390
|
+
"type": "string",
|
|
391
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
392
|
+
"description": "Archstyle when no region rule matches (before pack rules)."
|
|
393
|
+
},
|
|
394
|
+
"scatter": {
|
|
395
|
+
"type": "string",
|
|
396
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
397
|
+
"description": "Scatter rule set for the region."
|
|
398
|
+
},
|
|
399
|
+
"treeFillFactor": {
|
|
400
|
+
"type": "number",
|
|
401
|
+
"minimum": 0,
|
|
402
|
+
"maximum": 1,
|
|
403
|
+
"description": "Synthetic tree fill around homes, 0..1; 0 disables it. Inherits atlas default."
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"additionalProperties": false
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"required": [
|
|
410
|
+
"id",
|
|
411
|
+
"bindings"
|
|
412
|
+
],
|
|
413
|
+
"additionalProperties": false
|
|
414
|
+
},
|
|
415
|
+
"description": "Regions in document order (ties resolve to the first)."
|
|
416
|
+
},
|
|
417
|
+
"default": {
|
|
418
|
+
"type": "object",
|
|
419
|
+
"properties": {
|
|
420
|
+
"buildings": {
|
|
421
|
+
"default": [],
|
|
422
|
+
"type": "array",
|
|
423
|
+
"items": {
|
|
424
|
+
"type": "object",
|
|
425
|
+
"properties": {
|
|
426
|
+
"when": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"properties": {
|
|
429
|
+
"class": {
|
|
430
|
+
"minItems": 1,
|
|
431
|
+
"type": "array",
|
|
432
|
+
"items": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"minLength": 1
|
|
435
|
+
},
|
|
436
|
+
"description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
|
|
437
|
+
},
|
|
438
|
+
"notClass": {
|
|
439
|
+
"minItems": 1,
|
|
440
|
+
"type": "array",
|
|
441
|
+
"items": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"minLength": 1
|
|
444
|
+
},
|
|
445
|
+
"description": "Reject when any label matches one of these words."
|
|
446
|
+
},
|
|
447
|
+
"contextClass": {
|
|
448
|
+
"minItems": 1,
|
|
449
|
+
"type": "array",
|
|
450
|
+
"items": {
|
|
451
|
+
"type": "string",
|
|
452
|
+
"minLength": 1
|
|
453
|
+
},
|
|
454
|
+
"description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
|
|
455
|
+
},
|
|
456
|
+
"notContextClass": {
|
|
457
|
+
"minItems": 1,
|
|
458
|
+
"type": "array",
|
|
459
|
+
"items": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"minLength": 1
|
|
462
|
+
},
|
|
463
|
+
"description": "Reject when the surrounding label matches."
|
|
464
|
+
},
|
|
465
|
+
"areaMin": {
|
|
466
|
+
"type": "number",
|
|
467
|
+
"minimum": 0,
|
|
468
|
+
"description": "Minimum footprint area in m²."
|
|
469
|
+
},
|
|
470
|
+
"areaMax": {
|
|
471
|
+
"type": "number",
|
|
472
|
+
"minimum": 0,
|
|
473
|
+
"description": "Maximum footprint area in m²."
|
|
474
|
+
},
|
|
475
|
+
"heightMin": {
|
|
476
|
+
"type": "number",
|
|
477
|
+
"minimum": 0,
|
|
478
|
+
"description": "Minimum known height in meters; never matches an unknown height."
|
|
479
|
+
},
|
|
480
|
+
"heightMax": {
|
|
481
|
+
"type": "number",
|
|
482
|
+
"minimum": 0,
|
|
483
|
+
"description": "Maximum known height in meters; never matches an unknown height."
|
|
484
|
+
},
|
|
485
|
+
"hasHeight": {
|
|
486
|
+
"type": "boolean",
|
|
487
|
+
"description": "Require (true) or forbid (false) a known source height."
|
|
488
|
+
},
|
|
489
|
+
"levelsMin": {
|
|
490
|
+
"type": "number",
|
|
491
|
+
"minimum": 0,
|
|
492
|
+
"description": "Minimum floor count; roof choices also use resolved estimates."
|
|
493
|
+
},
|
|
494
|
+
"levelsMax": {
|
|
495
|
+
"type": "number",
|
|
496
|
+
"minimum": 0,
|
|
497
|
+
"description": "Maximum floor count; roof choices also use resolved estimates."
|
|
498
|
+
},
|
|
499
|
+
"elongationMin": {
|
|
500
|
+
"type": "number",
|
|
501
|
+
"minimum": 1,
|
|
502
|
+
"description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
|
|
503
|
+
},
|
|
504
|
+
"elongationMax": {
|
|
505
|
+
"type": "number",
|
|
506
|
+
"minimum": 1,
|
|
507
|
+
"description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
|
|
508
|
+
},
|
|
509
|
+
"rectangularityMin": {
|
|
510
|
+
"type": "number",
|
|
511
|
+
"minimum": 0,
|
|
512
|
+
"maximum": 1,
|
|
513
|
+
"description": "Minimum area / (width * depth), 0..1."
|
|
514
|
+
},
|
|
515
|
+
"rectangularityMax": {
|
|
516
|
+
"type": "number",
|
|
517
|
+
"minimum": 0,
|
|
518
|
+
"maximum": 1,
|
|
519
|
+
"description": "Maximum area / (width * depth), 0..1."
|
|
520
|
+
},
|
|
521
|
+
"verticesMax": {
|
|
522
|
+
"type": "integer",
|
|
523
|
+
"minimum": 3,
|
|
524
|
+
"maximum": 9007199254740991,
|
|
525
|
+
"description": "Maximum outline vertex count after cleaning."
|
|
526
|
+
},
|
|
527
|
+
"holes": {
|
|
528
|
+
"type": "boolean",
|
|
529
|
+
"description": "Require (true) or forbid (false) holes (courtyards)."
|
|
530
|
+
},
|
|
531
|
+
"wingsMin": {
|
|
532
|
+
"type": "integer",
|
|
533
|
+
"minimum": 0,
|
|
534
|
+
"maximum": 9007199254740991,
|
|
535
|
+
"description": "Minimum roof wing count (archstyle rules only)."
|
|
536
|
+
},
|
|
537
|
+
"wingsMax": {
|
|
538
|
+
"type": "integer",
|
|
539
|
+
"minimum": 0,
|
|
540
|
+
"maximum": 9007199254740991,
|
|
541
|
+
"description": "Maximum roof wing count (archstyle rules only)."
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"additionalProperties": false,
|
|
545
|
+
"description": "Conditions; omit for a catch-all rule."
|
|
546
|
+
},
|
|
547
|
+
"style": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
550
|
+
"description": "Archstyle id to apply, e.g. 'molen.worldgen.pnw.house'."
|
|
551
|
+
},
|
|
552
|
+
"variants": {
|
|
553
|
+
"minItems": 1,
|
|
554
|
+
"maxItems": 120,
|
|
555
|
+
"type": "array",
|
|
556
|
+
"items": {
|
|
557
|
+
"type": "object",
|
|
558
|
+
"properties": {
|
|
559
|
+
"style": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
|
|
562
|
+
},
|
|
563
|
+
"weight": {
|
|
564
|
+
"type": "number",
|
|
565
|
+
"exclusiveMinimum": 0
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"required": [
|
|
569
|
+
"style",
|
|
570
|
+
"weight"
|
|
571
|
+
],
|
|
572
|
+
"additionalProperties": false
|
|
573
|
+
},
|
|
574
|
+
"description": "Optional weighted styles sampled from stable building identity. Without identity, use style."
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"required": [
|
|
578
|
+
"style"
|
|
579
|
+
],
|
|
580
|
+
"additionalProperties": false
|
|
581
|
+
},
|
|
582
|
+
"description": "Worldwide style rules."
|
|
583
|
+
},
|
|
584
|
+
"style": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
587
|
+
"description": "Worldwide archstyle when no rule matches (else the pack default)."
|
|
588
|
+
},
|
|
589
|
+
"scatter": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
592
|
+
"description": "Worldwide scatter rule set (else the pack default)."
|
|
593
|
+
},
|
|
594
|
+
"treeFillFactor": {
|
|
595
|
+
"type": "number",
|
|
596
|
+
"minimum": 0,
|
|
597
|
+
"maximum": 1,
|
|
598
|
+
"description": "Synthetic tree fill around homes, 0..1. Omitted disables infill outside configured regions."
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"additionalProperties": false
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"required": [
|
|
605
|
+
"format",
|
|
606
|
+
"id",
|
|
607
|
+
"title",
|
|
608
|
+
"default"
|
|
609
|
+
],
|
|
610
|
+
"additionalProperties": false
|
|
611
|
+
}
|
|
612
|
+
```
|