@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,743 @@
|
|
|
1
|
+
# Worldgen batch (`molen/worldgen-batch@1`)
|
|
2
|
+
|
|
3
|
+
A serialized generation request: labeled building outlines, optional labeled polygons and exclusions for scatter, style rules, and a synthetic ground. Used as fixture, preview and bake input, and worker payload.
|
|
4
|
+
|
|
5
|
+
## Example
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"format": "molen/worldgen-batch@1",
|
|
10
|
+
"name": "two houses",
|
|
11
|
+
"ground": {
|
|
12
|
+
"kind": "flat",
|
|
13
|
+
"height": 0
|
|
14
|
+
},
|
|
15
|
+
"buildings": [
|
|
16
|
+
{
|
|
17
|
+
"identity": "room:hall-1",
|
|
18
|
+
"labels": [
|
|
19
|
+
"hall"
|
|
20
|
+
],
|
|
21
|
+
"outline": [
|
|
22
|
+
[
|
|
23
|
+
0,
|
|
24
|
+
0
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
14,
|
|
28
|
+
0
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
14,
|
|
32
|
+
8
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
0,
|
|
36
|
+
8
|
|
37
|
+
]
|
|
38
|
+
],
|
|
39
|
+
"levels": 2
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"identity": "f:42",
|
|
43
|
+
"labels": [
|
|
44
|
+
"house",
|
|
45
|
+
"building"
|
|
46
|
+
],
|
|
47
|
+
"context": "residential",
|
|
48
|
+
"outline": [
|
|
49
|
+
[
|
|
50
|
+
20,
|
|
51
|
+
0
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
32,
|
|
55
|
+
0
|
|
56
|
+
],
|
|
57
|
+
[
|
|
58
|
+
32,
|
|
59
|
+
6
|
|
60
|
+
],
|
|
61
|
+
[
|
|
62
|
+
26,
|
|
63
|
+
6
|
|
64
|
+
],
|
|
65
|
+
[
|
|
66
|
+
26,
|
|
67
|
+
12
|
|
68
|
+
],
|
|
69
|
+
[
|
|
70
|
+
20,
|
|
71
|
+
12
|
|
72
|
+
]
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"tier": 0
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## JSON Schema
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{
|
|
84
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"format": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"const": "molen/worldgen-batch@1",
|
|
90
|
+
"description": "Format envelope; always 'molen/worldgen-batch@1'."
|
|
91
|
+
},
|
|
92
|
+
"name": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"minLength": 1,
|
|
95
|
+
"description": "Fixture name."
|
|
96
|
+
},
|
|
97
|
+
"ground": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"properties": {
|
|
100
|
+
"kind": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"enum": [
|
|
103
|
+
"flat",
|
|
104
|
+
"slope"
|
|
105
|
+
],
|
|
106
|
+
"description": "Flat plane or a plane rising by dx/dz per meter."
|
|
107
|
+
},
|
|
108
|
+
"height": {
|
|
109
|
+
"default": 0,
|
|
110
|
+
"type": "number",
|
|
111
|
+
"description": "Ground height at the origin, meters."
|
|
112
|
+
},
|
|
113
|
+
"dx": {
|
|
114
|
+
"default": 0,
|
|
115
|
+
"type": "number",
|
|
116
|
+
"description": "Rise per meter along +x (slope only)."
|
|
117
|
+
},
|
|
118
|
+
"dz": {
|
|
119
|
+
"default": 0,
|
|
120
|
+
"type": "number",
|
|
121
|
+
"description": "Rise per meter along +z (slope only)."
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"kind"
|
|
126
|
+
],
|
|
127
|
+
"additionalProperties": false,
|
|
128
|
+
"description": "Synthetic ground under the batch."
|
|
129
|
+
},
|
|
130
|
+
"buildings": {
|
|
131
|
+
"default": [],
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"identity": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"minLength": 1,
|
|
139
|
+
"description": "Caller-owned stable identity, e.g. 'f:123' or 'room:hall-1'."
|
|
140
|
+
},
|
|
141
|
+
"labels": {
|
|
142
|
+
"minItems": 1,
|
|
143
|
+
"type": "array",
|
|
144
|
+
"items": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"minLength": 1
|
|
147
|
+
},
|
|
148
|
+
"description": "Category labels, most specific first."
|
|
149
|
+
},
|
|
150
|
+
"context": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"minLength": 1,
|
|
153
|
+
"description": "Surrounding label (e.g. land class)."
|
|
154
|
+
},
|
|
155
|
+
"appearance": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"properties": {
|
|
158
|
+
"wall": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
161
|
+
},
|
|
162
|
+
"trim": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"additionalProperties": false
|
|
168
|
+
},
|
|
169
|
+
"storefronts": {
|
|
170
|
+
"maxItems": 12,
|
|
171
|
+
"type": "array",
|
|
172
|
+
"items": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"identity": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"minLength": 1
|
|
178
|
+
},
|
|
179
|
+
"at": {
|
|
180
|
+
"type": "array",
|
|
181
|
+
"prefixItems": [
|
|
182
|
+
{
|
|
183
|
+
"type": "number"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "number"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"items": false,
|
|
190
|
+
"minItems": 2,
|
|
191
|
+
"maxItems": 2,
|
|
192
|
+
"description": "Desired frontage anchor in local meters; projected to a non-seam exterior edge."
|
|
193
|
+
},
|
|
194
|
+
"signModel": {
|
|
195
|
+
"type": "string",
|
|
196
|
+
"pattern": "^(builtin:[a-z][a-z0-9_.]*|[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+)$"
|
|
197
|
+
},
|
|
198
|
+
"signSize": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"prefixItems": [
|
|
201
|
+
{
|
|
202
|
+
"type": "number",
|
|
203
|
+
"exclusiveMinimum": 0
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "number",
|
|
207
|
+
"exclusiveMinimum": 0
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"items": false,
|
|
211
|
+
"minItems": 2,
|
|
212
|
+
"maxItems": 2
|
|
213
|
+
},
|
|
214
|
+
"accent": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
217
|
+
},
|
|
218
|
+
"width": {
|
|
219
|
+
"type": "number",
|
|
220
|
+
"exclusiveMinimum": 0,
|
|
221
|
+
"maximum": 100
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"identity",
|
|
226
|
+
"at",
|
|
227
|
+
"signModel",
|
|
228
|
+
"accent"
|
|
229
|
+
],
|
|
230
|
+
"additionalProperties": false
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"interiorLabels": {
|
|
234
|
+
"maxItems": 32,
|
|
235
|
+
"type": "array",
|
|
236
|
+
"items": {
|
|
237
|
+
"type": "string",
|
|
238
|
+
"minLength": 1
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"outline": {
|
|
242
|
+
"minItems": 3,
|
|
243
|
+
"type": "array",
|
|
244
|
+
"items": {
|
|
245
|
+
"minItems": 2,
|
|
246
|
+
"maxItems": 2,
|
|
247
|
+
"type": "array",
|
|
248
|
+
"items": {
|
|
249
|
+
"type": "number"
|
|
250
|
+
},
|
|
251
|
+
"description": "[x, z] in local meters."
|
|
252
|
+
},
|
|
253
|
+
"description": "Open ring of [x, z] points (no repeated closing point)."
|
|
254
|
+
},
|
|
255
|
+
"holes": {
|
|
256
|
+
"type": "array",
|
|
257
|
+
"items": {
|
|
258
|
+
"minItems": 3,
|
|
259
|
+
"type": "array",
|
|
260
|
+
"items": {
|
|
261
|
+
"minItems": 2,
|
|
262
|
+
"maxItems": 2,
|
|
263
|
+
"type": "array",
|
|
264
|
+
"items": {
|
|
265
|
+
"type": "number"
|
|
266
|
+
},
|
|
267
|
+
"description": "[x, z] in local meters."
|
|
268
|
+
},
|
|
269
|
+
"description": "Open ring of [x, z] points (no repeated closing point)."
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"groundOutline": {
|
|
273
|
+
"minItems": 3,
|
|
274
|
+
"type": "array",
|
|
275
|
+
"items": {
|
|
276
|
+
"minItems": 2,
|
|
277
|
+
"maxItems": 2,
|
|
278
|
+
"type": "array",
|
|
279
|
+
"items": {
|
|
280
|
+
"type": "number"
|
|
281
|
+
},
|
|
282
|
+
"description": "[x, z] in local meters."
|
|
283
|
+
},
|
|
284
|
+
"description": "Shared ground-fitting footprint for related parts."
|
|
285
|
+
},
|
|
286
|
+
"height": {
|
|
287
|
+
"type": "number",
|
|
288
|
+
"minimum": 0,
|
|
289
|
+
"description": "Known total height above the base, including the roof and minimum height, meters."
|
|
290
|
+
},
|
|
291
|
+
"levels": {
|
|
292
|
+
"type": "number",
|
|
293
|
+
"minimum": 0,
|
|
294
|
+
"description": "Known floor count."
|
|
295
|
+
},
|
|
296
|
+
"minHeight": {
|
|
297
|
+
"type": "number",
|
|
298
|
+
"minimum": 0,
|
|
299
|
+
"description": "Lowest floor above the base, meters."
|
|
300
|
+
},
|
|
301
|
+
"clipped": {
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"description": "The outline is a cut piece: flat roof and seam walls."
|
|
304
|
+
},
|
|
305
|
+
"seamEdges": {
|
|
306
|
+
"type": "array",
|
|
307
|
+
"items": {
|
|
308
|
+
"type": "integer",
|
|
309
|
+
"minimum": 0,
|
|
310
|
+
"maximum": 9007199254740991
|
|
311
|
+
},
|
|
312
|
+
"description": "Outline edge indices on the cut boundary."
|
|
313
|
+
},
|
|
314
|
+
"style": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
317
|
+
"description": "Explicit archstyle id (bypasses rules)."
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"required": [
|
|
321
|
+
"identity",
|
|
322
|
+
"labels",
|
|
323
|
+
"outline"
|
|
324
|
+
],
|
|
325
|
+
"additionalProperties": false
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"scatter": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"properties": {
|
|
331
|
+
"polygons": {
|
|
332
|
+
"type": "array",
|
|
333
|
+
"items": {
|
|
334
|
+
"type": "object",
|
|
335
|
+
"properties": {
|
|
336
|
+
"label": {
|
|
337
|
+
"type": "string",
|
|
338
|
+
"minLength": 1,
|
|
339
|
+
"description": "Land label the scatter rules match against."
|
|
340
|
+
},
|
|
341
|
+
"ring": {
|
|
342
|
+
"minItems": 3,
|
|
343
|
+
"type": "array",
|
|
344
|
+
"items": {
|
|
345
|
+
"minItems": 2,
|
|
346
|
+
"maxItems": 2,
|
|
347
|
+
"type": "array",
|
|
348
|
+
"items": {
|
|
349
|
+
"type": "number"
|
|
350
|
+
},
|
|
351
|
+
"description": "[x, z] in local meters."
|
|
352
|
+
},
|
|
353
|
+
"description": "Open ring of [x, z] points (no repeated closing point)."
|
|
354
|
+
},
|
|
355
|
+
"holes": {
|
|
356
|
+
"type": "array",
|
|
357
|
+
"items": {
|
|
358
|
+
"minItems": 3,
|
|
359
|
+
"type": "array",
|
|
360
|
+
"items": {
|
|
361
|
+
"minItems": 2,
|
|
362
|
+
"maxItems": 2,
|
|
363
|
+
"type": "array",
|
|
364
|
+
"items": {
|
|
365
|
+
"type": "number"
|
|
366
|
+
},
|
|
367
|
+
"description": "[x, z] in local meters."
|
|
368
|
+
},
|
|
369
|
+
"description": "Open ring of [x, z] points (no repeated closing point)."
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"density": {
|
|
373
|
+
"type": "number",
|
|
374
|
+
"minimum": 0,
|
|
375
|
+
"description": "Density multiplier (default 1)."
|
|
376
|
+
},
|
|
377
|
+
"seed": {
|
|
378
|
+
"type": "integer",
|
|
379
|
+
"minimum": 0,
|
|
380
|
+
"maximum": 4294967295,
|
|
381
|
+
"description": "Owner seed for acceptance and appearance on the shared placement grid."
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"required": [
|
|
385
|
+
"label",
|
|
386
|
+
"ring"
|
|
387
|
+
],
|
|
388
|
+
"additionalProperties": false
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"exclusions": {
|
|
392
|
+
"default": [],
|
|
393
|
+
"type": "array",
|
|
394
|
+
"items": {
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {
|
|
397
|
+
"ring": {
|
|
398
|
+
"minItems": 3,
|
|
399
|
+
"type": "array",
|
|
400
|
+
"items": {
|
|
401
|
+
"minItems": 2,
|
|
402
|
+
"maxItems": 2,
|
|
403
|
+
"type": "array",
|
|
404
|
+
"items": {
|
|
405
|
+
"type": "number"
|
|
406
|
+
},
|
|
407
|
+
"description": "[x, z] in local meters."
|
|
408
|
+
},
|
|
409
|
+
"description": "Open ring of [x, z] points (no repeated closing point)."
|
|
410
|
+
},
|
|
411
|
+
"polyline": {
|
|
412
|
+
"minItems": 2,
|
|
413
|
+
"type": "array",
|
|
414
|
+
"items": {
|
|
415
|
+
"minItems": 2,
|
|
416
|
+
"maxItems": 2,
|
|
417
|
+
"type": "array",
|
|
418
|
+
"items": {
|
|
419
|
+
"type": "number"
|
|
420
|
+
},
|
|
421
|
+
"description": "[x, z] in local meters."
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"width": {
|
|
425
|
+
"type": "number",
|
|
426
|
+
"minimum": 0,
|
|
427
|
+
"description": "Polyline width, meters."
|
|
428
|
+
},
|
|
429
|
+
"radius": {
|
|
430
|
+
"type": "number",
|
|
431
|
+
"minimum": 0,
|
|
432
|
+
"description": "Clearance around the shape, meters."
|
|
433
|
+
},
|
|
434
|
+
"kind": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"enum": [
|
|
437
|
+
"roads",
|
|
438
|
+
"buildings",
|
|
439
|
+
"water"
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
"required": [
|
|
444
|
+
"radius"
|
|
445
|
+
],
|
|
446
|
+
"additionalProperties": false
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
"emitBounds": {
|
|
450
|
+
"minItems": 4,
|
|
451
|
+
"maxItems": 4,
|
|
452
|
+
"type": "array",
|
|
453
|
+
"items": {
|
|
454
|
+
"type": "number"
|
|
455
|
+
},
|
|
456
|
+
"description": "[minX, minZ, maxX, maxZ] local meters."
|
|
457
|
+
},
|
|
458
|
+
"frame": {
|
|
459
|
+
"type": "object",
|
|
460
|
+
"properties": {
|
|
461
|
+
"originX": {
|
|
462
|
+
"default": 0,
|
|
463
|
+
"type": "number"
|
|
464
|
+
},
|
|
465
|
+
"originZ": {
|
|
466
|
+
"default": 0,
|
|
467
|
+
"type": "number"
|
|
468
|
+
},
|
|
469
|
+
"unitsPerMeter": {
|
|
470
|
+
"default": 1,
|
|
471
|
+
"type": "number",
|
|
472
|
+
"exclusiveMinimum": 0
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"additionalProperties": false
|
|
476
|
+
},
|
|
477
|
+
"keep": {
|
|
478
|
+
"default": 1,
|
|
479
|
+
"type": "number",
|
|
480
|
+
"exclusiveMinimum": 0,
|
|
481
|
+
"maximum": 1,
|
|
482
|
+
"description": "Detail keep fraction in (0, 1]."
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": [
|
|
486
|
+
"polygons",
|
|
487
|
+
"emitBounds",
|
|
488
|
+
"frame"
|
|
489
|
+
],
|
|
490
|
+
"additionalProperties": false
|
|
491
|
+
},
|
|
492
|
+
"props": {
|
|
493
|
+
"type": "array",
|
|
494
|
+
"items": {
|
|
495
|
+
"type": "object",
|
|
496
|
+
"properties": {
|
|
497
|
+
"identity": {
|
|
498
|
+
"type": "string",
|
|
499
|
+
"minLength": 1
|
|
500
|
+
},
|
|
501
|
+
"model": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"pattern": "^(builtin:[a-z][a-z0-9_.]*|[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+)$"
|
|
504
|
+
},
|
|
505
|
+
"at": {
|
|
506
|
+
"type": "array",
|
|
507
|
+
"prefixItems": [
|
|
508
|
+
{
|
|
509
|
+
"type": "number"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"type": "number"
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"items": false,
|
|
516
|
+
"minItems": 2,
|
|
517
|
+
"maxItems": 2
|
|
518
|
+
},
|
|
519
|
+
"yaw": {
|
|
520
|
+
"type": "number"
|
|
521
|
+
},
|
|
522
|
+
"scale": {
|
|
523
|
+
"type": "array",
|
|
524
|
+
"prefixItems": [
|
|
525
|
+
{
|
|
526
|
+
"type": "number",
|
|
527
|
+
"exclusiveMinimum": 0
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"type": "number",
|
|
531
|
+
"exclusiveMinimum": 0
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"type": "number",
|
|
535
|
+
"exclusiveMinimum": 0
|
|
536
|
+
}
|
|
537
|
+
],
|
|
538
|
+
"items": false,
|
|
539
|
+
"minItems": 3,
|
|
540
|
+
"maxItems": 3
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"required": [
|
|
544
|
+
"identity",
|
|
545
|
+
"model",
|
|
546
|
+
"at"
|
|
547
|
+
],
|
|
548
|
+
"additionalProperties": false
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
"rules": {
|
|
552
|
+
"type": "array",
|
|
553
|
+
"items": {
|
|
554
|
+
"type": "object",
|
|
555
|
+
"properties": {
|
|
556
|
+
"when": {
|
|
557
|
+
"type": "object",
|
|
558
|
+
"properties": {
|
|
559
|
+
"class": {
|
|
560
|
+
"minItems": 1,
|
|
561
|
+
"type": "array",
|
|
562
|
+
"items": {
|
|
563
|
+
"type": "string",
|
|
564
|
+
"minLength": 1
|
|
565
|
+
},
|
|
566
|
+
"description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
|
|
567
|
+
},
|
|
568
|
+
"notClass": {
|
|
569
|
+
"minItems": 1,
|
|
570
|
+
"type": "array",
|
|
571
|
+
"items": {
|
|
572
|
+
"type": "string",
|
|
573
|
+
"minLength": 1
|
|
574
|
+
},
|
|
575
|
+
"description": "Reject when any label matches one of these words."
|
|
576
|
+
},
|
|
577
|
+
"contextClass": {
|
|
578
|
+
"minItems": 1,
|
|
579
|
+
"type": "array",
|
|
580
|
+
"items": {
|
|
581
|
+
"type": "string",
|
|
582
|
+
"minLength": 1
|
|
583
|
+
},
|
|
584
|
+
"description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
|
|
585
|
+
},
|
|
586
|
+
"notContextClass": {
|
|
587
|
+
"minItems": 1,
|
|
588
|
+
"type": "array",
|
|
589
|
+
"items": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"minLength": 1
|
|
592
|
+
},
|
|
593
|
+
"description": "Reject when the surrounding label matches."
|
|
594
|
+
},
|
|
595
|
+
"areaMin": {
|
|
596
|
+
"type": "number",
|
|
597
|
+
"minimum": 0,
|
|
598
|
+
"description": "Minimum footprint area in m²."
|
|
599
|
+
},
|
|
600
|
+
"areaMax": {
|
|
601
|
+
"type": "number",
|
|
602
|
+
"minimum": 0,
|
|
603
|
+
"description": "Maximum footprint area in m²."
|
|
604
|
+
},
|
|
605
|
+
"heightMin": {
|
|
606
|
+
"type": "number",
|
|
607
|
+
"minimum": 0,
|
|
608
|
+
"description": "Minimum known height in meters; never matches an unknown height."
|
|
609
|
+
},
|
|
610
|
+
"heightMax": {
|
|
611
|
+
"type": "number",
|
|
612
|
+
"minimum": 0,
|
|
613
|
+
"description": "Maximum known height in meters; never matches an unknown height."
|
|
614
|
+
},
|
|
615
|
+
"hasHeight": {
|
|
616
|
+
"type": "boolean",
|
|
617
|
+
"description": "Require (true) or forbid (false) a known source height."
|
|
618
|
+
},
|
|
619
|
+
"levelsMin": {
|
|
620
|
+
"type": "number",
|
|
621
|
+
"minimum": 0,
|
|
622
|
+
"description": "Minimum floor count; roof choices also use resolved estimates."
|
|
623
|
+
},
|
|
624
|
+
"levelsMax": {
|
|
625
|
+
"type": "number",
|
|
626
|
+
"minimum": 0,
|
|
627
|
+
"description": "Maximum floor count; roof choices also use resolved estimates."
|
|
628
|
+
},
|
|
629
|
+
"elongationMin": {
|
|
630
|
+
"type": "number",
|
|
631
|
+
"minimum": 1,
|
|
632
|
+
"description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
|
|
633
|
+
},
|
|
634
|
+
"elongationMax": {
|
|
635
|
+
"type": "number",
|
|
636
|
+
"minimum": 1,
|
|
637
|
+
"description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
|
|
638
|
+
},
|
|
639
|
+
"rectangularityMin": {
|
|
640
|
+
"type": "number",
|
|
641
|
+
"minimum": 0,
|
|
642
|
+
"maximum": 1,
|
|
643
|
+
"description": "Minimum area / (width * depth), 0..1."
|
|
644
|
+
},
|
|
645
|
+
"rectangularityMax": {
|
|
646
|
+
"type": "number",
|
|
647
|
+
"minimum": 0,
|
|
648
|
+
"maximum": 1,
|
|
649
|
+
"description": "Maximum area / (width * depth), 0..1."
|
|
650
|
+
},
|
|
651
|
+
"verticesMax": {
|
|
652
|
+
"type": "integer",
|
|
653
|
+
"minimum": 3,
|
|
654
|
+
"maximum": 9007199254740991,
|
|
655
|
+
"description": "Maximum outline vertex count after cleaning."
|
|
656
|
+
},
|
|
657
|
+
"holes": {
|
|
658
|
+
"type": "boolean",
|
|
659
|
+
"description": "Require (true) or forbid (false) holes (courtyards)."
|
|
660
|
+
},
|
|
661
|
+
"wingsMin": {
|
|
662
|
+
"type": "integer",
|
|
663
|
+
"minimum": 0,
|
|
664
|
+
"maximum": 9007199254740991,
|
|
665
|
+
"description": "Minimum roof wing count (archstyle rules only)."
|
|
666
|
+
},
|
|
667
|
+
"wingsMax": {
|
|
668
|
+
"type": "integer",
|
|
669
|
+
"minimum": 0,
|
|
670
|
+
"maximum": 9007199254740991,
|
|
671
|
+
"description": "Maximum roof wing count (archstyle rules only)."
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"additionalProperties": false,
|
|
675
|
+
"description": "Conditions; omit for a catch-all rule."
|
|
676
|
+
},
|
|
677
|
+
"style": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
680
|
+
"description": "Archstyle id to apply, e.g. 'molen.worldgen.pnw.house'."
|
|
681
|
+
},
|
|
682
|
+
"variants": {
|
|
683
|
+
"minItems": 1,
|
|
684
|
+
"maxItems": 120,
|
|
685
|
+
"type": "array",
|
|
686
|
+
"items": {
|
|
687
|
+
"type": "object",
|
|
688
|
+
"properties": {
|
|
689
|
+
"style": {
|
|
690
|
+
"type": "string",
|
|
691
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
|
|
692
|
+
},
|
|
693
|
+
"weight": {
|
|
694
|
+
"type": "number",
|
|
695
|
+
"exclusiveMinimum": 0
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"required": [
|
|
699
|
+
"style",
|
|
700
|
+
"weight"
|
|
701
|
+
],
|
|
702
|
+
"additionalProperties": false
|
|
703
|
+
},
|
|
704
|
+
"description": "Optional weighted styles sampled from stable building identity. Without identity, use style."
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"required": [
|
|
708
|
+
"style"
|
|
709
|
+
],
|
|
710
|
+
"additionalProperties": false
|
|
711
|
+
},
|
|
712
|
+
"description": "Style rules for this batch (before pack defaults)."
|
|
713
|
+
},
|
|
714
|
+
"fallbackStyle": {
|
|
715
|
+
"type": "string",
|
|
716
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
717
|
+
"description": "Archstyle when nothing matches."
|
|
718
|
+
},
|
|
719
|
+
"scatterId": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
|
|
722
|
+
"description": "Scatter rule set to use."
|
|
723
|
+
},
|
|
724
|
+
"tier": {
|
|
725
|
+
"default": 0,
|
|
726
|
+
"type": "integer",
|
|
727
|
+
"minimum": 0,
|
|
728
|
+
"maximum": 9007199254740991,
|
|
729
|
+
"description": "Detail tier to generate at (0 = full)."
|
|
730
|
+
},
|
|
731
|
+
"interiors": {
|
|
732
|
+
"type": "boolean",
|
|
733
|
+
"description": "Cut real ground-floor openings and emit lazy interior descriptors."
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
"required": [
|
|
737
|
+
"format",
|
|
738
|
+
"name",
|
|
739
|
+
"ground"
|
|
740
|
+
],
|
|
741
|
+
"additionalProperties": false
|
|
742
|
+
}
|
|
743
|
+
```
|