@bendyline/molen-tooling 0.0.11 → 0.0.13
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/dist/capture/harness.js +682 -293
- package/dist/capture/worldgen-preview.js +396 -298
- package/dist/cli.mjs +2 -2
- package/dist/docs-src/guide/3d-art-guidelines.md +34 -10
- package/dist/docs-src/guide/3d-model-assets.md +27 -2
- package/dist/docs-src/guide/adaptive-performance.md +42 -7
- package/dist/docs-src/guide/aircraft.md +249 -27
- package/dist/docs-src/guide/ambient-life.md +28 -5
- package/dist/docs-src/guide/audio.md +19 -5
- package/dist/docs-src/guide/boats.md +9 -4
- package/dist/docs-src/guide/boost-mode.md +64 -0
- package/dist/docs-src/guide/building-interiors.md +7 -2
- package/dist/docs-src/guide/determinism.md +1 -1
- package/dist/docs-src/guide/dioramas.md +17 -4
- package/dist/docs-src/guide/earth-view.md +225 -24
- package/dist/docs-src/guide/entities.md +87 -5
- package/dist/docs-src/guide/figures.md +31 -7
- package/dist/docs-src/guide/graphics-performance.md +203 -24
- package/dist/docs-src/guide/input.md +34 -1
- package/dist/docs-src/guide/liveries.md +167 -0
- package/dist/docs-src/guide/livery-catalog.md +2659 -0
- package/dist/docs-src/guide/livery-gallery.md +2684 -0
- package/dist/docs-src/guide/medium-fi.md +279 -27
- package/dist/docs-src/guide/navigation.md +5 -2
- package/dist/docs-src/guide/night-lighting.md +96 -0
- package/dist/docs-src/guide/project.md +6 -1
- package/dist/docs-src/guide/recognizable-places.md +6 -0
- package/dist/docs-src/guide/regional-fleets.md +94 -0
- package/dist/docs-src/guide/regional-world.md +19 -6
- package/dist/docs-src/guide/rendering-backends.md +6 -2
- package/dist/docs-src/guide/sky.md +36 -3
- package/dist/docs-src/guide/structure-library.md +4 -1
- package/dist/docs-src/guide/surface-rendering.md +276 -2
- package/dist/docs-src/guide/terrain.md +43 -0
- package/dist/docs-src/guide/typography.md +105 -0
- package/dist/docs-src/guide/vehicle-interiors.md +169 -9
- package/dist/docs-src/guide/vehicles.md +26 -3
- package/dist/docs-src/guide/weather.md +15 -8
- package/dist/docs-src/guide/worldgen.md +100 -13
- package/dist/docs-src/llms.txt +9 -1
- package/dist/docs-src/schemas/README.md +3 -0
- package/dist/docs-src/schemas/archstyle.md +65 -0
- package/dist/docs-src/schemas/components.md +2009 -213
- package/dist/docs-src/schemas/fleet-catalog.md +113 -0
- package/dist/docs-src/schemas/landmark.md +10 -0
- package/dist/docs-src/schemas/matgraph.md +11 -1
- package/dist/docs-src/schemas/pack-source.md +11 -1
- package/dist/docs-src/schemas/pack.md +1 -1
- package/dist/docs-src/schemas/project.md +1 -1
- package/dist/docs-src/schemas/regional-catalog.md +39 -0
- package/dist/docs-src/schemas/scatter.md +36 -0
- package/dist/docs-src/schemas/structure-placement-data.md +753 -0
- package/dist/docs-src/schemas/structure-placement-index.md +87 -0
- package/dist/docs-src/schemas/structure-placements.md +274 -0
- package/dist/docs-src/schemas/transport-network.md +8 -0
- package/dist/docs-src/schemas/types.md +1 -1
- package/dist/docs-src/schemas/worldgen-batch.md +145 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +1 -1
- package/dist/{mcp-BbxqqnD1.mjs → mcp-BXaK46X-.mjs} +1 -1
- package/dist/{ops-b4Pag8U-.mjs → ops-Cm7WNvb9.mjs} +55 -22
- package/dist/templates/city-courier/gen/molen-types.ts +240 -17
- package/dist/templates/city-courier/scripts/molen-scripts.d.ts +240 -17
- package/dist/templates/figures-gallery/test/headless.test.ts +2 -1
- package/dist/templates/index.json +17 -17
- package/dist/templates/skybound/gen/molen-types.ts +240 -17
- package/dist/templates/skybound/scripts/molen-scripts.d.ts +240 -17
- package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +240 -17
- package/dist/templates/top-down-arena/src/gen/molen-types.ts +240 -17
- package/package.json +13 -13
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Regional structure placement directory (`molen/structure-placement-index@1`)
|
|
2
|
+
|
|
3
|
+
Spatial coverage and pack paths for lazily loaded placement regions.
|
|
4
|
+
|
|
5
|
+
## Example
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"format": "molen/structure-placement-index@1",
|
|
10
|
+
"shards": {},
|
|
11
|
+
"cells": {}
|
|
12
|
+
}
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## JSON Schema
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"format": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"const": "molen/structure-placement-index@1"
|
|
25
|
+
},
|
|
26
|
+
"shards": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"propertyNames": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"pattern": "^[0123456789bcdefghjkmnpqrstuvwxyz]{2,12}$"
|
|
31
|
+
},
|
|
32
|
+
"additionalProperties": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"path": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.?(?:\\/|$)).+\\.json$"
|
|
38
|
+
},
|
|
39
|
+
"bytes": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"exclusiveMinimum": 0,
|
|
42
|
+
"maximum": 9007199254740991
|
|
43
|
+
},
|
|
44
|
+
"count": {
|
|
45
|
+
"type": "integer",
|
|
46
|
+
"exclusiveMinimum": 0,
|
|
47
|
+
"maximum": 9007199254740991
|
|
48
|
+
},
|
|
49
|
+
"minLevel": {
|
|
50
|
+
"type": "integer",
|
|
51
|
+
"minimum": 0,
|
|
52
|
+
"maximum": 26
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"path",
|
|
57
|
+
"bytes",
|
|
58
|
+
"count",
|
|
59
|
+
"minLevel"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"cells": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"propertyNames": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"pattern": "^[0123456789bcdefghjkmnpqrstuvwxyz]{2}$"
|
|
69
|
+
},
|
|
70
|
+
"additionalProperties": {
|
|
71
|
+
"minItems": 1,
|
|
72
|
+
"type": "array",
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"pattern": "^[0123456789bcdefghjkmnpqrstuvwxyz]{2,12}$"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"format",
|
|
82
|
+
"shards",
|
|
83
|
+
"cells"
|
|
84
|
+
],
|
|
85
|
+
"additionalProperties": false
|
|
86
|
+
}
|
|
87
|
+
```
|
|
@@ -218,6 +218,67 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
|
|
|
218
218
|
"minItems": 2,
|
|
219
219
|
"maxItems": 2
|
|
220
220
|
},
|
|
221
|
+
"deckProfile": {
|
|
222
|
+
"minItems": 2,
|
|
223
|
+
"maxItems": 512,
|
|
224
|
+
"type": "array",
|
|
225
|
+
"items": {
|
|
226
|
+
"type": "array",
|
|
227
|
+
"prefixItems": [
|
|
228
|
+
{
|
|
229
|
+
"type": "number"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"type": "number"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "number"
|
|
236
|
+
}
|
|
237
|
+
],
|
|
238
|
+
"items": false,
|
|
239
|
+
"minItems": 3,
|
|
240
|
+
"maxItems": 3
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"includeTransverseBridges": {
|
|
244
|
+
"type": "boolean"
|
|
245
|
+
},
|
|
246
|
+
"deckEndpoints": {
|
|
247
|
+
"type": "array",
|
|
248
|
+
"prefixItems": [
|
|
249
|
+
{
|
|
250
|
+
"type": "array",
|
|
251
|
+
"prefixItems": [
|
|
252
|
+
{
|
|
253
|
+
"type": "number"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"type": "number"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"items": false,
|
|
260
|
+
"minItems": 2,
|
|
261
|
+
"maxItems": 2
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "array",
|
|
265
|
+
"prefixItems": [
|
|
266
|
+
{
|
|
267
|
+
"type": "number"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "number"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"items": false,
|
|
274
|
+
"minItems": 2,
|
|
275
|
+
"maxItems": 2
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"items": false,
|
|
279
|
+
"minItems": 2,
|
|
280
|
+
"maxItems": 2
|
|
281
|
+
},
|
|
221
282
|
"includeConnectedApproaches": {
|
|
222
283
|
"type": "boolean"
|
|
223
284
|
}
|
|
@@ -231,9 +292,101 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
|
|
|
231
292
|
"replaceFootprint": {
|
|
232
293
|
"type": "boolean"
|
|
233
294
|
},
|
|
295
|
+
"buildingCutout": {
|
|
296
|
+
"type": "object",
|
|
297
|
+
"properties": {
|
|
298
|
+
"minimumCoverage": {
|
|
299
|
+
"type": "number",
|
|
300
|
+
"exclusiveMinimum": 0,
|
|
301
|
+
"maximum": 1
|
|
302
|
+
},
|
|
303
|
+
"outline": {
|
|
304
|
+
"minItems": 3,
|
|
305
|
+
"maxItems": 512,
|
|
306
|
+
"type": "array",
|
|
307
|
+
"items": {
|
|
308
|
+
"type": "array",
|
|
309
|
+
"prefixItems": [
|
|
310
|
+
{
|
|
311
|
+
"type": "number"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"type": "number"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"items": false,
|
|
318
|
+
"minItems": 2,
|
|
319
|
+
"maxItems": 2
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"outlines": {
|
|
323
|
+
"minItems": 1,
|
|
324
|
+
"maxItems": 64,
|
|
325
|
+
"type": "array",
|
|
326
|
+
"items": {
|
|
327
|
+
"minItems": 3,
|
|
328
|
+
"maxItems": 512,
|
|
329
|
+
"type": "array",
|
|
330
|
+
"items": {
|
|
331
|
+
"type": "array",
|
|
332
|
+
"prefixItems": [
|
|
333
|
+
{
|
|
334
|
+
"type": "number"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"type": "number"
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
"items": false,
|
|
341
|
+
"minItems": 2,
|
|
342
|
+
"maxItems": 2
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"basis": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"minLength": 1
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"required": [
|
|
352
|
+
"outline",
|
|
353
|
+
"basis"
|
|
354
|
+
],
|
|
355
|
+
"additionalProperties": false
|
|
356
|
+
},
|
|
234
357
|
"groundCutout": {
|
|
235
358
|
"type": "object",
|
|
236
359
|
"properties": {
|
|
360
|
+
"preservePaving": {
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
},
|
|
363
|
+
"minHeight": {
|
|
364
|
+
"type": "number"
|
|
365
|
+
},
|
|
366
|
+
"pavingOutlines": {
|
|
367
|
+
"minItems": 1,
|
|
368
|
+
"maxItems": 64,
|
|
369
|
+
"type": "array",
|
|
370
|
+
"items": {
|
|
371
|
+
"minItems": 3,
|
|
372
|
+
"maxItems": 512,
|
|
373
|
+
"type": "array",
|
|
374
|
+
"items": {
|
|
375
|
+
"type": "array",
|
|
376
|
+
"prefixItems": [
|
|
377
|
+
{
|
|
378
|
+
"type": "number"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"type": "number"
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"items": false,
|
|
385
|
+
"minItems": 2,
|
|
386
|
+
"maxItems": 2
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
237
390
|
"outline": {
|
|
238
391
|
"minItems": 3,
|
|
239
392
|
"maxItems": 512,
|
|
@@ -253,6 +406,53 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
|
|
|
253
406
|
"maxItems": 2
|
|
254
407
|
}
|
|
255
408
|
},
|
|
409
|
+
"outlines": {
|
|
410
|
+
"minItems": 1,
|
|
411
|
+
"maxItems": 64,
|
|
412
|
+
"type": "array",
|
|
413
|
+
"items": {
|
|
414
|
+
"minItems": 3,
|
|
415
|
+
"maxItems": 512,
|
|
416
|
+
"type": "array",
|
|
417
|
+
"items": {
|
|
418
|
+
"type": "array",
|
|
419
|
+
"prefixItems": [
|
|
420
|
+
{
|
|
421
|
+
"type": "number"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"type": "number"
|
|
425
|
+
}
|
|
426
|
+
],
|
|
427
|
+
"items": false,
|
|
428
|
+
"minItems": 2,
|
|
429
|
+
"maxItems": 2
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
"additionalOutlines": {
|
|
434
|
+
"maxItems": 63,
|
|
435
|
+
"type": "array",
|
|
436
|
+
"items": {
|
|
437
|
+
"minItems": 3,
|
|
438
|
+
"maxItems": 512,
|
|
439
|
+
"type": "array",
|
|
440
|
+
"items": {
|
|
441
|
+
"type": "array",
|
|
442
|
+
"prefixItems": [
|
|
443
|
+
{
|
|
444
|
+
"type": "number"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"type": "number"
|
|
448
|
+
}
|
|
449
|
+
],
|
|
450
|
+
"items": false,
|
|
451
|
+
"minItems": 2,
|
|
452
|
+
"maxItems": 2
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
256
456
|
"basis": {
|
|
257
457
|
"type": "string",
|
|
258
458
|
"minLength": 1
|
|
@@ -264,6 +464,44 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
|
|
|
264
464
|
],
|
|
265
465
|
"additionalProperties": false
|
|
266
466
|
},
|
|
467
|
+
"waterCutout": {
|
|
468
|
+
"type": "object",
|
|
469
|
+
"properties": {
|
|
470
|
+
"outlines": {
|
|
471
|
+
"minItems": 1,
|
|
472
|
+
"maxItems": 16,
|
|
473
|
+
"type": "array",
|
|
474
|
+
"items": {
|
|
475
|
+
"minItems": 3,
|
|
476
|
+
"maxItems": 512,
|
|
477
|
+
"type": "array",
|
|
478
|
+
"items": {
|
|
479
|
+
"type": "array",
|
|
480
|
+
"prefixItems": [
|
|
481
|
+
{
|
|
482
|
+
"type": "number"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"type": "number"
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"items": false,
|
|
489
|
+
"minItems": 2,
|
|
490
|
+
"maxItems": 2
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"basis": {
|
|
495
|
+
"type": "string",
|
|
496
|
+
"minLength": 1
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"required": [
|
|
500
|
+
"outlines",
|
|
501
|
+
"basis"
|
|
502
|
+
],
|
|
503
|
+
"additionalProperties": false
|
|
504
|
+
},
|
|
267
505
|
"mapIdentity": {
|
|
268
506
|
"type": "object",
|
|
269
507
|
"properties": {
|
|
@@ -399,6 +637,14 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
|
|
|
399
637
|
"minLength": 1
|
|
400
638
|
}
|
|
401
639
|
},
|
|
640
|
+
"names": {
|
|
641
|
+
"minItems": 1,
|
|
642
|
+
"type": "array",
|
|
643
|
+
"items": {
|
|
644
|
+
"type": "string",
|
|
645
|
+
"minLength": 1
|
|
646
|
+
}
|
|
647
|
+
},
|
|
402
648
|
"tags": {
|
|
403
649
|
"type": "object",
|
|
404
650
|
"propertyNames": {
|
|
@@ -437,6 +683,34 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
|
|
|
437
683
|
"minItems": 3,
|
|
438
684
|
"maxItems": 3
|
|
439
685
|
},
|
|
686
|
+
"bounds": {
|
|
687
|
+
"type": "array",
|
|
688
|
+
"prefixItems": [
|
|
689
|
+
{
|
|
690
|
+
"type": "number",
|
|
691
|
+
"minimum": -180,
|
|
692
|
+
"maximum": 180
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"type": "number",
|
|
696
|
+
"minimum": -90,
|
|
697
|
+
"maximum": 90
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"type": "number",
|
|
701
|
+
"minimum": -180,
|
|
702
|
+
"maximum": 180
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"type": "number",
|
|
706
|
+
"minimum": -90,
|
|
707
|
+
"maximum": 90
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
"items": false,
|
|
711
|
+
"minItems": 4,
|
|
712
|
+
"maxItems": 4
|
|
713
|
+
},
|
|
440
714
|
"orientation": {
|
|
441
715
|
"type": "string",
|
|
442
716
|
"enum": [
|
|
@@ -148,6 +148,14 @@ Roads, railways and paths ambient NPCs move on, for scenes without streamed map
|
|
|
148
148
|
"items": {
|
|
149
149
|
"type": "object",
|
|
150
150
|
"properties": {
|
|
151
|
+
"drivingSide": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"enum": [
|
|
154
|
+
"right",
|
|
155
|
+
"left"
|
|
156
|
+
],
|
|
157
|
+
"description": "Overrides the document road driving side."
|
|
158
|
+
},
|
|
151
159
|
"id": {
|
|
152
160
|
"type": "string",
|
|
153
161
|
"minLength": 1,
|
|
@@ -113,7 +113,7 @@ Namespaced entity types with doc strings, default components, inheritance, and a
|
|
|
113
113
|
"type": "array",
|
|
114
114
|
"items": {
|
|
115
115
|
"type": "string",
|
|
116
|
-
"pattern": "^[a-z][a-z0-9_]*(\\.[a-
|
|
116
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z0-9][a-z0-9_]*)*$"
|
|
117
117
|
},
|
|
118
118
|
"description": "Project asset ids this type references (e.g. its gltf model)."
|
|
119
119
|
},
|
|
@@ -133,6 +133,151 @@ A serialized generation request: labeled building outlines, optional labeled pol
|
|
|
133
133
|
"items": {
|
|
134
134
|
"type": "object",
|
|
135
135
|
"properties": {
|
|
136
|
+
"yard": {
|
|
137
|
+
"description": "Lot driveway and open fence segments, in local meters; attach once per house.",
|
|
138
|
+
"type": "object",
|
|
139
|
+
"properties": {
|
|
140
|
+
"driveway": {
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"from": {
|
|
144
|
+
"minItems": 2,
|
|
145
|
+
"maxItems": 2,
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "number"
|
|
149
|
+
},
|
|
150
|
+
"description": "[x, z] in local meters."
|
|
151
|
+
},
|
|
152
|
+
"to": {
|
|
153
|
+
"minItems": 2,
|
|
154
|
+
"maxItems": 2,
|
|
155
|
+
"type": "array",
|
|
156
|
+
"items": {
|
|
157
|
+
"type": "number"
|
|
158
|
+
},
|
|
159
|
+
"description": "[x, z] in local meters."
|
|
160
|
+
},
|
|
161
|
+
"width": {
|
|
162
|
+
"type": "number",
|
|
163
|
+
"exclusiveMinimum": 0,
|
|
164
|
+
"maximum": 12
|
|
165
|
+
},
|
|
166
|
+
"lift": {
|
|
167
|
+
"type": "number",
|
|
168
|
+
"minimum": 0,
|
|
169
|
+
"maximum": 1
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"required": [
|
|
173
|
+
"from",
|
|
174
|
+
"to",
|
|
175
|
+
"width"
|
|
176
|
+
],
|
|
177
|
+
"additionalProperties": false
|
|
178
|
+
},
|
|
179
|
+
"fence": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"kind": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"enum": [
|
|
185
|
+
"timber",
|
|
186
|
+
"masonry",
|
|
187
|
+
"rail"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"height": {
|
|
191
|
+
"type": "number",
|
|
192
|
+
"minimum": 0.3,
|
|
193
|
+
"maximum": 2
|
|
194
|
+
},
|
|
195
|
+
"segments": {
|
|
196
|
+
"maxItems": 64,
|
|
197
|
+
"type": "array",
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "array",
|
|
200
|
+
"prefixItems": [
|
|
201
|
+
{
|
|
202
|
+
"minItems": 2,
|
|
203
|
+
"maxItems": 2,
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"type": "number"
|
|
207
|
+
},
|
|
208
|
+
"description": "[x, z] in local meters."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"minItems": 2,
|
|
212
|
+
"maxItems": 2,
|
|
213
|
+
"type": "array",
|
|
214
|
+
"items": {
|
|
215
|
+
"type": "number"
|
|
216
|
+
},
|
|
217
|
+
"description": "[x, z] in local meters."
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"items": false,
|
|
221
|
+
"minItems": 2,
|
|
222
|
+
"maxItems": 2
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"kind",
|
|
228
|
+
"height",
|
|
229
|
+
"segments"
|
|
230
|
+
],
|
|
231
|
+
"additionalProperties": false
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"additionalProperties": false
|
|
235
|
+
},
|
|
236
|
+
"priority": {
|
|
237
|
+
"type": "number"
|
|
238
|
+
},
|
|
239
|
+
"access": {
|
|
240
|
+
"type": "object",
|
|
241
|
+
"properties": {
|
|
242
|
+
"from": {
|
|
243
|
+
"minItems": 2,
|
|
244
|
+
"maxItems": 2,
|
|
245
|
+
"type": "array",
|
|
246
|
+
"items": {
|
|
247
|
+
"type": "number"
|
|
248
|
+
},
|
|
249
|
+
"description": "[x, z] in local meters."
|
|
250
|
+
},
|
|
251
|
+
"to": {
|
|
252
|
+
"minItems": 2,
|
|
253
|
+
"maxItems": 2,
|
|
254
|
+
"type": "array",
|
|
255
|
+
"items": {
|
|
256
|
+
"type": "number"
|
|
257
|
+
},
|
|
258
|
+
"description": "[x, z] in local meters."
|
|
259
|
+
},
|
|
260
|
+
"width": {
|
|
261
|
+
"type": "number",
|
|
262
|
+
"exclusiveMinimum": 0,
|
|
263
|
+
"maximum": 12
|
|
264
|
+
},
|
|
265
|
+
"lift": {
|
|
266
|
+
"type": "number",
|
|
267
|
+
"minimum": 0,
|
|
268
|
+
"maximum": 1
|
|
269
|
+
},
|
|
270
|
+
"garage": {
|
|
271
|
+
"type": "boolean"
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"required": [
|
|
275
|
+
"from",
|
|
276
|
+
"to",
|
|
277
|
+
"width"
|
|
278
|
+
],
|
|
279
|
+
"additionalProperties": false
|
|
280
|
+
},
|
|
136
281
|
"identity": {
|
|
137
282
|
"type": "string",
|
|
138
283
|
"minLength": 1,
|
package/dist/index.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ import { ResolvedTypes, World, WorldSetup } from "@bendyline/molen-kernel";
|
|
|
7
7
|
import { PackSet } from "@bendyline/molen-pack";
|
|
8
8
|
import { AssertionResult, ComponentDiff, RecordedEvent } from "@bendyline/molen-kernel/testing";
|
|
9
9
|
import { PMTiles } from "pmtiles";
|
|
10
|
+
import { FontLibrary } from "@bendyline/molen-materials/text";
|
|
10
11
|
//#region src/frame-stats.d.ts
|
|
11
12
|
/** A rectangle as fractions of the frame (0 to 1), so a check reads the same at any size. */
|
|
12
13
|
interface FrameRegion {
|
|
@@ -1231,6 +1232,7 @@ declare function bakeWorldgen(input: WorldgenBakeInput): Promise<WorldgenBakeOut
|
|
|
1231
1232
|
//#endregion
|
|
1232
1233
|
//#region src/ops/worldgen-pack.d.ts
|
|
1233
1234
|
interface LoadedStylePackFiles {
|
|
1235
|
+
fonts?: FontLibrary;
|
|
1234
1236
|
pack: ResolvedStylePack;
|
|
1235
1237
|
/** Directory every pack path resolves against. */
|
|
1236
1238
|
dir: string;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as inspectContentPack, B as searchDocs, C as checkTypesOp, D as buildContentPack, E as reserveNamespace, G as schemaToTsType, H as describeOps, L as exportFrames, N as generateTypes, O as extractContentPack, P as renderTypesModule, R as driveScene, S as rasterizeMaterial, T as projectInfo, U as formatOp, V as OPS_CATALOG, W as checkScripts, X as stageAssets, Y as ASSET_INDEX_FILE, Z as screenshotAsset, a as lineupBatchDoc, at as findProjectFile, b as diffSnapshots, c as validateAsset, ct as loadSetupLike, d as runSimulation, dt as playExperience, et as packAsset, f as screenshotScene, ft as registerExperiencePlaySchema, g as listSchemasOp, h as listComponentsOp, i as bakeWorldgen, it as importAsset, j as verifyContentPack, k as fetchContentPack, l as applyUvPaintOp, lt as updateProjectFile, m as getSchemaOp, n as worldgenStats, nt as listAssets, o as loadStylePackFromDisk, ot as loadProject, p as getComponentOp, r as previewWorldgen, rt as assetFileIndex, s as simWatch, st as loadSceneDocument, tt as inspectAsset, u as testTypes, ut as parseExperiencePlayScenario, v as scaffoldExperience, w as listTypes, x as runReplayFile, y as listTemplates, z as locateDocsRoot } from "./ops-
|
|
1
|
+
import { A as inspectContentPack, B as searchDocs, C as checkTypesOp, D as buildContentPack, E as reserveNamespace, G as schemaToTsType, H as describeOps, L as exportFrames, N as generateTypes, O as extractContentPack, P as renderTypesModule, R as driveScene, S as rasterizeMaterial, T as projectInfo, U as formatOp, V as OPS_CATALOG, W as checkScripts, X as stageAssets, Y as ASSET_INDEX_FILE, Z as screenshotAsset, a as lineupBatchDoc, at as findProjectFile, b as diffSnapshots, c as validateAsset, ct as loadSetupLike, d as runSimulation, dt as playExperience, et as packAsset, f as screenshotScene, ft as registerExperiencePlaySchema, g as listSchemasOp, h as listComponentsOp, i as bakeWorldgen, it as importAsset, j as verifyContentPack, k as fetchContentPack, l as applyUvPaintOp, lt as updateProjectFile, m as getSchemaOp, n as worldgenStats, nt as listAssets, o as loadStylePackFromDisk, ot as loadProject, p as getComponentOp, r as previewWorldgen, rt as assetFileIndex, s as simWatch, st as loadSceneDocument, tt as inspectAsset, u as testTypes, ut as parseExperiencePlayScenario, v as scaffoldExperience, w as listTypes, x as runReplayFile, y as listTemplates, z as locateDocsRoot } from "./ops-Cm7WNvb9.mjs";
|
|
2
2
|
import { access, copyFile, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
3
3
|
import { PNG } from "pngjs";
|
|
4
4
|
import { dirname } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as formatPacked, A as inspectContentPack, B as searchDocs, C as checkTypesOp, D as buildContentPack, E as reserveNamespace, F as previewFigure, H as describeOps, I as listFigurePresets, J as checkSoundbank, K as planAudio, L as exportFrames, M as bakeNetwork, N as generateTypes, O as extractContentPack, R as driveScene, S as rasterizeMaterial, T as projectInfo, U as formatOp, W as checkScripts, X as stageAssets, Z as screenshotAsset, _ as loadComponentRegistry, b as diffSnapshots, c as validateAsset, d as runSimulation, dt as playExperience, et as packAsset, f as screenshotScene, g as listSchemasOp, h as listComponentsOp, i as bakeWorldgen, it as importAsset, j as verifyContentPack, k as fetchContentPack, l as applyUvPaintOp, m as getSchemaOp, n as worldgenStats, nt as listAssets, p as getComponentOp, q as importSound, r as previewWorldgen, tt as inspectAsset, u as testTypes, v as scaffoldExperience, w as listTypes, x as runReplayFile, y as listTemplates } from "./ops-
|
|
1
|
+
import { $ as formatPacked, A as inspectContentPack, B as searchDocs, C as checkTypesOp, D as buildContentPack, E as reserveNamespace, F as previewFigure, H as describeOps, I as listFigurePresets, J as checkSoundbank, K as planAudio, L as exportFrames, M as bakeNetwork, N as generateTypes, O as extractContentPack, R as driveScene, S as rasterizeMaterial, T as projectInfo, U as formatOp, W as checkScripts, X as stageAssets, Z as screenshotAsset, _ as loadComponentRegistry, b as diffSnapshots, c as validateAsset, d as runSimulation, dt as playExperience, et as packAsset, f as screenshotScene, g as listSchemasOp, h as listComponentsOp, i as bakeWorldgen, it as importAsset, j as verifyContentPack, k as fetchContentPack, l as applyUvPaintOp, m as getSchemaOp, n as worldgenStats, nt as listAssets, p as getComponentOp, q as importSound, r as previewWorldgen, tt as inspectAsset, u as testTypes, v as scaffoldExperience, w as listTypes, x as runReplayFile, y as listTemplates } from "./ops-Cm7WNvb9.mjs";
|
|
2
2
|
import { mkdtemp, readFile, rm } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { z } from "zod";
|