pelican-engine 0.3.17 → 0.3.19
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 +30 -0
- package/distribution.json +16 -13
- package/docs/STATUS.md +2 -1
- package/docs/api/REFERENCE.md +218 -98
- package/docs/api/index.json +225 -100
- package/docs/npm/GAME-AUTHOR.md +30 -0
- 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 +92 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +152 -0
- package/lib/simulation/cloth.js +358 -0
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.19 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.19"
|
|
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 {
|
|
@@ -339,7 +340,7 @@ export interface RopeDefinition {
|
|
|
339
340
|
|
|
340
341
|
## RopeContact
|
|
341
342
|
|
|
342
|
-
来源:`packages/sdk/src/index.ts:
|
|
343
|
+
来源:`packages/sdk/src/index.ts:172`
|
|
343
344
|
|
|
344
345
|
```ts
|
|
345
346
|
export interface RopeContact {
|
|
@@ -353,7 +354,7 @@ export interface RopeContact {
|
|
|
353
354
|
|
|
354
355
|
## RopeSegmentContact
|
|
355
356
|
|
|
356
|
-
来源:`packages/sdk/src/index.ts:
|
|
357
|
+
来源:`packages/sdk/src/index.ts:180`
|
|
357
358
|
|
|
358
359
|
```ts
|
|
359
360
|
export interface RopeSegmentContact {
|
|
@@ -371,7 +372,7 @@ export interface RopeSegmentContact {
|
|
|
371
372
|
|
|
372
373
|
## RopeSelfContact
|
|
373
374
|
|
|
374
|
-
来源:`packages/sdk/src/index.ts:
|
|
375
|
+
来源:`packages/sdk/src/index.ts:192`
|
|
375
376
|
|
|
376
377
|
```ts
|
|
377
378
|
export interface RopeSelfContact {
|
|
@@ -387,7 +388,7 @@ export interface RopeSelfContact {
|
|
|
387
388
|
|
|
388
389
|
## RopeState
|
|
389
390
|
|
|
390
|
-
来源:`packages/sdk/src/index.ts:
|
|
391
|
+
来源:`packages/sdk/src/index.ts:201`
|
|
391
392
|
|
|
392
393
|
```ts
|
|
393
394
|
export interface RopeState {
|
|
@@ -406,7 +407,7 @@ export interface RopeState {
|
|
|
406
407
|
|
|
407
408
|
## RopeService
|
|
408
409
|
|
|
409
|
-
来源:`packages/sdk/src/index.ts:
|
|
410
|
+
来源:`packages/sdk/src/index.ts:213`
|
|
410
411
|
|
|
411
412
|
```ts
|
|
412
413
|
export interface RopeService {
|
|
@@ -425,17 +426,136 @@ export interface RopeService {
|
|
|
425
426
|
}
|
|
426
427
|
```
|
|
427
428
|
|
|
428
|
-
##
|
|
429
|
+
## ClothCollider
|
|
430
|
+
|
|
431
|
+
来源:`packages/sdk/src/index.ts:228`
|
|
432
|
+
|
|
433
|
+
```ts
|
|
434
|
+
export type ClothCollider = RopeCollider;
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
## ClothTriangle
|
|
429
438
|
|
|
430
439
|
来源:`packages/sdk/src/index.ts:229`
|
|
431
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
|
+
/** Discrete non-adjacent particle self-contact; defaults to true for new cloth. */
|
|
482
|
+
selfCollisions?: boolean;
|
|
483
|
+
}
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
## ClothContact
|
|
487
|
+
|
|
488
|
+
来源:`packages/sdk/src/index.ts:257`
|
|
489
|
+
|
|
490
|
+
```ts
|
|
491
|
+
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
## ClothSelfContact
|
|
495
|
+
|
|
496
|
+
来源:`packages/sdk/src/index.ts:258`
|
|
497
|
+
|
|
498
|
+
```ts
|
|
499
|
+
export interface ClothSelfContact { tick: number; firstParticle: number; secondParticle: number; penetration: number }
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
## ClothState
|
|
503
|
+
|
|
504
|
+
来源:`packages/sdk/src/index.ts:259`
|
|
505
|
+
|
|
506
|
+
```ts
|
|
507
|
+
export interface ClothState {
|
|
508
|
+
tick: number; simulatedSeconds: number; disposed: boolean; selfCollisions: boolean;
|
|
509
|
+
positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];
|
|
510
|
+
anchors: { index: number; position: Vec3 }[];
|
|
511
|
+
contacts: ClothContact[]; selfContacts: ClothSelfContact[];
|
|
512
|
+
maxDistanceError: number;
|
|
513
|
+
resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };
|
|
514
|
+
}
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
## ClothVisualState
|
|
518
|
+
|
|
519
|
+
来源:`packages/sdk/src/index.ts:267`
|
|
520
|
+
|
|
521
|
+
```ts
|
|
522
|
+
export interface ClothVisualState {
|
|
523
|
+
id: string; material: string; positions: Vec3[]; triangles: ClothTriangle[];
|
|
524
|
+
uvs: Vec2[]; castShadow: boolean; receiveShadow: boolean;
|
|
525
|
+
}
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
## ClothService
|
|
529
|
+
|
|
530
|
+
来源:`packages/sdk/src/index.ts:271`
|
|
531
|
+
|
|
532
|
+
```ts
|
|
533
|
+
export interface ClothService {
|
|
534
|
+
create(definition: ClothDefinition): void;
|
|
535
|
+
/** Explicit ticks for manual cloth only; automatic cloth rejects this call. */
|
|
536
|
+
step(id: string, ticks?: number): ClothState;
|
|
537
|
+
inspect(id: string): ClothState;
|
|
538
|
+
visuals(): readonly ClothVisualState[];
|
|
539
|
+
setColliders(id: string, colliders: readonly ClothCollider[]): void;
|
|
540
|
+
setAnchor(id: string, index: number, position: Vec3): void;
|
|
541
|
+
releaseAnchor(id: string, index: number): void;
|
|
542
|
+
applyForce(id: string, index: number, force: Vec3): void;
|
|
543
|
+
applyImpulse(id: string, index: number, impulse: Vec3): void;
|
|
544
|
+
destroy(id: string): void;
|
|
545
|
+
}
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
## NavigationCell
|
|
549
|
+
|
|
550
|
+
来源:`packages/sdk/src/index.ts:287`
|
|
551
|
+
|
|
432
552
|
```ts
|
|
433
553
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
434
554
|
```
|
|
435
555
|
|
|
436
556
|
## NavigationObstacleUpdate
|
|
437
557
|
|
|
438
|
-
来源:`packages/sdk/src/index.ts:
|
|
558
|
+
来源:`packages/sdk/src/index.ts:289`
|
|
439
559
|
|
|
440
560
|
```ts
|
|
441
561
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -443,7 +563,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
443
563
|
|
|
444
564
|
## NavigationGrid
|
|
445
565
|
|
|
446
|
-
来源:`packages/sdk/src/index.ts:
|
|
566
|
+
来源:`packages/sdk/src/index.ts:290`
|
|
447
567
|
|
|
448
568
|
```ts
|
|
449
569
|
export interface NavigationGrid {
|
|
@@ -459,7 +579,7 @@ export interface NavigationGrid {
|
|
|
459
579
|
|
|
460
580
|
## NavigationService
|
|
461
581
|
|
|
462
|
-
来源:`packages/sdk/src/index.ts:
|
|
582
|
+
来源:`packages/sdk/src/index.ts:299`
|
|
463
583
|
|
|
464
584
|
```ts
|
|
465
585
|
export interface NavigationService {
|
|
@@ -478,7 +598,7 @@ export interface NavigationService {
|
|
|
478
598
|
|
|
479
599
|
## RenderMode
|
|
480
600
|
|
|
481
|
-
来源:`packages/sdk/src/index.ts:
|
|
601
|
+
来源:`packages/sdk/src/index.ts:311`
|
|
482
602
|
|
|
483
603
|
```ts
|
|
484
604
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -486,7 +606,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
486
606
|
|
|
487
607
|
## RenderCapabilities
|
|
488
608
|
|
|
489
|
-
来源:`packages/sdk/src/index.ts:
|
|
609
|
+
来源:`packages/sdk/src/index.ts:312`
|
|
490
610
|
|
|
491
611
|
```ts
|
|
492
612
|
export interface RenderCapabilities {
|
|
@@ -498,7 +618,7 @@ export interface RenderCapabilities {
|
|
|
498
618
|
|
|
499
619
|
## RenderSettings
|
|
500
620
|
|
|
501
|
-
来源:`packages/sdk/src/index.ts:
|
|
621
|
+
来源:`packages/sdk/src/index.ts:317`
|
|
502
622
|
|
|
503
623
|
```ts
|
|
504
624
|
export interface RenderSettings {
|
|
@@ -516,7 +636,7 @@ export interface RenderSettings {
|
|
|
516
636
|
|
|
517
637
|
## RenderService
|
|
518
638
|
|
|
519
|
-
来源:`packages/sdk/src/index.ts:
|
|
639
|
+
来源:`packages/sdk/src/index.ts:328`
|
|
520
640
|
|
|
521
641
|
```ts
|
|
522
642
|
export interface RenderService {
|
|
@@ -533,7 +653,7 @@ export interface RenderService {
|
|
|
533
653
|
|
|
534
654
|
## MaterialBufferInput
|
|
535
655
|
|
|
536
|
-
来源:`packages/sdk/src/index.ts:
|
|
656
|
+
来源:`packages/sdk/src/index.ts:338`
|
|
537
657
|
|
|
538
658
|
```ts
|
|
539
659
|
export interface MaterialBufferInput {
|
|
@@ -549,7 +669,7 @@ export interface MaterialBufferInput {
|
|
|
549
669
|
|
|
550
670
|
## RenderBufferReference
|
|
551
671
|
|
|
552
|
-
来源:`packages/sdk/src/index.ts:
|
|
672
|
+
来源:`packages/sdk/src/index.ts:347`
|
|
553
673
|
|
|
554
674
|
```ts
|
|
555
675
|
export interface RenderBufferReference {
|
|
@@ -561,7 +681,7 @@ export interface RenderBufferReference {
|
|
|
561
681
|
|
|
562
682
|
## RenderBufferBindings
|
|
563
683
|
|
|
564
|
-
来源:`packages/sdk/src/index.ts:
|
|
684
|
+
来源:`packages/sdk/src/index.ts:352`
|
|
565
685
|
|
|
566
686
|
```ts
|
|
567
687
|
export interface RenderBufferBindings {
|
|
@@ -573,7 +693,7 @@ export interface RenderBufferBindings {
|
|
|
573
693
|
|
|
574
694
|
## MaterialTextureInput
|
|
575
695
|
|
|
576
|
-
来源:`packages/sdk/src/index.ts:
|
|
696
|
+
来源:`packages/sdk/src/index.ts:357`
|
|
577
697
|
|
|
578
698
|
```ts
|
|
579
699
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -586,7 +706,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
586
706
|
|
|
587
707
|
## RenderTextureReference
|
|
588
708
|
|
|
589
|
-
来源:`packages/sdk/src/index.ts:
|
|
709
|
+
来源:`packages/sdk/src/index.ts:363`
|
|
590
710
|
|
|
591
711
|
```ts
|
|
592
712
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -597,7 +717,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
597
717
|
|
|
598
718
|
## RenderTextureBindings
|
|
599
719
|
|
|
600
|
-
来源:`packages/sdk/src/index.ts:
|
|
720
|
+
来源:`packages/sdk/src/index.ts:367`
|
|
601
721
|
|
|
602
722
|
```ts
|
|
603
723
|
export interface RenderTextureBindings {
|
|
@@ -609,7 +729,7 @@ export interface RenderTextureBindings {
|
|
|
609
729
|
|
|
610
730
|
## PostProcessState
|
|
611
731
|
|
|
612
|
-
来源:`packages/sdk/src/index.ts:
|
|
732
|
+
来源:`packages/sdk/src/index.ts:372`
|
|
613
733
|
|
|
614
734
|
```ts
|
|
615
735
|
export interface PostProcessState {
|
|
@@ -621,7 +741,7 @@ export interface PostProcessState {
|
|
|
621
741
|
|
|
622
742
|
## PostProcessService
|
|
623
743
|
|
|
624
|
-
来源:`packages/sdk/src/index.ts:
|
|
744
|
+
来源:`packages/sdk/src/index.ts:377`
|
|
625
745
|
|
|
626
746
|
```ts
|
|
627
747
|
export interface PostProcessService {
|
|
@@ -638,7 +758,7 @@ export interface PostProcessService {
|
|
|
638
758
|
|
|
639
759
|
## ComputeBufferHandle
|
|
640
760
|
|
|
641
|
-
来源:`packages/sdk/src/index.ts:
|
|
761
|
+
来源:`packages/sdk/src/index.ts:387`
|
|
642
762
|
|
|
643
763
|
```ts
|
|
644
764
|
export interface ComputeBufferHandle {
|
|
@@ -650,7 +770,7 @@ export interface ComputeBufferHandle {
|
|
|
650
770
|
|
|
651
771
|
## ComputeTaskHandle
|
|
652
772
|
|
|
653
|
-
来源:`packages/sdk/src/index.ts:
|
|
773
|
+
来源:`packages/sdk/src/index.ts:392`
|
|
654
774
|
|
|
655
775
|
```ts
|
|
656
776
|
export interface ComputeTaskHandle {
|
|
@@ -661,7 +781,7 @@ export interface ComputeTaskHandle {
|
|
|
661
781
|
|
|
662
782
|
## ComputeBufferInput
|
|
663
783
|
|
|
664
|
-
来源:`packages/sdk/src/index.ts:
|
|
784
|
+
来源:`packages/sdk/src/index.ts:396`
|
|
665
785
|
|
|
666
786
|
```ts
|
|
667
787
|
export interface ComputeBufferInput {
|
|
@@ -674,7 +794,7 @@ export interface ComputeBufferInput {
|
|
|
674
794
|
|
|
675
795
|
## ComputeTextureHandle
|
|
676
796
|
|
|
677
|
-
来源:`packages/sdk/src/index.ts:
|
|
797
|
+
来源:`packages/sdk/src/index.ts:402`
|
|
678
798
|
|
|
679
799
|
```ts
|
|
680
800
|
export interface ComputeTextureHandle {
|
|
@@ -687,7 +807,7 @@ export interface ComputeTextureHandle {
|
|
|
687
807
|
|
|
688
808
|
## ComputeTextureSize
|
|
689
809
|
|
|
690
|
-
来源:`packages/sdk/src/index.ts:
|
|
810
|
+
来源:`packages/sdk/src/index.ts:408`
|
|
691
811
|
|
|
692
812
|
```ts
|
|
693
813
|
export interface ComputeTextureSize {
|
|
@@ -698,7 +818,7 @@ export interface ComputeTextureSize {
|
|
|
698
818
|
|
|
699
819
|
## ComputeTextureDataInput
|
|
700
820
|
|
|
701
|
-
来源:`packages/sdk/src/index.ts:
|
|
821
|
+
来源:`packages/sdk/src/index.ts:412`
|
|
702
822
|
|
|
703
823
|
```ts
|
|
704
824
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -711,7 +831,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
711
831
|
|
|
712
832
|
## ComputeTextureAssetInput
|
|
713
833
|
|
|
714
|
-
来源:`packages/sdk/src/index.ts:
|
|
834
|
+
来源:`packages/sdk/src/index.ts:418`
|
|
715
835
|
|
|
716
836
|
```ts
|
|
717
837
|
export interface ComputeTextureAssetInput {
|
|
@@ -725,7 +845,7 @@ export interface ComputeTextureAssetInput {
|
|
|
725
845
|
|
|
726
846
|
## ComputeTextureInput
|
|
727
847
|
|
|
728
|
-
来源:`packages/sdk/src/index.ts:
|
|
848
|
+
来源:`packages/sdk/src/index.ts:425`
|
|
729
849
|
|
|
730
850
|
```ts
|
|
731
851
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -733,7 +853,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
733
853
|
|
|
734
854
|
## ComputeTextureBinding
|
|
735
855
|
|
|
736
|
-
来源:`packages/sdk/src/index.ts:
|
|
856
|
+
来源:`packages/sdk/src/index.ts:426`
|
|
737
857
|
|
|
738
858
|
```ts
|
|
739
859
|
export interface ComputeTextureBinding {
|
|
@@ -746,7 +866,7 @@ export interface ComputeTextureBinding {
|
|
|
746
866
|
|
|
747
867
|
## ComputeDispatchInput
|
|
748
868
|
|
|
749
|
-
来源:`packages/sdk/src/index.ts:
|
|
869
|
+
来源:`packages/sdk/src/index.ts:432`
|
|
750
870
|
|
|
751
871
|
```ts
|
|
752
872
|
export interface ComputeDispatchInput {
|
|
@@ -765,7 +885,7 @@ export interface ComputeDispatchInput {
|
|
|
765
885
|
|
|
766
886
|
## ComputeTaskState
|
|
767
887
|
|
|
768
|
-
来源:`packages/sdk/src/index.ts:
|
|
888
|
+
来源:`packages/sdk/src/index.ts:444`
|
|
769
889
|
|
|
770
890
|
```ts
|
|
771
891
|
export interface ComputeTaskState {
|
|
@@ -776,7 +896,7 @@ export interface ComputeTaskState {
|
|
|
776
896
|
|
|
777
897
|
## ComputeService
|
|
778
898
|
|
|
779
|
-
来源:`packages/sdk/src/index.ts:
|
|
899
|
+
来源:`packages/sdk/src/index.ts:448`
|
|
780
900
|
|
|
781
901
|
```ts
|
|
782
902
|
export interface ComputeService {
|
|
@@ -803,7 +923,7 @@ export interface ComputeService {
|
|
|
803
923
|
|
|
804
924
|
## InputService
|
|
805
925
|
|
|
806
|
-
来源:`packages/sdk/src/index.ts:
|
|
926
|
+
来源:`packages/sdk/src/index.ts:468`
|
|
807
927
|
|
|
808
928
|
```ts
|
|
809
929
|
export interface InputService {
|
|
@@ -816,7 +936,7 @@ export interface InputService {
|
|
|
816
936
|
|
|
817
937
|
## PhysicsService
|
|
818
938
|
|
|
819
|
-
来源:`packages/sdk/src/index.ts:
|
|
939
|
+
来源:`packages/sdk/src/index.ts:474`
|
|
820
940
|
|
|
821
941
|
```ts
|
|
822
942
|
export interface PhysicsService {
|
|
@@ -845,7 +965,7 @@ export interface PhysicsService {
|
|
|
845
965
|
|
|
846
966
|
## AnimationService
|
|
847
967
|
|
|
848
|
-
来源:`packages/sdk/src/index.ts:
|
|
968
|
+
来源:`packages/sdk/src/index.ts:496`
|
|
849
969
|
|
|
850
970
|
```ts
|
|
851
971
|
export interface AnimationService {
|
|
@@ -864,7 +984,7 @@ export interface AnimationService {
|
|
|
864
984
|
|
|
865
985
|
## CameraService
|
|
866
986
|
|
|
867
|
-
来源:`packages/sdk/src/index.ts:
|
|
987
|
+
来源:`packages/sdk/src/index.ts:508`
|
|
868
988
|
|
|
869
989
|
```ts
|
|
870
990
|
export interface CameraService {
|
|
@@ -884,7 +1004,7 @@ export interface CameraService {
|
|
|
884
1004
|
|
|
885
1005
|
## UIService
|
|
886
1006
|
|
|
887
|
-
来源:`packages/sdk/src/index.ts:
|
|
1007
|
+
来源:`packages/sdk/src/index.ts:521`
|
|
888
1008
|
|
|
889
1009
|
```ts
|
|
890
1010
|
export interface UIService {
|
|
@@ -896,7 +1016,7 @@ export interface UIService {
|
|
|
896
1016
|
|
|
897
1017
|
## AudioService
|
|
898
1018
|
|
|
899
|
-
来源:`packages/sdk/src/index.ts:
|
|
1019
|
+
来源:`packages/sdk/src/index.ts:526`
|
|
900
1020
|
|
|
901
1021
|
```ts
|
|
902
1022
|
export interface AudioService {
|
|
@@ -918,7 +1038,7 @@ export interface AudioService {
|
|
|
918
1038
|
|
|
919
1039
|
## StorageService
|
|
920
1040
|
|
|
921
|
-
来源:`packages/sdk/src/index.ts:
|
|
1041
|
+
来源:`packages/sdk/src/index.ts:541`
|
|
922
1042
|
|
|
923
1043
|
```ts
|
|
924
1044
|
export interface StorageService {
|
|
@@ -934,7 +1054,7 @@ export interface StorageService {
|
|
|
934
1054
|
|
|
935
1055
|
## SceneService
|
|
936
1056
|
|
|
937
|
-
来源:`packages/sdk/src/index.ts:
|
|
1057
|
+
来源:`packages/sdk/src/index.ts:550`
|
|
938
1058
|
|
|
939
1059
|
```ts
|
|
940
1060
|
export interface SceneService {
|
|
@@ -945,7 +1065,7 @@ export interface SceneService {
|
|
|
945
1065
|
|
|
946
1066
|
## ModelDefinition
|
|
947
1067
|
|
|
948
|
-
来源:`packages/sdk/src/index.ts:
|
|
1068
|
+
来源:`packages/sdk/src/index.ts:554`
|
|
949
1069
|
|
|
950
1070
|
```ts
|
|
951
1071
|
export interface ModelDefinition {
|
|
@@ -965,7 +1085,7 @@ export interface ModelDefinition {
|
|
|
965
1085
|
|
|
966
1086
|
## RigidBodyDefinition
|
|
967
1087
|
|
|
968
|
-
来源:`packages/sdk/src/index.ts:
|
|
1088
|
+
来源:`packages/sdk/src/index.ts:567`
|
|
969
1089
|
|
|
970
1090
|
```ts
|
|
971
1091
|
export interface RigidBodyDefinition {
|
|
@@ -986,7 +1106,7 @@ export interface RigidBodyDefinition {
|
|
|
986
1106
|
|
|
987
1107
|
## CharacterDefinition
|
|
988
1108
|
|
|
989
|
-
来源:`packages/sdk/src/index.ts:
|
|
1109
|
+
来源:`packages/sdk/src/index.ts:581`
|
|
990
1110
|
|
|
991
1111
|
```ts
|
|
992
1112
|
export interface CharacterDefinition {
|
|
@@ -1001,7 +1121,7 @@ export interface CharacterDefinition {
|
|
|
1001
1121
|
|
|
1002
1122
|
## UIElementDefinition
|
|
1003
1123
|
|
|
1004
|
-
来源:`packages/sdk/src/index.ts:
|
|
1124
|
+
来源:`packages/sdk/src/index.ts:589`
|
|
1005
1125
|
|
|
1006
1126
|
```ts
|
|
1007
1127
|
export interface UIElementDefinition {
|
|
@@ -1021,7 +1141,7 @@ export interface UIElementDefinition {
|
|
|
1021
1141
|
|
|
1022
1142
|
## SoundDefinition
|
|
1023
1143
|
|
|
1024
|
-
来源:`packages/sdk/src/index.ts:
|
|
1144
|
+
来源:`packages/sdk/src/index.ts:602`
|
|
1025
1145
|
|
|
1026
1146
|
```ts
|
|
1027
1147
|
export interface SoundDefinition {
|
|
@@ -1035,7 +1155,7 @@ export interface SoundDefinition {
|
|
|
1035
1155
|
|
|
1036
1156
|
## AudioBusDefinition
|
|
1037
1157
|
|
|
1038
|
-
来源:`packages/sdk/src/index.ts:
|
|
1158
|
+
来源:`packages/sdk/src/index.ts:609`
|
|
1039
1159
|
|
|
1040
1160
|
```ts
|
|
1041
1161
|
export interface AudioBusDefinition {
|
|
@@ -1046,7 +1166,7 @@ export interface AudioBusDefinition {
|
|
|
1046
1166
|
|
|
1047
1167
|
## SYSTEM_PHASES
|
|
1048
1168
|
|
|
1049
|
-
来源:`packages/sdk/src/index.ts:
|
|
1169
|
+
来源:`packages/sdk/src/index.ts:613`
|
|
1050
1170
|
|
|
1051
1171
|
```ts
|
|
1052
1172
|
SYSTEM_PHASES = [
|
|
@@ -1061,7 +1181,7 @@ SYSTEM_PHASES = [
|
|
|
1061
1181
|
|
|
1062
1182
|
## SystemPhase
|
|
1063
1183
|
|
|
1064
|
-
来源:`packages/sdk/src/index.ts:
|
|
1184
|
+
来源:`packages/sdk/src/index.ts:621`
|
|
1065
1185
|
|
|
1066
1186
|
```ts
|
|
1067
1187
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1069,7 +1189,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1069
1189
|
|
|
1070
1190
|
## Geometry
|
|
1071
1191
|
|
|
1072
|
-
来源:`packages/sdk/src/index.ts:
|
|
1192
|
+
来源:`packages/sdk/src/index.ts:622`
|
|
1073
1193
|
|
|
1074
1194
|
```ts
|
|
1075
1195
|
export type Geometry =
|
|
@@ -1080,7 +1200,7 @@ export type Geometry =
|
|
|
1080
1200
|
|
|
1081
1201
|
## GRAPH_TYPES
|
|
1082
1202
|
|
|
1083
|
-
来源:`packages/sdk/src/index.ts:
|
|
1203
|
+
来源:`packages/sdk/src/index.ts:626`
|
|
1084
1204
|
|
|
1085
1205
|
```ts
|
|
1086
1206
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1088,7 +1208,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1088
1208
|
|
|
1089
1209
|
## GraphType
|
|
1090
1210
|
|
|
1091
|
-
来源:`packages/sdk/src/index.ts:
|
|
1211
|
+
来源:`packages/sdk/src/index.ts:627`
|
|
1092
1212
|
|
|
1093
1213
|
```ts
|
|
1094
1214
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1096,7 +1216,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1096
1216
|
|
|
1097
1217
|
## GraphValue
|
|
1098
1218
|
|
|
1099
|
-
来源:`packages/sdk/src/index.ts:
|
|
1219
|
+
来源:`packages/sdk/src/index.ts:628`
|
|
1100
1220
|
|
|
1101
1221
|
```ts
|
|
1102
1222
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1104,7 +1224,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1104
1224
|
|
|
1105
1225
|
## GraphParameter
|
|
1106
1226
|
|
|
1107
|
-
来源:`packages/sdk/src/index.ts:
|
|
1227
|
+
来源:`packages/sdk/src/index.ts:629`
|
|
1108
1228
|
|
|
1109
1229
|
```ts
|
|
1110
1230
|
export interface GraphParameter {
|
|
@@ -1116,7 +1236,7 @@ export interface GraphParameter {
|
|
|
1116
1236
|
|
|
1117
1237
|
## GRAPH_INPUT_TYPES
|
|
1118
1238
|
|
|
1119
|
-
来源:`packages/sdk/src/index.ts:
|
|
1239
|
+
来源:`packages/sdk/src/index.ts:634`
|
|
1120
1240
|
|
|
1121
1241
|
```ts
|
|
1122
1242
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1130,7 +1250,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1130
1250
|
|
|
1131
1251
|
## GraphInputName
|
|
1132
1252
|
|
|
1133
|
-
来源:`packages/sdk/src/index.ts:
|
|
1253
|
+
来源:`packages/sdk/src/index.ts:641`
|
|
1134
1254
|
|
|
1135
1255
|
```ts
|
|
1136
1256
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1138,7 +1258,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1138
1258
|
|
|
1139
1259
|
## GRAPH_OPERATIONS
|
|
1140
1260
|
|
|
1141
|
-
来源:`packages/sdk/src/index.ts:
|
|
1261
|
+
来源:`packages/sdk/src/index.ts:642`
|
|
1142
1262
|
|
|
1143
1263
|
```ts
|
|
1144
1264
|
GRAPH_OPERATIONS = {
|
|
@@ -1150,7 +1270,7 @@ GRAPH_OPERATIONS = {
|
|
|
1150
1270
|
|
|
1151
1271
|
## GraphNode
|
|
1152
1272
|
|
|
1153
|
-
来源:`packages/sdk/src/index.ts:
|
|
1273
|
+
来源:`packages/sdk/src/index.ts:647`
|
|
1154
1274
|
|
|
1155
1275
|
```ts
|
|
1156
1276
|
export type GraphNode =
|
|
@@ -1177,7 +1297,7 @@ export type GraphNode =
|
|
|
1177
1297
|
|
|
1178
1298
|
## Graph
|
|
1179
1299
|
|
|
1180
|
-
来源:`packages/sdk/src/index.ts:
|
|
1300
|
+
来源:`packages/sdk/src/index.ts:667`
|
|
1181
1301
|
|
|
1182
1302
|
```ts
|
|
1183
1303
|
export interface Graph {
|
|
@@ -1189,7 +1309,7 @@ export interface Graph {
|
|
|
1189
1309
|
|
|
1190
1310
|
## MaterialGraphs
|
|
1191
1311
|
|
|
1192
|
-
来源:`packages/sdk/src/index.ts:
|
|
1312
|
+
来源:`packages/sdk/src/index.ts:672`
|
|
1193
1313
|
|
|
1194
1314
|
```ts
|
|
1195
1315
|
export interface MaterialGraphs {
|
|
@@ -1205,7 +1325,7 @@ export interface MaterialGraphs {
|
|
|
1205
1325
|
|
|
1206
1326
|
## VertexGraphs
|
|
1207
1327
|
|
|
1208
|
-
来源:`packages/sdk/src/index.ts:
|
|
1328
|
+
来源:`packages/sdk/src/index.ts:681`
|
|
1209
1329
|
|
|
1210
1330
|
```ts
|
|
1211
1331
|
export interface VertexGraphs {
|
|
@@ -1218,7 +1338,7 @@ export interface VertexGraphs {
|
|
|
1218
1338
|
|
|
1219
1339
|
## MaterialInput
|
|
1220
1340
|
|
|
1221
|
-
来源:`packages/sdk/src/index.ts:
|
|
1341
|
+
来源:`packages/sdk/src/index.ts:687`
|
|
1222
1342
|
|
|
1223
1343
|
```ts
|
|
1224
1344
|
export interface MaterialInput {
|
|
@@ -1252,7 +1372,7 @@ export interface MaterialInput {
|
|
|
1252
1372
|
|
|
1253
1373
|
## MaterialDefinition
|
|
1254
1374
|
|
|
1255
|
-
来源:`packages/sdk/src/index.ts:
|
|
1375
|
+
来源:`packages/sdk/src/index.ts:714`
|
|
1256
1376
|
|
|
1257
1377
|
```ts
|
|
1258
1378
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1262,7 +1382,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1262
1382
|
|
|
1263
1383
|
## PostProcessInput
|
|
1264
1384
|
|
|
1265
|
-
来源:`packages/sdk/src/index.ts:
|
|
1385
|
+
来源:`packages/sdk/src/index.ts:717`
|
|
1266
1386
|
|
|
1267
1387
|
```ts
|
|
1268
1388
|
export interface PostProcessInput {
|
|
@@ -1277,7 +1397,7 @@ export interface PostProcessInput {
|
|
|
1277
1397
|
|
|
1278
1398
|
## PostProcessDefinition
|
|
1279
1399
|
|
|
1280
|
-
来源:`packages/sdk/src/index.ts:
|
|
1400
|
+
来源:`packages/sdk/src/index.ts:725`
|
|
1281
1401
|
|
|
1282
1402
|
```ts
|
|
1283
1403
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1287,7 +1407,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1287
1407
|
|
|
1288
1408
|
## ComputeInput
|
|
1289
1409
|
|
|
1290
|
-
来源:`packages/sdk/src/index.ts:
|
|
1410
|
+
来源:`packages/sdk/src/index.ts:728`
|
|
1291
1411
|
|
|
1292
1412
|
```ts
|
|
1293
1413
|
export interface ComputeInput {
|
|
@@ -1303,7 +1423,7 @@ export interface ComputeInput {
|
|
|
1303
1423
|
|
|
1304
1424
|
## ComputeDefinition
|
|
1305
1425
|
|
|
1306
|
-
来源:`packages/sdk/src/index.ts:
|
|
1426
|
+
来源:`packages/sdk/src/index.ts:737`
|
|
1307
1427
|
|
|
1308
1428
|
```ts
|
|
1309
1429
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1313,7 +1433,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1313
1433
|
|
|
1314
1434
|
## AssetInput
|
|
1315
1435
|
|
|
1316
|
-
来源:`packages/sdk/src/index.ts:
|
|
1436
|
+
来源:`packages/sdk/src/index.ts:740`
|
|
1317
1437
|
|
|
1318
1438
|
```ts
|
|
1319
1439
|
export interface AssetInput {
|
|
@@ -1330,7 +1450,7 @@ export interface AssetInput {
|
|
|
1330
1450
|
|
|
1331
1451
|
## AssetDefinition
|
|
1332
1452
|
|
|
1333
|
-
来源:`packages/sdk/src/index.ts:
|
|
1453
|
+
来源:`packages/sdk/src/index.ts:750`
|
|
1334
1454
|
|
|
1335
1455
|
```ts
|
|
1336
1456
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1340,7 +1460,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1340
1460
|
|
|
1341
1461
|
## MeshDefinition
|
|
1342
1462
|
|
|
1343
|
-
来源:`packages/sdk/src/index.ts:
|
|
1463
|
+
来源:`packages/sdk/src/index.ts:753`
|
|
1344
1464
|
|
|
1345
1465
|
```ts
|
|
1346
1466
|
export interface MeshDefinition {
|
|
@@ -1353,7 +1473,7 @@ export interface MeshDefinition {
|
|
|
1353
1473
|
|
|
1354
1474
|
## LightDefinition
|
|
1355
1475
|
|
|
1356
|
-
来源:`packages/sdk/src/index.ts:
|
|
1476
|
+
来源:`packages/sdk/src/index.ts:759`
|
|
1357
1477
|
|
|
1358
1478
|
```ts
|
|
1359
1479
|
export interface LightDefinition {
|
|
@@ -1375,7 +1495,7 @@ export interface LightDefinition {
|
|
|
1375
1495
|
|
|
1376
1496
|
## EntityInput
|
|
1377
1497
|
|
|
1378
|
-
来源:`packages/sdk/src/index.ts:
|
|
1498
|
+
来源:`packages/sdk/src/index.ts:774`
|
|
1379
1499
|
|
|
1380
1500
|
```ts
|
|
1381
1501
|
export interface EntityInput {
|
|
@@ -1394,7 +1514,7 @@ export interface EntityInput {
|
|
|
1394
1514
|
|
|
1395
1515
|
## PrefabInput
|
|
1396
1516
|
|
|
1397
|
-
来源:`packages/sdk/src/index.ts:
|
|
1517
|
+
来源:`packages/sdk/src/index.ts:786`
|
|
1398
1518
|
|
|
1399
1519
|
```ts
|
|
1400
1520
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1404,7 +1524,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1404
1524
|
|
|
1405
1525
|
## PrefabDefinition
|
|
1406
1526
|
|
|
1407
|
-
来源:`packages/sdk/src/index.ts:
|
|
1527
|
+
来源:`packages/sdk/src/index.ts:789`
|
|
1408
1528
|
|
|
1409
1529
|
```ts
|
|
1410
1530
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1414,7 +1534,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1414
1534
|
|
|
1415
1535
|
## SceneInput
|
|
1416
1536
|
|
|
1417
|
-
来源:`packages/sdk/src/index.ts:
|
|
1537
|
+
来源:`packages/sdk/src/index.ts:792`
|
|
1418
1538
|
|
|
1419
1539
|
```ts
|
|
1420
1540
|
export interface SceneInput {
|
|
@@ -1446,7 +1566,7 @@ export interface SceneInput {
|
|
|
1446
1566
|
|
|
1447
1567
|
## SceneDefinition
|
|
1448
1568
|
|
|
1449
|
-
来源:`packages/sdk/src/index.ts:
|
|
1569
|
+
来源:`packages/sdk/src/index.ts:817`
|
|
1450
1570
|
|
|
1451
1571
|
```ts
|
|
1452
1572
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1456,7 +1576,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1456
1576
|
|
|
1457
1577
|
## SystemInput
|
|
1458
1578
|
|
|
1459
|
-
来源:`packages/sdk/src/index.ts:
|
|
1579
|
+
来源:`packages/sdk/src/index.ts:820`
|
|
1460
1580
|
|
|
1461
1581
|
```ts
|
|
1462
1582
|
export interface SystemInput {
|
|
@@ -1473,7 +1593,7 @@ export interface SystemInput {
|
|
|
1473
1593
|
|
|
1474
1594
|
## SystemDefinition
|
|
1475
1595
|
|
|
1476
|
-
来源:`packages/sdk/src/index.ts:
|
|
1596
|
+
来源:`packages/sdk/src/index.ts:830`
|
|
1477
1597
|
|
|
1478
1598
|
```ts
|
|
1479
1599
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1483,7 +1603,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1483
1603
|
|
|
1484
1604
|
## GameInput
|
|
1485
1605
|
|
|
1486
|
-
来源:`packages/sdk/src/index.ts:
|
|
1606
|
+
来源:`packages/sdk/src/index.ts:833`
|
|
1487
1607
|
|
|
1488
1608
|
```ts
|
|
1489
1609
|
export interface GameInput {
|
|
@@ -1509,7 +1629,7 @@ export interface GameInput {
|
|
|
1509
1629
|
|
|
1510
1630
|
## GameDefinition
|
|
1511
1631
|
|
|
1512
|
-
来源:`packages/sdk/src/index.ts:
|
|
1632
|
+
来源:`packages/sdk/src/index.ts:852`
|
|
1513
1633
|
|
|
1514
1634
|
```ts
|
|
1515
1635
|
export interface GameDefinition extends GameInput {
|
|
@@ -1519,7 +1639,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1519
1639
|
|
|
1520
1640
|
## GameInstance
|
|
1521
1641
|
|
|
1522
|
-
来源:`packages/sdk/src/index.ts:
|
|
1642
|
+
来源:`packages/sdk/src/index.ts:855`
|
|
1523
1643
|
|
|
1524
1644
|
```ts
|
|
1525
1645
|
export interface GameInstance {
|
|
@@ -1530,7 +1650,7 @@ export interface GameInstance {
|
|
|
1530
1650
|
|
|
1531
1651
|
## defineComponent
|
|
1532
1652
|
|
|
1533
|
-
来源:`packages/sdk/src/index.ts:
|
|
1653
|
+
来源:`packages/sdk/src/index.ts:859`
|
|
1534
1654
|
|
|
1535
1655
|
```ts
|
|
1536
1656
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1541,7 +1661,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1541
1661
|
|
|
1542
1662
|
## defineMaterial
|
|
1543
1663
|
|
|
1544
|
-
来源:`packages/sdk/src/index.ts:
|
|
1664
|
+
来源:`packages/sdk/src/index.ts:865`
|
|
1545
1665
|
|
|
1546
1666
|
```ts
|
|
1547
1667
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1549,7 +1669,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1549
1669
|
|
|
1550
1670
|
## definePostProcess
|
|
1551
1671
|
|
|
1552
|
-
来源:`packages/sdk/src/index.ts:
|
|
1672
|
+
来源:`packages/sdk/src/index.ts:868`
|
|
1553
1673
|
|
|
1554
1674
|
```ts
|
|
1555
1675
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1557,7 +1677,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1557
1677
|
|
|
1558
1678
|
## defineCompute
|
|
1559
1679
|
|
|
1560
|
-
来源:`packages/sdk/src/index.ts:
|
|
1680
|
+
来源:`packages/sdk/src/index.ts:871`
|
|
1561
1681
|
|
|
1562
1682
|
```ts
|
|
1563
1683
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1565,7 +1685,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1565
1685
|
|
|
1566
1686
|
## defineAsset
|
|
1567
1687
|
|
|
1568
|
-
来源:`packages/sdk/src/index.ts:
|
|
1688
|
+
来源:`packages/sdk/src/index.ts:874`
|
|
1569
1689
|
|
|
1570
1690
|
```ts
|
|
1571
1691
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1573,7 +1693,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1573
1693
|
|
|
1574
1694
|
## definePrefab
|
|
1575
1695
|
|
|
1576
|
-
来源:`packages/sdk/src/index.ts:
|
|
1696
|
+
来源:`packages/sdk/src/index.ts:877`
|
|
1577
1697
|
|
|
1578
1698
|
```ts
|
|
1579
1699
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1581,7 +1701,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1581
1701
|
|
|
1582
1702
|
## defineScene
|
|
1583
1703
|
|
|
1584
|
-
来源:`packages/sdk/src/index.ts:
|
|
1704
|
+
来源:`packages/sdk/src/index.ts:880`
|
|
1585
1705
|
|
|
1586
1706
|
```ts
|
|
1587
1707
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1589,7 +1709,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1589
1709
|
|
|
1590
1710
|
## defineSystem
|
|
1591
1711
|
|
|
1592
|
-
来源:`packages/sdk/src/index.ts:
|
|
1712
|
+
来源:`packages/sdk/src/index.ts:883`
|
|
1593
1713
|
|
|
1594
1714
|
```ts
|
|
1595
1715
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1597,7 +1717,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1597
1717
|
|
|
1598
1718
|
## defineGame
|
|
1599
1719
|
|
|
1600
|
-
来源:`packages/sdk/src/index.ts:
|
|
1720
|
+
来源:`packages/sdk/src/index.ts:886`
|
|
1601
1721
|
|
|
1602
1722
|
```ts
|
|
1603
1723
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1605,7 +1725,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1605
1725
|
|
|
1606
1726
|
## instantiateGame
|
|
1607
1727
|
|
|
1608
|
-
来源:`packages/sdk/src/index.ts:
|
|
1728
|
+
来源:`packages/sdk/src/index.ts:890`
|
|
1609
1729
|
|
|
1610
1730
|
```ts
|
|
1611
1731
|
export function instantiateGame(
|