pelican-engine 0.3.10 → 0.3.12
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 +37 -13
- package/distribution.json +15 -15
- package/docs/STATUS.md +3 -2
- package/docs/api/REFERENCE.md +110 -92
- package/docs/api/index.json +110 -94
- package/docs/npm/GAME-AUTHOR.md +37 -13
- package/engine.manifest.json +1 -1
- package/lib/physics/index.js +3 -0
- package/lib/runtime/host.js +13 -1
- package/lib/runtime/scheduler.js +11 -1
- package/lib/sdk/index.d.ts +19 -9
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +37 -2
- package/lib/simulation/rope.js +34 -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.12",
|
|
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.12\"",
|
|
12
12
|
"line": 2
|
|
13
13
|
},
|
|
14
14
|
{
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
{
|
|
203
203
|
"name": "RopeDefinition",
|
|
204
204
|
"kind": "InterfaceDeclaration",
|
|
205
|
-
"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 substeps?: number;\n iterations?: number;\n damping?: number;\n gravity?: Vec3;\n anchors?: readonly { index: number; position: Vec3 }[];\n}",
|
|
205
|
+
"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 substeps?: number;\n iterations?: number;\n damping?: number;\n gravity?: Vec3;\n anchors?: readonly { index: number; position: Vec3 }[];\n}",
|
|
206
206
|
"line": 126,
|
|
207
207
|
"fields": [
|
|
208
208
|
"id",
|
|
@@ -210,6 +210,7 @@
|
|
|
210
210
|
"mass",
|
|
211
211
|
"radius",
|
|
212
212
|
"fixedDt",
|
|
213
|
+
"autoStep",
|
|
213
214
|
"substeps",
|
|
214
215
|
"iterations",
|
|
215
216
|
"damping",
|
|
@@ -217,11 +218,25 @@
|
|
|
217
218
|
"anchors"
|
|
218
219
|
]
|
|
219
220
|
},
|
|
221
|
+
{
|
|
222
|
+
"name": "RopeContact",
|
|
223
|
+
"kind": "InterfaceDeclaration",
|
|
224
|
+
"signature": "export interface RopeContact {\n tick: number; particle: number; colliderId: string; penetration: number;\n /** Opposite of particle projection 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}",
|
|
225
|
+
"line": 143,
|
|
226
|
+
"fields": [
|
|
227
|
+
"tick",
|
|
228
|
+
"particle",
|
|
229
|
+
"colliderId",
|
|
230
|
+
"penetration",
|
|
231
|
+
"reactionImpulse",
|
|
232
|
+
"reactionAngularImpulse"
|
|
233
|
+
]
|
|
234
|
+
},
|
|
220
235
|
{
|
|
221
236
|
"name": "RopeState",
|
|
222
237
|
"kind": "InterfaceDeclaration",
|
|
223
|
-
"signature": "export interface RopeState {\n tick: number; simulatedSeconds: number; disposed: boolean;\n positions: Vec3[]; velocities: Vec3[];\n anchors: { index: number; position: Vec3 }[];\n contacts:
|
|
224
|
-
"line":
|
|
238
|
+
"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}",
|
|
239
|
+
"line": 150,
|
|
225
240
|
"fields": [
|
|
226
241
|
"tick",
|
|
227
242
|
"simulatedSeconds",
|
|
@@ -237,8 +252,8 @@
|
|
|
237
252
|
{
|
|
238
253
|
"name": "RopeService",
|
|
239
254
|
"kind": "InterfaceDeclaration",
|
|
240
|
-
"signature": "export interface RopeService {\n create(definition: RopeDefinition): void;\n /** Explicit
|
|
241
|
-
"line":
|
|
255
|
+
"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 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}",
|
|
256
|
+
"line": 158,
|
|
242
257
|
"fields": [
|
|
243
258
|
"create",
|
|
244
259
|
"step",
|
|
@@ -255,7 +270,7 @@
|
|
|
255
270
|
"name": "NavigationCell",
|
|
256
271
|
"kind": "InterfaceDeclaration",
|
|
257
272
|
"signature": "export interface NavigationCell { readonly x: number; readonly y: number }",
|
|
258
|
-
"line":
|
|
273
|
+
"line": 173,
|
|
259
274
|
"fields": [
|
|
260
275
|
"x",
|
|
261
276
|
"y"
|
|
@@ -265,7 +280,7 @@
|
|
|
265
280
|
"name": "NavigationObstacleUpdate",
|
|
266
281
|
"kind": "InterfaceDeclaration",
|
|
267
282
|
"signature": "export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }",
|
|
268
|
-
"line":
|
|
283
|
+
"line": 175,
|
|
269
284
|
"fields": [
|
|
270
285
|
"cell",
|
|
271
286
|
"blocked"
|
|
@@ -275,7 +290,7 @@
|
|
|
275
290
|
"name": "NavigationGrid",
|
|
276
291
|
"kind": "InterfaceDeclaration",
|
|
277
292
|
"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}",
|
|
278
|
-
"line":
|
|
293
|
+
"line": 176,
|
|
279
294
|
"fields": [
|
|
280
295
|
"id",
|
|
281
296
|
"owner",
|
|
@@ -289,7 +304,7 @@
|
|
|
289
304
|
"name": "NavigationService",
|
|
290
305
|
"kind": "InterfaceDeclaration",
|
|
291
306
|
"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}",
|
|
292
|
-
"line":
|
|
307
|
+
"line": 185,
|
|
293
308
|
"fields": [
|
|
294
309
|
"createGrid",
|
|
295
310
|
"getGrid",
|
|
@@ -305,13 +320,13 @@
|
|
|
305
320
|
"name": "RenderMode",
|
|
306
321
|
"kind": "TypeAliasDeclaration",
|
|
307
322
|
"signature": "export type RenderMode = \"raster\" | \"hybrid\" | \"path\";",
|
|
308
|
-
"line":
|
|
323
|
+
"line": 197
|
|
309
324
|
},
|
|
310
325
|
{
|
|
311
326
|
"name": "RenderCapabilities",
|
|
312
327
|
"kind": "InterfaceDeclaration",
|
|
313
328
|
"signature": "export interface RenderCapabilities {\n backend: \"webgpu\" | \"webgl2\" | \"uninitialized\";\n compute: boolean;\n availableModes: readonly RenderMode[];\n}",
|
|
314
|
-
"line":
|
|
329
|
+
"line": 198,
|
|
315
330
|
"fields": [
|
|
316
331
|
"backend",
|
|
317
332
|
"compute",
|
|
@@ -322,7 +337,7 @@
|
|
|
322
337
|
"name": "RenderSettings",
|
|
323
338
|
"kind": "InterfaceDeclaration",
|
|
324
339
|
"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}",
|
|
325
|
-
"line":
|
|
340
|
+
"line": 203,
|
|
326
341
|
"fields": [
|
|
327
342
|
"mode",
|
|
328
343
|
"samplesPerFrame",
|
|
@@ -339,7 +354,7 @@
|
|
|
339
354
|
"name": "RenderService",
|
|
340
355
|
"kind": "InterfaceDeclaration",
|
|
341
356
|
"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}",
|
|
342
|
-
"line":
|
|
357
|
+
"line": 214,
|
|
343
358
|
"fields": [
|
|
344
359
|
"configure",
|
|
345
360
|
"state",
|
|
@@ -355,7 +370,7 @@
|
|
|
355
370
|
"name": "MaterialBufferInput",
|
|
356
371
|
"kind": "InterfaceDeclaration",
|
|
357
372
|
"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}",
|
|
358
|
-
"line":
|
|
373
|
+
"line": 224,
|
|
359
374
|
"fields": [
|
|
360
375
|
"name",
|
|
361
376
|
"type",
|
|
@@ -367,7 +382,7 @@
|
|
|
367
382
|
"name": "RenderBufferReference",
|
|
368
383
|
"kind": "InterfaceDeclaration",
|
|
369
384
|
"signature": "export interface RenderBufferReference {\n id: string;\n type: GraphType;\n count: number;\n}",
|
|
370
|
-
"line":
|
|
385
|
+
"line": 233,
|
|
371
386
|
"fields": [
|
|
372
387
|
"id",
|
|
373
388
|
"type",
|
|
@@ -378,7 +393,7 @@
|
|
|
378
393
|
"name": "RenderBufferBindings",
|
|
379
394
|
"kind": "InterfaceDeclaration",
|
|
380
395
|
"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}",
|
|
381
|
-
"line":
|
|
396
|
+
"line": 238,
|
|
382
397
|
"fields": [
|
|
383
398
|
"bind",
|
|
384
399
|
"unbind",
|
|
@@ -389,7 +404,7 @@
|
|
|
389
404
|
"name": "MaterialTextureInput",
|
|
390
405
|
"kind": "InterfaceDeclaration",
|
|
391
406
|
"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}",
|
|
392
|
-
"line":
|
|
407
|
+
"line": 243,
|
|
393
408
|
"fields": [
|
|
394
409
|
"texture",
|
|
395
410
|
"width",
|
|
@@ -400,7 +415,7 @@
|
|
|
400
415
|
"name": "RenderTextureReference",
|
|
401
416
|
"kind": "InterfaceDeclaration",
|
|
402
417
|
"signature": "export interface RenderTextureReference extends ComputeTextureSize {\n id: string;\n format: \"rgba32float\";\n}",
|
|
403
|
-
"line":
|
|
418
|
+
"line": 249,
|
|
404
419
|
"fields": [
|
|
405
420
|
"id",
|
|
406
421
|
"format"
|
|
@@ -410,7 +425,7 @@
|
|
|
410
425
|
"name": "RenderTextureBindings",
|
|
411
426
|
"kind": "InterfaceDeclaration",
|
|
412
427
|
"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}",
|
|
413
|
-
"line":
|
|
428
|
+
"line": 253,
|
|
414
429
|
"fields": [
|
|
415
430
|
"bind",
|
|
416
431
|
"unbind",
|
|
@@ -421,7 +436,7 @@
|
|
|
421
436
|
"name": "PostProcessState",
|
|
422
437
|
"kind": "InterfaceDeclaration",
|
|
423
438
|
"signature": "export interface PostProcessState {\n id: string;\n enabled: boolean;\n parameters: Readonly<Record<string, GraphValue>>;\n}",
|
|
424
|
-
"line":
|
|
439
|
+
"line": 258,
|
|
425
440
|
"fields": [
|
|
426
441
|
"id",
|
|
427
442
|
"enabled",
|
|
@@ -432,7 +447,7 @@
|
|
|
432
447
|
"name": "PostProcessService",
|
|
433
448
|
"kind": "InterfaceDeclaration",
|
|
434
449
|
"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}",
|
|
435
|
-
"line":
|
|
450
|
+
"line": 263,
|
|
436
451
|
"fields": [
|
|
437
452
|
"buffers",
|
|
438
453
|
"textures",
|
|
@@ -446,7 +461,7 @@
|
|
|
446
461
|
"name": "ComputeBufferHandle",
|
|
447
462
|
"kind": "InterfaceDeclaration",
|
|
448
463
|
"signature": "export interface ComputeBufferHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n}",
|
|
449
|
-
"line":
|
|
464
|
+
"line": 273,
|
|
450
465
|
"fields": [
|
|
451
466
|
"owner",
|
|
452
467
|
"index",
|
|
@@ -457,7 +472,7 @@
|
|
|
457
472
|
"name": "ComputeTaskHandle",
|
|
458
473
|
"kind": "InterfaceDeclaration",
|
|
459
474
|
"signature": "export interface ComputeTaskHandle {\n readonly owner: number;\n readonly id: number;\n}",
|
|
460
|
-
"line":
|
|
475
|
+
"line": 278,
|
|
461
476
|
"fields": [
|
|
462
477
|
"owner",
|
|
463
478
|
"id"
|
|
@@ -467,7 +482,7 @@
|
|
|
467
482
|
"name": "ComputeBufferInput",
|
|
468
483
|
"kind": "InterfaceDeclaration",
|
|
469
484
|
"signature": "export interface ComputeBufferInput {\n id: string;\n type: GraphType;\n count: number;\n data?: readonly GraphValue[];\n}",
|
|
470
|
-
"line":
|
|
485
|
+
"line": 282,
|
|
471
486
|
"fields": [
|
|
472
487
|
"id",
|
|
473
488
|
"type",
|
|
@@ -479,7 +494,7 @@
|
|
|
479
494
|
"name": "ComputeTextureHandle",
|
|
480
495
|
"kind": "InterfaceDeclaration",
|
|
481
496
|
"signature": "export interface ComputeTextureHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n readonly kind: \"texture\";\n}",
|
|
482
|
-
"line":
|
|
497
|
+
"line": 288,
|
|
483
498
|
"fields": [
|
|
484
499
|
"owner",
|
|
485
500
|
"index",
|
|
@@ -491,7 +506,7 @@
|
|
|
491
506
|
"name": "ComputeTextureSize",
|
|
492
507
|
"kind": "InterfaceDeclaration",
|
|
493
508
|
"signature": "export interface ComputeTextureSize {\n width: number;\n height: number;\n}",
|
|
494
|
-
"line":
|
|
509
|
+
"line": 294,
|
|
495
510
|
"fields": [
|
|
496
511
|
"width",
|
|
497
512
|
"height"
|
|
@@ -501,7 +516,7 @@
|
|
|
501
516
|
"name": "ComputeTextureDataInput",
|
|
502
517
|
"kind": "InterfaceDeclaration",
|
|
503
518
|
"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}",
|
|
504
|
-
"line":
|
|
519
|
+
"line": 298,
|
|
505
520
|
"fields": [
|
|
506
521
|
"id",
|
|
507
522
|
"data",
|
|
@@ -512,7 +527,7 @@
|
|
|
512
527
|
"name": "ComputeTextureAssetInput",
|
|
513
528
|
"kind": "InterfaceDeclaration",
|
|
514
529
|
"signature": "export interface ComputeTextureAssetInput {\n id: string;\n asset: AssetDefinition | string;\n width?: never;\n height?: never;\n data?: never;\n}",
|
|
515
|
-
"line":
|
|
530
|
+
"line": 304,
|
|
516
531
|
"fields": [
|
|
517
532
|
"id",
|
|
518
533
|
"asset",
|
|
@@ -525,13 +540,13 @@
|
|
|
525
540
|
"name": "ComputeTextureInput",
|
|
526
541
|
"kind": "TypeAliasDeclaration",
|
|
527
542
|
"signature": "export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;",
|
|
528
|
-
"line":
|
|
543
|
+
"line": 311
|
|
529
544
|
},
|
|
530
545
|
{
|
|
531
546
|
"name": "ComputeTextureBinding",
|
|
532
547
|
"kind": "InterfaceDeclaration",
|
|
533
548
|
"signature": "export interface ComputeTextureBinding {\n name: string;\n filter?: \"nearest\" | \"linear\";\n wrapU?: \"clamp\" | \"repeat\" | \"mirror\";\n wrapV?: \"clamp\" | \"repeat\" | \"mirror\";\n}",
|
|
534
|
-
"line":
|
|
549
|
+
"line": 312,
|
|
535
550
|
"fields": [
|
|
536
551
|
"name",
|
|
537
552
|
"filter",
|
|
@@ -543,7 +558,7 @@
|
|
|
543
558
|
"name": "ComputeDispatchInput",
|
|
544
559
|
"kind": "InterfaceDeclaration",
|
|
545
560
|
"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}",
|
|
546
|
-
"line":
|
|
561
|
+
"line": 318,
|
|
547
562
|
"fields": [
|
|
548
563
|
"output",
|
|
549
564
|
"bindings",
|
|
@@ -557,7 +572,7 @@
|
|
|
557
572
|
"name": "ComputeTaskState",
|
|
558
573
|
"kind": "InterfaceDeclaration",
|
|
559
574
|
"signature": "export interface ComputeTaskState {\n status: \"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\";\n error?: { code: string; message: string; remediation: string };\n}",
|
|
560
|
-
"line":
|
|
575
|
+
"line": 330,
|
|
561
576
|
"fields": [
|
|
562
577
|
"status",
|
|
563
578
|
"error"
|
|
@@ -567,7 +582,7 @@
|
|
|
567
582
|
"name": "ComputeService",
|
|
568
583
|
"kind": "InterfaceDeclaration",
|
|
569
584
|
"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}",
|
|
570
|
-
"line":
|
|
585
|
+
"line": 334,
|
|
571
586
|
"fields": [
|
|
572
587
|
"createTexture",
|
|
573
588
|
"resolveTexture",
|
|
@@ -592,7 +607,7 @@
|
|
|
592
607
|
"name": "InputService",
|
|
593
608
|
"kind": "InterfaceDeclaration",
|
|
594
609
|
"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}",
|
|
595
|
-
"line":
|
|
610
|
+
"line": 354,
|
|
596
611
|
"fields": [
|
|
597
612
|
"held",
|
|
598
613
|
"pressed",
|
|
@@ -603,12 +618,13 @@
|
|
|
603
618
|
{
|
|
604
619
|
"name": "PhysicsService",
|
|
605
620
|
"kind": "InterfaceDeclaration",
|
|
606
|
-
"signature": "export interface PhysicsService {\n moveCharacter(entity: string, displacement: Vec3): void;\n grounded(entity: string): boolean;\n velocity(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}",
|
|
607
|
-
"line":
|
|
621
|
+
"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}",
|
|
622
|
+
"line": 360,
|
|
608
623
|
"fields": [
|
|
609
624
|
"moveCharacter",
|
|
610
625
|
"grounded",
|
|
611
626
|
"velocity",
|
|
627
|
+
"centerOfMass",
|
|
612
628
|
"setVelocity",
|
|
613
629
|
"impulse",
|
|
614
630
|
"angularVelocity",
|
|
@@ -622,7 +638,7 @@
|
|
|
622
638
|
"name": "AnimationService",
|
|
623
639
|
"kind": "InterfaceDeclaration",
|
|
624
640
|
"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}",
|
|
625
|
-
"line":
|
|
641
|
+
"line": 382,
|
|
626
642
|
"fields": [
|
|
627
643
|
"play",
|
|
628
644
|
"state"
|
|
@@ -632,7 +648,7 @@
|
|
|
632
648
|
"name": "CameraService",
|
|
633
649
|
"kind": "InterfaceDeclaration",
|
|
634
650
|
"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}",
|
|
635
|
-
"line":
|
|
651
|
+
"line": 394,
|
|
636
652
|
"fields": [
|
|
637
653
|
"follow",
|
|
638
654
|
"orbit"
|
|
@@ -642,7 +658,7 @@
|
|
|
642
658
|
"name": "UIService",
|
|
643
659
|
"kind": "InterfaceDeclaration",
|
|
644
660
|
"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}",
|
|
645
|
-
"line":
|
|
661
|
+
"line": 407,
|
|
646
662
|
"fields": [
|
|
647
663
|
"setText",
|
|
648
664
|
"setProgress",
|
|
@@ -653,7 +669,7 @@
|
|
|
653
669
|
"name": "AudioService",
|
|
654
670
|
"kind": "InterfaceDeclaration",
|
|
655
671
|
"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}",
|
|
656
|
-
"line":
|
|
672
|
+
"line": 412,
|
|
657
673
|
"fields": [
|
|
658
674
|
"play",
|
|
659
675
|
"stop",
|
|
@@ -668,7 +684,7 @@
|
|
|
668
684
|
"name": "StorageService",
|
|
669
685
|
"kind": "InterfaceDeclaration",
|
|
670
686
|
"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}",
|
|
671
|
-
"line":
|
|
687
|
+
"line": 427,
|
|
672
688
|
"fields": [
|
|
673
689
|
"save",
|
|
674
690
|
"load",
|
|
@@ -679,7 +695,7 @@
|
|
|
679
695
|
"name": "SceneService",
|
|
680
696
|
"kind": "InterfaceDeclaration",
|
|
681
697
|
"signature": "export interface SceneService {\n current(): string;\n load(id: string): void;\n}",
|
|
682
|
-
"line":
|
|
698
|
+
"line": 436,
|
|
683
699
|
"fields": [
|
|
684
700
|
"current",
|
|
685
701
|
"load"
|
|
@@ -689,7 +705,7 @@
|
|
|
689
705
|
"name": "ModelDefinition",
|
|
690
706
|
"kind": "InterfaceDeclaration",
|
|
691
707
|
"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}",
|
|
692
|
-
"line":
|
|
708
|
+
"line": 440,
|
|
693
709
|
"fields": [
|
|
694
710
|
"material",
|
|
695
711
|
"materialSlots",
|
|
@@ -706,7 +722,7 @@
|
|
|
706
722
|
"name": "RigidBodyDefinition",
|
|
707
723
|
"kind": "InterfaceDeclaration",
|
|
708
724
|
"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}",
|
|
709
|
-
"line":
|
|
725
|
+
"line": 453,
|
|
710
726
|
"fields": [
|
|
711
727
|
"type",
|
|
712
728
|
"collider",
|
|
@@ -720,7 +736,7 @@
|
|
|
720
736
|
"name": "CharacterDefinition",
|
|
721
737
|
"kind": "InterfaceDeclaration",
|
|
722
738
|
"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}",
|
|
723
|
-
"line":
|
|
739
|
+
"line": 467,
|
|
724
740
|
"fields": [
|
|
725
741
|
"radius",
|
|
726
742
|
"height",
|
|
@@ -733,7 +749,7 @@
|
|
|
733
749
|
"name": "UIElementDefinition",
|
|
734
750
|
"kind": "InterfaceDeclaration",
|
|
735
751
|
"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}",
|
|
736
|
-
"line":
|
|
752
|
+
"line": 475,
|
|
737
753
|
"fields": [
|
|
738
754
|
"id",
|
|
739
755
|
"kind",
|
|
@@ -752,7 +768,7 @@
|
|
|
752
768
|
"name": "SoundDefinition",
|
|
753
769
|
"kind": "InterfaceDeclaration",
|
|
754
770
|
"signature": "export interface SoundDefinition {\n id: string;\n asset: AssetDefinition | string;\n volume?: number;\n loop?: boolean;\n bus?: string;\n}",
|
|
755
|
-
"line":
|
|
771
|
+
"line": 488,
|
|
756
772
|
"fields": [
|
|
757
773
|
"id",
|
|
758
774
|
"asset",
|
|
@@ -765,7 +781,7 @@
|
|
|
765
781
|
"name": "AudioBusDefinition",
|
|
766
782
|
"kind": "InterfaceDeclaration",
|
|
767
783
|
"signature": "export interface AudioBusDefinition {\n id: string;\n volume?: number;\n}",
|
|
768
|
-
"line":
|
|
784
|
+
"line": 495,
|
|
769
785
|
"fields": [
|
|
770
786
|
"id",
|
|
771
787
|
"volume"
|
|
@@ -775,43 +791,43 @@
|
|
|
775
791
|
"name": "SYSTEM_PHASES",
|
|
776
792
|
"kind": "constant",
|
|
777
793
|
"signature": "SYSTEM_PHASES = [\n \"input\",\n \"prePhysics\",\n \"physics\",\n \"postPhysics\",\n \"update\",\n \"presentation\",\n] as const",
|
|
778
|
-
"line":
|
|
794
|
+
"line": 499
|
|
779
795
|
},
|
|
780
796
|
{
|
|
781
797
|
"name": "SystemPhase",
|
|
782
798
|
"kind": "TypeAliasDeclaration",
|
|
783
799
|
"signature": "export type SystemPhase = (typeof SYSTEM_PHASES)[number];",
|
|
784
|
-
"line":
|
|
800
|
+
"line": 507
|
|
785
801
|
},
|
|
786
802
|
{
|
|
787
803
|
"name": "Geometry",
|
|
788
804
|
"kind": "TypeAliasDeclaration",
|
|
789
805
|
"signature": "export type Geometry =\n | { kind: \"box\"; size?: Vec3 }\n | { kind: \"sphere\"; radius?: number; segments?: number }\n | { kind: \"plane\"; size?: readonly [number, number] };",
|
|
790
|
-
"line":
|
|
806
|
+
"line": 508
|
|
791
807
|
},
|
|
792
808
|
{
|
|
793
809
|
"name": "GRAPH_TYPES",
|
|
794
810
|
"kind": "constant",
|
|
795
811
|
"signature": "GRAPH_TYPES = [\"float\", \"vec2\", \"vec3\", \"vec4\", \"bool\"] as const",
|
|
796
|
-
"line":
|
|
812
|
+
"line": 512
|
|
797
813
|
},
|
|
798
814
|
{
|
|
799
815
|
"name": "GraphType",
|
|
800
816
|
"kind": "TypeAliasDeclaration",
|
|
801
817
|
"signature": "export type GraphType = typeof GRAPH_TYPES[number];",
|
|
802
|
-
"line":
|
|
818
|
+
"line": 513
|
|
803
819
|
},
|
|
804
820
|
{
|
|
805
821
|
"name": "GraphValue",
|
|
806
822
|
"kind": "TypeAliasDeclaration",
|
|
807
823
|
"signature": "export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;",
|
|
808
|
-
"line":
|
|
824
|
+
"line": 514
|
|
809
825
|
},
|
|
810
826
|
{
|
|
811
827
|
"name": "GraphParameter",
|
|
812
828
|
"kind": "InterfaceDeclaration",
|
|
813
829
|
"signature": "export interface GraphParameter {\n name: string;\n type: GraphType;\n default: GraphValue;\n}",
|
|
814
|
-
"line":
|
|
830
|
+
"line": 515,
|
|
815
831
|
"fields": [
|
|
816
832
|
"name",
|
|
817
833
|
"type",
|
|
@@ -822,31 +838,31 @@
|
|
|
822
838
|
"name": "GRAPH_INPUT_TYPES",
|
|
823
839
|
"kind": "constant",
|
|
824
840
|
"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",
|
|
825
|
-
"line":
|
|
841
|
+
"line": 520
|
|
826
842
|
},
|
|
827
843
|
{
|
|
828
844
|
"name": "GraphInputName",
|
|
829
845
|
"kind": "TypeAliasDeclaration",
|
|
830
846
|
"signature": "export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;",
|
|
831
|
-
"line":
|
|
847
|
+
"line": 527
|
|
832
848
|
},
|
|
833
849
|
{
|
|
834
850
|
"name": "GRAPH_OPERATIONS",
|
|
835
851
|
"kind": "constant",
|
|
836
852
|
"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",
|
|
837
|
-
"line":
|
|
853
|
+
"line": 528
|
|
838
854
|
},
|
|
839
855
|
{
|
|
840
856
|
"name": "GraphNode",
|
|
841
857
|
"kind": "TypeAliasDeclaration",
|
|
842
858
|
"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 };",
|
|
843
|
-
"line":
|
|
859
|
+
"line": 533
|
|
844
860
|
},
|
|
845
861
|
{
|
|
846
862
|
"name": "Graph",
|
|
847
863
|
"kind": "InterfaceDeclaration",
|
|
848
864
|
"signature": "export interface Graph {\n nodes: readonly GraphNode[];\n output: string;\n parameters?: readonly GraphParameter[];\n}",
|
|
849
|
-
"line":
|
|
865
|
+
"line": 553,
|
|
850
866
|
"fields": [
|
|
851
867
|
"nodes",
|
|
852
868
|
"output",
|
|
@@ -857,7 +873,7 @@
|
|
|
857
873
|
"name": "MaterialGraphs",
|
|
858
874
|
"kind": "InterfaceDeclaration",
|
|
859
875
|
"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}",
|
|
860
|
-
"line":
|
|
876
|
+
"line": 558,
|
|
861
877
|
"fields": [
|
|
862
878
|
"baseColor",
|
|
863
879
|
"emissive",
|
|
@@ -871,7 +887,7 @@
|
|
|
871
887
|
"name": "VertexGraphs",
|
|
872
888
|
"kind": "InterfaceDeclaration",
|
|
873
889
|
"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}",
|
|
874
|
-
"line":
|
|
890
|
+
"line": 567,
|
|
875
891
|
"fields": [
|
|
876
892
|
"position",
|
|
877
893
|
"normal"
|
|
@@ -881,7 +897,7 @@
|
|
|
881
897
|
"name": "MaterialInput",
|
|
882
898
|
"kind": "InterfaceDeclaration",
|
|
883
899
|
"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}",
|
|
884
|
-
"line":
|
|
900
|
+
"line": 573,
|
|
885
901
|
"fields": [
|
|
886
902
|
"id",
|
|
887
903
|
"color",
|
|
@@ -910,7 +926,7 @@
|
|
|
910
926
|
"name": "MaterialDefinition",
|
|
911
927
|
"kind": "InterfaceDeclaration",
|
|
912
928
|
"signature": "export interface MaterialDefinition extends MaterialInput {\n readonly kind: \"material\";\n}",
|
|
913
|
-
"line":
|
|
929
|
+
"line": 600,
|
|
914
930
|
"fields": [
|
|
915
931
|
"kind"
|
|
916
932
|
]
|
|
@@ -919,7 +935,7 @@
|
|
|
919
935
|
"name": "PostProcessInput",
|
|
920
936
|
"kind": "InterfaceDeclaration",
|
|
921
937
|
"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}",
|
|
922
|
-
"line":
|
|
938
|
+
"line": 603,
|
|
923
939
|
"fields": [
|
|
924
940
|
"id",
|
|
925
941
|
"buffers",
|
|
@@ -932,7 +948,7 @@
|
|
|
932
948
|
"name": "PostProcessDefinition",
|
|
933
949
|
"kind": "InterfaceDeclaration",
|
|
934
950
|
"signature": "export interface PostProcessDefinition extends PostProcessInput {\n readonly kind: \"postprocess\";\n}",
|
|
935
|
-
"line":
|
|
951
|
+
"line": 611,
|
|
936
952
|
"fields": [
|
|
937
953
|
"kind"
|
|
938
954
|
]
|
|
@@ -941,7 +957,7 @@
|
|
|
941
957
|
"name": "ComputeInput",
|
|
942
958
|
"kind": "InterfaceDeclaration",
|
|
943
959
|
"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}",
|
|
944
|
-
"line":
|
|
960
|
+
"line": 614,
|
|
945
961
|
"fields": [
|
|
946
962
|
"id",
|
|
947
963
|
"graph",
|
|
@@ -956,7 +972,7 @@
|
|
|
956
972
|
"name": "ComputeDefinition",
|
|
957
973
|
"kind": "InterfaceDeclaration",
|
|
958
974
|
"signature": "export interface ComputeDefinition extends ComputeInput {\n readonly kind: \"compute\";\n}",
|
|
959
|
-
"line":
|
|
975
|
+
"line": 623,
|
|
960
976
|
"fields": [
|
|
961
977
|
"kind"
|
|
962
978
|
]
|
|
@@ -965,7 +981,7 @@
|
|
|
965
981
|
"name": "AssetInput",
|
|
966
982
|
"kind": "InterfaceDeclaration",
|
|
967
983
|
"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}",
|
|
968
|
-
"line":
|
|
984
|
+
"line": 626,
|
|
969
985
|
"fields": [
|
|
970
986
|
"id",
|
|
971
987
|
"path",
|
|
@@ -980,7 +996,7 @@
|
|
|
980
996
|
"name": "AssetDefinition",
|
|
981
997
|
"kind": "InterfaceDeclaration",
|
|
982
998
|
"signature": "export interface AssetDefinition extends AssetInput {\n readonly kind: \"asset\";\n}",
|
|
983
|
-
"line":
|
|
999
|
+
"line": 636,
|
|
984
1000
|
"fields": [
|
|
985
1001
|
"kind"
|
|
986
1002
|
]
|
|
@@ -989,7 +1005,7 @@
|
|
|
989
1005
|
"name": "MeshDefinition",
|
|
990
1006
|
"kind": "InterfaceDeclaration",
|
|
991
1007
|
"signature": "export interface MeshDefinition {\n geometry: Geometry;\n material: MaterialDefinition | string;\n castShadow?: boolean;\n receiveShadow?: boolean;\n}",
|
|
992
|
-
"line":
|
|
1008
|
+
"line": 639,
|
|
993
1009
|
"fields": [
|
|
994
1010
|
"geometry",
|
|
995
1011
|
"material",
|
|
@@ -1001,7 +1017,7 @@
|
|
|
1001
1017
|
"name": "LightDefinition",
|
|
1002
1018
|
"kind": "InterfaceDeclaration",
|
|
1003
1019
|
"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}",
|
|
1004
|
-
"line":
|
|
1020
|
+
"line": 645,
|
|
1005
1021
|
"fields": [
|
|
1006
1022
|
"kind",
|
|
1007
1023
|
"color",
|
|
@@ -1015,7 +1031,7 @@
|
|
|
1015
1031
|
"name": "EntityInput",
|
|
1016
1032
|
"kind": "InterfaceDeclaration",
|
|
1017
1033
|
"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}",
|
|
1018
|
-
"line":
|
|
1034
|
+
"line": 660,
|
|
1019
1035
|
"fields": [
|
|
1020
1036
|
"id",
|
|
1021
1037
|
"prefab",
|
|
@@ -1033,7 +1049,7 @@
|
|
|
1033
1049
|
"name": "PrefabInput",
|
|
1034
1050
|
"kind": "InterfaceDeclaration",
|
|
1035
1051
|
"signature": "export interface PrefabInput extends Omit<EntityInput, \"prefab\" | \"parent\"> {\n extends?: PrefabDefinition | string;\n}",
|
|
1036
|
-
"line":
|
|
1052
|
+
"line": 672,
|
|
1037
1053
|
"fields": [
|
|
1038
1054
|
"extends"
|
|
1039
1055
|
]
|
|
@@ -1042,7 +1058,7 @@
|
|
|
1042
1058
|
"name": "PrefabDefinition",
|
|
1043
1059
|
"kind": "InterfaceDeclaration",
|
|
1044
1060
|
"signature": "export interface PrefabDefinition extends PrefabInput {\n readonly kind: \"prefab\";\n}",
|
|
1045
|
-
"line":
|
|
1061
|
+
"line": 675,
|
|
1046
1062
|
"fields": [
|
|
1047
1063
|
"kind"
|
|
1048
1064
|
]
|
|
@@ -1051,7 +1067,7 @@
|
|
|
1051
1067
|
"name": "SceneInput",
|
|
1052
1068
|
"kind": "InterfaceDeclaration",
|
|
1053
1069
|
"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}",
|
|
1054
|
-
"line":
|
|
1070
|
+
"line": 678,
|
|
1055
1071
|
"fields": [
|
|
1056
1072
|
"id",
|
|
1057
1073
|
"camera",
|
|
@@ -1065,7 +1081,7 @@
|
|
|
1065
1081
|
"name": "SceneDefinition",
|
|
1066
1082
|
"kind": "InterfaceDeclaration",
|
|
1067
1083
|
"signature": "export interface SceneDefinition extends SceneInput {\n readonly kind: \"scene\";\n}",
|
|
1068
|
-
"line":
|
|
1084
|
+
"line": 703,
|
|
1069
1085
|
"fields": [
|
|
1070
1086
|
"kind"
|
|
1071
1087
|
]
|
|
@@ -1074,7 +1090,7 @@
|
|
|
1074
1090
|
"name": "SystemInput",
|
|
1075
1091
|
"kind": "InterfaceDeclaration",
|
|
1076
1092
|
"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}",
|
|
1077
|
-
"line":
|
|
1093
|
+
"line": 706,
|
|
1078
1094
|
"fields": [
|
|
1079
1095
|
"id",
|
|
1080
1096
|
"phase",
|
|
@@ -1090,7 +1106,7 @@
|
|
|
1090
1106
|
"name": "SystemDefinition",
|
|
1091
1107
|
"kind": "InterfaceDeclaration",
|
|
1092
1108
|
"signature": "export interface SystemDefinition extends SystemInput {\n readonly kind: \"system\";\n}",
|
|
1093
|
-
"line":
|
|
1109
|
+
"line": 716,
|
|
1094
1110
|
"fields": [
|
|
1095
1111
|
"kind"
|
|
1096
1112
|
]
|
|
@@ -1099,7 +1115,7 @@
|
|
|
1099
1115
|
"name": "GameInput",
|
|
1100
1116
|
"kind": "InterfaceDeclaration",
|
|
1101
1117
|
"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}",
|
|
1102
|
-
"line":
|
|
1118
|
+
"line": 719,
|
|
1103
1119
|
"fields": [
|
|
1104
1120
|
"id",
|
|
1105
1121
|
"scene",
|
|
@@ -1124,7 +1140,7 @@
|
|
|
1124
1140
|
"name": "GameDefinition",
|
|
1125
1141
|
"kind": "InterfaceDeclaration",
|
|
1126
1142
|
"signature": "export interface GameDefinition extends GameInput {\n readonly kind: \"game\";\n}",
|
|
1127
|
-
"line":
|
|
1143
|
+
"line": 738,
|
|
1128
1144
|
"fields": [
|
|
1129
1145
|
"kind"
|
|
1130
1146
|
]
|
|
@@ -1133,7 +1149,7 @@
|
|
|
1133
1149
|
"name": "GameInstance",
|
|
1134
1150
|
"kind": "InterfaceDeclaration",
|
|
1135
1151
|
"signature": "export interface GameInstance {\n update(dt: number): void;\n dispose(): void;\n}",
|
|
1136
|
-
"line":
|
|
1152
|
+
"line": 741,
|
|
1137
1153
|
"fields": [
|
|
1138
1154
|
"update",
|
|
1139
1155
|
"dispose"
|
|
@@ -1143,61 +1159,61 @@
|
|
|
1143
1159
|
"name": "defineComponent",
|
|
1144
1160
|
"kind": "FunctionDeclaration",
|
|
1145
1161
|
"signature": "export function defineComponent<const S extends ComponentSchema>(input: {\n id: string;\n schema: S;\n}): ComponentDefinition<S>;",
|
|
1146
|
-
"line":
|
|
1162
|
+
"line": 745
|
|
1147
1163
|
},
|
|
1148
1164
|
{
|
|
1149
1165
|
"name": "defineMaterial",
|
|
1150
1166
|
"kind": "FunctionDeclaration",
|
|
1151
1167
|
"signature": "export function defineMaterial(input: MaterialInput): MaterialDefinition;",
|
|
1152
|
-
"line":
|
|
1168
|
+
"line": 751
|
|
1153
1169
|
},
|
|
1154
1170
|
{
|
|
1155
1171
|
"name": "definePostProcess",
|
|
1156
1172
|
"kind": "FunctionDeclaration",
|
|
1157
1173
|
"signature": "export function definePostProcess(input: PostProcessInput): PostProcessDefinition;",
|
|
1158
|
-
"line":
|
|
1174
|
+
"line": 754
|
|
1159
1175
|
},
|
|
1160
1176
|
{
|
|
1161
1177
|
"name": "defineCompute",
|
|
1162
1178
|
"kind": "FunctionDeclaration",
|
|
1163
1179
|
"signature": "export function defineCompute(input: ComputeInput): ComputeDefinition;",
|
|
1164
|
-
"line":
|
|
1180
|
+
"line": 757
|
|
1165
1181
|
},
|
|
1166
1182
|
{
|
|
1167
1183
|
"name": "defineAsset",
|
|
1168
1184
|
"kind": "FunctionDeclaration",
|
|
1169
1185
|
"signature": "export function defineAsset(input: AssetInput): AssetDefinition;",
|
|
1170
|
-
"line":
|
|
1186
|
+
"line": 760
|
|
1171
1187
|
},
|
|
1172
1188
|
{
|
|
1173
1189
|
"name": "definePrefab",
|
|
1174
1190
|
"kind": "FunctionDeclaration",
|
|
1175
1191
|
"signature": "export function definePrefab(input: PrefabInput): PrefabDefinition;",
|
|
1176
|
-
"line":
|
|
1192
|
+
"line": 763
|
|
1177
1193
|
},
|
|
1178
1194
|
{
|
|
1179
1195
|
"name": "defineScene",
|
|
1180
1196
|
"kind": "FunctionDeclaration",
|
|
1181
1197
|
"signature": "export function defineScene(input: SceneInput): SceneDefinition;",
|
|
1182
|
-
"line":
|
|
1198
|
+
"line": 766
|
|
1183
1199
|
},
|
|
1184
1200
|
{
|
|
1185
1201
|
"name": "defineSystem",
|
|
1186
1202
|
"kind": "FunctionDeclaration",
|
|
1187
1203
|
"signature": "export function defineSystem(input: SystemInput): SystemDefinition;",
|
|
1188
|
-
"line":
|
|
1204
|
+
"line": 769
|
|
1189
1205
|
},
|
|
1190
1206
|
{
|
|
1191
1207
|
"name": "defineGame",
|
|
1192
1208
|
"kind": "FunctionDeclaration",
|
|
1193
1209
|
"signature": "export function defineGame(input: GameInput): GameDefinition;",
|
|
1194
|
-
"line":
|
|
1210
|
+
"line": 772
|
|
1195
1211
|
},
|
|
1196
1212
|
{
|
|
1197
1213
|
"name": "instantiateGame",
|
|
1198
1214
|
"kind": "FunctionDeclaration",
|
|
1199
1215
|
"signature": "export function instantiateGame(\n game: GameDefinition,\n engine: EngineFacade,\n): GameInstance;",
|
|
1200
|
-
"line":
|
|
1216
|
+
"line": 776
|
|
1201
1217
|
}
|
|
1202
1218
|
],
|
|
1203
1219
|
"installedDeclarations": "lib/sdk/index.d.ts",
|