pelican-engine 0.3.10 → 0.3.11
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 +21 -13
- package/distribution.json +13 -13
- package/docs/STATUS.md +2 -2
- package/docs/api/REFERENCE.md +93 -91
- package/docs/api/index.json +93 -92
- package/docs/npm/GAME-AUTHOR.md +21 -13
- package/engine.manifest.json +1 -1
- package/lib/runtime/host.js +13 -1
- package/lib/runtime/scheduler.js +11 -1
- package/lib/sdk/index.d.ts +4 -2
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +37 -2
- 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.11",
|
|
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.11\"",
|
|
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",
|
|
@@ -221,7 +222,7 @@
|
|
|
221
222
|
"name": "RopeState",
|
|
222
223
|
"kind": "InterfaceDeclaration",
|
|
223
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: { tick: number; particle: number; colliderId: string; penetration: number }[];\n maxDistanceError: number;\n resources: { particles: number; constraints: number; anchors: number; colliders: number };\n}",
|
|
224
|
-
"line":
|
|
225
|
+
"line": 142,
|
|
225
226
|
"fields": [
|
|
226
227
|
"tick",
|
|
227
228
|
"simulatedSeconds",
|
|
@@ -237,8 +238,8 @@
|
|
|
237
238
|
{
|
|
238
239
|
"name": "RopeService",
|
|
239
240
|
"kind": "InterfaceDeclaration",
|
|
240
|
-
"signature": "export interface RopeService {\n create(definition: RopeDefinition): void;\n /** Explicit
|
|
241
|
-
"line":
|
|
241
|
+
"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": 150,
|
|
242
243
|
"fields": [
|
|
243
244
|
"create",
|
|
244
245
|
"step",
|
|
@@ -255,7 +256,7 @@
|
|
|
255
256
|
"name": "NavigationCell",
|
|
256
257
|
"kind": "InterfaceDeclaration",
|
|
257
258
|
"signature": "export interface NavigationCell { readonly x: number; readonly y: number }",
|
|
258
|
-
"line":
|
|
259
|
+
"line": 165,
|
|
259
260
|
"fields": [
|
|
260
261
|
"x",
|
|
261
262
|
"y"
|
|
@@ -265,7 +266,7 @@
|
|
|
265
266
|
"name": "NavigationObstacleUpdate",
|
|
266
267
|
"kind": "InterfaceDeclaration",
|
|
267
268
|
"signature": "export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }",
|
|
268
|
-
"line":
|
|
269
|
+
"line": 167,
|
|
269
270
|
"fields": [
|
|
270
271
|
"cell",
|
|
271
272
|
"blocked"
|
|
@@ -275,7 +276,7 @@
|
|
|
275
276
|
"name": "NavigationGrid",
|
|
276
277
|
"kind": "InterfaceDeclaration",
|
|
277
278
|
"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":
|
|
279
|
+
"line": 168,
|
|
279
280
|
"fields": [
|
|
280
281
|
"id",
|
|
281
282
|
"owner",
|
|
@@ -289,7 +290,7 @@
|
|
|
289
290
|
"name": "NavigationService",
|
|
290
291
|
"kind": "InterfaceDeclaration",
|
|
291
292
|
"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":
|
|
293
|
+
"line": 177,
|
|
293
294
|
"fields": [
|
|
294
295
|
"createGrid",
|
|
295
296
|
"getGrid",
|
|
@@ -305,13 +306,13 @@
|
|
|
305
306
|
"name": "RenderMode",
|
|
306
307
|
"kind": "TypeAliasDeclaration",
|
|
307
308
|
"signature": "export type RenderMode = \"raster\" | \"hybrid\" | \"path\";",
|
|
308
|
-
"line":
|
|
309
|
+
"line": 189
|
|
309
310
|
},
|
|
310
311
|
{
|
|
311
312
|
"name": "RenderCapabilities",
|
|
312
313
|
"kind": "InterfaceDeclaration",
|
|
313
314
|
"signature": "export interface RenderCapabilities {\n backend: \"webgpu\" | \"webgl2\" | \"uninitialized\";\n compute: boolean;\n availableModes: readonly RenderMode[];\n}",
|
|
314
|
-
"line":
|
|
315
|
+
"line": 190,
|
|
315
316
|
"fields": [
|
|
316
317
|
"backend",
|
|
317
318
|
"compute",
|
|
@@ -322,7 +323,7 @@
|
|
|
322
323
|
"name": "RenderSettings",
|
|
323
324
|
"kind": "InterfaceDeclaration",
|
|
324
325
|
"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":
|
|
326
|
+
"line": 195,
|
|
326
327
|
"fields": [
|
|
327
328
|
"mode",
|
|
328
329
|
"samplesPerFrame",
|
|
@@ -339,7 +340,7 @@
|
|
|
339
340
|
"name": "RenderService",
|
|
340
341
|
"kind": "InterfaceDeclaration",
|
|
341
342
|
"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":
|
|
343
|
+
"line": 206,
|
|
343
344
|
"fields": [
|
|
344
345
|
"configure",
|
|
345
346
|
"state",
|
|
@@ -355,7 +356,7 @@
|
|
|
355
356
|
"name": "MaterialBufferInput",
|
|
356
357
|
"kind": "InterfaceDeclaration",
|
|
357
358
|
"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":
|
|
359
|
+
"line": 216,
|
|
359
360
|
"fields": [
|
|
360
361
|
"name",
|
|
361
362
|
"type",
|
|
@@ -367,7 +368,7 @@
|
|
|
367
368
|
"name": "RenderBufferReference",
|
|
368
369
|
"kind": "InterfaceDeclaration",
|
|
369
370
|
"signature": "export interface RenderBufferReference {\n id: string;\n type: GraphType;\n count: number;\n}",
|
|
370
|
-
"line":
|
|
371
|
+
"line": 225,
|
|
371
372
|
"fields": [
|
|
372
373
|
"id",
|
|
373
374
|
"type",
|
|
@@ -378,7 +379,7 @@
|
|
|
378
379
|
"name": "RenderBufferBindings",
|
|
379
380
|
"kind": "InterfaceDeclaration",
|
|
380
381
|
"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":
|
|
382
|
+
"line": 230,
|
|
382
383
|
"fields": [
|
|
383
384
|
"bind",
|
|
384
385
|
"unbind",
|
|
@@ -389,7 +390,7 @@
|
|
|
389
390
|
"name": "MaterialTextureInput",
|
|
390
391
|
"kind": "InterfaceDeclaration",
|
|
391
392
|
"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":
|
|
393
|
+
"line": 235,
|
|
393
394
|
"fields": [
|
|
394
395
|
"texture",
|
|
395
396
|
"width",
|
|
@@ -400,7 +401,7 @@
|
|
|
400
401
|
"name": "RenderTextureReference",
|
|
401
402
|
"kind": "InterfaceDeclaration",
|
|
402
403
|
"signature": "export interface RenderTextureReference extends ComputeTextureSize {\n id: string;\n format: \"rgba32float\";\n}",
|
|
403
|
-
"line":
|
|
404
|
+
"line": 241,
|
|
404
405
|
"fields": [
|
|
405
406
|
"id",
|
|
406
407
|
"format"
|
|
@@ -410,7 +411,7 @@
|
|
|
410
411
|
"name": "RenderTextureBindings",
|
|
411
412
|
"kind": "InterfaceDeclaration",
|
|
412
413
|
"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":
|
|
414
|
+
"line": 245,
|
|
414
415
|
"fields": [
|
|
415
416
|
"bind",
|
|
416
417
|
"unbind",
|
|
@@ -421,7 +422,7 @@
|
|
|
421
422
|
"name": "PostProcessState",
|
|
422
423
|
"kind": "InterfaceDeclaration",
|
|
423
424
|
"signature": "export interface PostProcessState {\n id: string;\n enabled: boolean;\n parameters: Readonly<Record<string, GraphValue>>;\n}",
|
|
424
|
-
"line":
|
|
425
|
+
"line": 250,
|
|
425
426
|
"fields": [
|
|
426
427
|
"id",
|
|
427
428
|
"enabled",
|
|
@@ -432,7 +433,7 @@
|
|
|
432
433
|
"name": "PostProcessService",
|
|
433
434
|
"kind": "InterfaceDeclaration",
|
|
434
435
|
"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":
|
|
436
|
+
"line": 255,
|
|
436
437
|
"fields": [
|
|
437
438
|
"buffers",
|
|
438
439
|
"textures",
|
|
@@ -446,7 +447,7 @@
|
|
|
446
447
|
"name": "ComputeBufferHandle",
|
|
447
448
|
"kind": "InterfaceDeclaration",
|
|
448
449
|
"signature": "export interface ComputeBufferHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n}",
|
|
449
|
-
"line":
|
|
450
|
+
"line": 265,
|
|
450
451
|
"fields": [
|
|
451
452
|
"owner",
|
|
452
453
|
"index",
|
|
@@ -457,7 +458,7 @@
|
|
|
457
458
|
"name": "ComputeTaskHandle",
|
|
458
459
|
"kind": "InterfaceDeclaration",
|
|
459
460
|
"signature": "export interface ComputeTaskHandle {\n readonly owner: number;\n readonly id: number;\n}",
|
|
460
|
-
"line":
|
|
461
|
+
"line": 270,
|
|
461
462
|
"fields": [
|
|
462
463
|
"owner",
|
|
463
464
|
"id"
|
|
@@ -467,7 +468,7 @@
|
|
|
467
468
|
"name": "ComputeBufferInput",
|
|
468
469
|
"kind": "InterfaceDeclaration",
|
|
469
470
|
"signature": "export interface ComputeBufferInput {\n id: string;\n type: GraphType;\n count: number;\n data?: readonly GraphValue[];\n}",
|
|
470
|
-
"line":
|
|
471
|
+
"line": 274,
|
|
471
472
|
"fields": [
|
|
472
473
|
"id",
|
|
473
474
|
"type",
|
|
@@ -479,7 +480,7 @@
|
|
|
479
480
|
"name": "ComputeTextureHandle",
|
|
480
481
|
"kind": "InterfaceDeclaration",
|
|
481
482
|
"signature": "export interface ComputeTextureHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n readonly kind: \"texture\";\n}",
|
|
482
|
-
"line":
|
|
483
|
+
"line": 280,
|
|
483
484
|
"fields": [
|
|
484
485
|
"owner",
|
|
485
486
|
"index",
|
|
@@ -491,7 +492,7 @@
|
|
|
491
492
|
"name": "ComputeTextureSize",
|
|
492
493
|
"kind": "InterfaceDeclaration",
|
|
493
494
|
"signature": "export interface ComputeTextureSize {\n width: number;\n height: number;\n}",
|
|
494
|
-
"line":
|
|
495
|
+
"line": 286,
|
|
495
496
|
"fields": [
|
|
496
497
|
"width",
|
|
497
498
|
"height"
|
|
@@ -501,7 +502,7 @@
|
|
|
501
502
|
"name": "ComputeTextureDataInput",
|
|
502
503
|
"kind": "InterfaceDeclaration",
|
|
503
504
|
"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":
|
|
505
|
+
"line": 290,
|
|
505
506
|
"fields": [
|
|
506
507
|
"id",
|
|
507
508
|
"data",
|
|
@@ -512,7 +513,7 @@
|
|
|
512
513
|
"name": "ComputeTextureAssetInput",
|
|
513
514
|
"kind": "InterfaceDeclaration",
|
|
514
515
|
"signature": "export interface ComputeTextureAssetInput {\n id: string;\n asset: AssetDefinition | string;\n width?: never;\n height?: never;\n data?: never;\n}",
|
|
515
|
-
"line":
|
|
516
|
+
"line": 296,
|
|
516
517
|
"fields": [
|
|
517
518
|
"id",
|
|
518
519
|
"asset",
|
|
@@ -525,13 +526,13 @@
|
|
|
525
526
|
"name": "ComputeTextureInput",
|
|
526
527
|
"kind": "TypeAliasDeclaration",
|
|
527
528
|
"signature": "export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;",
|
|
528
|
-
"line":
|
|
529
|
+
"line": 303
|
|
529
530
|
},
|
|
530
531
|
{
|
|
531
532
|
"name": "ComputeTextureBinding",
|
|
532
533
|
"kind": "InterfaceDeclaration",
|
|
533
534
|
"signature": "export interface ComputeTextureBinding {\n name: string;\n filter?: \"nearest\" | \"linear\";\n wrapU?: \"clamp\" | \"repeat\" | \"mirror\";\n wrapV?: \"clamp\" | \"repeat\" | \"mirror\";\n}",
|
|
534
|
-
"line":
|
|
535
|
+
"line": 304,
|
|
535
536
|
"fields": [
|
|
536
537
|
"name",
|
|
537
538
|
"filter",
|
|
@@ -543,7 +544,7 @@
|
|
|
543
544
|
"name": "ComputeDispatchInput",
|
|
544
545
|
"kind": "InterfaceDeclaration",
|
|
545
546
|
"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":
|
|
547
|
+
"line": 310,
|
|
547
548
|
"fields": [
|
|
548
549
|
"output",
|
|
549
550
|
"bindings",
|
|
@@ -557,7 +558,7 @@
|
|
|
557
558
|
"name": "ComputeTaskState",
|
|
558
559
|
"kind": "InterfaceDeclaration",
|
|
559
560
|
"signature": "export interface ComputeTaskState {\n status: \"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\";\n error?: { code: string; message: string; remediation: string };\n}",
|
|
560
|
-
"line":
|
|
561
|
+
"line": 322,
|
|
561
562
|
"fields": [
|
|
562
563
|
"status",
|
|
563
564
|
"error"
|
|
@@ -567,7 +568,7 @@
|
|
|
567
568
|
"name": "ComputeService",
|
|
568
569
|
"kind": "InterfaceDeclaration",
|
|
569
570
|
"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":
|
|
571
|
+
"line": 326,
|
|
571
572
|
"fields": [
|
|
572
573
|
"createTexture",
|
|
573
574
|
"resolveTexture",
|
|
@@ -592,7 +593,7 @@
|
|
|
592
593
|
"name": "InputService",
|
|
593
594
|
"kind": "InterfaceDeclaration",
|
|
594
595
|
"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":
|
|
596
|
+
"line": 346,
|
|
596
597
|
"fields": [
|
|
597
598
|
"held",
|
|
598
599
|
"pressed",
|
|
@@ -604,7 +605,7 @@
|
|
|
604
605
|
"name": "PhysicsService",
|
|
605
606
|
"kind": "InterfaceDeclaration",
|
|
606
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}",
|
|
607
|
-
"line":
|
|
608
|
+
"line": 352,
|
|
608
609
|
"fields": [
|
|
609
610
|
"moveCharacter",
|
|
610
611
|
"grounded",
|
|
@@ -622,7 +623,7 @@
|
|
|
622
623
|
"name": "AnimationService",
|
|
623
624
|
"kind": "InterfaceDeclaration",
|
|
624
625
|
"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":
|
|
626
|
+
"line": 372,
|
|
626
627
|
"fields": [
|
|
627
628
|
"play",
|
|
628
629
|
"state"
|
|
@@ -632,7 +633,7 @@
|
|
|
632
633
|
"name": "CameraService",
|
|
633
634
|
"kind": "InterfaceDeclaration",
|
|
634
635
|
"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":
|
|
636
|
+
"line": 384,
|
|
636
637
|
"fields": [
|
|
637
638
|
"follow",
|
|
638
639
|
"orbit"
|
|
@@ -642,7 +643,7 @@
|
|
|
642
643
|
"name": "UIService",
|
|
643
644
|
"kind": "InterfaceDeclaration",
|
|
644
645
|
"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":
|
|
646
|
+
"line": 397,
|
|
646
647
|
"fields": [
|
|
647
648
|
"setText",
|
|
648
649
|
"setProgress",
|
|
@@ -653,7 +654,7 @@
|
|
|
653
654
|
"name": "AudioService",
|
|
654
655
|
"kind": "InterfaceDeclaration",
|
|
655
656
|
"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":
|
|
657
|
+
"line": 402,
|
|
657
658
|
"fields": [
|
|
658
659
|
"play",
|
|
659
660
|
"stop",
|
|
@@ -668,7 +669,7 @@
|
|
|
668
669
|
"name": "StorageService",
|
|
669
670
|
"kind": "InterfaceDeclaration",
|
|
670
671
|
"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":
|
|
672
|
+
"line": 417,
|
|
672
673
|
"fields": [
|
|
673
674
|
"save",
|
|
674
675
|
"load",
|
|
@@ -679,7 +680,7 @@
|
|
|
679
680
|
"name": "SceneService",
|
|
680
681
|
"kind": "InterfaceDeclaration",
|
|
681
682
|
"signature": "export interface SceneService {\n current(): string;\n load(id: string): void;\n}",
|
|
682
|
-
"line":
|
|
683
|
+
"line": 426,
|
|
683
684
|
"fields": [
|
|
684
685
|
"current",
|
|
685
686
|
"load"
|
|
@@ -689,7 +690,7 @@
|
|
|
689
690
|
"name": "ModelDefinition",
|
|
690
691
|
"kind": "InterfaceDeclaration",
|
|
691
692
|
"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":
|
|
693
|
+
"line": 430,
|
|
693
694
|
"fields": [
|
|
694
695
|
"material",
|
|
695
696
|
"materialSlots",
|
|
@@ -706,7 +707,7 @@
|
|
|
706
707
|
"name": "RigidBodyDefinition",
|
|
707
708
|
"kind": "InterfaceDeclaration",
|
|
708
709
|
"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":
|
|
710
|
+
"line": 443,
|
|
710
711
|
"fields": [
|
|
711
712
|
"type",
|
|
712
713
|
"collider",
|
|
@@ -720,7 +721,7 @@
|
|
|
720
721
|
"name": "CharacterDefinition",
|
|
721
722
|
"kind": "InterfaceDeclaration",
|
|
722
723
|
"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":
|
|
724
|
+
"line": 457,
|
|
724
725
|
"fields": [
|
|
725
726
|
"radius",
|
|
726
727
|
"height",
|
|
@@ -733,7 +734,7 @@
|
|
|
733
734
|
"name": "UIElementDefinition",
|
|
734
735
|
"kind": "InterfaceDeclaration",
|
|
735
736
|
"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":
|
|
737
|
+
"line": 465,
|
|
737
738
|
"fields": [
|
|
738
739
|
"id",
|
|
739
740
|
"kind",
|
|
@@ -752,7 +753,7 @@
|
|
|
752
753
|
"name": "SoundDefinition",
|
|
753
754
|
"kind": "InterfaceDeclaration",
|
|
754
755
|
"signature": "export interface SoundDefinition {\n id: string;\n asset: AssetDefinition | string;\n volume?: number;\n loop?: boolean;\n bus?: string;\n}",
|
|
755
|
-
"line":
|
|
756
|
+
"line": 478,
|
|
756
757
|
"fields": [
|
|
757
758
|
"id",
|
|
758
759
|
"asset",
|
|
@@ -765,7 +766,7 @@
|
|
|
765
766
|
"name": "AudioBusDefinition",
|
|
766
767
|
"kind": "InterfaceDeclaration",
|
|
767
768
|
"signature": "export interface AudioBusDefinition {\n id: string;\n volume?: number;\n}",
|
|
768
|
-
"line":
|
|
769
|
+
"line": 485,
|
|
769
770
|
"fields": [
|
|
770
771
|
"id",
|
|
771
772
|
"volume"
|
|
@@ -775,43 +776,43 @@
|
|
|
775
776
|
"name": "SYSTEM_PHASES",
|
|
776
777
|
"kind": "constant",
|
|
777
778
|
"signature": "SYSTEM_PHASES = [\n \"input\",\n \"prePhysics\",\n \"physics\",\n \"postPhysics\",\n \"update\",\n \"presentation\",\n] as const",
|
|
778
|
-
"line":
|
|
779
|
+
"line": 489
|
|
779
780
|
},
|
|
780
781
|
{
|
|
781
782
|
"name": "SystemPhase",
|
|
782
783
|
"kind": "TypeAliasDeclaration",
|
|
783
784
|
"signature": "export type SystemPhase = (typeof SYSTEM_PHASES)[number];",
|
|
784
|
-
"line":
|
|
785
|
+
"line": 497
|
|
785
786
|
},
|
|
786
787
|
{
|
|
787
788
|
"name": "Geometry",
|
|
788
789
|
"kind": "TypeAliasDeclaration",
|
|
789
790
|
"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":
|
|
791
|
+
"line": 498
|
|
791
792
|
},
|
|
792
793
|
{
|
|
793
794
|
"name": "GRAPH_TYPES",
|
|
794
795
|
"kind": "constant",
|
|
795
796
|
"signature": "GRAPH_TYPES = [\"float\", \"vec2\", \"vec3\", \"vec4\", \"bool\"] as const",
|
|
796
|
-
"line":
|
|
797
|
+
"line": 502
|
|
797
798
|
},
|
|
798
799
|
{
|
|
799
800
|
"name": "GraphType",
|
|
800
801
|
"kind": "TypeAliasDeclaration",
|
|
801
802
|
"signature": "export type GraphType = typeof GRAPH_TYPES[number];",
|
|
802
|
-
"line":
|
|
803
|
+
"line": 503
|
|
803
804
|
},
|
|
804
805
|
{
|
|
805
806
|
"name": "GraphValue",
|
|
806
807
|
"kind": "TypeAliasDeclaration",
|
|
807
808
|
"signature": "export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;",
|
|
808
|
-
"line":
|
|
809
|
+
"line": 504
|
|
809
810
|
},
|
|
810
811
|
{
|
|
811
812
|
"name": "GraphParameter",
|
|
812
813
|
"kind": "InterfaceDeclaration",
|
|
813
814
|
"signature": "export interface GraphParameter {\n name: string;\n type: GraphType;\n default: GraphValue;\n}",
|
|
814
|
-
"line":
|
|
815
|
+
"line": 505,
|
|
815
816
|
"fields": [
|
|
816
817
|
"name",
|
|
817
818
|
"type",
|
|
@@ -822,31 +823,31 @@
|
|
|
822
823
|
"name": "GRAPH_INPUT_TYPES",
|
|
823
824
|
"kind": "constant",
|
|
824
825
|
"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":
|
|
826
|
+
"line": 510
|
|
826
827
|
},
|
|
827
828
|
{
|
|
828
829
|
"name": "GraphInputName",
|
|
829
830
|
"kind": "TypeAliasDeclaration",
|
|
830
831
|
"signature": "export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;",
|
|
831
|
-
"line":
|
|
832
|
+
"line": 517
|
|
832
833
|
},
|
|
833
834
|
{
|
|
834
835
|
"name": "GRAPH_OPERATIONS",
|
|
835
836
|
"kind": "constant",
|
|
836
837
|
"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":
|
|
838
|
+
"line": 518
|
|
838
839
|
},
|
|
839
840
|
{
|
|
840
841
|
"name": "GraphNode",
|
|
841
842
|
"kind": "TypeAliasDeclaration",
|
|
842
843
|
"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":
|
|
844
|
+
"line": 523
|
|
844
845
|
},
|
|
845
846
|
{
|
|
846
847
|
"name": "Graph",
|
|
847
848
|
"kind": "InterfaceDeclaration",
|
|
848
849
|
"signature": "export interface Graph {\n nodes: readonly GraphNode[];\n output: string;\n parameters?: readonly GraphParameter[];\n}",
|
|
849
|
-
"line":
|
|
850
|
+
"line": 543,
|
|
850
851
|
"fields": [
|
|
851
852
|
"nodes",
|
|
852
853
|
"output",
|
|
@@ -857,7 +858,7 @@
|
|
|
857
858
|
"name": "MaterialGraphs",
|
|
858
859
|
"kind": "InterfaceDeclaration",
|
|
859
860
|
"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":
|
|
861
|
+
"line": 548,
|
|
861
862
|
"fields": [
|
|
862
863
|
"baseColor",
|
|
863
864
|
"emissive",
|
|
@@ -871,7 +872,7 @@
|
|
|
871
872
|
"name": "VertexGraphs",
|
|
872
873
|
"kind": "InterfaceDeclaration",
|
|
873
874
|
"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":
|
|
875
|
+
"line": 557,
|
|
875
876
|
"fields": [
|
|
876
877
|
"position",
|
|
877
878
|
"normal"
|
|
@@ -881,7 +882,7 @@
|
|
|
881
882
|
"name": "MaterialInput",
|
|
882
883
|
"kind": "InterfaceDeclaration",
|
|
883
884
|
"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":
|
|
885
|
+
"line": 563,
|
|
885
886
|
"fields": [
|
|
886
887
|
"id",
|
|
887
888
|
"color",
|
|
@@ -910,7 +911,7 @@
|
|
|
910
911
|
"name": "MaterialDefinition",
|
|
911
912
|
"kind": "InterfaceDeclaration",
|
|
912
913
|
"signature": "export interface MaterialDefinition extends MaterialInput {\n readonly kind: \"material\";\n}",
|
|
913
|
-
"line":
|
|
914
|
+
"line": 590,
|
|
914
915
|
"fields": [
|
|
915
916
|
"kind"
|
|
916
917
|
]
|
|
@@ -919,7 +920,7 @@
|
|
|
919
920
|
"name": "PostProcessInput",
|
|
920
921
|
"kind": "InterfaceDeclaration",
|
|
921
922
|
"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":
|
|
923
|
+
"line": 593,
|
|
923
924
|
"fields": [
|
|
924
925
|
"id",
|
|
925
926
|
"buffers",
|
|
@@ -932,7 +933,7 @@
|
|
|
932
933
|
"name": "PostProcessDefinition",
|
|
933
934
|
"kind": "InterfaceDeclaration",
|
|
934
935
|
"signature": "export interface PostProcessDefinition extends PostProcessInput {\n readonly kind: \"postprocess\";\n}",
|
|
935
|
-
"line":
|
|
936
|
+
"line": 601,
|
|
936
937
|
"fields": [
|
|
937
938
|
"kind"
|
|
938
939
|
]
|
|
@@ -941,7 +942,7 @@
|
|
|
941
942
|
"name": "ComputeInput",
|
|
942
943
|
"kind": "InterfaceDeclaration",
|
|
943
944
|
"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":
|
|
945
|
+
"line": 604,
|
|
945
946
|
"fields": [
|
|
946
947
|
"id",
|
|
947
948
|
"graph",
|
|
@@ -956,7 +957,7 @@
|
|
|
956
957
|
"name": "ComputeDefinition",
|
|
957
958
|
"kind": "InterfaceDeclaration",
|
|
958
959
|
"signature": "export interface ComputeDefinition extends ComputeInput {\n readonly kind: \"compute\";\n}",
|
|
959
|
-
"line":
|
|
960
|
+
"line": 613,
|
|
960
961
|
"fields": [
|
|
961
962
|
"kind"
|
|
962
963
|
]
|
|
@@ -965,7 +966,7 @@
|
|
|
965
966
|
"name": "AssetInput",
|
|
966
967
|
"kind": "InterfaceDeclaration",
|
|
967
968
|
"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":
|
|
969
|
+
"line": 616,
|
|
969
970
|
"fields": [
|
|
970
971
|
"id",
|
|
971
972
|
"path",
|
|
@@ -980,7 +981,7 @@
|
|
|
980
981
|
"name": "AssetDefinition",
|
|
981
982
|
"kind": "InterfaceDeclaration",
|
|
982
983
|
"signature": "export interface AssetDefinition extends AssetInput {\n readonly kind: \"asset\";\n}",
|
|
983
|
-
"line":
|
|
984
|
+
"line": 626,
|
|
984
985
|
"fields": [
|
|
985
986
|
"kind"
|
|
986
987
|
]
|
|
@@ -989,7 +990,7 @@
|
|
|
989
990
|
"name": "MeshDefinition",
|
|
990
991
|
"kind": "InterfaceDeclaration",
|
|
991
992
|
"signature": "export interface MeshDefinition {\n geometry: Geometry;\n material: MaterialDefinition | string;\n castShadow?: boolean;\n receiveShadow?: boolean;\n}",
|
|
992
|
-
"line":
|
|
993
|
+
"line": 629,
|
|
993
994
|
"fields": [
|
|
994
995
|
"geometry",
|
|
995
996
|
"material",
|
|
@@ -1001,7 +1002,7 @@
|
|
|
1001
1002
|
"name": "LightDefinition",
|
|
1002
1003
|
"kind": "InterfaceDeclaration",
|
|
1003
1004
|
"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":
|
|
1005
|
+
"line": 635,
|
|
1005
1006
|
"fields": [
|
|
1006
1007
|
"kind",
|
|
1007
1008
|
"color",
|
|
@@ -1015,7 +1016,7 @@
|
|
|
1015
1016
|
"name": "EntityInput",
|
|
1016
1017
|
"kind": "InterfaceDeclaration",
|
|
1017
1018
|
"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":
|
|
1019
|
+
"line": 650,
|
|
1019
1020
|
"fields": [
|
|
1020
1021
|
"id",
|
|
1021
1022
|
"prefab",
|
|
@@ -1033,7 +1034,7 @@
|
|
|
1033
1034
|
"name": "PrefabInput",
|
|
1034
1035
|
"kind": "InterfaceDeclaration",
|
|
1035
1036
|
"signature": "export interface PrefabInput extends Omit<EntityInput, \"prefab\" | \"parent\"> {\n extends?: PrefabDefinition | string;\n}",
|
|
1036
|
-
"line":
|
|
1037
|
+
"line": 662,
|
|
1037
1038
|
"fields": [
|
|
1038
1039
|
"extends"
|
|
1039
1040
|
]
|
|
@@ -1042,7 +1043,7 @@
|
|
|
1042
1043
|
"name": "PrefabDefinition",
|
|
1043
1044
|
"kind": "InterfaceDeclaration",
|
|
1044
1045
|
"signature": "export interface PrefabDefinition extends PrefabInput {\n readonly kind: \"prefab\";\n}",
|
|
1045
|
-
"line":
|
|
1046
|
+
"line": 665,
|
|
1046
1047
|
"fields": [
|
|
1047
1048
|
"kind"
|
|
1048
1049
|
]
|
|
@@ -1051,7 +1052,7 @@
|
|
|
1051
1052
|
"name": "SceneInput",
|
|
1052
1053
|
"kind": "InterfaceDeclaration",
|
|
1053
1054
|
"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":
|
|
1055
|
+
"line": 668,
|
|
1055
1056
|
"fields": [
|
|
1056
1057
|
"id",
|
|
1057
1058
|
"camera",
|
|
@@ -1065,7 +1066,7 @@
|
|
|
1065
1066
|
"name": "SceneDefinition",
|
|
1066
1067
|
"kind": "InterfaceDeclaration",
|
|
1067
1068
|
"signature": "export interface SceneDefinition extends SceneInput {\n readonly kind: \"scene\";\n}",
|
|
1068
|
-
"line":
|
|
1069
|
+
"line": 693,
|
|
1069
1070
|
"fields": [
|
|
1070
1071
|
"kind"
|
|
1071
1072
|
]
|
|
@@ -1074,7 +1075,7 @@
|
|
|
1074
1075
|
"name": "SystemInput",
|
|
1075
1076
|
"kind": "InterfaceDeclaration",
|
|
1076
1077
|
"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":
|
|
1078
|
+
"line": 696,
|
|
1078
1079
|
"fields": [
|
|
1079
1080
|
"id",
|
|
1080
1081
|
"phase",
|
|
@@ -1090,7 +1091,7 @@
|
|
|
1090
1091
|
"name": "SystemDefinition",
|
|
1091
1092
|
"kind": "InterfaceDeclaration",
|
|
1092
1093
|
"signature": "export interface SystemDefinition extends SystemInput {\n readonly kind: \"system\";\n}",
|
|
1093
|
-
"line":
|
|
1094
|
+
"line": 706,
|
|
1094
1095
|
"fields": [
|
|
1095
1096
|
"kind"
|
|
1096
1097
|
]
|
|
@@ -1099,7 +1100,7 @@
|
|
|
1099
1100
|
"name": "GameInput",
|
|
1100
1101
|
"kind": "InterfaceDeclaration",
|
|
1101
1102
|
"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":
|
|
1103
|
+
"line": 709,
|
|
1103
1104
|
"fields": [
|
|
1104
1105
|
"id",
|
|
1105
1106
|
"scene",
|
|
@@ -1124,7 +1125,7 @@
|
|
|
1124
1125
|
"name": "GameDefinition",
|
|
1125
1126
|
"kind": "InterfaceDeclaration",
|
|
1126
1127
|
"signature": "export interface GameDefinition extends GameInput {\n readonly kind: \"game\";\n}",
|
|
1127
|
-
"line":
|
|
1128
|
+
"line": 728,
|
|
1128
1129
|
"fields": [
|
|
1129
1130
|
"kind"
|
|
1130
1131
|
]
|
|
@@ -1133,7 +1134,7 @@
|
|
|
1133
1134
|
"name": "GameInstance",
|
|
1134
1135
|
"kind": "InterfaceDeclaration",
|
|
1135
1136
|
"signature": "export interface GameInstance {\n update(dt: number): void;\n dispose(): void;\n}",
|
|
1136
|
-
"line":
|
|
1137
|
+
"line": 731,
|
|
1137
1138
|
"fields": [
|
|
1138
1139
|
"update",
|
|
1139
1140
|
"dispose"
|
|
@@ -1143,61 +1144,61 @@
|
|
|
1143
1144
|
"name": "defineComponent",
|
|
1144
1145
|
"kind": "FunctionDeclaration",
|
|
1145
1146
|
"signature": "export function defineComponent<const S extends ComponentSchema>(input: {\n id: string;\n schema: S;\n}): ComponentDefinition<S>;",
|
|
1146
|
-
"line":
|
|
1147
|
+
"line": 735
|
|
1147
1148
|
},
|
|
1148
1149
|
{
|
|
1149
1150
|
"name": "defineMaterial",
|
|
1150
1151
|
"kind": "FunctionDeclaration",
|
|
1151
1152
|
"signature": "export function defineMaterial(input: MaterialInput): MaterialDefinition;",
|
|
1152
|
-
"line":
|
|
1153
|
+
"line": 741
|
|
1153
1154
|
},
|
|
1154
1155
|
{
|
|
1155
1156
|
"name": "definePostProcess",
|
|
1156
1157
|
"kind": "FunctionDeclaration",
|
|
1157
1158
|
"signature": "export function definePostProcess(input: PostProcessInput): PostProcessDefinition;",
|
|
1158
|
-
"line":
|
|
1159
|
+
"line": 744
|
|
1159
1160
|
},
|
|
1160
1161
|
{
|
|
1161
1162
|
"name": "defineCompute",
|
|
1162
1163
|
"kind": "FunctionDeclaration",
|
|
1163
1164
|
"signature": "export function defineCompute(input: ComputeInput): ComputeDefinition;",
|
|
1164
|
-
"line":
|
|
1165
|
+
"line": 747
|
|
1165
1166
|
},
|
|
1166
1167
|
{
|
|
1167
1168
|
"name": "defineAsset",
|
|
1168
1169
|
"kind": "FunctionDeclaration",
|
|
1169
1170
|
"signature": "export function defineAsset(input: AssetInput): AssetDefinition;",
|
|
1170
|
-
"line":
|
|
1171
|
+
"line": 750
|
|
1171
1172
|
},
|
|
1172
1173
|
{
|
|
1173
1174
|
"name": "definePrefab",
|
|
1174
1175
|
"kind": "FunctionDeclaration",
|
|
1175
1176
|
"signature": "export function definePrefab(input: PrefabInput): PrefabDefinition;",
|
|
1176
|
-
"line":
|
|
1177
|
+
"line": 753
|
|
1177
1178
|
},
|
|
1178
1179
|
{
|
|
1179
1180
|
"name": "defineScene",
|
|
1180
1181
|
"kind": "FunctionDeclaration",
|
|
1181
1182
|
"signature": "export function defineScene(input: SceneInput): SceneDefinition;",
|
|
1182
|
-
"line":
|
|
1183
|
+
"line": 756
|
|
1183
1184
|
},
|
|
1184
1185
|
{
|
|
1185
1186
|
"name": "defineSystem",
|
|
1186
1187
|
"kind": "FunctionDeclaration",
|
|
1187
1188
|
"signature": "export function defineSystem(input: SystemInput): SystemDefinition;",
|
|
1188
|
-
"line":
|
|
1189
|
+
"line": 759
|
|
1189
1190
|
},
|
|
1190
1191
|
{
|
|
1191
1192
|
"name": "defineGame",
|
|
1192
1193
|
"kind": "FunctionDeclaration",
|
|
1193
1194
|
"signature": "export function defineGame(input: GameInput): GameDefinition;",
|
|
1194
|
-
"line":
|
|
1195
|
+
"line": 762
|
|
1195
1196
|
},
|
|
1196
1197
|
{
|
|
1197
1198
|
"name": "instantiateGame",
|
|
1198
1199
|
"kind": "FunctionDeclaration",
|
|
1199
1200
|
"signature": "export function instantiateGame(\n game: GameDefinition,\n engine: EngineFacade,\n): GameInstance;",
|
|
1200
|
-
"line":
|
|
1201
|
+
"line": 766
|
|
1201
1202
|
}
|
|
1202
1203
|
],
|
|
1203
1204
|
"installedDeclarations": "lib/sdk/index.d.ts",
|