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