pelican-engine 0.3.16 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +37 -3
- package/distribution.json +19 -15
- package/docs/STATUS.md +3 -2
- package/docs/api/REFERENCE.md +227 -97
- package/docs/api/index.json +228 -101
- package/docs/npm/GAME-AUTHOR.md +37 -3
- package/engine.manifest.json +1 -1
- package/lib/renderer/browser.js +21 -13
- package/lib/renderer/cloth-visuals.js +140 -0
- package/lib/renderer/gameplay.js +2 -0
- package/lib/runtime/host.js +3 -0
- package/lib/sdk/index.d.ts +99 -2
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +152 -0
- package/lib/simulation/cloth.js +327 -0
- package/lib/simulation/rope-plugin.js +12 -4
- package/lib/simulation/rope-self-collision.js +102 -0
- package/lib/simulation/rope.js +36 -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.18",
|
|
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.18\"",
|
|
12
12
|
"line": 2
|
|
13
13
|
},
|
|
14
14
|
{
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
{
|
|
172
172
|
"name": "SystemContext",
|
|
173
173
|
"kind": "InterfaceDeclaration",
|
|
174
|
-
"signature": "export interface SystemContext extends EngineFacade {\n readonly time: {\n readonly tick: number;\n readonly elapsed: number;\n readonly fixedDt: number;\n };\n readonly entities: EntityCommands;\n random(): number;\n emit(type: string, payload: unknown): void;\n events(type?: string): readonly GameEvent[];\n readonly input: InputService;\n readonly physics: PhysicsService;\n readonly animation: AnimationService;\n readonly camera: CameraService;\n readonly ui: UIService;\n readonly audio: AudioService;\n readonly storage: StorageService;\n readonly scenes: SceneService;\n readonly render: RenderService;\n readonly compute: ComputeService;\n readonly navigation: NavigationService;\n readonly ropes: RopeService;\n}",
|
|
174
|
+
"signature": "export interface SystemContext extends EngineFacade {\n readonly time: {\n readonly tick: number;\n readonly elapsed: number;\n readonly fixedDt: number;\n };\n readonly entities: EntityCommands;\n random(): number;\n emit(type: string, payload: unknown): void;\n events(type?: string): readonly GameEvent[];\n readonly input: InputService;\n readonly physics: PhysicsService;\n readonly animation: AnimationService;\n readonly camera: CameraService;\n readonly ui: UIService;\n readonly audio: AudioService;\n readonly storage: StorageService;\n readonly scenes: SceneService;\n readonly render: RenderService;\n readonly compute: ComputeService;\n readonly navigation: NavigationService;\n readonly ropes: RopeService;\n readonly cloth: ClothService;\n}",
|
|
175
175
|
"line": 98,
|
|
176
176
|
"fields": [
|
|
177
177
|
"time",
|
|
@@ -190,20 +190,21 @@
|
|
|
190
190
|
"render",
|
|
191
191
|
"compute",
|
|
192
192
|
"navigation",
|
|
193
|
-
"ropes"
|
|
193
|
+
"ropes",
|
|
194
|
+
"cloth"
|
|
194
195
|
]
|
|
195
196
|
},
|
|
196
197
|
{
|
|
197
198
|
"name": "RopeCollider",
|
|
198
199
|
"kind": "TypeAliasDeclaration",
|
|
199
200
|
"signature": "export type RopeCollider =\n | { kind: \"sphere\"; id: string; center: Vec3; radius: number }\n | { kind: \"plane\"; id: string; normal: Vec3; offset: number };",
|
|
200
|
-
"line":
|
|
201
|
+
"line": 124
|
|
201
202
|
},
|
|
202
203
|
{
|
|
203
204
|
"name": "RopeBodyCollider",
|
|
204
205
|
"kind": "InterfaceDeclaration",
|
|
205
206
|
"signature": "export interface RopeBodyCollider { readonly id: string; readonly entity: string }",
|
|
206
|
-
"line":
|
|
207
|
+
"line": 128,
|
|
207
208
|
"fields": [
|
|
208
209
|
"id",
|
|
209
210
|
"entity"
|
|
@@ -213,7 +214,7 @@
|
|
|
213
214
|
"name": "RopeVisualOptions",
|
|
214
215
|
"kind": "InterfaceDeclaration",
|
|
215
216
|
"signature": "export interface RopeVisualOptions {\n material: string;\n radius?: number;\n radialSegments?: number;\n castShadow?: boolean;\n receiveShadow?: boolean;\n}",
|
|
216
|
-
"line":
|
|
217
|
+
"line": 130,
|
|
217
218
|
"fields": [
|
|
218
219
|
"material",
|
|
219
220
|
"radius",
|
|
@@ -226,7 +227,7 @@
|
|
|
226
227
|
"name": "RopeVisualState",
|
|
227
228
|
"kind": "InterfaceDeclaration",
|
|
228
229
|
"signature": "export interface RopeVisualState {\n id: string;\n material: string;\n radius: number;\n radialSegments: number;\n castShadow: boolean;\n receiveShadow: boolean;\n positions: Vec3[];\n}",
|
|
229
|
-
"line":
|
|
230
|
+
"line": 138,
|
|
230
231
|
"fields": [
|
|
231
232
|
"id",
|
|
232
233
|
"material",
|
|
@@ -240,8 +241,8 @@
|
|
|
240
241
|
{
|
|
241
242
|
"name": "RopeDefinition",
|
|
242
243
|
"kind": "InterfaceDeclaration",
|
|
243
|
-
"signature": "export interface RopeDefinition {\n id: string;\n points: readonly Vec3[];\n /** Kilograms per particle, positive and at most 1e6. */\n mass: number;\n radius?: number;\n /** Defaults to the host interval; an explicit value must exactly match it. */\n fixedDt?: number;\n /** When true, step once after each physics phase; defaults to false (manual stepping). */\n autoStep?: boolean;\n /** Automatically sample and react to existing dynamic, non-trigger sphere bodies. Requires autoStep. */\n bodyColliders?: readonly RopeBodyCollider[];\n /** Resolve sphere contacts on segment interiors; defaults to true for new ropes. */\n segmentCollisions?: boolean;\n /** Optional segmented presentation using an already-declared material id. */\n visual?: RopeVisualOptions;\n substeps?: number;\n iterations?: number;\n damping?: number;\n gravity?: Vec3;\n anchors?: readonly { index: number; position: Vec3 }[];\n}",
|
|
244
|
-
"line":
|
|
244
|
+
"signature": "export interface RopeDefinition {\n id: string;\n points: readonly Vec3[];\n /** Kilograms per particle, positive and at most 1e6. */\n mass: number;\n radius?: number;\n /** Defaults to the host interval; an explicit value must exactly match it. */\n fixedDt?: number;\n /** When true, step once after each physics phase; defaults to false (manual stepping). */\n autoStep?: boolean;\n /** Automatically sample and react to existing dynamic, non-trigger sphere bodies. Requires autoStep. */\n bodyColliders?: readonly RopeBodyCollider[];\n /** Resolve sphere contacts on segment interiors; defaults to true for new ropes. */\n segmentCollisions?: boolean;\n /** Resolve discrete non-adjacent segment self contacts; defaults to true for new ropes. */\n selfCollisions?: boolean;\n /** Optional segmented presentation using an already-declared material id. */\n visual?: RopeVisualOptions;\n substeps?: number;\n iterations?: number;\n damping?: number;\n gravity?: Vec3;\n anchors?: readonly { index: number; position: Vec3 }[];\n}",
|
|
245
|
+
"line": 147,
|
|
245
246
|
"fields": [
|
|
246
247
|
"id",
|
|
247
248
|
"points",
|
|
@@ -251,6 +252,7 @@
|
|
|
251
252
|
"autoStep",
|
|
252
253
|
"bodyColliders",
|
|
253
254
|
"segmentCollisions",
|
|
255
|
+
"selfCollisions",
|
|
254
256
|
"visual",
|
|
255
257
|
"substeps",
|
|
256
258
|
"iterations",
|
|
@@ -263,7 +265,7 @@
|
|
|
263
265
|
"name": "RopeContact",
|
|
264
266
|
"kind": "InterfaceDeclaration",
|
|
265
267
|
"signature": "export interface RopeContact {\n tick: number; particle: number; colliderId: string; penetration: number;\n /** Opposite of particle contact impulses, N·s; absent in older snapshots. */\n reactionImpulse?: Vec3;\n /** Angular impulse about the world origin; absent in older snapshots. */\n reactionAngularImpulse?: Vec3;\n}",
|
|
266
|
-
"line":
|
|
268
|
+
"line": 172,
|
|
267
269
|
"fields": [
|
|
268
270
|
"tick",
|
|
269
271
|
"particle",
|
|
@@ -277,7 +279,7 @@
|
|
|
277
279
|
"name": "RopeSegmentContact",
|
|
278
280
|
"kind": "InterfaceDeclaration",
|
|
279
281
|
"signature": "export interface RopeSegmentContact {\n tick: number;\n /** Zero-based index of the first endpoint; the second is segment + 1. */\n segment: number;\n colliderId: string;\n /** Last closest-point fraction from the first endpoint toward the second. */\n fraction: number;\n penetration: number;\n reactionImpulse?: Vec3;\n reactionAngularImpulse?: Vec3;\n}",
|
|
280
|
-
"line":
|
|
282
|
+
"line": 180,
|
|
281
283
|
"fields": [
|
|
282
284
|
"tick",
|
|
283
285
|
"segment",
|
|
@@ -288,21 +290,37 @@
|
|
|
288
290
|
"reactionAngularImpulse"
|
|
289
291
|
]
|
|
290
292
|
},
|
|
293
|
+
{
|
|
294
|
+
"name": "RopeSelfContact",
|
|
295
|
+
"kind": "InterfaceDeclaration",
|
|
296
|
+
"signature": "export interface RopeSelfContact {\n tick: number;\n /** Zero-based first endpoint of each non-adjacent segment, ordered ascending. */\n firstSegment: number; secondSegment: number;\n /** Last closest-point fractions along the respective segments. */\n firstFraction: number; secondFraction: number;\n /** Maximum observed overlap in metres during this tick. */\n penetration: number;\n}",
|
|
297
|
+
"line": 192,
|
|
298
|
+
"fields": [
|
|
299
|
+
"tick",
|
|
300
|
+
"firstSegment",
|
|
301
|
+
"secondSegment",
|
|
302
|
+
"firstFraction",
|
|
303
|
+
"secondFraction",
|
|
304
|
+
"penetration"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
291
307
|
{
|
|
292
308
|
"name": "RopeState",
|
|
293
309
|
"kind": "InterfaceDeclaration",
|
|
294
|
-
"signature": "export interface RopeState {\n tick: number; simulatedSeconds: number; disposed: boolean;\n segmentCollisions: boolean;\n positions: Vec3[]; velocities: Vec3[];\n anchors: { index: number; position: Vec3 }[];\n contacts: RopeContact[];\n segmentContacts: RopeSegmentContact[];\n maxDistanceError: number;\n resources: { particles: number; constraints: number; anchors: number; colliders: number };\n}",
|
|
295
|
-
"line":
|
|
310
|
+
"signature": "export interface RopeState {\n tick: number; simulatedSeconds: number; disposed: boolean;\n segmentCollisions: boolean;\n selfCollisions: boolean;\n positions: Vec3[]; velocities: Vec3[];\n anchors: { index: number; position: Vec3 }[];\n contacts: RopeContact[];\n segmentContacts: RopeSegmentContact[];\n selfContacts: RopeSelfContact[];\n maxDistanceError: number;\n resources: { particles: number; constraints: number; anchors: number; colliders: number };\n}",
|
|
311
|
+
"line": 201,
|
|
296
312
|
"fields": [
|
|
297
313
|
"tick",
|
|
298
314
|
"simulatedSeconds",
|
|
299
315
|
"disposed",
|
|
300
316
|
"segmentCollisions",
|
|
317
|
+
"selfCollisions",
|
|
301
318
|
"positions",
|
|
302
319
|
"velocities",
|
|
303
320
|
"anchors",
|
|
304
321
|
"contacts",
|
|
305
322
|
"segmentContacts",
|
|
323
|
+
"selfContacts",
|
|
306
324
|
"maxDistanceError",
|
|
307
325
|
"resources"
|
|
308
326
|
]
|
|
@@ -311,7 +329,116 @@
|
|
|
311
329
|
"name": "RopeService",
|
|
312
330
|
"kind": "InterfaceDeclaration",
|
|
313
331
|
"signature": "export interface RopeService {\n create(definition: RopeDefinition): void;\n /** Explicit ticks for manual ropes only. Auto-stepped ropes reject this call. A failed batch leaves the rope unchanged. */\n step(id: string, ticks?: number): RopeState;\n inspect(id: string): RopeState;\n /** Detached visual descriptions, sorted by rope id; empty when no visuals are requested. */\n visuals(): readonly RopeVisualState[];\n setColliders(id: string, colliders: readonly RopeCollider[]): void;\n setAnchor(id: string, index: number, position: Vec3): void;\n releaseAnchor(id: string, index: number): void;\n applyForce(id: string, index: number, force: Vec3): void;\n applyImpulse(id: string, index: number, impulse: Vec3): void;\n destroy(id: string): void;\n}",
|
|
314
|
-
"line":
|
|
332
|
+
"line": 213,
|
|
333
|
+
"fields": [
|
|
334
|
+
"create",
|
|
335
|
+
"step",
|
|
336
|
+
"inspect",
|
|
337
|
+
"visuals",
|
|
338
|
+
"setColliders",
|
|
339
|
+
"setAnchor",
|
|
340
|
+
"releaseAnchor",
|
|
341
|
+
"applyForce",
|
|
342
|
+
"applyImpulse",
|
|
343
|
+
"destroy"
|
|
344
|
+
]
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "ClothCollider",
|
|
348
|
+
"kind": "TypeAliasDeclaration",
|
|
349
|
+
"signature": "export type ClothCollider = RopeCollider;",
|
|
350
|
+
"line": 228
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"name": "ClothTriangle",
|
|
354
|
+
"kind": "TypeAliasDeclaration",
|
|
355
|
+
"signature": "export type ClothTriangle = readonly [number, number, number];",
|
|
356
|
+
"line": 229
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"name": "ClothVisualOptions",
|
|
360
|
+
"kind": "InterfaceDeclaration",
|
|
361
|
+
"signature": "export interface ClothVisualOptions {\n material: string;\n /** Optional per-particle UV coordinates; defaults to a planar projection. */\n uvs?: readonly Vec2[];\n castShadow?: boolean;\n receiveShadow?: boolean;\n}",
|
|
362
|
+
"line": 230,
|
|
363
|
+
"fields": [
|
|
364
|
+
"material",
|
|
365
|
+
"uvs",
|
|
366
|
+
"castShadow",
|
|
367
|
+
"receiveShadow"
|
|
368
|
+
]
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"name": "ClothDefinition",
|
|
372
|
+
"kind": "InterfaceDeclaration",
|
|
373
|
+
"signature": "export interface ClothDefinition {\n id: string;\n points: readonly Vec3[];\n triangles: readonly ClothTriangle[];\n /** Kilograms per movable particle. */\n mass: number;\n radius?: number;\n fixedDt?: number;\n autoStep?: boolean;\n substeps?: number;\n iterations?: number;\n damping?: number;\n gravity?: Vec3;\n /** Distance-based bending approximation across shared triangle edges; defaults to true. */\n bending?: boolean;\n anchors?: readonly { index: number; position: Vec3 }[];\n visual?: ClothVisualOptions;\n}",
|
|
374
|
+
"line": 237,
|
|
375
|
+
"fields": [
|
|
376
|
+
"id",
|
|
377
|
+
"points",
|
|
378
|
+
"triangles",
|
|
379
|
+
"mass",
|
|
380
|
+
"radius",
|
|
381
|
+
"fixedDt",
|
|
382
|
+
"autoStep",
|
|
383
|
+
"substeps",
|
|
384
|
+
"iterations",
|
|
385
|
+
"damping",
|
|
386
|
+
"gravity",
|
|
387
|
+
"bending",
|
|
388
|
+
"anchors",
|
|
389
|
+
"visual"
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"name": "ClothContact",
|
|
394
|
+
"kind": "InterfaceDeclaration",
|
|
395
|
+
"signature": "export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }",
|
|
396
|
+
"line": 255,
|
|
397
|
+
"fields": [
|
|
398
|
+
"tick",
|
|
399
|
+
"particle",
|
|
400
|
+
"colliderId",
|
|
401
|
+
"penetration"
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "ClothState",
|
|
406
|
+
"kind": "InterfaceDeclaration",
|
|
407
|
+
"signature": "export interface ClothState {\n tick: number; simulatedSeconds: number; disposed: boolean;\n positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];\n anchors: { index: number; position: Vec3 }[];\n contacts: ClothContact[];\n maxDistanceError: number;\n resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };\n}",
|
|
408
|
+
"line": 256,
|
|
409
|
+
"fields": [
|
|
410
|
+
"tick",
|
|
411
|
+
"simulatedSeconds",
|
|
412
|
+
"disposed",
|
|
413
|
+
"positions",
|
|
414
|
+
"velocities",
|
|
415
|
+
"triangles",
|
|
416
|
+
"anchors",
|
|
417
|
+
"contacts",
|
|
418
|
+
"maxDistanceError",
|
|
419
|
+
"resources"
|
|
420
|
+
]
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "ClothVisualState",
|
|
424
|
+
"kind": "InterfaceDeclaration",
|
|
425
|
+
"signature": "export interface ClothVisualState {\n id: string; material: string; positions: Vec3[]; triangles: ClothTriangle[];\n uvs: Vec2[]; castShadow: boolean; receiveShadow: boolean;\n}",
|
|
426
|
+
"line": 264,
|
|
427
|
+
"fields": [
|
|
428
|
+
"id",
|
|
429
|
+
"material",
|
|
430
|
+
"positions",
|
|
431
|
+
"triangles",
|
|
432
|
+
"uvs",
|
|
433
|
+
"castShadow",
|
|
434
|
+
"receiveShadow"
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "ClothService",
|
|
439
|
+
"kind": "InterfaceDeclaration",
|
|
440
|
+
"signature": "export interface ClothService {\n create(definition: ClothDefinition): void;\n /** Explicit ticks for manual cloth only; automatic cloth rejects this call. */\n step(id: string, ticks?: number): ClothState;\n inspect(id: string): ClothState;\n visuals(): readonly ClothVisualState[];\n setColliders(id: string, colliders: readonly ClothCollider[]): 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}",
|
|
441
|
+
"line": 268,
|
|
315
442
|
"fields": [
|
|
316
443
|
"create",
|
|
317
444
|
"step",
|
|
@@ -329,7 +456,7 @@
|
|
|
329
456
|
"name": "NavigationCell",
|
|
330
457
|
"kind": "InterfaceDeclaration",
|
|
331
458
|
"signature": "export interface NavigationCell { readonly x: number; readonly y: number }",
|
|
332
|
-
"line":
|
|
459
|
+
"line": 284,
|
|
333
460
|
"fields": [
|
|
334
461
|
"x",
|
|
335
462
|
"y"
|
|
@@ -339,7 +466,7 @@
|
|
|
339
466
|
"name": "NavigationObstacleUpdate",
|
|
340
467
|
"kind": "InterfaceDeclaration",
|
|
341
468
|
"signature": "export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }",
|
|
342
|
-
"line":
|
|
469
|
+
"line": 286,
|
|
343
470
|
"fields": [
|
|
344
471
|
"cell",
|
|
345
472
|
"blocked"
|
|
@@ -349,7 +476,7 @@
|
|
|
349
476
|
"name": "NavigationGrid",
|
|
350
477
|
"kind": "InterfaceDeclaration",
|
|
351
478
|
"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}",
|
|
352
|
-
"line":
|
|
479
|
+
"line": 287,
|
|
353
480
|
"fields": [
|
|
354
481
|
"id",
|
|
355
482
|
"owner",
|
|
@@ -363,7 +490,7 @@
|
|
|
363
490
|
"name": "NavigationService",
|
|
364
491
|
"kind": "InterfaceDeclaration",
|
|
365
492
|
"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}",
|
|
366
|
-
"line":
|
|
493
|
+
"line": 296,
|
|
367
494
|
"fields": [
|
|
368
495
|
"createGrid",
|
|
369
496
|
"getGrid",
|
|
@@ -379,13 +506,13 @@
|
|
|
379
506
|
"name": "RenderMode",
|
|
380
507
|
"kind": "TypeAliasDeclaration",
|
|
381
508
|
"signature": "export type RenderMode = \"raster\" | \"hybrid\" | \"path\";",
|
|
382
|
-
"line":
|
|
509
|
+
"line": 308
|
|
383
510
|
},
|
|
384
511
|
{
|
|
385
512
|
"name": "RenderCapabilities",
|
|
386
513
|
"kind": "InterfaceDeclaration",
|
|
387
514
|
"signature": "export interface RenderCapabilities {\n backend: \"webgpu\" | \"webgl2\" | \"uninitialized\";\n compute: boolean;\n availableModes: readonly RenderMode[];\n}",
|
|
388
|
-
"line":
|
|
515
|
+
"line": 309,
|
|
389
516
|
"fields": [
|
|
390
517
|
"backend",
|
|
391
518
|
"compute",
|
|
@@ -396,7 +523,7 @@
|
|
|
396
523
|
"name": "RenderSettings",
|
|
397
524
|
"kind": "InterfaceDeclaration",
|
|
398
525
|
"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}",
|
|
399
|
-
"line":
|
|
526
|
+
"line": 314,
|
|
400
527
|
"fields": [
|
|
401
528
|
"mode",
|
|
402
529
|
"samplesPerFrame",
|
|
@@ -413,7 +540,7 @@
|
|
|
413
540
|
"name": "RenderService",
|
|
414
541
|
"kind": "InterfaceDeclaration",
|
|
415
542
|
"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}",
|
|
416
|
-
"line":
|
|
543
|
+
"line": 325,
|
|
417
544
|
"fields": [
|
|
418
545
|
"configure",
|
|
419
546
|
"state",
|
|
@@ -429,7 +556,7 @@
|
|
|
429
556
|
"name": "MaterialBufferInput",
|
|
430
557
|
"kind": "InterfaceDeclaration",
|
|
431
558
|
"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}",
|
|
432
|
-
"line":
|
|
559
|
+
"line": 335,
|
|
433
560
|
"fields": [
|
|
434
561
|
"name",
|
|
435
562
|
"type",
|
|
@@ -441,7 +568,7 @@
|
|
|
441
568
|
"name": "RenderBufferReference",
|
|
442
569
|
"kind": "InterfaceDeclaration",
|
|
443
570
|
"signature": "export interface RenderBufferReference {\n id: string;\n type: GraphType;\n count: number;\n}",
|
|
444
|
-
"line":
|
|
571
|
+
"line": 344,
|
|
445
572
|
"fields": [
|
|
446
573
|
"id",
|
|
447
574
|
"type",
|
|
@@ -452,7 +579,7 @@
|
|
|
452
579
|
"name": "RenderBufferBindings",
|
|
453
580
|
"kind": "InterfaceDeclaration",
|
|
454
581
|
"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}",
|
|
455
|
-
"line":
|
|
582
|
+
"line": 349,
|
|
456
583
|
"fields": [
|
|
457
584
|
"bind",
|
|
458
585
|
"unbind",
|
|
@@ -463,7 +590,7 @@
|
|
|
463
590
|
"name": "MaterialTextureInput",
|
|
464
591
|
"kind": "InterfaceDeclaration",
|
|
465
592
|
"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}",
|
|
466
|
-
"line":
|
|
593
|
+
"line": 354,
|
|
467
594
|
"fields": [
|
|
468
595
|
"texture",
|
|
469
596
|
"width",
|
|
@@ -474,7 +601,7 @@
|
|
|
474
601
|
"name": "RenderTextureReference",
|
|
475
602
|
"kind": "InterfaceDeclaration",
|
|
476
603
|
"signature": "export interface RenderTextureReference extends ComputeTextureSize {\n id: string;\n format: \"rgba32float\";\n}",
|
|
477
|
-
"line":
|
|
604
|
+
"line": 360,
|
|
478
605
|
"fields": [
|
|
479
606
|
"id",
|
|
480
607
|
"format"
|
|
@@ -484,7 +611,7 @@
|
|
|
484
611
|
"name": "RenderTextureBindings",
|
|
485
612
|
"kind": "InterfaceDeclaration",
|
|
486
613
|
"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}",
|
|
487
|
-
"line":
|
|
614
|
+
"line": 364,
|
|
488
615
|
"fields": [
|
|
489
616
|
"bind",
|
|
490
617
|
"unbind",
|
|
@@ -495,7 +622,7 @@
|
|
|
495
622
|
"name": "PostProcessState",
|
|
496
623
|
"kind": "InterfaceDeclaration",
|
|
497
624
|
"signature": "export interface PostProcessState {\n id: string;\n enabled: boolean;\n parameters: Readonly<Record<string, GraphValue>>;\n}",
|
|
498
|
-
"line":
|
|
625
|
+
"line": 369,
|
|
499
626
|
"fields": [
|
|
500
627
|
"id",
|
|
501
628
|
"enabled",
|
|
@@ -506,7 +633,7 @@
|
|
|
506
633
|
"name": "PostProcessService",
|
|
507
634
|
"kind": "InterfaceDeclaration",
|
|
508
635
|
"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}",
|
|
509
|
-
"line":
|
|
636
|
+
"line": 374,
|
|
510
637
|
"fields": [
|
|
511
638
|
"buffers",
|
|
512
639
|
"textures",
|
|
@@ -520,7 +647,7 @@
|
|
|
520
647
|
"name": "ComputeBufferHandle",
|
|
521
648
|
"kind": "InterfaceDeclaration",
|
|
522
649
|
"signature": "export interface ComputeBufferHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n}",
|
|
523
|
-
"line":
|
|
650
|
+
"line": 384,
|
|
524
651
|
"fields": [
|
|
525
652
|
"owner",
|
|
526
653
|
"index",
|
|
@@ -531,7 +658,7 @@
|
|
|
531
658
|
"name": "ComputeTaskHandle",
|
|
532
659
|
"kind": "InterfaceDeclaration",
|
|
533
660
|
"signature": "export interface ComputeTaskHandle {\n readonly owner: number;\n readonly id: number;\n}",
|
|
534
|
-
"line":
|
|
661
|
+
"line": 389,
|
|
535
662
|
"fields": [
|
|
536
663
|
"owner",
|
|
537
664
|
"id"
|
|
@@ -541,7 +668,7 @@
|
|
|
541
668
|
"name": "ComputeBufferInput",
|
|
542
669
|
"kind": "InterfaceDeclaration",
|
|
543
670
|
"signature": "export interface ComputeBufferInput {\n id: string;\n type: GraphType;\n count: number;\n data?: readonly GraphValue[];\n}",
|
|
544
|
-
"line":
|
|
671
|
+
"line": 393,
|
|
545
672
|
"fields": [
|
|
546
673
|
"id",
|
|
547
674
|
"type",
|
|
@@ -553,7 +680,7 @@
|
|
|
553
680
|
"name": "ComputeTextureHandle",
|
|
554
681
|
"kind": "InterfaceDeclaration",
|
|
555
682
|
"signature": "export interface ComputeTextureHandle {\n readonly owner: number;\n readonly index: number;\n readonly generation: number;\n readonly kind: \"texture\";\n}",
|
|
556
|
-
"line":
|
|
683
|
+
"line": 399,
|
|
557
684
|
"fields": [
|
|
558
685
|
"owner",
|
|
559
686
|
"index",
|
|
@@ -565,7 +692,7 @@
|
|
|
565
692
|
"name": "ComputeTextureSize",
|
|
566
693
|
"kind": "InterfaceDeclaration",
|
|
567
694
|
"signature": "export interface ComputeTextureSize {\n width: number;\n height: number;\n}",
|
|
568
|
-
"line":
|
|
695
|
+
"line": 405,
|
|
569
696
|
"fields": [
|
|
570
697
|
"width",
|
|
571
698
|
"height"
|
|
@@ -575,7 +702,7 @@
|
|
|
575
702
|
"name": "ComputeTextureDataInput",
|
|
576
703
|
"kind": "InterfaceDeclaration",
|
|
577
704
|
"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}",
|
|
578
|
-
"line":
|
|
705
|
+
"line": 409,
|
|
579
706
|
"fields": [
|
|
580
707
|
"id",
|
|
581
708
|
"data",
|
|
@@ -586,7 +713,7 @@
|
|
|
586
713
|
"name": "ComputeTextureAssetInput",
|
|
587
714
|
"kind": "InterfaceDeclaration",
|
|
588
715
|
"signature": "export interface ComputeTextureAssetInput {\n id: string;\n asset: AssetDefinition | string;\n width?: never;\n height?: never;\n data?: never;\n}",
|
|
589
|
-
"line":
|
|
716
|
+
"line": 415,
|
|
590
717
|
"fields": [
|
|
591
718
|
"id",
|
|
592
719
|
"asset",
|
|
@@ -599,13 +726,13 @@
|
|
|
599
726
|
"name": "ComputeTextureInput",
|
|
600
727
|
"kind": "TypeAliasDeclaration",
|
|
601
728
|
"signature": "export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;",
|
|
602
|
-
"line":
|
|
729
|
+
"line": 422
|
|
603
730
|
},
|
|
604
731
|
{
|
|
605
732
|
"name": "ComputeTextureBinding",
|
|
606
733
|
"kind": "InterfaceDeclaration",
|
|
607
734
|
"signature": "export interface ComputeTextureBinding {\n name: string;\n filter?: \"nearest\" | \"linear\";\n wrapU?: \"clamp\" | \"repeat\" | \"mirror\";\n wrapV?: \"clamp\" | \"repeat\" | \"mirror\";\n}",
|
|
608
|
-
"line":
|
|
735
|
+
"line": 423,
|
|
609
736
|
"fields": [
|
|
610
737
|
"name",
|
|
611
738
|
"filter",
|
|
@@ -617,7 +744,7 @@
|
|
|
617
744
|
"name": "ComputeDispatchInput",
|
|
618
745
|
"kind": "InterfaceDeclaration",
|
|
619
746
|
"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}",
|
|
620
|
-
"line":
|
|
747
|
+
"line": 429,
|
|
621
748
|
"fields": [
|
|
622
749
|
"output",
|
|
623
750
|
"bindings",
|
|
@@ -631,7 +758,7 @@
|
|
|
631
758
|
"name": "ComputeTaskState",
|
|
632
759
|
"kind": "InterfaceDeclaration",
|
|
633
760
|
"signature": "export interface ComputeTaskState {\n status: \"queued\" | \"running\" | \"succeeded\" | \"failed\" | \"cancelled\";\n error?: { code: string; message: string; remediation: string };\n}",
|
|
634
|
-
"line":
|
|
761
|
+
"line": 441,
|
|
635
762
|
"fields": [
|
|
636
763
|
"status",
|
|
637
764
|
"error"
|
|
@@ -641,7 +768,7 @@
|
|
|
641
768
|
"name": "ComputeService",
|
|
642
769
|
"kind": "InterfaceDeclaration",
|
|
643
770
|
"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}",
|
|
644
|
-
"line":
|
|
771
|
+
"line": 445,
|
|
645
772
|
"fields": [
|
|
646
773
|
"createTexture",
|
|
647
774
|
"resolveTexture",
|
|
@@ -666,7 +793,7 @@
|
|
|
666
793
|
"name": "InputService",
|
|
667
794
|
"kind": "InterfaceDeclaration",
|
|
668
795
|
"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}",
|
|
669
|
-
"line":
|
|
796
|
+
"line": 465,
|
|
670
797
|
"fields": [
|
|
671
798
|
"held",
|
|
672
799
|
"pressed",
|
|
@@ -678,7 +805,7 @@
|
|
|
678
805
|
"name": "PhysicsService",
|
|
679
806
|
"kind": "InterfaceDeclaration",
|
|
680
807
|
"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}",
|
|
681
|
-
"line":
|
|
808
|
+
"line": 471,
|
|
682
809
|
"fields": [
|
|
683
810
|
"moveCharacter",
|
|
684
811
|
"grounded",
|
|
@@ -697,7 +824,7 @@
|
|
|
697
824
|
"name": "AnimationService",
|
|
698
825
|
"kind": "InterfaceDeclaration",
|
|
699
826
|
"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}",
|
|
700
|
-
"line":
|
|
827
|
+
"line": 493,
|
|
701
828
|
"fields": [
|
|
702
829
|
"play",
|
|
703
830
|
"state"
|
|
@@ -707,7 +834,7 @@
|
|
|
707
834
|
"name": "CameraService",
|
|
708
835
|
"kind": "InterfaceDeclaration",
|
|
709
836
|
"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}",
|
|
710
|
-
"line":
|
|
837
|
+
"line": 505,
|
|
711
838
|
"fields": [
|
|
712
839
|
"follow",
|
|
713
840
|
"orbit"
|
|
@@ -717,7 +844,7 @@
|
|
|
717
844
|
"name": "UIService",
|
|
718
845
|
"kind": "InterfaceDeclaration",
|
|
719
846
|
"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}",
|
|
720
|
-
"line":
|
|
847
|
+
"line": 518,
|
|
721
848
|
"fields": [
|
|
722
849
|
"setText",
|
|
723
850
|
"setProgress",
|
|
@@ -728,7 +855,7 @@
|
|
|
728
855
|
"name": "AudioService",
|
|
729
856
|
"kind": "InterfaceDeclaration",
|
|
730
857
|
"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}",
|
|
731
|
-
"line":
|
|
858
|
+
"line": 523,
|
|
732
859
|
"fields": [
|
|
733
860
|
"play",
|
|
734
861
|
"stop",
|
|
@@ -743,7 +870,7 @@
|
|
|
743
870
|
"name": "StorageService",
|
|
744
871
|
"kind": "InterfaceDeclaration",
|
|
745
872
|
"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}",
|
|
746
|
-
"line":
|
|
873
|
+
"line": 538,
|
|
747
874
|
"fields": [
|
|
748
875
|
"save",
|
|
749
876
|
"load",
|
|
@@ -754,7 +881,7 @@
|
|
|
754
881
|
"name": "SceneService",
|
|
755
882
|
"kind": "InterfaceDeclaration",
|
|
756
883
|
"signature": "export interface SceneService {\n current(): string;\n load(id: string): void;\n}",
|
|
757
|
-
"line":
|
|
884
|
+
"line": 547,
|
|
758
885
|
"fields": [
|
|
759
886
|
"current",
|
|
760
887
|
"load"
|
|
@@ -764,7 +891,7 @@
|
|
|
764
891
|
"name": "ModelDefinition",
|
|
765
892
|
"kind": "InterfaceDeclaration",
|
|
766
893
|
"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}",
|
|
767
|
-
"line":
|
|
894
|
+
"line": 551,
|
|
768
895
|
"fields": [
|
|
769
896
|
"material",
|
|
770
897
|
"materialSlots",
|
|
@@ -781,7 +908,7 @@
|
|
|
781
908
|
"name": "RigidBodyDefinition",
|
|
782
909
|
"kind": "InterfaceDeclaration",
|
|
783
910
|
"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}",
|
|
784
|
-
"line":
|
|
911
|
+
"line": 564,
|
|
785
912
|
"fields": [
|
|
786
913
|
"type",
|
|
787
914
|
"collider",
|
|
@@ -795,7 +922,7 @@
|
|
|
795
922
|
"name": "CharacterDefinition",
|
|
796
923
|
"kind": "InterfaceDeclaration",
|
|
797
924
|
"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}",
|
|
798
|
-
"line":
|
|
925
|
+
"line": 578,
|
|
799
926
|
"fields": [
|
|
800
927
|
"radius",
|
|
801
928
|
"height",
|
|
@@ -808,7 +935,7 @@
|
|
|
808
935
|
"name": "UIElementDefinition",
|
|
809
936
|
"kind": "InterfaceDeclaration",
|
|
810
937
|
"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}",
|
|
811
|
-
"line":
|
|
938
|
+
"line": 586,
|
|
812
939
|
"fields": [
|
|
813
940
|
"id",
|
|
814
941
|
"kind",
|
|
@@ -827,7 +954,7 @@
|
|
|
827
954
|
"name": "SoundDefinition",
|
|
828
955
|
"kind": "InterfaceDeclaration",
|
|
829
956
|
"signature": "export interface SoundDefinition {\n id: string;\n asset: AssetDefinition | string;\n volume?: number;\n loop?: boolean;\n bus?: string;\n}",
|
|
830
|
-
"line":
|
|
957
|
+
"line": 599,
|
|
831
958
|
"fields": [
|
|
832
959
|
"id",
|
|
833
960
|
"asset",
|
|
@@ -840,7 +967,7 @@
|
|
|
840
967
|
"name": "AudioBusDefinition",
|
|
841
968
|
"kind": "InterfaceDeclaration",
|
|
842
969
|
"signature": "export interface AudioBusDefinition {\n id: string;\n volume?: number;\n}",
|
|
843
|
-
"line":
|
|
970
|
+
"line": 606,
|
|
844
971
|
"fields": [
|
|
845
972
|
"id",
|
|
846
973
|
"volume"
|
|
@@ -850,43 +977,43 @@
|
|
|
850
977
|
"name": "SYSTEM_PHASES",
|
|
851
978
|
"kind": "constant",
|
|
852
979
|
"signature": "SYSTEM_PHASES = [\n \"input\",\n \"prePhysics\",\n \"physics\",\n \"postPhysics\",\n \"update\",\n \"presentation\",\n] as const",
|
|
853
|
-
"line":
|
|
980
|
+
"line": 610
|
|
854
981
|
},
|
|
855
982
|
{
|
|
856
983
|
"name": "SystemPhase",
|
|
857
984
|
"kind": "TypeAliasDeclaration",
|
|
858
985
|
"signature": "export type SystemPhase = (typeof SYSTEM_PHASES)[number];",
|
|
859
|
-
"line":
|
|
986
|
+
"line": 618
|
|
860
987
|
},
|
|
861
988
|
{
|
|
862
989
|
"name": "Geometry",
|
|
863
990
|
"kind": "TypeAliasDeclaration",
|
|
864
991
|
"signature": "export type Geometry =\n | { kind: \"box\"; size?: Vec3 }\n | { kind: \"sphere\"; radius?: number; segments?: number }\n | { kind: \"plane\"; size?: readonly [number, number] };",
|
|
865
|
-
"line":
|
|
992
|
+
"line": 619
|
|
866
993
|
},
|
|
867
994
|
{
|
|
868
995
|
"name": "GRAPH_TYPES",
|
|
869
996
|
"kind": "constant",
|
|
870
997
|
"signature": "GRAPH_TYPES = [\"float\", \"vec2\", \"vec3\", \"vec4\", \"bool\"] as const",
|
|
871
|
-
"line":
|
|
998
|
+
"line": 623
|
|
872
999
|
},
|
|
873
1000
|
{
|
|
874
1001
|
"name": "GraphType",
|
|
875
1002
|
"kind": "TypeAliasDeclaration",
|
|
876
1003
|
"signature": "export type GraphType = typeof GRAPH_TYPES[number];",
|
|
877
|
-
"line":
|
|
1004
|
+
"line": 624
|
|
878
1005
|
},
|
|
879
1006
|
{
|
|
880
1007
|
"name": "GraphValue",
|
|
881
1008
|
"kind": "TypeAliasDeclaration",
|
|
882
1009
|
"signature": "export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;",
|
|
883
|
-
"line":
|
|
1010
|
+
"line": 625
|
|
884
1011
|
},
|
|
885
1012
|
{
|
|
886
1013
|
"name": "GraphParameter",
|
|
887
1014
|
"kind": "InterfaceDeclaration",
|
|
888
1015
|
"signature": "export interface GraphParameter {\n name: string;\n type: GraphType;\n default: GraphValue;\n}",
|
|
889
|
-
"line":
|
|
1016
|
+
"line": 626,
|
|
890
1017
|
"fields": [
|
|
891
1018
|
"name",
|
|
892
1019
|
"type",
|
|
@@ -897,31 +1024,31 @@
|
|
|
897
1024
|
"name": "GRAPH_INPUT_TYPES",
|
|
898
1025
|
"kind": "constant",
|
|
899
1026
|
"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",
|
|
900
|
-
"line":
|
|
1027
|
+
"line": 631
|
|
901
1028
|
},
|
|
902
1029
|
{
|
|
903
1030
|
"name": "GraphInputName",
|
|
904
1031
|
"kind": "TypeAliasDeclaration",
|
|
905
1032
|
"signature": "export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;",
|
|
906
|
-
"line":
|
|
1033
|
+
"line": 638
|
|
907
1034
|
},
|
|
908
1035
|
{
|
|
909
1036
|
"name": "GRAPH_OPERATIONS",
|
|
910
1037
|
"kind": "constant",
|
|
911
1038
|
"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",
|
|
912
|
-
"line":
|
|
1039
|
+
"line": 639
|
|
913
1040
|
},
|
|
914
1041
|
{
|
|
915
1042
|
"name": "GraphNode",
|
|
916
1043
|
"kind": "TypeAliasDeclaration",
|
|
917
1044
|
"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 };",
|
|
918
|
-
"line":
|
|
1045
|
+
"line": 644
|
|
919
1046
|
},
|
|
920
1047
|
{
|
|
921
1048
|
"name": "Graph",
|
|
922
1049
|
"kind": "InterfaceDeclaration",
|
|
923
1050
|
"signature": "export interface Graph {\n nodes: readonly GraphNode[];\n output: string;\n parameters?: readonly GraphParameter[];\n}",
|
|
924
|
-
"line":
|
|
1051
|
+
"line": 664,
|
|
925
1052
|
"fields": [
|
|
926
1053
|
"nodes",
|
|
927
1054
|
"output",
|
|
@@ -932,7 +1059,7 @@
|
|
|
932
1059
|
"name": "MaterialGraphs",
|
|
933
1060
|
"kind": "InterfaceDeclaration",
|
|
934
1061
|
"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}",
|
|
935
|
-
"line":
|
|
1062
|
+
"line": 669,
|
|
936
1063
|
"fields": [
|
|
937
1064
|
"baseColor",
|
|
938
1065
|
"emissive",
|
|
@@ -946,7 +1073,7 @@
|
|
|
946
1073
|
"name": "VertexGraphs",
|
|
947
1074
|
"kind": "InterfaceDeclaration",
|
|
948
1075
|
"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}",
|
|
949
|
-
"line":
|
|
1076
|
+
"line": 678,
|
|
950
1077
|
"fields": [
|
|
951
1078
|
"position",
|
|
952
1079
|
"normal"
|
|
@@ -956,7 +1083,7 @@
|
|
|
956
1083
|
"name": "MaterialInput",
|
|
957
1084
|
"kind": "InterfaceDeclaration",
|
|
958
1085
|
"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}",
|
|
959
|
-
"line":
|
|
1086
|
+
"line": 684,
|
|
960
1087
|
"fields": [
|
|
961
1088
|
"id",
|
|
962
1089
|
"color",
|
|
@@ -985,7 +1112,7 @@
|
|
|
985
1112
|
"name": "MaterialDefinition",
|
|
986
1113
|
"kind": "InterfaceDeclaration",
|
|
987
1114
|
"signature": "export interface MaterialDefinition extends MaterialInput {\n readonly kind: \"material\";\n}",
|
|
988
|
-
"line":
|
|
1115
|
+
"line": 711,
|
|
989
1116
|
"fields": [
|
|
990
1117
|
"kind"
|
|
991
1118
|
]
|
|
@@ -994,7 +1121,7 @@
|
|
|
994
1121
|
"name": "PostProcessInput",
|
|
995
1122
|
"kind": "InterfaceDeclaration",
|
|
996
1123
|
"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}",
|
|
997
|
-
"line":
|
|
1124
|
+
"line": 714,
|
|
998
1125
|
"fields": [
|
|
999
1126
|
"id",
|
|
1000
1127
|
"buffers",
|
|
@@ -1007,7 +1134,7 @@
|
|
|
1007
1134
|
"name": "PostProcessDefinition",
|
|
1008
1135
|
"kind": "InterfaceDeclaration",
|
|
1009
1136
|
"signature": "export interface PostProcessDefinition extends PostProcessInput {\n readonly kind: \"postprocess\";\n}",
|
|
1010
|
-
"line":
|
|
1137
|
+
"line": 722,
|
|
1011
1138
|
"fields": [
|
|
1012
1139
|
"kind"
|
|
1013
1140
|
]
|
|
@@ -1016,7 +1143,7 @@
|
|
|
1016
1143
|
"name": "ComputeInput",
|
|
1017
1144
|
"kind": "InterfaceDeclaration",
|
|
1018
1145
|
"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}",
|
|
1019
|
-
"line":
|
|
1146
|
+
"line": 725,
|
|
1020
1147
|
"fields": [
|
|
1021
1148
|
"id",
|
|
1022
1149
|
"graph",
|
|
@@ -1031,7 +1158,7 @@
|
|
|
1031
1158
|
"name": "ComputeDefinition",
|
|
1032
1159
|
"kind": "InterfaceDeclaration",
|
|
1033
1160
|
"signature": "export interface ComputeDefinition extends ComputeInput {\n readonly kind: \"compute\";\n}",
|
|
1034
|
-
"line":
|
|
1161
|
+
"line": 734,
|
|
1035
1162
|
"fields": [
|
|
1036
1163
|
"kind"
|
|
1037
1164
|
]
|
|
@@ -1040,7 +1167,7 @@
|
|
|
1040
1167
|
"name": "AssetInput",
|
|
1041
1168
|
"kind": "InterfaceDeclaration",
|
|
1042
1169
|
"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}",
|
|
1043
|
-
"line":
|
|
1170
|
+
"line": 737,
|
|
1044
1171
|
"fields": [
|
|
1045
1172
|
"id",
|
|
1046
1173
|
"path",
|
|
@@ -1055,7 +1182,7 @@
|
|
|
1055
1182
|
"name": "AssetDefinition",
|
|
1056
1183
|
"kind": "InterfaceDeclaration",
|
|
1057
1184
|
"signature": "export interface AssetDefinition extends AssetInput {\n readonly kind: \"asset\";\n}",
|
|
1058
|
-
"line":
|
|
1185
|
+
"line": 747,
|
|
1059
1186
|
"fields": [
|
|
1060
1187
|
"kind"
|
|
1061
1188
|
]
|
|
@@ -1064,7 +1191,7 @@
|
|
|
1064
1191
|
"name": "MeshDefinition",
|
|
1065
1192
|
"kind": "InterfaceDeclaration",
|
|
1066
1193
|
"signature": "export interface MeshDefinition {\n geometry: Geometry;\n material: MaterialDefinition | string;\n castShadow?: boolean;\n receiveShadow?: boolean;\n}",
|
|
1067
|
-
"line":
|
|
1194
|
+
"line": 750,
|
|
1068
1195
|
"fields": [
|
|
1069
1196
|
"geometry",
|
|
1070
1197
|
"material",
|
|
@@ -1076,7 +1203,7 @@
|
|
|
1076
1203
|
"name": "LightDefinition",
|
|
1077
1204
|
"kind": "InterfaceDeclaration",
|
|
1078
1205
|
"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}",
|
|
1079
|
-
"line":
|
|
1206
|
+
"line": 756,
|
|
1080
1207
|
"fields": [
|
|
1081
1208
|
"kind",
|
|
1082
1209
|
"color",
|
|
@@ -1090,7 +1217,7 @@
|
|
|
1090
1217
|
"name": "EntityInput",
|
|
1091
1218
|
"kind": "InterfaceDeclaration",
|
|
1092
1219
|
"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}",
|
|
1093
|
-
"line":
|
|
1220
|
+
"line": 771,
|
|
1094
1221
|
"fields": [
|
|
1095
1222
|
"id",
|
|
1096
1223
|
"prefab",
|
|
@@ -1108,7 +1235,7 @@
|
|
|
1108
1235
|
"name": "PrefabInput",
|
|
1109
1236
|
"kind": "InterfaceDeclaration",
|
|
1110
1237
|
"signature": "export interface PrefabInput extends Omit<EntityInput, \"prefab\" | \"parent\"> {\n extends?: PrefabDefinition | string;\n}",
|
|
1111
|
-
"line":
|
|
1238
|
+
"line": 783,
|
|
1112
1239
|
"fields": [
|
|
1113
1240
|
"extends"
|
|
1114
1241
|
]
|
|
@@ -1117,7 +1244,7 @@
|
|
|
1117
1244
|
"name": "PrefabDefinition",
|
|
1118
1245
|
"kind": "InterfaceDeclaration",
|
|
1119
1246
|
"signature": "export interface PrefabDefinition extends PrefabInput {\n readonly kind: \"prefab\";\n}",
|
|
1120
|
-
"line":
|
|
1247
|
+
"line": 786,
|
|
1121
1248
|
"fields": [
|
|
1122
1249
|
"kind"
|
|
1123
1250
|
]
|
|
@@ -1126,7 +1253,7 @@
|
|
|
1126
1253
|
"name": "SceneInput",
|
|
1127
1254
|
"kind": "InterfaceDeclaration",
|
|
1128
1255
|
"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}",
|
|
1129
|
-
"line":
|
|
1256
|
+
"line": 789,
|
|
1130
1257
|
"fields": [
|
|
1131
1258
|
"id",
|
|
1132
1259
|
"camera",
|
|
@@ -1140,7 +1267,7 @@
|
|
|
1140
1267
|
"name": "SceneDefinition",
|
|
1141
1268
|
"kind": "InterfaceDeclaration",
|
|
1142
1269
|
"signature": "export interface SceneDefinition extends SceneInput {\n readonly kind: \"scene\";\n}",
|
|
1143
|
-
"line":
|
|
1270
|
+
"line": 814,
|
|
1144
1271
|
"fields": [
|
|
1145
1272
|
"kind"
|
|
1146
1273
|
]
|
|
@@ -1149,7 +1276,7 @@
|
|
|
1149
1276
|
"name": "SystemInput",
|
|
1150
1277
|
"kind": "InterfaceDeclaration",
|
|
1151
1278
|
"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}",
|
|
1152
|
-
"line":
|
|
1279
|
+
"line": 817,
|
|
1153
1280
|
"fields": [
|
|
1154
1281
|
"id",
|
|
1155
1282
|
"phase",
|
|
@@ -1165,7 +1292,7 @@
|
|
|
1165
1292
|
"name": "SystemDefinition",
|
|
1166
1293
|
"kind": "InterfaceDeclaration",
|
|
1167
1294
|
"signature": "export interface SystemDefinition extends SystemInput {\n readonly kind: \"system\";\n}",
|
|
1168
|
-
"line":
|
|
1295
|
+
"line": 827,
|
|
1169
1296
|
"fields": [
|
|
1170
1297
|
"kind"
|
|
1171
1298
|
]
|
|
@@ -1174,7 +1301,7 @@
|
|
|
1174
1301
|
"name": "GameInput",
|
|
1175
1302
|
"kind": "InterfaceDeclaration",
|
|
1176
1303
|
"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}",
|
|
1177
|
-
"line":
|
|
1304
|
+
"line": 830,
|
|
1178
1305
|
"fields": [
|
|
1179
1306
|
"id",
|
|
1180
1307
|
"scene",
|
|
@@ -1199,7 +1326,7 @@
|
|
|
1199
1326
|
"name": "GameDefinition",
|
|
1200
1327
|
"kind": "InterfaceDeclaration",
|
|
1201
1328
|
"signature": "export interface GameDefinition extends GameInput {\n readonly kind: \"game\";\n}",
|
|
1202
|
-
"line":
|
|
1329
|
+
"line": 849,
|
|
1203
1330
|
"fields": [
|
|
1204
1331
|
"kind"
|
|
1205
1332
|
]
|
|
@@ -1208,7 +1335,7 @@
|
|
|
1208
1335
|
"name": "GameInstance",
|
|
1209
1336
|
"kind": "InterfaceDeclaration",
|
|
1210
1337
|
"signature": "export interface GameInstance {\n update(dt: number): void;\n dispose(): void;\n}",
|
|
1211
|
-
"line":
|
|
1338
|
+
"line": 852,
|
|
1212
1339
|
"fields": [
|
|
1213
1340
|
"update",
|
|
1214
1341
|
"dispose"
|
|
@@ -1218,61 +1345,61 @@
|
|
|
1218
1345
|
"name": "defineComponent",
|
|
1219
1346
|
"kind": "FunctionDeclaration",
|
|
1220
1347
|
"signature": "export function defineComponent<const S extends ComponentSchema>(input: {\n id: string;\n schema: S;\n}): ComponentDefinition<S>;",
|
|
1221
|
-
"line":
|
|
1348
|
+
"line": 856
|
|
1222
1349
|
},
|
|
1223
1350
|
{
|
|
1224
1351
|
"name": "defineMaterial",
|
|
1225
1352
|
"kind": "FunctionDeclaration",
|
|
1226
1353
|
"signature": "export function defineMaterial(input: MaterialInput): MaterialDefinition;",
|
|
1227
|
-
"line":
|
|
1354
|
+
"line": 862
|
|
1228
1355
|
},
|
|
1229
1356
|
{
|
|
1230
1357
|
"name": "definePostProcess",
|
|
1231
1358
|
"kind": "FunctionDeclaration",
|
|
1232
1359
|
"signature": "export function definePostProcess(input: PostProcessInput): PostProcessDefinition;",
|
|
1233
|
-
"line":
|
|
1360
|
+
"line": 865
|
|
1234
1361
|
},
|
|
1235
1362
|
{
|
|
1236
1363
|
"name": "defineCompute",
|
|
1237
1364
|
"kind": "FunctionDeclaration",
|
|
1238
1365
|
"signature": "export function defineCompute(input: ComputeInput): ComputeDefinition;",
|
|
1239
|
-
"line":
|
|
1366
|
+
"line": 868
|
|
1240
1367
|
},
|
|
1241
1368
|
{
|
|
1242
1369
|
"name": "defineAsset",
|
|
1243
1370
|
"kind": "FunctionDeclaration",
|
|
1244
1371
|
"signature": "export function defineAsset(input: AssetInput): AssetDefinition;",
|
|
1245
|
-
"line":
|
|
1372
|
+
"line": 871
|
|
1246
1373
|
},
|
|
1247
1374
|
{
|
|
1248
1375
|
"name": "definePrefab",
|
|
1249
1376
|
"kind": "FunctionDeclaration",
|
|
1250
1377
|
"signature": "export function definePrefab(input: PrefabInput): PrefabDefinition;",
|
|
1251
|
-
"line":
|
|
1378
|
+
"line": 874
|
|
1252
1379
|
},
|
|
1253
1380
|
{
|
|
1254
1381
|
"name": "defineScene",
|
|
1255
1382
|
"kind": "FunctionDeclaration",
|
|
1256
1383
|
"signature": "export function defineScene(input: SceneInput): SceneDefinition;",
|
|
1257
|
-
"line":
|
|
1384
|
+
"line": 877
|
|
1258
1385
|
},
|
|
1259
1386
|
{
|
|
1260
1387
|
"name": "defineSystem",
|
|
1261
1388
|
"kind": "FunctionDeclaration",
|
|
1262
1389
|
"signature": "export function defineSystem(input: SystemInput): SystemDefinition;",
|
|
1263
|
-
"line":
|
|
1390
|
+
"line": 880
|
|
1264
1391
|
},
|
|
1265
1392
|
{
|
|
1266
1393
|
"name": "defineGame",
|
|
1267
1394
|
"kind": "FunctionDeclaration",
|
|
1268
1395
|
"signature": "export function defineGame(input: GameInput): GameDefinition;",
|
|
1269
|
-
"line":
|
|
1396
|
+
"line": 883
|
|
1270
1397
|
},
|
|
1271
1398
|
{
|
|
1272
1399
|
"name": "instantiateGame",
|
|
1273
1400
|
"kind": "FunctionDeclaration",
|
|
1274
1401
|
"signature": "export function instantiateGame(\n game: GameDefinition,\n engine: EngineFacade,\n): GameInstance;",
|
|
1275
|
-
"line":
|
|
1402
|
+
"line": 887
|
|
1276
1403
|
}
|
|
1277
1404
|
],
|
|
1278
1405
|
"installedDeclarations": "lib/sdk/index.d.ts",
|