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/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.18 API 索引
|
|
2
2
|
|
|
3
3
|
Installed declarations: `lib/sdk/index.d.ts` (relative to the package root).
|
|
4
4
|
The signatures below come from the same public SDK source as repository games.
|
|
@@ -11,7 +11,7 @@ Source-file paths and line numbers are build-time provenance only; TypeScript so
|
|
|
11
11
|
来源:`packages/sdk/src/index.ts:2`
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
SDK_VERSION = "0.3.
|
|
14
|
+
SDK_VERSION = "0.3.18"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -255,12 +255,13 @@ export interface SystemContext extends EngineFacade {
|
|
|
255
255
|
readonly compute: ComputeService;
|
|
256
256
|
readonly navigation: NavigationService;
|
|
257
257
|
readonly ropes: RopeService;
|
|
258
|
+
readonly cloth: ClothService;
|
|
258
259
|
}
|
|
259
260
|
```
|
|
260
261
|
|
|
261
262
|
## RopeCollider
|
|
262
263
|
|
|
263
|
-
来源:`packages/sdk/src/index.ts:
|
|
264
|
+
来源:`packages/sdk/src/index.ts:124`
|
|
264
265
|
|
|
265
266
|
```ts
|
|
266
267
|
export type RopeCollider =
|
|
@@ -270,7 +271,7 @@ export type RopeCollider =
|
|
|
270
271
|
|
|
271
272
|
## RopeBodyCollider
|
|
272
273
|
|
|
273
|
-
来源:`packages/sdk/src/index.ts:
|
|
274
|
+
来源:`packages/sdk/src/index.ts:128`
|
|
274
275
|
|
|
275
276
|
```ts
|
|
276
277
|
export interface RopeBodyCollider { readonly id: string; readonly entity: string }
|
|
@@ -278,7 +279,7 @@ export interface RopeBodyCollider { readonly id: string; readonly entity: string
|
|
|
278
279
|
|
|
279
280
|
## RopeVisualOptions
|
|
280
281
|
|
|
281
|
-
来源:`packages/sdk/src/index.ts:
|
|
282
|
+
来源:`packages/sdk/src/index.ts:130`
|
|
282
283
|
|
|
283
284
|
```ts
|
|
284
285
|
export interface RopeVisualOptions {
|
|
@@ -292,7 +293,7 @@ export interface RopeVisualOptions {
|
|
|
292
293
|
|
|
293
294
|
## RopeVisualState
|
|
294
295
|
|
|
295
|
-
来源:`packages/sdk/src/index.ts:
|
|
296
|
+
来源:`packages/sdk/src/index.ts:138`
|
|
296
297
|
|
|
297
298
|
```ts
|
|
298
299
|
export interface RopeVisualState {
|
|
@@ -308,7 +309,7 @@ export interface RopeVisualState {
|
|
|
308
309
|
|
|
309
310
|
## RopeDefinition
|
|
310
311
|
|
|
311
|
-
来源:`packages/sdk/src/index.ts:
|
|
312
|
+
来源:`packages/sdk/src/index.ts:147`
|
|
312
313
|
|
|
313
314
|
```ts
|
|
314
315
|
export interface RopeDefinition {
|
|
@@ -325,6 +326,8 @@ export interface RopeDefinition {
|
|
|
325
326
|
bodyColliders?: readonly RopeBodyCollider[];
|
|
326
327
|
/** Resolve sphere contacts on segment interiors; defaults to true for new ropes. */
|
|
327
328
|
segmentCollisions?: boolean;
|
|
329
|
+
/** Resolve discrete non-adjacent segment self contacts; defaults to true for new ropes. */
|
|
330
|
+
selfCollisions?: boolean;
|
|
328
331
|
/** Optional segmented presentation using an already-declared material id. */
|
|
329
332
|
visual?: RopeVisualOptions;
|
|
330
333
|
substeps?: number;
|
|
@@ -337,7 +340,7 @@ export interface RopeDefinition {
|
|
|
337
340
|
|
|
338
341
|
## RopeContact
|
|
339
342
|
|
|
340
|
-
来源:`packages/sdk/src/index.ts:
|
|
343
|
+
来源:`packages/sdk/src/index.ts:172`
|
|
341
344
|
|
|
342
345
|
```ts
|
|
343
346
|
export interface RopeContact {
|
|
@@ -351,7 +354,7 @@ export interface RopeContact {
|
|
|
351
354
|
|
|
352
355
|
## RopeSegmentContact
|
|
353
356
|
|
|
354
|
-
来源:`packages/sdk/src/index.ts:
|
|
357
|
+
来源:`packages/sdk/src/index.ts:180`
|
|
355
358
|
|
|
356
359
|
```ts
|
|
357
360
|
export interface RopeSegmentContact {
|
|
@@ -367,18 +370,36 @@ export interface RopeSegmentContact {
|
|
|
367
370
|
}
|
|
368
371
|
```
|
|
369
372
|
|
|
373
|
+
## RopeSelfContact
|
|
374
|
+
|
|
375
|
+
来源:`packages/sdk/src/index.ts:192`
|
|
376
|
+
|
|
377
|
+
```ts
|
|
378
|
+
export interface RopeSelfContact {
|
|
379
|
+
tick: number;
|
|
380
|
+
/** Zero-based first endpoint of each non-adjacent segment, ordered ascending. */
|
|
381
|
+
firstSegment: number; secondSegment: number;
|
|
382
|
+
/** Last closest-point fractions along the respective segments. */
|
|
383
|
+
firstFraction: number; secondFraction: number;
|
|
384
|
+
/** Maximum observed overlap in metres during this tick. */
|
|
385
|
+
penetration: number;
|
|
386
|
+
}
|
|
387
|
+
```
|
|
388
|
+
|
|
370
389
|
## RopeState
|
|
371
390
|
|
|
372
|
-
来源:`packages/sdk/src/index.ts:
|
|
391
|
+
来源:`packages/sdk/src/index.ts:201`
|
|
373
392
|
|
|
374
393
|
```ts
|
|
375
394
|
export interface RopeState {
|
|
376
395
|
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
377
396
|
segmentCollisions: boolean;
|
|
397
|
+
selfCollisions: boolean;
|
|
378
398
|
positions: Vec3[]; velocities: Vec3[];
|
|
379
399
|
anchors: { index: number; position: Vec3 }[];
|
|
380
400
|
contacts: RopeContact[];
|
|
381
401
|
segmentContacts: RopeSegmentContact[];
|
|
402
|
+
selfContacts: RopeSelfContact[];
|
|
382
403
|
maxDistanceError: number;
|
|
383
404
|
resources: { particles: number; constraints: number; anchors: number; colliders: number };
|
|
384
405
|
}
|
|
@@ -386,7 +407,7 @@ export interface RopeState {
|
|
|
386
407
|
|
|
387
408
|
## RopeService
|
|
388
409
|
|
|
389
|
-
来源:`packages/sdk/src/index.ts:
|
|
410
|
+
来源:`packages/sdk/src/index.ts:213`
|
|
390
411
|
|
|
391
412
|
```ts
|
|
392
413
|
export interface RopeService {
|
|
@@ -405,9 +426,118 @@ export interface RopeService {
|
|
|
405
426
|
}
|
|
406
427
|
```
|
|
407
428
|
|
|
429
|
+
## ClothCollider
|
|
430
|
+
|
|
431
|
+
来源:`packages/sdk/src/index.ts:228`
|
|
432
|
+
|
|
433
|
+
```ts
|
|
434
|
+
export type ClothCollider = RopeCollider;
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
## ClothTriangle
|
|
438
|
+
|
|
439
|
+
来源:`packages/sdk/src/index.ts:229`
|
|
440
|
+
|
|
441
|
+
```ts
|
|
442
|
+
export type ClothTriangle = readonly [number, number, number];
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
## ClothVisualOptions
|
|
446
|
+
|
|
447
|
+
来源:`packages/sdk/src/index.ts:230`
|
|
448
|
+
|
|
449
|
+
```ts
|
|
450
|
+
export interface ClothVisualOptions {
|
|
451
|
+
material: string;
|
|
452
|
+
/** Optional per-particle UV coordinates; defaults to a planar projection. */
|
|
453
|
+
uvs?: readonly Vec2[];
|
|
454
|
+
castShadow?: boolean;
|
|
455
|
+
receiveShadow?: boolean;
|
|
456
|
+
}
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
## ClothDefinition
|
|
460
|
+
|
|
461
|
+
来源:`packages/sdk/src/index.ts:237`
|
|
462
|
+
|
|
463
|
+
```ts
|
|
464
|
+
export interface ClothDefinition {
|
|
465
|
+
id: string;
|
|
466
|
+
points: readonly Vec3[];
|
|
467
|
+
triangles: readonly ClothTriangle[];
|
|
468
|
+
/** Kilograms per movable particle. */
|
|
469
|
+
mass: number;
|
|
470
|
+
radius?: number;
|
|
471
|
+
fixedDt?: number;
|
|
472
|
+
autoStep?: boolean;
|
|
473
|
+
substeps?: number;
|
|
474
|
+
iterations?: number;
|
|
475
|
+
damping?: number;
|
|
476
|
+
gravity?: Vec3;
|
|
477
|
+
/** Distance-based bending approximation across shared triangle edges; defaults to true. */
|
|
478
|
+
bending?: boolean;
|
|
479
|
+
anchors?: readonly { index: number; position: Vec3 }[];
|
|
480
|
+
visual?: ClothVisualOptions;
|
|
481
|
+
}
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
## ClothContact
|
|
485
|
+
|
|
486
|
+
来源:`packages/sdk/src/index.ts:255`
|
|
487
|
+
|
|
488
|
+
```ts
|
|
489
|
+
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
## ClothState
|
|
493
|
+
|
|
494
|
+
来源:`packages/sdk/src/index.ts:256`
|
|
495
|
+
|
|
496
|
+
```ts
|
|
497
|
+
export interface ClothState {
|
|
498
|
+
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
499
|
+
positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];
|
|
500
|
+
anchors: { index: number; position: Vec3 }[];
|
|
501
|
+
contacts: ClothContact[];
|
|
502
|
+
maxDistanceError: number;
|
|
503
|
+
resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };
|
|
504
|
+
}
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
## ClothVisualState
|
|
508
|
+
|
|
509
|
+
来源:`packages/sdk/src/index.ts:264`
|
|
510
|
+
|
|
511
|
+
```ts
|
|
512
|
+
export interface ClothVisualState {
|
|
513
|
+
id: string; material: string; positions: Vec3[]; triangles: ClothTriangle[];
|
|
514
|
+
uvs: Vec2[]; castShadow: boolean; receiveShadow: boolean;
|
|
515
|
+
}
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
## ClothService
|
|
519
|
+
|
|
520
|
+
来源:`packages/sdk/src/index.ts:268`
|
|
521
|
+
|
|
522
|
+
```ts
|
|
523
|
+
export interface ClothService {
|
|
524
|
+
create(definition: ClothDefinition): void;
|
|
525
|
+
/** Explicit ticks for manual cloth only; automatic cloth rejects this call. */
|
|
526
|
+
step(id: string, ticks?: number): ClothState;
|
|
527
|
+
inspect(id: string): ClothState;
|
|
528
|
+
visuals(): readonly ClothVisualState[];
|
|
529
|
+
setColliders(id: string, colliders: readonly ClothCollider[]): void;
|
|
530
|
+
setAnchor(id: string, index: number, position: Vec3): void;
|
|
531
|
+
releaseAnchor(id: string, index: number): void;
|
|
532
|
+
applyForce(id: string, index: number, force: Vec3): void;
|
|
533
|
+
applyImpulse(id: string, index: number, impulse: Vec3): void;
|
|
534
|
+
destroy(id: string): void;
|
|
535
|
+
}
|
|
536
|
+
```
|
|
537
|
+
|
|
408
538
|
## NavigationCell
|
|
409
539
|
|
|
410
|
-
来源:`packages/sdk/src/index.ts:
|
|
540
|
+
来源:`packages/sdk/src/index.ts:284`
|
|
411
541
|
|
|
412
542
|
```ts
|
|
413
543
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -415,7 +545,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
415
545
|
|
|
416
546
|
## NavigationObstacleUpdate
|
|
417
547
|
|
|
418
|
-
来源:`packages/sdk/src/index.ts:
|
|
548
|
+
来源:`packages/sdk/src/index.ts:286`
|
|
419
549
|
|
|
420
550
|
```ts
|
|
421
551
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -423,7 +553,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
423
553
|
|
|
424
554
|
## NavigationGrid
|
|
425
555
|
|
|
426
|
-
来源:`packages/sdk/src/index.ts:
|
|
556
|
+
来源:`packages/sdk/src/index.ts:287`
|
|
427
557
|
|
|
428
558
|
```ts
|
|
429
559
|
export interface NavigationGrid {
|
|
@@ -439,7 +569,7 @@ export interface NavigationGrid {
|
|
|
439
569
|
|
|
440
570
|
## NavigationService
|
|
441
571
|
|
|
442
|
-
来源:`packages/sdk/src/index.ts:
|
|
572
|
+
来源:`packages/sdk/src/index.ts:296`
|
|
443
573
|
|
|
444
574
|
```ts
|
|
445
575
|
export interface NavigationService {
|
|
@@ -458,7 +588,7 @@ export interface NavigationService {
|
|
|
458
588
|
|
|
459
589
|
## RenderMode
|
|
460
590
|
|
|
461
|
-
来源:`packages/sdk/src/index.ts:
|
|
591
|
+
来源:`packages/sdk/src/index.ts:308`
|
|
462
592
|
|
|
463
593
|
```ts
|
|
464
594
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -466,7 +596,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
466
596
|
|
|
467
597
|
## RenderCapabilities
|
|
468
598
|
|
|
469
|
-
来源:`packages/sdk/src/index.ts:
|
|
599
|
+
来源:`packages/sdk/src/index.ts:309`
|
|
470
600
|
|
|
471
601
|
```ts
|
|
472
602
|
export interface RenderCapabilities {
|
|
@@ -478,7 +608,7 @@ export interface RenderCapabilities {
|
|
|
478
608
|
|
|
479
609
|
## RenderSettings
|
|
480
610
|
|
|
481
|
-
来源:`packages/sdk/src/index.ts:
|
|
611
|
+
来源:`packages/sdk/src/index.ts:314`
|
|
482
612
|
|
|
483
613
|
```ts
|
|
484
614
|
export interface RenderSettings {
|
|
@@ -496,7 +626,7 @@ export interface RenderSettings {
|
|
|
496
626
|
|
|
497
627
|
## RenderService
|
|
498
628
|
|
|
499
|
-
来源:`packages/sdk/src/index.ts:
|
|
629
|
+
来源:`packages/sdk/src/index.ts:325`
|
|
500
630
|
|
|
501
631
|
```ts
|
|
502
632
|
export interface RenderService {
|
|
@@ -513,7 +643,7 @@ export interface RenderService {
|
|
|
513
643
|
|
|
514
644
|
## MaterialBufferInput
|
|
515
645
|
|
|
516
|
-
来源:`packages/sdk/src/index.ts:
|
|
646
|
+
来源:`packages/sdk/src/index.ts:335`
|
|
517
647
|
|
|
518
648
|
```ts
|
|
519
649
|
export interface MaterialBufferInput {
|
|
@@ -529,7 +659,7 @@ export interface MaterialBufferInput {
|
|
|
529
659
|
|
|
530
660
|
## RenderBufferReference
|
|
531
661
|
|
|
532
|
-
来源:`packages/sdk/src/index.ts:
|
|
662
|
+
来源:`packages/sdk/src/index.ts:344`
|
|
533
663
|
|
|
534
664
|
```ts
|
|
535
665
|
export interface RenderBufferReference {
|
|
@@ -541,7 +671,7 @@ export interface RenderBufferReference {
|
|
|
541
671
|
|
|
542
672
|
## RenderBufferBindings
|
|
543
673
|
|
|
544
|
-
来源:`packages/sdk/src/index.ts:
|
|
674
|
+
来源:`packages/sdk/src/index.ts:349`
|
|
545
675
|
|
|
546
676
|
```ts
|
|
547
677
|
export interface RenderBufferBindings {
|
|
@@ -553,7 +683,7 @@ export interface RenderBufferBindings {
|
|
|
553
683
|
|
|
554
684
|
## MaterialTextureInput
|
|
555
685
|
|
|
556
|
-
来源:`packages/sdk/src/index.ts:
|
|
686
|
+
来源:`packages/sdk/src/index.ts:354`
|
|
557
687
|
|
|
558
688
|
```ts
|
|
559
689
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -566,7 +696,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
566
696
|
|
|
567
697
|
## RenderTextureReference
|
|
568
698
|
|
|
569
|
-
来源:`packages/sdk/src/index.ts:
|
|
699
|
+
来源:`packages/sdk/src/index.ts:360`
|
|
570
700
|
|
|
571
701
|
```ts
|
|
572
702
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -577,7 +707,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
577
707
|
|
|
578
708
|
## RenderTextureBindings
|
|
579
709
|
|
|
580
|
-
来源:`packages/sdk/src/index.ts:
|
|
710
|
+
来源:`packages/sdk/src/index.ts:364`
|
|
581
711
|
|
|
582
712
|
```ts
|
|
583
713
|
export interface RenderTextureBindings {
|
|
@@ -589,7 +719,7 @@ export interface RenderTextureBindings {
|
|
|
589
719
|
|
|
590
720
|
## PostProcessState
|
|
591
721
|
|
|
592
|
-
来源:`packages/sdk/src/index.ts:
|
|
722
|
+
来源:`packages/sdk/src/index.ts:369`
|
|
593
723
|
|
|
594
724
|
```ts
|
|
595
725
|
export interface PostProcessState {
|
|
@@ -601,7 +731,7 @@ export interface PostProcessState {
|
|
|
601
731
|
|
|
602
732
|
## PostProcessService
|
|
603
733
|
|
|
604
|
-
来源:`packages/sdk/src/index.ts:
|
|
734
|
+
来源:`packages/sdk/src/index.ts:374`
|
|
605
735
|
|
|
606
736
|
```ts
|
|
607
737
|
export interface PostProcessService {
|
|
@@ -618,7 +748,7 @@ export interface PostProcessService {
|
|
|
618
748
|
|
|
619
749
|
## ComputeBufferHandle
|
|
620
750
|
|
|
621
|
-
来源:`packages/sdk/src/index.ts:
|
|
751
|
+
来源:`packages/sdk/src/index.ts:384`
|
|
622
752
|
|
|
623
753
|
```ts
|
|
624
754
|
export interface ComputeBufferHandle {
|
|
@@ -630,7 +760,7 @@ export interface ComputeBufferHandle {
|
|
|
630
760
|
|
|
631
761
|
## ComputeTaskHandle
|
|
632
762
|
|
|
633
|
-
来源:`packages/sdk/src/index.ts:
|
|
763
|
+
来源:`packages/sdk/src/index.ts:389`
|
|
634
764
|
|
|
635
765
|
```ts
|
|
636
766
|
export interface ComputeTaskHandle {
|
|
@@ -641,7 +771,7 @@ export interface ComputeTaskHandle {
|
|
|
641
771
|
|
|
642
772
|
## ComputeBufferInput
|
|
643
773
|
|
|
644
|
-
来源:`packages/sdk/src/index.ts:
|
|
774
|
+
来源:`packages/sdk/src/index.ts:393`
|
|
645
775
|
|
|
646
776
|
```ts
|
|
647
777
|
export interface ComputeBufferInput {
|
|
@@ -654,7 +784,7 @@ export interface ComputeBufferInput {
|
|
|
654
784
|
|
|
655
785
|
## ComputeTextureHandle
|
|
656
786
|
|
|
657
|
-
来源:`packages/sdk/src/index.ts:
|
|
787
|
+
来源:`packages/sdk/src/index.ts:399`
|
|
658
788
|
|
|
659
789
|
```ts
|
|
660
790
|
export interface ComputeTextureHandle {
|
|
@@ -667,7 +797,7 @@ export interface ComputeTextureHandle {
|
|
|
667
797
|
|
|
668
798
|
## ComputeTextureSize
|
|
669
799
|
|
|
670
|
-
来源:`packages/sdk/src/index.ts:
|
|
800
|
+
来源:`packages/sdk/src/index.ts:405`
|
|
671
801
|
|
|
672
802
|
```ts
|
|
673
803
|
export interface ComputeTextureSize {
|
|
@@ -678,7 +808,7 @@ export interface ComputeTextureSize {
|
|
|
678
808
|
|
|
679
809
|
## ComputeTextureDataInput
|
|
680
810
|
|
|
681
|
-
来源:`packages/sdk/src/index.ts:
|
|
811
|
+
来源:`packages/sdk/src/index.ts:409`
|
|
682
812
|
|
|
683
813
|
```ts
|
|
684
814
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -691,7 +821,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
691
821
|
|
|
692
822
|
## ComputeTextureAssetInput
|
|
693
823
|
|
|
694
|
-
来源:`packages/sdk/src/index.ts:
|
|
824
|
+
来源:`packages/sdk/src/index.ts:415`
|
|
695
825
|
|
|
696
826
|
```ts
|
|
697
827
|
export interface ComputeTextureAssetInput {
|
|
@@ -705,7 +835,7 @@ export interface ComputeTextureAssetInput {
|
|
|
705
835
|
|
|
706
836
|
## ComputeTextureInput
|
|
707
837
|
|
|
708
|
-
来源:`packages/sdk/src/index.ts:
|
|
838
|
+
来源:`packages/sdk/src/index.ts:422`
|
|
709
839
|
|
|
710
840
|
```ts
|
|
711
841
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -713,7 +843,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
713
843
|
|
|
714
844
|
## ComputeTextureBinding
|
|
715
845
|
|
|
716
|
-
来源:`packages/sdk/src/index.ts:
|
|
846
|
+
来源:`packages/sdk/src/index.ts:423`
|
|
717
847
|
|
|
718
848
|
```ts
|
|
719
849
|
export interface ComputeTextureBinding {
|
|
@@ -726,7 +856,7 @@ export interface ComputeTextureBinding {
|
|
|
726
856
|
|
|
727
857
|
## ComputeDispatchInput
|
|
728
858
|
|
|
729
|
-
来源:`packages/sdk/src/index.ts:
|
|
859
|
+
来源:`packages/sdk/src/index.ts:429`
|
|
730
860
|
|
|
731
861
|
```ts
|
|
732
862
|
export interface ComputeDispatchInput {
|
|
@@ -745,7 +875,7 @@ export interface ComputeDispatchInput {
|
|
|
745
875
|
|
|
746
876
|
## ComputeTaskState
|
|
747
877
|
|
|
748
|
-
来源:`packages/sdk/src/index.ts:
|
|
878
|
+
来源:`packages/sdk/src/index.ts:441`
|
|
749
879
|
|
|
750
880
|
```ts
|
|
751
881
|
export interface ComputeTaskState {
|
|
@@ -756,7 +886,7 @@ export interface ComputeTaskState {
|
|
|
756
886
|
|
|
757
887
|
## ComputeService
|
|
758
888
|
|
|
759
|
-
来源:`packages/sdk/src/index.ts:
|
|
889
|
+
来源:`packages/sdk/src/index.ts:445`
|
|
760
890
|
|
|
761
891
|
```ts
|
|
762
892
|
export interface ComputeService {
|
|
@@ -783,7 +913,7 @@ export interface ComputeService {
|
|
|
783
913
|
|
|
784
914
|
## InputService
|
|
785
915
|
|
|
786
|
-
来源:`packages/sdk/src/index.ts:
|
|
916
|
+
来源:`packages/sdk/src/index.ts:465`
|
|
787
917
|
|
|
788
918
|
```ts
|
|
789
919
|
export interface InputService {
|
|
@@ -796,7 +926,7 @@ export interface InputService {
|
|
|
796
926
|
|
|
797
927
|
## PhysicsService
|
|
798
928
|
|
|
799
|
-
来源:`packages/sdk/src/index.ts:
|
|
929
|
+
来源:`packages/sdk/src/index.ts:471`
|
|
800
930
|
|
|
801
931
|
```ts
|
|
802
932
|
export interface PhysicsService {
|
|
@@ -825,7 +955,7 @@ export interface PhysicsService {
|
|
|
825
955
|
|
|
826
956
|
## AnimationService
|
|
827
957
|
|
|
828
|
-
来源:`packages/sdk/src/index.ts:
|
|
958
|
+
来源:`packages/sdk/src/index.ts:493`
|
|
829
959
|
|
|
830
960
|
```ts
|
|
831
961
|
export interface AnimationService {
|
|
@@ -844,7 +974,7 @@ export interface AnimationService {
|
|
|
844
974
|
|
|
845
975
|
## CameraService
|
|
846
976
|
|
|
847
|
-
来源:`packages/sdk/src/index.ts:
|
|
977
|
+
来源:`packages/sdk/src/index.ts:505`
|
|
848
978
|
|
|
849
979
|
```ts
|
|
850
980
|
export interface CameraService {
|
|
@@ -864,7 +994,7 @@ export interface CameraService {
|
|
|
864
994
|
|
|
865
995
|
## UIService
|
|
866
996
|
|
|
867
|
-
来源:`packages/sdk/src/index.ts:
|
|
997
|
+
来源:`packages/sdk/src/index.ts:518`
|
|
868
998
|
|
|
869
999
|
```ts
|
|
870
1000
|
export interface UIService {
|
|
@@ -876,7 +1006,7 @@ export interface UIService {
|
|
|
876
1006
|
|
|
877
1007
|
## AudioService
|
|
878
1008
|
|
|
879
|
-
来源:`packages/sdk/src/index.ts:
|
|
1009
|
+
来源:`packages/sdk/src/index.ts:523`
|
|
880
1010
|
|
|
881
1011
|
```ts
|
|
882
1012
|
export interface AudioService {
|
|
@@ -898,7 +1028,7 @@ export interface AudioService {
|
|
|
898
1028
|
|
|
899
1029
|
## StorageService
|
|
900
1030
|
|
|
901
|
-
来源:`packages/sdk/src/index.ts:
|
|
1031
|
+
来源:`packages/sdk/src/index.ts:538`
|
|
902
1032
|
|
|
903
1033
|
```ts
|
|
904
1034
|
export interface StorageService {
|
|
@@ -914,7 +1044,7 @@ export interface StorageService {
|
|
|
914
1044
|
|
|
915
1045
|
## SceneService
|
|
916
1046
|
|
|
917
|
-
来源:`packages/sdk/src/index.ts:
|
|
1047
|
+
来源:`packages/sdk/src/index.ts:547`
|
|
918
1048
|
|
|
919
1049
|
```ts
|
|
920
1050
|
export interface SceneService {
|
|
@@ -925,7 +1055,7 @@ export interface SceneService {
|
|
|
925
1055
|
|
|
926
1056
|
## ModelDefinition
|
|
927
1057
|
|
|
928
|
-
来源:`packages/sdk/src/index.ts:
|
|
1058
|
+
来源:`packages/sdk/src/index.ts:551`
|
|
929
1059
|
|
|
930
1060
|
```ts
|
|
931
1061
|
export interface ModelDefinition {
|
|
@@ -945,7 +1075,7 @@ export interface ModelDefinition {
|
|
|
945
1075
|
|
|
946
1076
|
## RigidBodyDefinition
|
|
947
1077
|
|
|
948
|
-
来源:`packages/sdk/src/index.ts:
|
|
1078
|
+
来源:`packages/sdk/src/index.ts:564`
|
|
949
1079
|
|
|
950
1080
|
```ts
|
|
951
1081
|
export interface RigidBodyDefinition {
|
|
@@ -966,7 +1096,7 @@ export interface RigidBodyDefinition {
|
|
|
966
1096
|
|
|
967
1097
|
## CharacterDefinition
|
|
968
1098
|
|
|
969
|
-
来源:`packages/sdk/src/index.ts:
|
|
1099
|
+
来源:`packages/sdk/src/index.ts:578`
|
|
970
1100
|
|
|
971
1101
|
```ts
|
|
972
1102
|
export interface CharacterDefinition {
|
|
@@ -981,7 +1111,7 @@ export interface CharacterDefinition {
|
|
|
981
1111
|
|
|
982
1112
|
## UIElementDefinition
|
|
983
1113
|
|
|
984
|
-
来源:`packages/sdk/src/index.ts:
|
|
1114
|
+
来源:`packages/sdk/src/index.ts:586`
|
|
985
1115
|
|
|
986
1116
|
```ts
|
|
987
1117
|
export interface UIElementDefinition {
|
|
@@ -1001,7 +1131,7 @@ export interface UIElementDefinition {
|
|
|
1001
1131
|
|
|
1002
1132
|
## SoundDefinition
|
|
1003
1133
|
|
|
1004
|
-
来源:`packages/sdk/src/index.ts:
|
|
1134
|
+
来源:`packages/sdk/src/index.ts:599`
|
|
1005
1135
|
|
|
1006
1136
|
```ts
|
|
1007
1137
|
export interface SoundDefinition {
|
|
@@ -1015,7 +1145,7 @@ export interface SoundDefinition {
|
|
|
1015
1145
|
|
|
1016
1146
|
## AudioBusDefinition
|
|
1017
1147
|
|
|
1018
|
-
来源:`packages/sdk/src/index.ts:
|
|
1148
|
+
来源:`packages/sdk/src/index.ts:606`
|
|
1019
1149
|
|
|
1020
1150
|
```ts
|
|
1021
1151
|
export interface AudioBusDefinition {
|
|
@@ -1026,7 +1156,7 @@ export interface AudioBusDefinition {
|
|
|
1026
1156
|
|
|
1027
1157
|
## SYSTEM_PHASES
|
|
1028
1158
|
|
|
1029
|
-
来源:`packages/sdk/src/index.ts:
|
|
1159
|
+
来源:`packages/sdk/src/index.ts:610`
|
|
1030
1160
|
|
|
1031
1161
|
```ts
|
|
1032
1162
|
SYSTEM_PHASES = [
|
|
@@ -1041,7 +1171,7 @@ SYSTEM_PHASES = [
|
|
|
1041
1171
|
|
|
1042
1172
|
## SystemPhase
|
|
1043
1173
|
|
|
1044
|
-
来源:`packages/sdk/src/index.ts:
|
|
1174
|
+
来源:`packages/sdk/src/index.ts:618`
|
|
1045
1175
|
|
|
1046
1176
|
```ts
|
|
1047
1177
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1049,7 +1179,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1049
1179
|
|
|
1050
1180
|
## Geometry
|
|
1051
1181
|
|
|
1052
|
-
来源:`packages/sdk/src/index.ts:
|
|
1182
|
+
来源:`packages/sdk/src/index.ts:619`
|
|
1053
1183
|
|
|
1054
1184
|
```ts
|
|
1055
1185
|
export type Geometry =
|
|
@@ -1060,7 +1190,7 @@ export type Geometry =
|
|
|
1060
1190
|
|
|
1061
1191
|
## GRAPH_TYPES
|
|
1062
1192
|
|
|
1063
|
-
来源:`packages/sdk/src/index.ts:
|
|
1193
|
+
来源:`packages/sdk/src/index.ts:623`
|
|
1064
1194
|
|
|
1065
1195
|
```ts
|
|
1066
1196
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1068,7 +1198,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1068
1198
|
|
|
1069
1199
|
## GraphType
|
|
1070
1200
|
|
|
1071
|
-
来源:`packages/sdk/src/index.ts:
|
|
1201
|
+
来源:`packages/sdk/src/index.ts:624`
|
|
1072
1202
|
|
|
1073
1203
|
```ts
|
|
1074
1204
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1076,7 +1206,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1076
1206
|
|
|
1077
1207
|
## GraphValue
|
|
1078
1208
|
|
|
1079
|
-
来源:`packages/sdk/src/index.ts:
|
|
1209
|
+
来源:`packages/sdk/src/index.ts:625`
|
|
1080
1210
|
|
|
1081
1211
|
```ts
|
|
1082
1212
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1084,7 +1214,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1084
1214
|
|
|
1085
1215
|
## GraphParameter
|
|
1086
1216
|
|
|
1087
|
-
来源:`packages/sdk/src/index.ts:
|
|
1217
|
+
来源:`packages/sdk/src/index.ts:626`
|
|
1088
1218
|
|
|
1089
1219
|
```ts
|
|
1090
1220
|
export interface GraphParameter {
|
|
@@ -1096,7 +1226,7 @@ export interface GraphParameter {
|
|
|
1096
1226
|
|
|
1097
1227
|
## GRAPH_INPUT_TYPES
|
|
1098
1228
|
|
|
1099
|
-
来源:`packages/sdk/src/index.ts:
|
|
1229
|
+
来源:`packages/sdk/src/index.ts:631`
|
|
1100
1230
|
|
|
1101
1231
|
```ts
|
|
1102
1232
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1110,7 +1240,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1110
1240
|
|
|
1111
1241
|
## GraphInputName
|
|
1112
1242
|
|
|
1113
|
-
来源:`packages/sdk/src/index.ts:
|
|
1243
|
+
来源:`packages/sdk/src/index.ts:638`
|
|
1114
1244
|
|
|
1115
1245
|
```ts
|
|
1116
1246
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1118,7 +1248,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1118
1248
|
|
|
1119
1249
|
## GRAPH_OPERATIONS
|
|
1120
1250
|
|
|
1121
|
-
来源:`packages/sdk/src/index.ts:
|
|
1251
|
+
来源:`packages/sdk/src/index.ts:639`
|
|
1122
1252
|
|
|
1123
1253
|
```ts
|
|
1124
1254
|
GRAPH_OPERATIONS = {
|
|
@@ -1130,7 +1260,7 @@ GRAPH_OPERATIONS = {
|
|
|
1130
1260
|
|
|
1131
1261
|
## GraphNode
|
|
1132
1262
|
|
|
1133
|
-
来源:`packages/sdk/src/index.ts:
|
|
1263
|
+
来源:`packages/sdk/src/index.ts:644`
|
|
1134
1264
|
|
|
1135
1265
|
```ts
|
|
1136
1266
|
export type GraphNode =
|
|
@@ -1157,7 +1287,7 @@ export type GraphNode =
|
|
|
1157
1287
|
|
|
1158
1288
|
## Graph
|
|
1159
1289
|
|
|
1160
|
-
来源:`packages/sdk/src/index.ts:
|
|
1290
|
+
来源:`packages/sdk/src/index.ts:664`
|
|
1161
1291
|
|
|
1162
1292
|
```ts
|
|
1163
1293
|
export interface Graph {
|
|
@@ -1169,7 +1299,7 @@ export interface Graph {
|
|
|
1169
1299
|
|
|
1170
1300
|
## MaterialGraphs
|
|
1171
1301
|
|
|
1172
|
-
来源:`packages/sdk/src/index.ts:
|
|
1302
|
+
来源:`packages/sdk/src/index.ts:669`
|
|
1173
1303
|
|
|
1174
1304
|
```ts
|
|
1175
1305
|
export interface MaterialGraphs {
|
|
@@ -1185,7 +1315,7 @@ export interface MaterialGraphs {
|
|
|
1185
1315
|
|
|
1186
1316
|
## VertexGraphs
|
|
1187
1317
|
|
|
1188
|
-
来源:`packages/sdk/src/index.ts:
|
|
1318
|
+
来源:`packages/sdk/src/index.ts:678`
|
|
1189
1319
|
|
|
1190
1320
|
```ts
|
|
1191
1321
|
export interface VertexGraphs {
|
|
@@ -1198,7 +1328,7 @@ export interface VertexGraphs {
|
|
|
1198
1328
|
|
|
1199
1329
|
## MaterialInput
|
|
1200
1330
|
|
|
1201
|
-
来源:`packages/sdk/src/index.ts:
|
|
1331
|
+
来源:`packages/sdk/src/index.ts:684`
|
|
1202
1332
|
|
|
1203
1333
|
```ts
|
|
1204
1334
|
export interface MaterialInput {
|
|
@@ -1232,7 +1362,7 @@ export interface MaterialInput {
|
|
|
1232
1362
|
|
|
1233
1363
|
## MaterialDefinition
|
|
1234
1364
|
|
|
1235
|
-
来源:`packages/sdk/src/index.ts:
|
|
1365
|
+
来源:`packages/sdk/src/index.ts:711`
|
|
1236
1366
|
|
|
1237
1367
|
```ts
|
|
1238
1368
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1242,7 +1372,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1242
1372
|
|
|
1243
1373
|
## PostProcessInput
|
|
1244
1374
|
|
|
1245
|
-
来源:`packages/sdk/src/index.ts:
|
|
1375
|
+
来源:`packages/sdk/src/index.ts:714`
|
|
1246
1376
|
|
|
1247
1377
|
```ts
|
|
1248
1378
|
export interface PostProcessInput {
|
|
@@ -1257,7 +1387,7 @@ export interface PostProcessInput {
|
|
|
1257
1387
|
|
|
1258
1388
|
## PostProcessDefinition
|
|
1259
1389
|
|
|
1260
|
-
来源:`packages/sdk/src/index.ts:
|
|
1390
|
+
来源:`packages/sdk/src/index.ts:722`
|
|
1261
1391
|
|
|
1262
1392
|
```ts
|
|
1263
1393
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1267,7 +1397,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1267
1397
|
|
|
1268
1398
|
## ComputeInput
|
|
1269
1399
|
|
|
1270
|
-
来源:`packages/sdk/src/index.ts:
|
|
1400
|
+
来源:`packages/sdk/src/index.ts:725`
|
|
1271
1401
|
|
|
1272
1402
|
```ts
|
|
1273
1403
|
export interface ComputeInput {
|
|
@@ -1283,7 +1413,7 @@ export interface ComputeInput {
|
|
|
1283
1413
|
|
|
1284
1414
|
## ComputeDefinition
|
|
1285
1415
|
|
|
1286
|
-
来源:`packages/sdk/src/index.ts:
|
|
1416
|
+
来源:`packages/sdk/src/index.ts:734`
|
|
1287
1417
|
|
|
1288
1418
|
```ts
|
|
1289
1419
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1293,7 +1423,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1293
1423
|
|
|
1294
1424
|
## AssetInput
|
|
1295
1425
|
|
|
1296
|
-
来源:`packages/sdk/src/index.ts:
|
|
1426
|
+
来源:`packages/sdk/src/index.ts:737`
|
|
1297
1427
|
|
|
1298
1428
|
```ts
|
|
1299
1429
|
export interface AssetInput {
|
|
@@ -1310,7 +1440,7 @@ export interface AssetInput {
|
|
|
1310
1440
|
|
|
1311
1441
|
## AssetDefinition
|
|
1312
1442
|
|
|
1313
|
-
来源:`packages/sdk/src/index.ts:
|
|
1443
|
+
来源:`packages/sdk/src/index.ts:747`
|
|
1314
1444
|
|
|
1315
1445
|
```ts
|
|
1316
1446
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1320,7 +1450,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1320
1450
|
|
|
1321
1451
|
## MeshDefinition
|
|
1322
1452
|
|
|
1323
|
-
来源:`packages/sdk/src/index.ts:
|
|
1453
|
+
来源:`packages/sdk/src/index.ts:750`
|
|
1324
1454
|
|
|
1325
1455
|
```ts
|
|
1326
1456
|
export interface MeshDefinition {
|
|
@@ -1333,7 +1463,7 @@ export interface MeshDefinition {
|
|
|
1333
1463
|
|
|
1334
1464
|
## LightDefinition
|
|
1335
1465
|
|
|
1336
|
-
来源:`packages/sdk/src/index.ts:
|
|
1466
|
+
来源:`packages/sdk/src/index.ts:756`
|
|
1337
1467
|
|
|
1338
1468
|
```ts
|
|
1339
1469
|
export interface LightDefinition {
|
|
@@ -1355,7 +1485,7 @@ export interface LightDefinition {
|
|
|
1355
1485
|
|
|
1356
1486
|
## EntityInput
|
|
1357
1487
|
|
|
1358
|
-
来源:`packages/sdk/src/index.ts:
|
|
1488
|
+
来源:`packages/sdk/src/index.ts:771`
|
|
1359
1489
|
|
|
1360
1490
|
```ts
|
|
1361
1491
|
export interface EntityInput {
|
|
@@ -1374,7 +1504,7 @@ export interface EntityInput {
|
|
|
1374
1504
|
|
|
1375
1505
|
## PrefabInput
|
|
1376
1506
|
|
|
1377
|
-
来源:`packages/sdk/src/index.ts:
|
|
1507
|
+
来源:`packages/sdk/src/index.ts:783`
|
|
1378
1508
|
|
|
1379
1509
|
```ts
|
|
1380
1510
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1384,7 +1514,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1384
1514
|
|
|
1385
1515
|
## PrefabDefinition
|
|
1386
1516
|
|
|
1387
|
-
来源:`packages/sdk/src/index.ts:
|
|
1517
|
+
来源:`packages/sdk/src/index.ts:786`
|
|
1388
1518
|
|
|
1389
1519
|
```ts
|
|
1390
1520
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1394,7 +1524,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1394
1524
|
|
|
1395
1525
|
## SceneInput
|
|
1396
1526
|
|
|
1397
|
-
来源:`packages/sdk/src/index.ts:
|
|
1527
|
+
来源:`packages/sdk/src/index.ts:789`
|
|
1398
1528
|
|
|
1399
1529
|
```ts
|
|
1400
1530
|
export interface SceneInput {
|
|
@@ -1426,7 +1556,7 @@ export interface SceneInput {
|
|
|
1426
1556
|
|
|
1427
1557
|
## SceneDefinition
|
|
1428
1558
|
|
|
1429
|
-
来源:`packages/sdk/src/index.ts:
|
|
1559
|
+
来源:`packages/sdk/src/index.ts:814`
|
|
1430
1560
|
|
|
1431
1561
|
```ts
|
|
1432
1562
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1436,7 +1566,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1436
1566
|
|
|
1437
1567
|
## SystemInput
|
|
1438
1568
|
|
|
1439
|
-
来源:`packages/sdk/src/index.ts:
|
|
1569
|
+
来源:`packages/sdk/src/index.ts:817`
|
|
1440
1570
|
|
|
1441
1571
|
```ts
|
|
1442
1572
|
export interface SystemInput {
|
|
@@ -1453,7 +1583,7 @@ export interface SystemInput {
|
|
|
1453
1583
|
|
|
1454
1584
|
## SystemDefinition
|
|
1455
1585
|
|
|
1456
|
-
来源:`packages/sdk/src/index.ts:
|
|
1586
|
+
来源:`packages/sdk/src/index.ts:827`
|
|
1457
1587
|
|
|
1458
1588
|
```ts
|
|
1459
1589
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1463,7 +1593,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1463
1593
|
|
|
1464
1594
|
## GameInput
|
|
1465
1595
|
|
|
1466
|
-
来源:`packages/sdk/src/index.ts:
|
|
1596
|
+
来源:`packages/sdk/src/index.ts:830`
|
|
1467
1597
|
|
|
1468
1598
|
```ts
|
|
1469
1599
|
export interface GameInput {
|
|
@@ -1489,7 +1619,7 @@ export interface GameInput {
|
|
|
1489
1619
|
|
|
1490
1620
|
## GameDefinition
|
|
1491
1621
|
|
|
1492
|
-
来源:`packages/sdk/src/index.ts:
|
|
1622
|
+
来源:`packages/sdk/src/index.ts:849`
|
|
1493
1623
|
|
|
1494
1624
|
```ts
|
|
1495
1625
|
export interface GameDefinition extends GameInput {
|
|
@@ -1499,7 +1629,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1499
1629
|
|
|
1500
1630
|
## GameInstance
|
|
1501
1631
|
|
|
1502
|
-
来源:`packages/sdk/src/index.ts:
|
|
1632
|
+
来源:`packages/sdk/src/index.ts:852`
|
|
1503
1633
|
|
|
1504
1634
|
```ts
|
|
1505
1635
|
export interface GameInstance {
|
|
@@ -1510,7 +1640,7 @@ export interface GameInstance {
|
|
|
1510
1640
|
|
|
1511
1641
|
## defineComponent
|
|
1512
1642
|
|
|
1513
|
-
来源:`packages/sdk/src/index.ts:
|
|
1643
|
+
来源:`packages/sdk/src/index.ts:856`
|
|
1514
1644
|
|
|
1515
1645
|
```ts
|
|
1516
1646
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1521,7 +1651,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1521
1651
|
|
|
1522
1652
|
## defineMaterial
|
|
1523
1653
|
|
|
1524
|
-
来源:`packages/sdk/src/index.ts:
|
|
1654
|
+
来源:`packages/sdk/src/index.ts:862`
|
|
1525
1655
|
|
|
1526
1656
|
```ts
|
|
1527
1657
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1529,7 +1659,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1529
1659
|
|
|
1530
1660
|
## definePostProcess
|
|
1531
1661
|
|
|
1532
|
-
来源:`packages/sdk/src/index.ts:
|
|
1662
|
+
来源:`packages/sdk/src/index.ts:865`
|
|
1533
1663
|
|
|
1534
1664
|
```ts
|
|
1535
1665
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1537,7 +1667,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1537
1667
|
|
|
1538
1668
|
## defineCompute
|
|
1539
1669
|
|
|
1540
|
-
来源:`packages/sdk/src/index.ts:
|
|
1670
|
+
来源:`packages/sdk/src/index.ts:868`
|
|
1541
1671
|
|
|
1542
1672
|
```ts
|
|
1543
1673
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1545,7 +1675,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1545
1675
|
|
|
1546
1676
|
## defineAsset
|
|
1547
1677
|
|
|
1548
|
-
来源:`packages/sdk/src/index.ts:
|
|
1678
|
+
来源:`packages/sdk/src/index.ts:871`
|
|
1549
1679
|
|
|
1550
1680
|
```ts
|
|
1551
1681
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1553,7 +1683,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1553
1683
|
|
|
1554
1684
|
## definePrefab
|
|
1555
1685
|
|
|
1556
|
-
来源:`packages/sdk/src/index.ts:
|
|
1686
|
+
来源:`packages/sdk/src/index.ts:874`
|
|
1557
1687
|
|
|
1558
1688
|
```ts
|
|
1559
1689
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1561,7 +1691,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1561
1691
|
|
|
1562
1692
|
## defineScene
|
|
1563
1693
|
|
|
1564
|
-
来源:`packages/sdk/src/index.ts:
|
|
1694
|
+
来源:`packages/sdk/src/index.ts:877`
|
|
1565
1695
|
|
|
1566
1696
|
```ts
|
|
1567
1697
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1569,7 +1699,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1569
1699
|
|
|
1570
1700
|
## defineSystem
|
|
1571
1701
|
|
|
1572
|
-
来源:`packages/sdk/src/index.ts:
|
|
1702
|
+
来源:`packages/sdk/src/index.ts:880`
|
|
1573
1703
|
|
|
1574
1704
|
```ts
|
|
1575
1705
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1577,7 +1707,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1577
1707
|
|
|
1578
1708
|
## defineGame
|
|
1579
1709
|
|
|
1580
|
-
来源:`packages/sdk/src/index.ts:
|
|
1710
|
+
来源:`packages/sdk/src/index.ts:883`
|
|
1581
1711
|
|
|
1582
1712
|
```ts
|
|
1583
1713
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1585,7 +1715,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1585
1715
|
|
|
1586
1716
|
## instantiateGame
|
|
1587
1717
|
|
|
1588
|
-
来源:`packages/sdk/src/index.ts:
|
|
1718
|
+
来源:`packages/sdk/src/index.ts:887`
|
|
1589
1719
|
|
|
1590
1720
|
```ts
|
|
1591
1721
|
export function instantiateGame(
|