pelican-engine 0.3.15 → 0.3.16
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/AGENTS.md +16 -3
- package/distribution.json +12 -12
- package/docs/STATUS.md +2 -2
- package/docs/api/REFERENCE.md +113 -91
- package/docs/api/index.json +111 -93
- package/docs/npm/GAME-AUTHOR.md +16 -3
- package/engine.manifest.json +1 -1
- package/lib/sdk/index.d.ts +18 -2
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +11 -3
- package/lib/simulation/rope.js +114 -5
- package/package.json +1 -1
package/docs/api/index.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "pelican.api-index",
|
|
3
3
|
"version": 1,
|
|
4
|
-
"engineVersion": "0.3.
|
|
4
|
+
"engineVersion": "0.3.16",
|
|
5
5
|
"entry": "pelican-engine",
|
|
6
6
|
"source": "packages/sdk/src/index.ts",
|
|
7
7
|
"symbols": [
|
|
8
8
|
{
|
|
9
9
|
"name": "SDK_VERSION",
|
|
10
10
|
"kind": "constant",
|
|
11
|
-
"signature": "SDK_VERSION = \"0.3.
|
|
11
|
+
"signature": "SDK_VERSION = \"0.3.16\"",
|
|
12
12
|
"line": 2
|
|
13
13
|
},
|
|
14
14
|
{
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
{
|
|
241
241
|
"name": "RopeDefinition",
|
|
242
242
|
"kind": "InterfaceDeclaration",
|
|
243
|
-
"signature": "export interface RopeDefinition {\n id: string;\n points: readonly Vec3[];\n /** Kilograms per particle, positive and at most 1e6. */\n mass: number;\n radius?: number;\n /** Defaults to the host interval; an explicit value must exactly match it. */\n fixedDt?: number;\n /** When true, step once after each physics phase; defaults to false (manual stepping). */\n autoStep?: boolean;\n /** Automatically sample and react to existing dynamic, non-trigger sphere bodies. Requires autoStep. */\n bodyColliders?: readonly RopeBodyCollider[];\n /** Optional segmented presentation using an already-declared material id. */\n visual?: RopeVisualOptions;\n substeps?: number;\n iterations?: number;\n damping?: number;\n gravity?: Vec3;\n anchors?: readonly { index: number; position: Vec3 }[];\n}",
|
|
243
|
+
"signature": "export interface RopeDefinition {\n id: string;\n points: readonly Vec3[];\n /** Kilograms per particle, positive and at most 1e6. */\n mass: number;\n radius?: number;\n /** Defaults to the host interval; an explicit value must exactly match it. */\n fixedDt?: number;\n /** When true, step once after each physics phase; defaults to false (manual stepping). */\n autoStep?: boolean;\n /** Automatically sample and react to existing dynamic, non-trigger sphere bodies. Requires autoStep. */\n bodyColliders?: readonly RopeBodyCollider[];\n /** Resolve sphere contacts on segment interiors; defaults to true for new ropes. */\n segmentCollisions?: boolean;\n /** Optional segmented presentation using an already-declared material id. */\n visual?: RopeVisualOptions;\n substeps?: number;\n iterations?: number;\n damping?: number;\n gravity?: Vec3;\n anchors?: readonly { index: number; position: Vec3 }[];\n}",
|
|
244
244
|
"line": 146,
|
|
245
245
|
"fields": [
|
|
246
246
|
"id",
|
|
@@ -250,6 +250,7 @@
|
|
|
250
250
|
"fixedDt",
|
|
251
251
|
"autoStep",
|
|
252
252
|
"bodyColliders",
|
|
253
|
+
"segmentCollisions",
|
|
253
254
|
"visual",
|
|
254
255
|
"substeps",
|
|
255
256
|
"iterations",
|
|
@@ -262,7 +263,7 @@
|
|
|
262
263
|
"name": "RopeContact",
|
|
263
264
|
"kind": "InterfaceDeclaration",
|
|
264
265
|
"signature": "export interface RopeContact {\n tick: number; particle: number; colliderId: string; penetration: number;\n /** Opposite of particle contact impulses, N·s; absent in older snapshots. */\n reactionImpulse?: Vec3;\n /** Angular impulse about the world origin; absent in older snapshots. */\n reactionAngularImpulse?: Vec3;\n}",
|
|
265
|
-
"line":
|
|
266
|
+
"line": 169,
|
|
266
267
|
"fields": [
|
|
267
268
|
"tick",
|
|
268
269
|
"particle",
|
|
@@ -272,19 +273,36 @@
|
|
|
272
273
|
"reactionAngularImpulse"
|
|
273
274
|
]
|
|
274
275
|
},
|
|
276
|
+
{
|
|
277
|
+
"name": "RopeSegmentContact",
|
|
278
|
+
"kind": "InterfaceDeclaration",
|
|
279
|
+
"signature": "export interface RopeSegmentContact {\n tick: number;\n /** Zero-based index of the first endpoint; the second is segment + 1. */\n segment: number;\n colliderId: string;\n /** Last closest-point fraction from the first endpoint toward the second. */\n fraction: number;\n penetration: number;\n reactionImpulse?: Vec3;\n reactionAngularImpulse?: Vec3;\n}",
|
|
280
|
+
"line": 177,
|
|
281
|
+
"fields": [
|
|
282
|
+
"tick",
|
|
283
|
+
"segment",
|
|
284
|
+
"colliderId",
|
|
285
|
+
"fraction",
|
|
286
|
+
"penetration",
|
|
287
|
+
"reactionImpulse",
|
|
288
|
+
"reactionAngularImpulse"
|
|
289
|
+
]
|
|
290
|
+
},
|
|
275
291
|
{
|
|
276
292
|
"name": "RopeState",
|
|
277
293
|
"kind": "InterfaceDeclaration",
|
|
278
|
-
"signature": "export interface RopeState {\n tick: number; simulatedSeconds: number; disposed: boolean;\n positions: Vec3[]; velocities: Vec3[];\n anchors: { index: number; position: Vec3 }[];\n contacts: RopeContact[];\n maxDistanceError: number;\n resources: { particles: number; constraints: number; anchors: number; colliders: number };\n}",
|
|
279
|
-
"line":
|
|
294
|
+
"signature": "export interface RopeState {\n tick: number; simulatedSeconds: number; disposed: boolean;\n segmentCollisions: boolean;\n positions: Vec3[]; velocities: Vec3[];\n anchors: { index: number; position: Vec3 }[];\n contacts: RopeContact[];\n segmentContacts: RopeSegmentContact[];\n maxDistanceError: number;\n resources: { particles: number; constraints: number; anchors: number; colliders: number };\n}",
|
|
295
|
+
"line": 188,
|
|
280
296
|
"fields": [
|
|
281
297
|
"tick",
|
|
282
298
|
"simulatedSeconds",
|
|
283
299
|
"disposed",
|
|
300
|
+
"segmentCollisions",
|
|
284
301
|
"positions",
|
|
285
302
|
"velocities",
|
|
286
303
|
"anchors",
|
|
287
304
|
"contacts",
|
|
305
|
+
"segmentContacts",
|
|
288
306
|
"maxDistanceError",
|
|
289
307
|
"resources"
|
|
290
308
|
]
|
|
@@ -293,7 +311,7 @@
|
|
|
293
311
|
"name": "RopeService",
|
|
294
312
|
"kind": "InterfaceDeclaration",
|
|
295
313
|
"signature": "export interface RopeService {\n create(definition: RopeDefinition): void;\n /** Explicit ticks for manual ropes only. Auto-stepped ropes reject this call. A failed batch leaves the rope unchanged. */\n step(id: string, ticks?: number): RopeState;\n inspect(id: string): RopeState;\n /** Detached visual descriptions, sorted by rope id; empty when no visuals are requested. */\n visuals(): readonly RopeVisualState[];\n setColliders(id: string, colliders: readonly RopeCollider[]): void;\n setAnchor(id: string, index: number, position: Vec3): void;\n releaseAnchor(id: string, index: number): void;\n applyForce(id: string, index: number, force: Vec3): void;\n applyImpulse(id: string, index: number, impulse: Vec3): void;\n destroy(id: string): void;\n}",
|
|
296
|
-
"line":
|
|
314
|
+
"line": 198,
|
|
297
315
|
"fields": [
|
|
298
316
|
"create",
|
|
299
317
|
"step",
|
|
@@ -311,7 +329,7 @@
|
|
|
311
329
|
"name": "NavigationCell",
|
|
312
330
|
"kind": "InterfaceDeclaration",
|
|
313
331
|
"signature": "export interface NavigationCell { readonly x: number; readonly y: number }",
|
|
314
|
-
"line":
|
|
332
|
+
"line": 215,
|
|
315
333
|
"fields": [
|
|
316
334
|
"x",
|
|
317
335
|
"y"
|
|
@@ -321,7 +339,7 @@
|
|
|
321
339
|
"name": "NavigationObstacleUpdate",
|
|
322
340
|
"kind": "InterfaceDeclaration",
|
|
323
341
|
"signature": "export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }",
|
|
324
|
-
"line":
|
|
342
|
+
"line": 217,
|
|
325
343
|
"fields": [
|
|
326
344
|
"cell",
|
|
327
345
|
"blocked"
|
|
@@ -331,7 +349,7 @@
|
|
|
331
349
|
"name": "NavigationGrid",
|
|
332
350
|
"kind": "InterfaceDeclaration",
|
|
333
351
|
"signature": "export interface NavigationGrid {\n readonly id: string;\n readonly owner: string;\n readonly width: number;\n readonly height: number;\n readonly blocked?: readonly NavigationCell[];\n /** Maximum distinct search cells, including endpoints; defaults to 65536. Raising it increases memory and CPU use. */\n readonly searchCellBudget?: number;\n}",
|
|
334
|
-
"line":
|
|
352
|
+
"line": 218,
|
|
335
353
|
"fields": [
|
|
336
354
|
"id",
|
|
337
355
|
"owner",
|
|
@@ -345,7 +363,7 @@
|
|
|
345
363
|
"name": "NavigationService",
|
|
346
364
|
"kind": "InterfaceDeclaration",
|
|
347
365
|
"signature": "export interface NavigationService {\n createGrid(grid: NavigationGrid): void;\n /** Returns a detached description, including the current blocked cells. */\n getGrid(id: string): NavigationGrid;\n isBlocked(id: string, cell: NavigationCell): boolean;\n setBlocked(id: string, cell: NavigationCell, blocked: boolean): void;\n /** Validates the entire batch before committing; the last change for a repeated cell wins. */\n setBlockedBatch(id: string, updates: readonly NavigationObstacleUpdate[]): void;\n findPath(id: string, start: NavigationCell, end: NavigationCell): readonly NavigationCell[];\n destroyGrid(id: string): void;\n destroyOwner(owner: string): void;\n}",
|
|
348
|
-
"line":
|
|
366
|
+
"line": 227,
|
|
349
367
|
"fields": [
|
|
350
368
|
"createGrid",
|
|
351
369
|
"getGrid",
|
|
@@ -361,13 +379,13 @@
|
|
|
361
379
|
"name": "RenderMode",
|
|
362
380
|
"kind": "TypeAliasDeclaration",
|
|
363
381
|
"signature": "export type RenderMode = \"raster\" | \"hybrid\" | \"path\";",
|
|
364
|
-
"line":
|
|
382
|
+
"line": 239
|
|
365
383
|
},
|
|
366
384
|
{
|
|
367
385
|
"name": "RenderCapabilities",
|
|
368
386
|
"kind": "InterfaceDeclaration",
|
|
369
387
|
"signature": "export interface RenderCapabilities {\n backend: \"webgpu\" | \"webgl2\" | \"uninitialized\";\n compute: boolean;\n availableModes: readonly RenderMode[];\n}",
|
|
370
|
-
"line":
|
|
388
|
+
"line": 240,
|
|
371
389
|
"fields": [
|
|
372
390
|
"backend",
|
|
373
391
|
"compute",
|
|
@@ -378,7 +396,7 @@
|
|
|
378
396
|
"name": "RenderSettings",
|
|
379
397
|
"kind": "InterfaceDeclaration",
|
|
380
398
|
"signature": "export interface RenderSettings {\n mode: RenderMode;\n samplesPerFrame: number;\n maxBounces: number;\n denoise: boolean;\n denoiseIterations: number;\n exposure: number;\n directLighting: boolean;\n indirectLighting: boolean;\n debug: \"beauty\" | \"albedo\" | \"normal\" | \"depth\" | \"samples\";\n}",
|
|
381
|
-
"line":
|
|
399
|
+
"line": 245,
|
|
382
400
|
"fields": [
|
|
383
401
|
"mode",
|
|
384
402
|
"samplesPerFrame",
|
|
@@ -395,7 +413,7 @@
|
|
|
395
413
|
"name": "RenderService",
|
|
396
414
|
"kind": "InterfaceDeclaration",
|
|
397
415
|
"signature": "export interface RenderService {\n configure(settings: Partial<RenderSettings>): void;\n state(): Readonly<RenderSettings>;\n capabilities(): Readonly<RenderCapabilities>;\n setMaterialParameter(material: string, name: string, value: GraphValue): void;\n materialParameters(material: string): Readonly<Record<string, GraphValue>>;\n readonly effects: PostProcessService;\n readonly buffers: RenderBufferBindings;\n readonly textures: RenderTextureBindings;\n}",
|
|
398
|
-
"line":
|
|
416
|
+
"line": 256,
|
|
399
417
|
"fields": [
|
|
400
418
|
"configure",
|
|
401
419
|
"state",
|
|
@@ -411,7 +429,7 @@
|
|
|
411
429
|
"name": "MaterialBufferInput",
|
|
412
430
|
"kind": "InterfaceDeclaration",
|
|
413
431
|
"signature": "export interface MaterialBufferInput {\n /** Shared slot declaration for material and postprocess graphs. */\n name: string;\n type: GraphType;\n /** Optional initial logical compute-buffer ID. */\n buffer?: string;\n /** Optional exact element count required by this slot. */\n count?: number;\n}",
|
|
414
|
-
"line":
|
|
432
|
+
"line": 266,
|
|
415
433
|
"fields": [
|
|
416
434
|
"name",
|
|
417
435
|
"type",
|
|
@@ -423,7 +441,7 @@
|
|
|
423
441
|
"name": "RenderBufferReference",
|
|
424
442
|
"kind": "InterfaceDeclaration",
|
|
425
443
|
"signature": "export interface RenderBufferReference {\n id: string;\n type: GraphType;\n count: number;\n}",
|
|
426
|
-
"line":
|
|
444
|
+
"line": 275,
|
|
427
445
|
"fields": [
|
|
428
446
|
"id",
|
|
429
447
|
"type",
|
|
@@ -434,7 +452,7 @@
|
|
|
434
452
|
"name": "RenderBufferBindings",
|
|
435
453
|
"kind": "InterfaceDeclaration",
|
|
436
454
|
"signature": "export interface RenderBufferBindings {\n bind(target: string, name: string, buffer: ComputeBufferHandle): void;\n unbind(target: string, name: string): void;\n state(target: string): Readonly<Record<string, RenderBufferReference>>;\n}",
|
|
437
|
-
"line":
|
|
455
|
+
"line": 280,
|
|
438
456
|
"fields": [
|
|
439
457
|
"bind",
|
|
440
458
|
"unbind",
|
|
@@ -445,7 +463,7 @@
|
|
|
445
463
|
"name": "MaterialTextureInput",
|
|
446
464
|
"kind": "InterfaceDeclaration",
|
|
447
465
|
"signature": "export interface MaterialTextureInput extends ComputeTextureBinding {\n /** Initial managed texture ID; asset import uses computeTextures/createTexture. */\n texture?: string;\n width?: number;\n height?: number;\n}",
|
|
448
|
-
"line":
|
|
466
|
+
"line": 285,
|
|
449
467
|
"fields": [
|
|
450
468
|
"texture",
|
|
451
469
|
"width",
|
|
@@ -456,7 +474,7 @@
|
|
|
456
474
|
"name": "RenderTextureReference",
|
|
457
475
|
"kind": "InterfaceDeclaration",
|
|
458
476
|
"signature": "export interface RenderTextureReference extends ComputeTextureSize {\n id: string;\n format: \"rgba32float\";\n}",
|
|
459
|
-
"line":
|
|
477
|
+
"line": 291,
|
|
460
478
|
"fields": [
|
|
461
479
|
"id",
|
|
462
480
|
"format"
|
|
@@ -466,7 +484,7 @@
|
|
|
466
484
|
"name": "RenderTextureBindings",
|
|
467
485
|
"kind": "InterfaceDeclaration",
|
|
468
486
|
"signature": "export interface RenderTextureBindings {\n bind(target: string, name: string, texture: ComputeTextureHandle): void;\n unbind(target: string, name: string): void;\n state(target: string): Readonly<Record<string, RenderTextureReference>>;\n}",
|
|
469
|
-
"line":
|
|
487
|
+
"line": 295,
|
|
470
488
|
"fields": [
|
|
471
489
|
"bind",
|
|
472
490
|
"unbind",
|
|
@@ -477,7 +495,7 @@
|
|
|
477
495
|
"name": "PostProcessState",
|
|
478
496
|
"kind": "InterfaceDeclaration",
|
|
479
497
|
"signature": "export interface PostProcessState {\n id: string;\n enabled: boolean;\n parameters: Readonly<Record<string, GraphValue>>;\n}",
|
|
480
|
-
"line":
|
|
498
|
+
"line": 300,
|
|
481
499
|
"fields": [
|
|
482
500
|
"id",
|
|
483
501
|
"enabled",
|
|
@@ -488,7 +506,7 @@
|
|
|
488
506
|
"name": "PostProcessService",
|
|
489
507
|
"kind": "InterfaceDeclaration",
|
|
490
508
|
"signature": "export interface PostProcessService {\n /** Compute-buffer slots declared by definePostProcess, addressed by pass ID. */\n readonly buffers: RenderBufferBindings;\n readonly textures: RenderTextureBindings;\n configure(id: string, settings: { enabled: boolean }): void;\n state(id: string): Readonly<PostProcessState>;\n setParameter(id: string, name: string, value: GraphValue): void;\n /** Clears temporal effect images; it does not modify game or trace accumulation state. */\n resetHistory(id?: string): void;\n}",
|
|
491
|
-
"line":
|
|
509
|
+
"line": 305,
|
|
492
510
|
"fields": [
|
|
493
511
|
"buffers",
|
|
494
512
|
"textures",
|
|
@@ -502,7 +520,7 @@
|
|
|
502
520
|
"name": "ComputeBufferHandle",
|
|
503
521
|
"kind": "InterfaceDeclaration",
|
|
504
522
|
"signature": "export interface ComputeBufferHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n}",
|
|
505
|
-
"line":
|
|
523
|
+
"line": 315,
|
|
506
524
|
"fields": [
|
|
507
525
|
"owner",
|
|
508
526
|
"index",
|
|
@@ -513,7 +531,7 @@
|
|
|
513
531
|
"name": "ComputeTaskHandle",
|
|
514
532
|
"kind": "InterfaceDeclaration",
|
|
515
533
|
"signature": "export interface ComputeTaskHandle {\n readonly owner: number;\n readonly id: number;\n}",
|
|
516
|
-
"line":
|
|
534
|
+
"line": 320,
|
|
517
535
|
"fields": [
|
|
518
536
|
"owner",
|
|
519
537
|
"id"
|
|
@@ -523,7 +541,7 @@
|
|
|
523
541
|
"name": "ComputeBufferInput",
|
|
524
542
|
"kind": "InterfaceDeclaration",
|
|
525
543
|
"signature": "export interface ComputeBufferInput {\n id: string;\n type: GraphType;\n count: number;\n data?: readonly GraphValue[];\n}",
|
|
526
|
-
"line":
|
|
544
|
+
"line": 324,
|
|
527
545
|
"fields": [
|
|
528
546
|
"id",
|
|
529
547
|
"type",
|
|
@@ -535,7 +553,7 @@
|
|
|
535
553
|
"name": "ComputeTextureHandle",
|
|
536
554
|
"kind": "InterfaceDeclaration",
|
|
537
555
|
"signature": "export interface ComputeTextureHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n readonly kind: \"texture\";\n}",
|
|
538
|
-
"line":
|
|
556
|
+
"line": 330,
|
|
539
557
|
"fields": [
|
|
540
558
|
"owner",
|
|
541
559
|
"index",
|
|
@@ -547,7 +565,7 @@
|
|
|
547
565
|
"name": "ComputeTextureSize",
|
|
548
566
|
"kind": "InterfaceDeclaration",
|
|
549
567
|
"signature": "export interface ComputeTextureSize {\n width: number;\n height: number;\n}",
|
|
550
|
-
"line":
|
|
568
|
+
"line": 336,
|
|
551
569
|
"fields": [
|
|
552
570
|
"width",
|
|
553
571
|
"height"
|
|
@@ -557,7 +575,7 @@
|
|
|
557
575
|
"name": "ComputeTextureDataInput",
|
|
558
576
|
"kind": "InterfaceDeclaration",
|
|
559
577
|
"signature": "export interface ComputeTextureDataInput extends ComputeTextureSize {\n id: string;\n /** Linear rgba32float texels in row-major order, without color-space conversion. */\n data?: readonly Vec4[];\n asset?: never;\n}",
|
|
560
|
-
"line":
|
|
578
|
+
"line": 340,
|
|
561
579
|
"fields": [
|
|
562
580
|
"id",
|
|
563
581
|
"data",
|
|
@@ -568,7 +586,7 @@
|
|
|
568
586
|
"name": "ComputeTextureAssetInput",
|
|
569
587
|
"kind": "InterfaceDeclaration",
|
|
570
588
|
"signature": "export interface ComputeTextureAssetInput {\n id: string;\n asset: AssetDefinition | string;\n width?: never;\n height?: never;\n data?: never;\n}",
|
|
571
|
-
"line":
|
|
589
|
+
"line": 346,
|
|
572
590
|
"fields": [
|
|
573
591
|
"id",
|
|
574
592
|
"asset",
|
|
@@ -581,13 +599,13 @@
|
|
|
581
599
|
"name": "ComputeTextureInput",
|
|
582
600
|
"kind": "TypeAliasDeclaration",
|
|
583
601
|
"signature": "export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;",
|
|
584
|
-
"line":
|
|
602
|
+
"line": 353
|
|
585
603
|
},
|
|
586
604
|
{
|
|
587
605
|
"name": "ComputeTextureBinding",
|
|
588
606
|
"kind": "InterfaceDeclaration",
|
|
589
607
|
"signature": "export interface ComputeTextureBinding {\n name: string;\n filter?: \"nearest\" | \"linear\";\n wrapU?: \"clamp\" | \"repeat\" | \"mirror\";\n wrapV?: \"clamp\" | \"repeat\" | \"mirror\";\n}",
|
|
590
|
-
"line":
|
|
608
|
+
"line": 354,
|
|
591
609
|
"fields": [
|
|
592
610
|
"name",
|
|
593
611
|
"filter",
|
|
@@ -599,7 +617,7 @@
|
|
|
599
617
|
"name": "ComputeDispatchInput",
|
|
600
618
|
"kind": "InterfaceDeclaration",
|
|
601
619
|
"signature": "export interface ComputeDispatchInput {\n output: ComputeBufferHandle | ComputeTextureHandle;\n /** Handles capture dispatch-time data; task bindings consume that exact successful output revision. */\n bindings?: Readonly<Record<string, ComputeBufferHandle | { task: ComputeTaskHandle }>>;\n /** Named sampled rgba32float textures; task bindings capture that exact texture result. */\n textures?: Readonly<Record<string, ComputeTextureHandle | { task: ComputeTaskHandle }>>;\n /** Ordering only. It never silently refreshes ordinary handle bindings. */\n after?: readonly ComputeTaskHandle[];\n parameters?: Readonly<Record<string, GraphValue>>;\n /** Fixed simulation time by default, not wall-clock time. */\n time?: number;\n}",
|
|
602
|
-
"line":
|
|
620
|
+
"line": 360,
|
|
603
621
|
"fields": [
|
|
604
622
|
"output",
|
|
605
623
|
"bindings",
|
|
@@ -613,7 +631,7 @@
|
|
|
613
631
|
"name": "ComputeTaskState",
|
|
614
632
|
"kind": "InterfaceDeclaration",
|
|
615
633
|
"signature": "export interface ComputeTaskState {\n status: \"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\";\n error?: { code: string; message: string; remediation: string };\n}",
|
|
616
|
-
"line":
|
|
634
|
+
"line": 372,
|
|
617
635
|
"fields": [
|
|
618
636
|
"status",
|
|
619
637
|
"error"
|
|
@@ -623,7 +641,7 @@
|
|
|
623
641
|
"name": "ComputeService",
|
|
624
642
|
"kind": "InterfaceDeclaration",
|
|
625
643
|
"signature": "export interface ComputeService {\n createTexture(input: ComputeTextureInput): ComputeTextureHandle;\n resolveTexture(id: string): ComputeTextureHandle;\n describeTexture(texture: ComputeTextureHandle): Readonly<ComputeTextureSize & { id: string; format: \"rgba32float\"; revision: number }>;\n readTexture(texture: ComputeTextureHandle): readonly Vec4[];\n writeTexture(texture: ComputeTextureHandle, data: readonly Vec4[], region?: ComputeTextureSize & { x: number; y: number }): void;\n releaseTexture(texture: ComputeTextureHandle): void;\n createBuffer(input: ComputeBufferInput): ComputeBufferHandle;\n resolve(id: string): ComputeBufferHandle;\n describeBuffer(buffer: ComputeBufferHandle): Readonly<{ id: string; type: GraphType; count: number; revision: number }>;\n /** Last committed GPU result; detached CPU data, never a GPU object. */\n readBuffer(buffer: ComputeBufferHandle): readonly GraphValue[];\n writeBuffer(buffer: ComputeBufferHandle, values: readonly GraphValue[], offset?: number): void;\n releaseBuffer(buffer: ComputeBufferHandle): void;\n dispatch(kernel: ComputeDefinition | string, input: ComputeDispatchInput): ComputeTaskHandle;\n task(task: ComputeTaskHandle): Readonly<ComputeTaskState>;\n tasks(): readonly { handle: ComputeTaskHandle; state: ComputeTaskState }[];\n cancel(task: ComputeTaskHandle): void;\n releaseTask(task: ComputeTaskHandle): void;\n}",
|
|
626
|
-
"line":
|
|
644
|
+
"line": 376,
|
|
627
645
|
"fields": [
|
|
628
646
|
"createTexture",
|
|
629
647
|
"resolveTexture",
|
|
@@ -648,7 +666,7 @@
|
|
|
648
666
|
"name": "InputService",
|
|
649
667
|
"kind": "InterfaceDeclaration",
|
|
650
668
|
"signature": "export interface InputService {\n held(action: string): boolean;\n pressed(action: string): boolean;\n released(action: string): boolean;\n axis(negative: string, positive: string): number;\n}",
|
|
651
|
-
"line":
|
|
669
|
+
"line": 396,
|
|
652
670
|
"fields": [
|
|
653
671
|
"held",
|
|
654
672
|
"pressed",
|
|
@@ -660,7 +678,7 @@
|
|
|
660
678
|
"name": "PhysicsService",
|
|
661
679
|
"kind": "InterfaceDeclaration",
|
|
662
680
|
"signature": "export interface PhysicsService {\n moveCharacter(entity: string, displacement: Vec3): void;\n grounded(entity: string): boolean;\n velocity(entity: string): Vec3;\n /** World-space rigid-body center of mass, including collider offsets. */\n centerOfMass(entity: string): Vec3;\n setVelocity(entity: string, velocity: Vec3): void;\n impulse(entity: string, impulse: Vec3): void;\n /** Angular velocity in world-space radians per second. */\n angularVelocity(entity: string): Vec3;\n setAngularVelocity(entity: string, velocity: Vec3): void;\n /** Instantaneous world-space angular impulse, in angular-momentum units. */\n torqueImpulse(entity: string, impulse: Vec3): void;\n /** Apply world-space impulse at a world-space point, changing linear and angular motion. */\n impulseAtPoint(entity: string, impulse: Vec3, point: Vec3): void;\n raycast(\n origin: Vec3,\n direction: Vec3,\n maxDistance: number,\n options?: { exclude?: readonly string[]; includeTriggers?: boolean },\n ): { entity: string; distance: number; point: Vec3; normal: Vec3 } | null;\n}",
|
|
663
|
-
"line":
|
|
681
|
+
"line": 402,
|
|
664
682
|
"fields": [
|
|
665
683
|
"moveCharacter",
|
|
666
684
|
"grounded",
|
|
@@ -679,7 +697,7 @@
|
|
|
679
697
|
"name": "AnimationService",
|
|
680
698
|
"kind": "InterfaceDeclaration",
|
|
681
699
|
"signature": "export interface AnimationService {\n play(\n entity: string,\n clip: string,\n options?: { fade?: number; speed?: number; loop?: boolean },\n ): void;\n state(entity: string): {\n clip: string | null;\n time: number;\n playing: boolean;\n };\n}",
|
|
682
|
-
"line":
|
|
700
|
+
"line": 424,
|
|
683
701
|
"fields": [
|
|
684
702
|
"play",
|
|
685
703
|
"state"
|
|
@@ -689,7 +707,7 @@
|
|
|
689
707
|
"name": "CameraService",
|
|
690
708
|
"kind": "InterfaceDeclaration",
|
|
691
709
|
"signature": "export interface CameraService {\n follow(\n entity: string,\n options?: {\n distance?: number;\n height?: number;\n lookHeight?: number;\n yaw?: number;\n smoothing?: number;\n },\n ): void;\n orbit(yaw: number): void;\n}",
|
|
692
|
-
"line":
|
|
710
|
+
"line": 436,
|
|
693
711
|
"fields": [
|
|
694
712
|
"follow",
|
|
695
713
|
"orbit"
|
|
@@ -699,7 +717,7 @@
|
|
|
699
717
|
"name": "UIService",
|
|
700
718
|
"kind": "InterfaceDeclaration",
|
|
701
719
|
"signature": "export interface UIService {\n setText(id: string, text: string): void;\n setProgress(id: string, value: number): void;\n setVisible(id: string, visible: boolean): void;\n}",
|
|
702
|
-
"line":
|
|
720
|
+
"line": 449,
|
|
703
721
|
"fields": [
|
|
704
722
|
"setText",
|
|
705
723
|
"setProgress",
|
|
@@ -710,7 +728,7 @@
|
|
|
710
728
|
"name": "AudioService",
|
|
711
729
|
"kind": "InterfaceDeclaration",
|
|
712
730
|
"signature": "export interface AudioService {\n play(\n id: string,\n options?: { volume?: number; loop?: boolean; entity?: string; bus?: string; priority?: number },\n ): string;\n stop(voice: string): void;\n /** Pause/resume are idempotent; an unknown valid voice id is a no-op. Playback time follows fixed simulation ticks, even while audio is locked. */\n pause(voice: string): void;\n resume(voice: string): void;\n volume(value: number): void;\n /** Set a declared bus gain, independently of master and voice gain. */\n busVolume(id: string, value: number): void;\n /** Fade a declared bus over fixed-tick seconds; busVolume or another fade replaces it. */\n fadeBus(id: string, target: number, duration: number): void;\n}",
|
|
713
|
-
"line":
|
|
731
|
+
"line": 454,
|
|
714
732
|
"fields": [
|
|
715
733
|
"play",
|
|
716
734
|
"stop",
|
|
@@ -725,7 +743,7 @@
|
|
|
725
743
|
"name": "StorageService",
|
|
726
744
|
"kind": "InterfaceDeclaration",
|
|
727
745
|
"signature": "export interface StorageService {\n save(slot: string): void;\n load(slot: string): void;\n status(): {\n state: \"idle\" | \"saving\" | \"loading\" | \"saved\" | \"loaded\" | \"failed\";\n slot: string | null;\n error: string | null;\n };\n}",
|
|
728
|
-
"line":
|
|
746
|
+
"line": 469,
|
|
729
747
|
"fields": [
|
|
730
748
|
"save",
|
|
731
749
|
"load",
|
|
@@ -736,7 +754,7 @@
|
|
|
736
754
|
"name": "SceneService",
|
|
737
755
|
"kind": "InterfaceDeclaration",
|
|
738
756
|
"signature": "export interface SceneService {\n current(): string;\n load(id: string): void;\n}",
|
|
739
|
-
"line":
|
|
757
|
+
"line": 478,
|
|
740
758
|
"fields": [
|
|
741
759
|
"current",
|
|
742
760
|
"load"
|
|
@@ -746,7 +764,7 @@
|
|
|
746
764
|
"name": "ModelDefinition",
|
|
747
765
|
"kind": "InterfaceDeclaration",
|
|
748
766
|
"signature": "export interface ModelDefinition {\n /** Optional whole-model material override; omitted keeps the asset's original materials. */\n material?: MaterialDefinition | string;\n /** Replace all asset material slots with the given exact material name. Mutually exclusive with material. */\n materialSlots?: Record<string, MaterialDefinition | string>;\n castShadow?: boolean;\n receiveShadow?: boolean;\n asset: AssetDefinition | string;\n scale?: number;\n offset?: Vec3;\n rotation?: Vec3;\n animation?: { clip: string; speed?: number; loop?: boolean };\n}",
|
|
749
|
-
"line":
|
|
767
|
+
"line": 482,
|
|
750
768
|
"fields": [
|
|
751
769
|
"material",
|
|
752
770
|
"materialSlots",
|
|
@@ -763,7 +781,7 @@
|
|
|
763
781
|
"name": "RigidBodyDefinition",
|
|
764
782
|
"kind": "InterfaceDeclaration",
|
|
765
783
|
"signature": "export interface RigidBodyDefinition {\n type: \"fixed\" | \"dynamic\" | \"kinematic\";\n collider: {\n shape: \"box\" | \"sphere\" | \"capsule\";\n size?: Vec3;\n radius?: number;\n halfHeight?: number;\n offset?: Vec3;\n };\n mass?: number;\n friction?: number;\n restitution?: number;\n trigger?: boolean;\n}",
|
|
766
|
-
"line":
|
|
784
|
+
"line": 495,
|
|
767
785
|
"fields": [
|
|
768
786
|
"type",
|
|
769
787
|
"collider",
|
|
@@ -777,7 +795,7 @@
|
|
|
777
795
|
"name": "CharacterDefinition",
|
|
778
796
|
"kind": "InterfaceDeclaration",
|
|
779
797
|
"signature": "export interface CharacterDefinition {\n radius: number;\n height: number;\n speed: number;\n jumpSpeed?: number;\n /** Downward acceleration magnitude in world units/s^2; defaults to 9.81. Scene.gravity is a signed vector. */\n gravity?: number;\n}",
|
|
780
|
-
"line":
|
|
798
|
+
"line": 509,
|
|
781
799
|
"fields": [
|
|
782
800
|
"radius",
|
|
783
801
|
"height",
|
|
@@ -790,7 +808,7 @@
|
|
|
790
808
|
"name": "UIElementDefinition",
|
|
791
809
|
"kind": "InterfaceDeclaration",
|
|
792
810
|
"signature": "export interface UIElementDefinition {\n id: string;\n kind: \"text\" | \"bar\" | \"button\" | \"input\";\n text?: string;\n value?: number;\n visible?: boolean;\n anchor?: \"top-left\" | \"top-right\" | \"bottom-left\" | \"bottom-right\" | \"center\";\n x?: number;\n y?: number;\n width?: number;\n color?: string;\n world?: { entity: string; offset?: Vec3; occlude?: boolean };\n}",
|
|
793
|
-
"line":
|
|
811
|
+
"line": 517,
|
|
794
812
|
"fields": [
|
|
795
813
|
"id",
|
|
796
814
|
"kind",
|
|
@@ -809,7 +827,7 @@
|
|
|
809
827
|
"name": "SoundDefinition",
|
|
810
828
|
"kind": "InterfaceDeclaration",
|
|
811
829
|
"signature": "export interface SoundDefinition {\n id: string;\n asset: AssetDefinition | string;\n volume?: number;\n loop?: boolean;\n bus?: string;\n}",
|
|
812
|
-
"line":
|
|
830
|
+
"line": 530,
|
|
813
831
|
"fields": [
|
|
814
832
|
"id",
|
|
815
833
|
"asset",
|
|
@@ -822,7 +840,7 @@
|
|
|
822
840
|
"name": "AudioBusDefinition",
|
|
823
841
|
"kind": "InterfaceDeclaration",
|
|
824
842
|
"signature": "export interface AudioBusDefinition {\n id: string;\n volume?: number;\n}",
|
|
825
|
-
"line":
|
|
843
|
+
"line": 537,
|
|
826
844
|
"fields": [
|
|
827
845
|
"id",
|
|
828
846
|
"volume"
|
|
@@ -832,43 +850,43 @@
|
|
|
832
850
|
"name": "SYSTEM_PHASES",
|
|
833
851
|
"kind": "constant",
|
|
834
852
|
"signature": "SYSTEM_PHASES = [\n \"input\",\n \"prePhysics\",\n \"physics\",\n \"postPhysics\",\n \"update\",\n \"presentation\",\n] as const",
|
|
835
|
-
"line":
|
|
853
|
+
"line": 541
|
|
836
854
|
},
|
|
837
855
|
{
|
|
838
856
|
"name": "SystemPhase",
|
|
839
857
|
"kind": "TypeAliasDeclaration",
|
|
840
858
|
"signature": "export type SystemPhase = (typeof SYSTEM_PHASES)[number];",
|
|
841
|
-
"line":
|
|
859
|
+
"line": 549
|
|
842
860
|
},
|
|
843
861
|
{
|
|
844
862
|
"name": "Geometry",
|
|
845
863
|
"kind": "TypeAliasDeclaration",
|
|
846
864
|
"signature": "export type Geometry =\n | { kind: \"box\"; size?: Vec3 }\n | { kind: \"sphere\"; radius?: number; segments?: number }\n | { kind: \"plane\"; size?: readonly [number, number] };",
|
|
847
|
-
"line":
|
|
865
|
+
"line": 550
|
|
848
866
|
},
|
|
849
867
|
{
|
|
850
868
|
"name": "GRAPH_TYPES",
|
|
851
869
|
"kind": "constant",
|
|
852
870
|
"signature": "GRAPH_TYPES = [\"float\", \"vec2\", \"vec3\", \"vec4\", \"bool\"] as const",
|
|
853
|
-
"line":
|
|
871
|
+
"line": 554
|
|
854
872
|
},
|
|
855
873
|
{
|
|
856
874
|
"name": "GraphType",
|
|
857
875
|
"kind": "TypeAliasDeclaration",
|
|
858
876
|
"signature": "export type GraphType = typeof GRAPH_TYPES[number];",
|
|
859
|
-
"line":
|
|
877
|
+
"line": 555
|
|
860
878
|
},
|
|
861
879
|
{
|
|
862
880
|
"name": "GraphValue",
|
|
863
881
|
"kind": "TypeAliasDeclaration",
|
|
864
882
|
"signature": "export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;",
|
|
865
|
-
"line":
|
|
883
|
+
"line": 556
|
|
866
884
|
},
|
|
867
885
|
{
|
|
868
886
|
"name": "GraphParameter",
|
|
869
887
|
"kind": "InterfaceDeclaration",
|
|
870
888
|
"signature": "export interface GraphParameter {\n name: string;\n type: GraphType;\n default: GraphValue;\n}",
|
|
871
|
-
"line":
|
|
889
|
+
"line": 557,
|
|
872
890
|
"fields": [
|
|
873
891
|
"name",
|
|
874
892
|
"type",
|
|
@@ -879,31 +897,31 @@
|
|
|
879
897
|
"name": "GRAPH_INPUT_TYPES",
|
|
880
898
|
"kind": "constant",
|
|
881
899
|
"signature": "GRAPH_INPUT_TYPES = {\n uv: \"vec2\", uv1: \"vec2\", positionWorld: \"vec3\", normalWorld: \"vec3\",\n viewDirectionWorld: \"vec3\", vertexColor: \"vec4\", index: \"float\",\n screenSize: \"vec2\", texelSize: \"vec2\",\n pixelCoord: \"vec2\", outputSize: \"vec2\",\n positionLocal: \"vec3\", normalLocal: \"vec3\", vertexIndex: \"float\", instanceIndex: \"float\",\n} as const",
|
|
882
|
-
"line":
|
|
900
|
+
"line": 562
|
|
883
901
|
},
|
|
884
902
|
{
|
|
885
903
|
"name": "GraphInputName",
|
|
886
904
|
"kind": "TypeAliasDeclaration",
|
|
887
905
|
"signature": "export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;",
|
|
888
|
-
"line":
|
|
906
|
+
"line": 569
|
|
889
907
|
},
|
|
890
908
|
{
|
|
891
909
|
"name": "GRAPH_OPERATIONS",
|
|
892
910
|
"kind": "constant",
|
|
893
911
|
"signature": "GRAPH_OPERATIONS = {\n unary: [\"sin\", \"cos\", \"abs\", \"floor\", \"ceil\", \"fract\", \"negate\", \"saturate\", \"normalize\", \"length\", \"safeSqrt\"] as const,\n binary: [\"add\", \"subtract\", \"multiply\", \"safeDivide\", \"min\", \"max\", \"dot\", \"cross\", \"step\", \"lessThan\", \"lessEqual\", \"greaterThan\", \"greaterEqual\", \"equal\", \"and\", \"or\"] as const,\n ternary: [\"mix\", \"clamp\", \"smoothstep\", \"select\"] as const,\n} as const",
|
|
894
|
-
"line":
|
|
912
|
+
"line": 570
|
|
895
913
|
},
|
|
896
914
|
{
|
|
897
915
|
"name": "GraphNode",
|
|
898
916
|
"kind": "TypeAliasDeclaration",
|
|
899
917
|
"signature": "export type GraphNode =\n | { id: string; op: \"float\"; value: number }\n | { id: string; op: \"bool\"; value: boolean }\n | { id: string; op: \"vec2\"; value: Vec2 }\n | { id: string; op: \"vec3\"; value: Vec3 }\n | { id: string; op: \"vec4\"; value: Vec4 }\n | { id: string; op: \"time\" }\n | { id: string; op: \"input\"; name: GraphInputName }\n | { id: string; op: \"parameter\"; name: string }\n | { id: string; op: typeof GRAPH_OPERATIONS.unary[number] | \"not\"; inputs: readonly [string] }\n | { id: string; op: typeof GRAPH_OPERATIONS.binary[number]; inputs: readonly [string, string] }\n | { id: string; op: typeof GRAPH_OPERATIONS.ternary[number]; inputs: readonly [string, string, string] }\n | { id: string; op: \"compose2\"; inputs: readonly [string, string] }\n | { id: string; op: \"compose3\"; inputs: readonly [string, string, string] }\n | { id: string; op: \"compose4\"; inputs: readonly [string, string, string, string] }\n | { id: string; op: \"swizzle\"; inputs: readonly [string]; components: string }\n | { id: string; op: \"sampleTexture\"; inputs: readonly [string]; texture: AssetDefinition | string }\n | { id: string; op: \"readBuffer\"; inputs: readonly [string]; buffer: string }\n | { id: string; op: \"sampleFrame\"; inputs: readonly [string]; channel: string }\n | { id: string; op: \"sampleHistory\"; inputs: readonly [string]; channel: string };",
|
|
900
|
-
"line":
|
|
918
|
+
"line": 575
|
|
901
919
|
},
|
|
902
920
|
{
|
|
903
921
|
"name": "Graph",
|
|
904
922
|
"kind": "InterfaceDeclaration",
|
|
905
923
|
"signature": "export interface Graph {\n nodes: readonly GraphNode[];\n output: string;\n parameters?: readonly GraphParameter[];\n}",
|
|
906
|
-
"line":
|
|
924
|
+
"line": 595,
|
|
907
925
|
"fields": [
|
|
908
926
|
"nodes",
|
|
909
927
|
"output",
|
|
@@ -914,7 +932,7 @@
|
|
|
914
932
|
"name": "MaterialGraphs",
|
|
915
933
|
"kind": "InterfaceDeclaration",
|
|
916
934
|
"signature": "export interface MaterialGraphs {\n baseColor?: Graph;\n emissive?: Graph;\n roughness?: Graph;\n metalness?: Graph;\n opacity?: Graph;\n /** Absolute, unsided world-space normal; engine applies material boundary orientation. */\n normalWorld?: Graph;\n}",
|
|
917
|
-
"line":
|
|
935
|
+
"line": 600,
|
|
918
936
|
"fields": [
|
|
919
937
|
"baseColor",
|
|
920
938
|
"emissive",
|
|
@@ -928,7 +946,7 @@
|
|
|
928
946
|
"name": "VertexGraphs",
|
|
929
947
|
"kind": "InterfaceDeclaration",
|
|
930
948
|
"signature": "export interface VertexGraphs {\n /** Absolute object-local position after built-in morph, skin and instance transforms. */\n position?: Graph;\n /** Unsided object-local normal in the same domain; zero keeps the normalized input normal. */\n normal?: Graph;\n}",
|
|
931
|
-
"line":
|
|
949
|
+
"line": 609,
|
|
932
950
|
"fields": [
|
|
933
951
|
"position",
|
|
934
952
|
"normal"
|
|
@@ -938,7 +956,7 @@
|
|
|
938
956
|
"name": "MaterialInput",
|
|
939
957
|
"kind": "InterfaceDeclaration",
|
|
940
958
|
"signature": "export interface MaterialInput {\n id: string;\n color?: string;\n roughness?: number;\n metalness?: number;\n texture?: AssetDefinition | string;\n graph?: Graph;\n graphs?: MaterialGraphs;\n vertex?: VertexGraphs;\n buffers?: readonly MaterialBufferInput[];\n textures?: readonly MaterialTextureInput[];\n emissive?: string;\n emissiveIntensity?: number;\n opacity?: number;\n alphaTest?: number;\n side?: \"front\" | \"back\" | \"double\";\n /** Closed-volume dielectric fraction; opacity remains independent stochastic coverage. */\n transmission?: number;\n ior?: number;\n /** Nontransmissive dielectric specular strength in [0,1]. Defaults to 1. */\n specularIntensity?: number;\n /** Nontransmissive dielectric specular color, a hex or named sRGB color. Defaults to white. */\n specularColor?: string;\n attenuationColor?: string;\n /** World-space distance for Beer absorption; omitted means no absorption. */\n attenuationDistance?: number;\n}",
|
|
941
|
-
"line":
|
|
959
|
+
"line": 615,
|
|
942
960
|
"fields": [
|
|
943
961
|
"id",
|
|
944
962
|
"color",
|
|
@@ -967,7 +985,7 @@
|
|
|
967
985
|
"name": "MaterialDefinition",
|
|
968
986
|
"kind": "InterfaceDeclaration",
|
|
969
987
|
"signature": "export interface MaterialDefinition extends MaterialInput {\n readonly kind: \"material\";\n}",
|
|
970
|
-
"line":
|
|
988
|
+
"line": 642,
|
|
971
989
|
"fields": [
|
|
972
990
|
"kind"
|
|
973
991
|
]
|
|
@@ -976,7 +994,7 @@
|
|
|
976
994
|
"name": "PostProcessInput",
|
|
977
995
|
"kind": "InterfaceDeclaration",
|
|
978
996
|
"signature": "export interface PostProcessInput {\n id: string;\n buffers?: readonly MaterialBufferInput[];\n textures?: readonly MaterialTextureInput[];\n /** Linear HDR vec4 output. Frame channels: scene.color, scene.normal, scene.depth, or an earlier pass ID. */\n graph: Graph;\n enabled?: boolean;\n}",
|
|
979
|
-
"line":
|
|
997
|
+
"line": 645,
|
|
980
998
|
"fields": [
|
|
981
999
|
"id",
|
|
982
1000
|
"buffers",
|
|
@@ -989,7 +1007,7 @@
|
|
|
989
1007
|
"name": "PostProcessDefinition",
|
|
990
1008
|
"kind": "InterfaceDeclaration",
|
|
991
1009
|
"signature": "export interface PostProcessDefinition extends PostProcessInput {\n readonly kind: \"postprocess\";\n}",
|
|
992
|
-
"line":
|
|
1010
|
+
"line": 653,
|
|
993
1011
|
"fields": [
|
|
994
1012
|
"kind"
|
|
995
1013
|
]
|
|
@@ -998,7 +1016,7 @@
|
|
|
998
1016
|
"name": "ComputeInput",
|
|
999
1017
|
"kind": "InterfaceDeclaration",
|
|
1000
1018
|
"signature": "export interface ComputeInput {\n id: string;\n graph: Graph;\n outputType: GraphType;\n count: number;\n workgroupSize?: number;\n buffers?: readonly { name: string; type: GraphType }[];\n textures?: readonly ComputeTextureBinding[];\n}",
|
|
1001
|
-
"line":
|
|
1019
|
+
"line": 656,
|
|
1002
1020
|
"fields": [
|
|
1003
1021
|
"id",
|
|
1004
1022
|
"graph",
|
|
@@ -1013,7 +1031,7 @@
|
|
|
1013
1031
|
"name": "ComputeDefinition",
|
|
1014
1032
|
"kind": "InterfaceDeclaration",
|
|
1015
1033
|
"signature": "export interface ComputeDefinition extends ComputeInput {\n readonly kind: \"compute\";\n}",
|
|
1016
|
-
"line":
|
|
1034
|
+
"line": 665,
|
|
1017
1035
|
"fields": [
|
|
1018
1036
|
"kind"
|
|
1019
1037
|
]
|
|
@@ -1022,7 +1040,7 @@
|
|
|
1022
1040
|
"name": "AssetInput",
|
|
1023
1041
|
"kind": "InterfaceDeclaration",
|
|
1024
1042
|
"signature": "export interface AssetInput {\n id: string;\n path: string;\n type: \"texture\" | \"binary\" | \"model\" | \"audio\";\n source?: string;\n license?: string;\n attribution?: string;\n /** Texture imports only; defaults to sRGB color. Data/normal/ORM textures use linear. */\n colorSpace?: \"srgb\" | \"linear\";\n}",
|
|
1025
|
-
"line":
|
|
1043
|
+
"line": 668,
|
|
1026
1044
|
"fields": [
|
|
1027
1045
|
"id",
|
|
1028
1046
|
"path",
|
|
@@ -1037,7 +1055,7 @@
|
|
|
1037
1055
|
"name": "AssetDefinition",
|
|
1038
1056
|
"kind": "InterfaceDeclaration",
|
|
1039
1057
|
"signature": "export interface AssetDefinition extends AssetInput {\n readonly kind: \"asset\";\n}",
|
|
1040
|
-
"line":
|
|
1058
|
+
"line": 678,
|
|
1041
1059
|
"fields": [
|
|
1042
1060
|
"kind"
|
|
1043
1061
|
]
|
|
@@ -1046,7 +1064,7 @@
|
|
|
1046
1064
|
"name": "MeshDefinition",
|
|
1047
1065
|
"kind": "InterfaceDeclaration",
|
|
1048
1066
|
"signature": "export interface MeshDefinition {\n geometry: Geometry;\n material: MaterialDefinition | string;\n castShadow?: boolean;\n receiveShadow?: boolean;\n}",
|
|
1049
|
-
"line":
|
|
1067
|
+
"line": 681,
|
|
1050
1068
|
"fields": [
|
|
1051
1069
|
"geometry",
|
|
1052
1070
|
"material",
|
|
@@ -1058,7 +1076,7 @@
|
|
|
1058
1076
|
"name": "LightDefinition",
|
|
1059
1077
|
"kind": "InterfaceDeclaration",
|
|
1060
1078
|
"signature": "export interface LightDefinition {\n kind: \"directional\" | \"point\";\n color?: string;\n intensity?: number;\n castShadow?: boolean;\n target?: Vec3;\n shadow?: {\n mapSize?: number;\n extent?: number;\n bias?: number;\n normalBias?: number;\n near?: number;\n far?: number;\n };\n}",
|
|
1061
|
-
"line":
|
|
1079
|
+
"line": 687,
|
|
1062
1080
|
"fields": [
|
|
1063
1081
|
"kind",
|
|
1064
1082
|
"color",
|
|
@@ -1072,7 +1090,7 @@
|
|
|
1072
1090
|
"name": "EntityInput",
|
|
1073
1091
|
"kind": "InterfaceDeclaration",
|
|
1074
1092
|
"signature": "export interface EntityInput {\n id: string;\n prefab?: PrefabDefinition | string;\n parent?: string;\n transform?: TransformPatch;\n mesh?: MeshDefinition;\n light?: LightDefinition;\n model?: ModelDefinition;\n rigidBody?: RigidBodyDefinition;\n character?: CharacterDefinition;\n components?: readonly ComponentInstance[];\n}",
|
|
1075
|
-
"line":
|
|
1093
|
+
"line": 702,
|
|
1076
1094
|
"fields": [
|
|
1077
1095
|
"id",
|
|
1078
1096
|
"prefab",
|
|
@@ -1090,7 +1108,7 @@
|
|
|
1090
1108
|
"name": "PrefabInput",
|
|
1091
1109
|
"kind": "InterfaceDeclaration",
|
|
1092
1110
|
"signature": "export interface PrefabInput extends Omit<EntityInput, \"prefab\" | \"parent\"> {\n extends?: PrefabDefinition | string;\n}",
|
|
1093
|
-
"line":
|
|
1111
|
+
"line": 714,
|
|
1094
1112
|
"fields": [
|
|
1095
1113
|
"extends"
|
|
1096
1114
|
]
|
|
@@ -1099,7 +1117,7 @@
|
|
|
1099
1117
|
"name": "PrefabDefinition",
|
|
1100
1118
|
"kind": "InterfaceDeclaration",
|
|
1101
1119
|
"signature": "export interface PrefabDefinition extends PrefabInput {\n readonly kind: \"prefab\";\n}",
|
|
1102
|
-
"line":
|
|
1120
|
+
"line": 717,
|
|
1103
1121
|
"fields": [
|
|
1104
1122
|
"kind"
|
|
1105
1123
|
]
|
|
@@ -1108,7 +1126,7 @@
|
|
|
1108
1126
|
"name": "SceneInput",
|
|
1109
1127
|
"kind": "InterfaceDeclaration",
|
|
1110
1128
|
"signature": "export interface SceneInput {\n id: string;\n camera?: {\n position: Vec3;\n target: Vec3;\n fov?: number;\n near?: number;\n far?: number;\n };\n environment?: {\n background?: string;\n ambientIntensity?: number;\n lighting?: \"none\" | \"studio\";\n };\n follow?: {\n entity: string;\n distance?: number;\n height?: number;\n lookHeight?: number;\n yaw?: number;\n smoothing?: number;\n };\n gravity?: Vec3;\n entities: readonly EntityInput[];\n}",
|
|
1111
|
-
"line":
|
|
1129
|
+
"line": 720,
|
|
1112
1130
|
"fields": [
|
|
1113
1131
|
"id",
|
|
1114
1132
|
"camera",
|
|
@@ -1122,7 +1140,7 @@
|
|
|
1122
1140
|
"name": "SceneDefinition",
|
|
1123
1141
|
"kind": "InterfaceDeclaration",
|
|
1124
1142
|
"signature": "export interface SceneDefinition extends SceneInput {\n readonly kind: \"scene\";\n}",
|
|
1125
|
-
"line":
|
|
1143
|
+
"line": 745,
|
|
1126
1144
|
"fields": [
|
|
1127
1145
|
"kind"
|
|
1128
1146
|
]
|
|
@@ -1131,7 +1149,7 @@
|
|
|
1131
1149
|
"name": "SystemInput",
|
|
1132
1150
|
"kind": "InterfaceDeclaration",
|
|
1133
1151
|
"signature": "export interface SystemInput {\n id: string;\n phase?: SystemPhase;\n before?: readonly string[];\n after?: readonly string[];\n reads?: readonly string[];\n writes?: readonly string[];\n structural?: boolean;\n run: (engine: SystemContext, dt: number) => void;\n}",
|
|
1134
|
-
"line":
|
|
1152
|
+
"line": 748,
|
|
1135
1153
|
"fields": [
|
|
1136
1154
|
"id",
|
|
1137
1155
|
"phase",
|
|
@@ -1147,7 +1165,7 @@
|
|
|
1147
1165
|
"name": "SystemDefinition",
|
|
1148
1166
|
"kind": "InterfaceDeclaration",
|
|
1149
1167
|
"signature": "export interface SystemDefinition extends SystemInput {\n readonly kind: \"system\";\n}",
|
|
1150
|
-
"line":
|
|
1168
|
+
"line": 758,
|
|
1151
1169
|
"fields": [
|
|
1152
1170
|
"kind"
|
|
1153
1171
|
]
|
|
@@ -1156,7 +1174,7 @@
|
|
|
1156
1174
|
"name": "GameInput",
|
|
1157
1175
|
"kind": "InterfaceDeclaration",
|
|
1158
1176
|
"signature": "export interface GameInput {\n id: string;\n scene: SceneDefinition;\n systems?: readonly SystemDefinition[];\n components?: readonly ComponentDefinition[];\n prefabs?: readonly PrefabDefinition[];\n materials?: readonly MaterialDefinition[];\n computes?: readonly ComputeDefinition[];\n computeBuffers?: readonly ComputeBufferInput[];\n computeTextures?: readonly ComputeTextureInput[];\n assets?: readonly AssetDefinition[];\n scenes?: readonly SceneDefinition[];\n input?: Readonly<Record<string, readonly string[]>>;\n ui?: readonly UIElementDefinition[];\n sounds?: readonly SoundDefinition[];\n audioBuses?: readonly AudioBusDefinition[];\n render?: Partial<RenderSettings>;\n postProcesses?: readonly PostProcessDefinition[];\n}",
|
|
1159
|
-
"line":
|
|
1177
|
+
"line": 761,
|
|
1160
1178
|
"fields": [
|
|
1161
1179
|
"id",
|
|
1162
1180
|
"scene",
|
|
@@ -1181,7 +1199,7 @@
|
|
|
1181
1199
|
"name": "GameDefinition",
|
|
1182
1200
|
"kind": "InterfaceDeclaration",
|
|
1183
1201
|
"signature": "export interface GameDefinition extends GameInput {\n readonly kind: \"game\";\n}",
|
|
1184
|
-
"line":
|
|
1202
|
+
"line": 780,
|
|
1185
1203
|
"fields": [
|
|
1186
1204
|
"kind"
|
|
1187
1205
|
]
|
|
@@ -1190,7 +1208,7 @@
|
|
|
1190
1208
|
"name": "GameInstance",
|
|
1191
1209
|
"kind": "InterfaceDeclaration",
|
|
1192
1210
|
"signature": "export interface GameInstance {\n update(dt: number): void;\n dispose(): void;\n}",
|
|
1193
|
-
"line":
|
|
1211
|
+
"line": 783,
|
|
1194
1212
|
"fields": [
|
|
1195
1213
|
"update",
|
|
1196
1214
|
"dispose"
|
|
@@ -1200,61 +1218,61 @@
|
|
|
1200
1218
|
"name": "defineComponent",
|
|
1201
1219
|
"kind": "FunctionDeclaration",
|
|
1202
1220
|
"signature": "export function defineComponent<const S extends ComponentSchema>(input: {\n id: string;\n schema: S;\n}): ComponentDefinition<S>;",
|
|
1203
|
-
"line":
|
|
1221
|
+
"line": 787
|
|
1204
1222
|
},
|
|
1205
1223
|
{
|
|
1206
1224
|
"name": "defineMaterial",
|
|
1207
1225
|
"kind": "FunctionDeclaration",
|
|
1208
1226
|
"signature": "export function defineMaterial(input: MaterialInput): MaterialDefinition;",
|
|
1209
|
-
"line":
|
|
1227
|
+
"line": 793
|
|
1210
1228
|
},
|
|
1211
1229
|
{
|
|
1212
1230
|
"name": "definePostProcess",
|
|
1213
1231
|
"kind": "FunctionDeclaration",
|
|
1214
1232
|
"signature": "export function definePostProcess(input: PostProcessInput): PostProcessDefinition;",
|
|
1215
|
-
"line":
|
|
1233
|
+
"line": 796
|
|
1216
1234
|
},
|
|
1217
1235
|
{
|
|
1218
1236
|
"name": "defineCompute",
|
|
1219
1237
|
"kind": "FunctionDeclaration",
|
|
1220
1238
|
"signature": "export function defineCompute(input: ComputeInput): ComputeDefinition;",
|
|
1221
|
-
"line":
|
|
1239
|
+
"line": 799
|
|
1222
1240
|
},
|
|
1223
1241
|
{
|
|
1224
1242
|
"name": "defineAsset",
|
|
1225
1243
|
"kind": "FunctionDeclaration",
|
|
1226
1244
|
"signature": "export function defineAsset(input: AssetInput): AssetDefinition;",
|
|
1227
|
-
"line":
|
|
1245
|
+
"line": 802
|
|
1228
1246
|
},
|
|
1229
1247
|
{
|
|
1230
1248
|
"name": "definePrefab",
|
|
1231
1249
|
"kind": "FunctionDeclaration",
|
|
1232
1250
|
"signature": "export function definePrefab(input: PrefabInput): PrefabDefinition;",
|
|
1233
|
-
"line":
|
|
1251
|
+
"line": 805
|
|
1234
1252
|
},
|
|
1235
1253
|
{
|
|
1236
1254
|
"name": "defineScene",
|
|
1237
1255
|
"kind": "FunctionDeclaration",
|
|
1238
1256
|
"signature": "export function defineScene(input: SceneInput): SceneDefinition;",
|
|
1239
|
-
"line":
|
|
1257
|
+
"line": 808
|
|
1240
1258
|
},
|
|
1241
1259
|
{
|
|
1242
1260
|
"name": "defineSystem",
|
|
1243
1261
|
"kind": "FunctionDeclaration",
|
|
1244
1262
|
"signature": "export function defineSystem(input: SystemInput): SystemDefinition;",
|
|
1245
|
-
"line":
|
|
1263
|
+
"line": 811
|
|
1246
1264
|
},
|
|
1247
1265
|
{
|
|
1248
1266
|
"name": "defineGame",
|
|
1249
1267
|
"kind": "FunctionDeclaration",
|
|
1250
1268
|
"signature": "export function defineGame(input: GameInput): GameDefinition;",
|
|
1251
|
-
"line":
|
|
1269
|
+
"line": 814
|
|
1252
1270
|
},
|
|
1253
1271
|
{
|
|
1254
1272
|
"name": "instantiateGame",
|
|
1255
1273
|
"kind": "FunctionDeclaration",
|
|
1256
1274
|
"signature": "export function instantiateGame(\n game: GameDefinition,\n engine: EngineFacade,\n): GameInstance;",
|
|
1257
|
-
"line":
|
|
1275
|
+
"line": 818
|
|
1258
1276
|
}
|
|
1259
1277
|
],
|
|
1260
1278
|
"installedDeclarations": "lib/sdk/index.d.ts",
|