pelican-engine 0.3.21 → 0.3.23
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 +10 -0
- package/distribution.json +12 -12
- package/docs/STATUS.md +3 -1
- package/docs/api/REFERENCE.md +116 -96
- package/docs/api/index.json +124 -97
- package/docs/npm/GAME-AUTHOR.md +10 -0
- package/engine.manifest.json +1 -1
- package/lib/sdk/index.d.ts +18 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +56 -8
- package/lib/simulation/cloth.js +82 -12
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.23 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.23"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -456,10 +456,18 @@ export interface ClothVisualOptions {
|
|
|
456
456
|
}
|
|
457
457
|
```
|
|
458
458
|
|
|
459
|
-
##
|
|
459
|
+
## ClothBodyCollider
|
|
460
460
|
|
|
461
461
|
来源:`packages/sdk/src/index.ts:237`
|
|
462
462
|
|
|
463
|
+
```ts
|
|
464
|
+
export interface ClothBodyCollider { readonly id: string; readonly entity: string }
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
## ClothDefinition
|
|
468
|
+
|
|
469
|
+
来源:`packages/sdk/src/index.ts:238`
|
|
470
|
+
|
|
463
471
|
```ts
|
|
464
472
|
export interface ClothDefinition {
|
|
465
473
|
id: string;
|
|
@@ -480,12 +488,16 @@ export interface ClothDefinition {
|
|
|
480
488
|
visual?: ClothVisualOptions;
|
|
481
489
|
/** Discrete non-adjacent particle self-contact; defaults to true for new cloth. */
|
|
482
490
|
selfCollisions?: boolean;
|
|
491
|
+
/** Sphere triangle-surface contacts; defaults to true for new cloth. */
|
|
492
|
+
surfaceCollisions?: boolean;
|
|
493
|
+
/** Optional live dynamic sphere bindings; sampled after the physics phase, one-way only. */
|
|
494
|
+
bodyColliders?: readonly ClothBodyCollider[];
|
|
483
495
|
}
|
|
484
496
|
```
|
|
485
497
|
|
|
486
498
|
## ClothContact
|
|
487
499
|
|
|
488
|
-
来源:`packages/sdk/src/index.ts:
|
|
500
|
+
来源:`packages/sdk/src/index.ts:262`
|
|
489
501
|
|
|
490
502
|
```ts
|
|
491
503
|
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }
|
|
@@ -493,22 +505,30 @@ export interface ClothContact { tick: number; particle: number; colliderId: stri
|
|
|
493
505
|
|
|
494
506
|
## ClothSelfContact
|
|
495
507
|
|
|
496
|
-
来源:`packages/sdk/src/index.ts:
|
|
508
|
+
来源:`packages/sdk/src/index.ts:263`
|
|
497
509
|
|
|
498
510
|
```ts
|
|
499
511
|
export interface ClothSelfContact { tick: number; firstParticle: number; secondParticle: number; penetration: number }
|
|
500
512
|
```
|
|
501
513
|
|
|
514
|
+
## ClothSurfaceContact
|
|
515
|
+
|
|
516
|
+
来源:`packages/sdk/src/index.ts:264`
|
|
517
|
+
|
|
518
|
+
```ts
|
|
519
|
+
export interface ClothSurfaceContact { tick: number; triangle: number; colliderId: string; penetration: number; barycentric: [number, number, number] }
|
|
520
|
+
```
|
|
521
|
+
|
|
502
522
|
## ClothState
|
|
503
523
|
|
|
504
|
-
来源:`packages/sdk/src/index.ts:
|
|
524
|
+
来源:`packages/sdk/src/index.ts:265`
|
|
505
525
|
|
|
506
526
|
```ts
|
|
507
527
|
export interface ClothState {
|
|
508
|
-
tick: number; simulatedSeconds: number; disposed: boolean; selfCollisions: boolean;
|
|
528
|
+
tick: number; simulatedSeconds: number; disposed: boolean; selfCollisions: boolean; surfaceCollisions: boolean;
|
|
509
529
|
positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];
|
|
510
530
|
anchors: { index: number; position: Vec3 }[];
|
|
511
|
-
contacts: ClothContact[]; selfContacts: ClothSelfContact[];
|
|
531
|
+
contacts: ClothContact[]; selfContacts: ClothSelfContact[]; surfaceContacts: ClothSurfaceContact[];
|
|
512
532
|
maxDistanceError: number;
|
|
513
533
|
resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };
|
|
514
534
|
}
|
|
@@ -516,7 +536,7 @@ export interface ClothState {
|
|
|
516
536
|
|
|
517
537
|
## ClothVisualState
|
|
518
538
|
|
|
519
|
-
来源:`packages/sdk/src/index.ts:
|
|
539
|
+
来源:`packages/sdk/src/index.ts:273`
|
|
520
540
|
|
|
521
541
|
```ts
|
|
522
542
|
export interface ClothVisualState {
|
|
@@ -527,7 +547,7 @@ export interface ClothVisualState {
|
|
|
527
547
|
|
|
528
548
|
## ClothService
|
|
529
549
|
|
|
530
|
-
来源:`packages/sdk/src/index.ts:
|
|
550
|
+
来源:`packages/sdk/src/index.ts:277`
|
|
531
551
|
|
|
532
552
|
```ts
|
|
533
553
|
export interface ClothService {
|
|
@@ -547,7 +567,7 @@ export interface ClothService {
|
|
|
547
567
|
|
|
548
568
|
## NavigationCell
|
|
549
569
|
|
|
550
|
-
来源:`packages/sdk/src/index.ts:
|
|
570
|
+
来源:`packages/sdk/src/index.ts:293`
|
|
551
571
|
|
|
552
572
|
```ts
|
|
553
573
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -555,7 +575,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
555
575
|
|
|
556
576
|
## NavigationObstacleUpdate
|
|
557
577
|
|
|
558
|
-
来源:`packages/sdk/src/index.ts:
|
|
578
|
+
来源:`packages/sdk/src/index.ts:295`
|
|
559
579
|
|
|
560
580
|
```ts
|
|
561
581
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -563,7 +583,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
563
583
|
|
|
564
584
|
## NavigationGrid
|
|
565
585
|
|
|
566
|
-
来源:`packages/sdk/src/index.ts:
|
|
586
|
+
来源:`packages/sdk/src/index.ts:296`
|
|
567
587
|
|
|
568
588
|
```ts
|
|
569
589
|
export interface NavigationGrid {
|
|
@@ -579,7 +599,7 @@ export interface NavigationGrid {
|
|
|
579
599
|
|
|
580
600
|
## NavigationService
|
|
581
601
|
|
|
582
|
-
来源:`packages/sdk/src/index.ts:
|
|
602
|
+
来源:`packages/sdk/src/index.ts:305`
|
|
583
603
|
|
|
584
604
|
```ts
|
|
585
605
|
export interface NavigationService {
|
|
@@ -598,7 +618,7 @@ export interface NavigationService {
|
|
|
598
618
|
|
|
599
619
|
## RenderMode
|
|
600
620
|
|
|
601
|
-
来源:`packages/sdk/src/index.ts:
|
|
621
|
+
来源:`packages/sdk/src/index.ts:317`
|
|
602
622
|
|
|
603
623
|
```ts
|
|
604
624
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -606,7 +626,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
606
626
|
|
|
607
627
|
## RenderCapabilities
|
|
608
628
|
|
|
609
|
-
来源:`packages/sdk/src/index.ts:
|
|
629
|
+
来源:`packages/sdk/src/index.ts:318`
|
|
610
630
|
|
|
611
631
|
```ts
|
|
612
632
|
export interface RenderCapabilities {
|
|
@@ -618,7 +638,7 @@ export interface RenderCapabilities {
|
|
|
618
638
|
|
|
619
639
|
## RenderSettings
|
|
620
640
|
|
|
621
|
-
来源:`packages/sdk/src/index.ts:
|
|
641
|
+
来源:`packages/sdk/src/index.ts:323`
|
|
622
642
|
|
|
623
643
|
```ts
|
|
624
644
|
export interface RenderSettings {
|
|
@@ -636,7 +656,7 @@ export interface RenderSettings {
|
|
|
636
656
|
|
|
637
657
|
## RenderService
|
|
638
658
|
|
|
639
|
-
来源:`packages/sdk/src/index.ts:
|
|
659
|
+
来源:`packages/sdk/src/index.ts:334`
|
|
640
660
|
|
|
641
661
|
```ts
|
|
642
662
|
export interface RenderService {
|
|
@@ -653,7 +673,7 @@ export interface RenderService {
|
|
|
653
673
|
|
|
654
674
|
## MaterialBufferInput
|
|
655
675
|
|
|
656
|
-
来源:`packages/sdk/src/index.ts:
|
|
676
|
+
来源:`packages/sdk/src/index.ts:344`
|
|
657
677
|
|
|
658
678
|
```ts
|
|
659
679
|
export interface MaterialBufferInput {
|
|
@@ -669,7 +689,7 @@ export interface MaterialBufferInput {
|
|
|
669
689
|
|
|
670
690
|
## RenderBufferReference
|
|
671
691
|
|
|
672
|
-
来源:`packages/sdk/src/index.ts:
|
|
692
|
+
来源:`packages/sdk/src/index.ts:353`
|
|
673
693
|
|
|
674
694
|
```ts
|
|
675
695
|
export interface RenderBufferReference {
|
|
@@ -681,7 +701,7 @@ export interface RenderBufferReference {
|
|
|
681
701
|
|
|
682
702
|
## RenderBufferBindings
|
|
683
703
|
|
|
684
|
-
来源:`packages/sdk/src/index.ts:
|
|
704
|
+
来源:`packages/sdk/src/index.ts:358`
|
|
685
705
|
|
|
686
706
|
```ts
|
|
687
707
|
export interface RenderBufferBindings {
|
|
@@ -693,7 +713,7 @@ export interface RenderBufferBindings {
|
|
|
693
713
|
|
|
694
714
|
## MaterialTextureInput
|
|
695
715
|
|
|
696
|
-
来源:`packages/sdk/src/index.ts:
|
|
716
|
+
来源:`packages/sdk/src/index.ts:363`
|
|
697
717
|
|
|
698
718
|
```ts
|
|
699
719
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -706,7 +726,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
706
726
|
|
|
707
727
|
## RenderTextureReference
|
|
708
728
|
|
|
709
|
-
来源:`packages/sdk/src/index.ts:
|
|
729
|
+
来源:`packages/sdk/src/index.ts:369`
|
|
710
730
|
|
|
711
731
|
```ts
|
|
712
732
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -717,7 +737,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
717
737
|
|
|
718
738
|
## RenderTextureBindings
|
|
719
739
|
|
|
720
|
-
来源:`packages/sdk/src/index.ts:
|
|
740
|
+
来源:`packages/sdk/src/index.ts:373`
|
|
721
741
|
|
|
722
742
|
```ts
|
|
723
743
|
export interface RenderTextureBindings {
|
|
@@ -729,7 +749,7 @@ export interface RenderTextureBindings {
|
|
|
729
749
|
|
|
730
750
|
## PostProcessState
|
|
731
751
|
|
|
732
|
-
来源:`packages/sdk/src/index.ts:
|
|
752
|
+
来源:`packages/sdk/src/index.ts:378`
|
|
733
753
|
|
|
734
754
|
```ts
|
|
735
755
|
export interface PostProcessState {
|
|
@@ -741,7 +761,7 @@ export interface PostProcessState {
|
|
|
741
761
|
|
|
742
762
|
## PostProcessService
|
|
743
763
|
|
|
744
|
-
来源:`packages/sdk/src/index.ts:
|
|
764
|
+
来源:`packages/sdk/src/index.ts:383`
|
|
745
765
|
|
|
746
766
|
```ts
|
|
747
767
|
export interface PostProcessService {
|
|
@@ -758,7 +778,7 @@ export interface PostProcessService {
|
|
|
758
778
|
|
|
759
779
|
## ComputeBufferHandle
|
|
760
780
|
|
|
761
|
-
来源:`packages/sdk/src/index.ts:
|
|
781
|
+
来源:`packages/sdk/src/index.ts:393`
|
|
762
782
|
|
|
763
783
|
```ts
|
|
764
784
|
export interface ComputeBufferHandle {
|
|
@@ -770,7 +790,7 @@ export interface ComputeBufferHandle {
|
|
|
770
790
|
|
|
771
791
|
## ComputeTaskHandle
|
|
772
792
|
|
|
773
|
-
来源:`packages/sdk/src/index.ts:
|
|
793
|
+
来源:`packages/sdk/src/index.ts:398`
|
|
774
794
|
|
|
775
795
|
```ts
|
|
776
796
|
export interface ComputeTaskHandle {
|
|
@@ -781,7 +801,7 @@ export interface ComputeTaskHandle {
|
|
|
781
801
|
|
|
782
802
|
## ComputeBufferInput
|
|
783
803
|
|
|
784
|
-
来源:`packages/sdk/src/index.ts:
|
|
804
|
+
来源:`packages/sdk/src/index.ts:402`
|
|
785
805
|
|
|
786
806
|
```ts
|
|
787
807
|
export interface ComputeBufferInput {
|
|
@@ -794,7 +814,7 @@ export interface ComputeBufferInput {
|
|
|
794
814
|
|
|
795
815
|
## ComputeTextureHandle
|
|
796
816
|
|
|
797
|
-
来源:`packages/sdk/src/index.ts:
|
|
817
|
+
来源:`packages/sdk/src/index.ts:408`
|
|
798
818
|
|
|
799
819
|
```ts
|
|
800
820
|
export interface ComputeTextureHandle {
|
|
@@ -807,7 +827,7 @@ export interface ComputeTextureHandle {
|
|
|
807
827
|
|
|
808
828
|
## ComputeTextureSize
|
|
809
829
|
|
|
810
|
-
来源:`packages/sdk/src/index.ts:
|
|
830
|
+
来源:`packages/sdk/src/index.ts:414`
|
|
811
831
|
|
|
812
832
|
```ts
|
|
813
833
|
export interface ComputeTextureSize {
|
|
@@ -818,7 +838,7 @@ export interface ComputeTextureSize {
|
|
|
818
838
|
|
|
819
839
|
## ComputeTextureDataInput
|
|
820
840
|
|
|
821
|
-
来源:`packages/sdk/src/index.ts:
|
|
841
|
+
来源:`packages/sdk/src/index.ts:418`
|
|
822
842
|
|
|
823
843
|
```ts
|
|
824
844
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -831,7 +851,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
831
851
|
|
|
832
852
|
## ComputeTextureAssetInput
|
|
833
853
|
|
|
834
|
-
来源:`packages/sdk/src/index.ts:
|
|
854
|
+
来源:`packages/sdk/src/index.ts:424`
|
|
835
855
|
|
|
836
856
|
```ts
|
|
837
857
|
export interface ComputeTextureAssetInput {
|
|
@@ -845,7 +865,7 @@ export interface ComputeTextureAssetInput {
|
|
|
845
865
|
|
|
846
866
|
## ComputeTextureInput
|
|
847
867
|
|
|
848
|
-
来源:`packages/sdk/src/index.ts:
|
|
868
|
+
来源:`packages/sdk/src/index.ts:431`
|
|
849
869
|
|
|
850
870
|
```ts
|
|
851
871
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -853,7 +873,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
853
873
|
|
|
854
874
|
## ComputeTextureBinding
|
|
855
875
|
|
|
856
|
-
来源:`packages/sdk/src/index.ts:
|
|
876
|
+
来源:`packages/sdk/src/index.ts:432`
|
|
857
877
|
|
|
858
878
|
```ts
|
|
859
879
|
export interface ComputeTextureBinding {
|
|
@@ -866,7 +886,7 @@ export interface ComputeTextureBinding {
|
|
|
866
886
|
|
|
867
887
|
## ComputeDispatchInput
|
|
868
888
|
|
|
869
|
-
来源:`packages/sdk/src/index.ts:
|
|
889
|
+
来源:`packages/sdk/src/index.ts:438`
|
|
870
890
|
|
|
871
891
|
```ts
|
|
872
892
|
export interface ComputeDispatchInput {
|
|
@@ -885,7 +905,7 @@ export interface ComputeDispatchInput {
|
|
|
885
905
|
|
|
886
906
|
## ComputeTaskState
|
|
887
907
|
|
|
888
|
-
来源:`packages/sdk/src/index.ts:
|
|
908
|
+
来源:`packages/sdk/src/index.ts:450`
|
|
889
909
|
|
|
890
910
|
```ts
|
|
891
911
|
export interface ComputeTaskState {
|
|
@@ -896,7 +916,7 @@ export interface ComputeTaskState {
|
|
|
896
916
|
|
|
897
917
|
## ComputeService
|
|
898
918
|
|
|
899
|
-
来源:`packages/sdk/src/index.ts:
|
|
919
|
+
来源:`packages/sdk/src/index.ts:454`
|
|
900
920
|
|
|
901
921
|
```ts
|
|
902
922
|
export interface ComputeService {
|
|
@@ -923,7 +943,7 @@ export interface ComputeService {
|
|
|
923
943
|
|
|
924
944
|
## InputService
|
|
925
945
|
|
|
926
|
-
来源:`packages/sdk/src/index.ts:
|
|
946
|
+
来源:`packages/sdk/src/index.ts:474`
|
|
927
947
|
|
|
928
948
|
```ts
|
|
929
949
|
export interface InputService {
|
|
@@ -936,7 +956,7 @@ export interface InputService {
|
|
|
936
956
|
|
|
937
957
|
## PhysicsService
|
|
938
958
|
|
|
939
|
-
来源:`packages/sdk/src/index.ts:
|
|
959
|
+
来源:`packages/sdk/src/index.ts:480`
|
|
940
960
|
|
|
941
961
|
```ts
|
|
942
962
|
export interface PhysicsService {
|
|
@@ -965,7 +985,7 @@ export interface PhysicsService {
|
|
|
965
985
|
|
|
966
986
|
## AnimationService
|
|
967
987
|
|
|
968
|
-
来源:`packages/sdk/src/index.ts:
|
|
988
|
+
来源:`packages/sdk/src/index.ts:502`
|
|
969
989
|
|
|
970
990
|
```ts
|
|
971
991
|
export interface AnimationService {
|
|
@@ -984,7 +1004,7 @@ export interface AnimationService {
|
|
|
984
1004
|
|
|
985
1005
|
## CameraService
|
|
986
1006
|
|
|
987
|
-
来源:`packages/sdk/src/index.ts:
|
|
1007
|
+
来源:`packages/sdk/src/index.ts:514`
|
|
988
1008
|
|
|
989
1009
|
```ts
|
|
990
1010
|
export interface CameraService {
|
|
@@ -1004,7 +1024,7 @@ export interface CameraService {
|
|
|
1004
1024
|
|
|
1005
1025
|
## UIService
|
|
1006
1026
|
|
|
1007
|
-
来源:`packages/sdk/src/index.ts:
|
|
1027
|
+
来源:`packages/sdk/src/index.ts:527`
|
|
1008
1028
|
|
|
1009
1029
|
```ts
|
|
1010
1030
|
export interface UIService {
|
|
@@ -1016,7 +1036,7 @@ export interface UIService {
|
|
|
1016
1036
|
|
|
1017
1037
|
## AudioService
|
|
1018
1038
|
|
|
1019
|
-
来源:`packages/sdk/src/index.ts:
|
|
1039
|
+
来源:`packages/sdk/src/index.ts:532`
|
|
1020
1040
|
|
|
1021
1041
|
```ts
|
|
1022
1042
|
export interface AudioService {
|
|
@@ -1038,7 +1058,7 @@ export interface AudioService {
|
|
|
1038
1058
|
|
|
1039
1059
|
## StorageService
|
|
1040
1060
|
|
|
1041
|
-
来源:`packages/sdk/src/index.ts:
|
|
1061
|
+
来源:`packages/sdk/src/index.ts:547`
|
|
1042
1062
|
|
|
1043
1063
|
```ts
|
|
1044
1064
|
export interface StorageService {
|
|
@@ -1054,7 +1074,7 @@ export interface StorageService {
|
|
|
1054
1074
|
|
|
1055
1075
|
## SceneService
|
|
1056
1076
|
|
|
1057
|
-
来源:`packages/sdk/src/index.ts:
|
|
1077
|
+
来源:`packages/sdk/src/index.ts:556`
|
|
1058
1078
|
|
|
1059
1079
|
```ts
|
|
1060
1080
|
export interface SceneService {
|
|
@@ -1065,7 +1085,7 @@ export interface SceneService {
|
|
|
1065
1085
|
|
|
1066
1086
|
## ModelDefinition
|
|
1067
1087
|
|
|
1068
|
-
来源:`packages/sdk/src/index.ts:
|
|
1088
|
+
来源:`packages/sdk/src/index.ts:560`
|
|
1069
1089
|
|
|
1070
1090
|
```ts
|
|
1071
1091
|
export interface ModelDefinition {
|
|
@@ -1085,7 +1105,7 @@ export interface ModelDefinition {
|
|
|
1085
1105
|
|
|
1086
1106
|
## RigidBodyDefinition
|
|
1087
1107
|
|
|
1088
|
-
来源:`packages/sdk/src/index.ts:
|
|
1108
|
+
来源:`packages/sdk/src/index.ts:573`
|
|
1089
1109
|
|
|
1090
1110
|
```ts
|
|
1091
1111
|
export interface RigidBodyDefinition {
|
|
@@ -1106,7 +1126,7 @@ export interface RigidBodyDefinition {
|
|
|
1106
1126
|
|
|
1107
1127
|
## CharacterDefinition
|
|
1108
1128
|
|
|
1109
|
-
来源:`packages/sdk/src/index.ts:
|
|
1129
|
+
来源:`packages/sdk/src/index.ts:587`
|
|
1110
1130
|
|
|
1111
1131
|
```ts
|
|
1112
1132
|
export interface CharacterDefinition {
|
|
@@ -1121,7 +1141,7 @@ export interface CharacterDefinition {
|
|
|
1121
1141
|
|
|
1122
1142
|
## UIElementDefinition
|
|
1123
1143
|
|
|
1124
|
-
来源:`packages/sdk/src/index.ts:
|
|
1144
|
+
来源:`packages/sdk/src/index.ts:595`
|
|
1125
1145
|
|
|
1126
1146
|
```ts
|
|
1127
1147
|
export interface UIElementDefinition {
|
|
@@ -1141,7 +1161,7 @@ export interface UIElementDefinition {
|
|
|
1141
1161
|
|
|
1142
1162
|
## SoundDefinition
|
|
1143
1163
|
|
|
1144
|
-
来源:`packages/sdk/src/index.ts:
|
|
1164
|
+
来源:`packages/sdk/src/index.ts:608`
|
|
1145
1165
|
|
|
1146
1166
|
```ts
|
|
1147
1167
|
export interface SoundDefinition {
|
|
@@ -1155,7 +1175,7 @@ export interface SoundDefinition {
|
|
|
1155
1175
|
|
|
1156
1176
|
## AudioBusDefinition
|
|
1157
1177
|
|
|
1158
|
-
来源:`packages/sdk/src/index.ts:
|
|
1178
|
+
来源:`packages/sdk/src/index.ts:615`
|
|
1159
1179
|
|
|
1160
1180
|
```ts
|
|
1161
1181
|
export interface AudioBusDefinition {
|
|
@@ -1166,7 +1186,7 @@ export interface AudioBusDefinition {
|
|
|
1166
1186
|
|
|
1167
1187
|
## SYSTEM_PHASES
|
|
1168
1188
|
|
|
1169
|
-
来源:`packages/sdk/src/index.ts:
|
|
1189
|
+
来源:`packages/sdk/src/index.ts:619`
|
|
1170
1190
|
|
|
1171
1191
|
```ts
|
|
1172
1192
|
SYSTEM_PHASES = [
|
|
@@ -1181,7 +1201,7 @@ SYSTEM_PHASES = [
|
|
|
1181
1201
|
|
|
1182
1202
|
## SystemPhase
|
|
1183
1203
|
|
|
1184
|
-
来源:`packages/sdk/src/index.ts:
|
|
1204
|
+
来源:`packages/sdk/src/index.ts:627`
|
|
1185
1205
|
|
|
1186
1206
|
```ts
|
|
1187
1207
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1189,7 +1209,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1189
1209
|
|
|
1190
1210
|
## Geometry
|
|
1191
1211
|
|
|
1192
|
-
来源:`packages/sdk/src/index.ts:
|
|
1212
|
+
来源:`packages/sdk/src/index.ts:628`
|
|
1193
1213
|
|
|
1194
1214
|
```ts
|
|
1195
1215
|
export type Geometry =
|
|
@@ -1200,7 +1220,7 @@ export type Geometry =
|
|
|
1200
1220
|
|
|
1201
1221
|
## GRAPH_TYPES
|
|
1202
1222
|
|
|
1203
|
-
来源:`packages/sdk/src/index.ts:
|
|
1223
|
+
来源:`packages/sdk/src/index.ts:632`
|
|
1204
1224
|
|
|
1205
1225
|
```ts
|
|
1206
1226
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1208,7 +1228,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1208
1228
|
|
|
1209
1229
|
## GraphType
|
|
1210
1230
|
|
|
1211
|
-
来源:`packages/sdk/src/index.ts:
|
|
1231
|
+
来源:`packages/sdk/src/index.ts:633`
|
|
1212
1232
|
|
|
1213
1233
|
```ts
|
|
1214
1234
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1216,7 +1236,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1216
1236
|
|
|
1217
1237
|
## GraphValue
|
|
1218
1238
|
|
|
1219
|
-
来源:`packages/sdk/src/index.ts:
|
|
1239
|
+
来源:`packages/sdk/src/index.ts:634`
|
|
1220
1240
|
|
|
1221
1241
|
```ts
|
|
1222
1242
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1224,7 +1244,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1224
1244
|
|
|
1225
1245
|
## GraphParameter
|
|
1226
1246
|
|
|
1227
|
-
来源:`packages/sdk/src/index.ts:
|
|
1247
|
+
来源:`packages/sdk/src/index.ts:635`
|
|
1228
1248
|
|
|
1229
1249
|
```ts
|
|
1230
1250
|
export interface GraphParameter {
|
|
@@ -1236,7 +1256,7 @@ export interface GraphParameter {
|
|
|
1236
1256
|
|
|
1237
1257
|
## GRAPH_INPUT_TYPES
|
|
1238
1258
|
|
|
1239
|
-
来源:`packages/sdk/src/index.ts:
|
|
1259
|
+
来源:`packages/sdk/src/index.ts:640`
|
|
1240
1260
|
|
|
1241
1261
|
```ts
|
|
1242
1262
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1250,7 +1270,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1250
1270
|
|
|
1251
1271
|
## GraphInputName
|
|
1252
1272
|
|
|
1253
|
-
来源:`packages/sdk/src/index.ts:
|
|
1273
|
+
来源:`packages/sdk/src/index.ts:647`
|
|
1254
1274
|
|
|
1255
1275
|
```ts
|
|
1256
1276
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1258,7 +1278,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1258
1278
|
|
|
1259
1279
|
## GRAPH_OPERATIONS
|
|
1260
1280
|
|
|
1261
|
-
来源:`packages/sdk/src/index.ts:
|
|
1281
|
+
来源:`packages/sdk/src/index.ts:648`
|
|
1262
1282
|
|
|
1263
1283
|
```ts
|
|
1264
1284
|
GRAPH_OPERATIONS = {
|
|
@@ -1270,7 +1290,7 @@ GRAPH_OPERATIONS = {
|
|
|
1270
1290
|
|
|
1271
1291
|
## GraphNode
|
|
1272
1292
|
|
|
1273
|
-
来源:`packages/sdk/src/index.ts:
|
|
1293
|
+
来源:`packages/sdk/src/index.ts:653`
|
|
1274
1294
|
|
|
1275
1295
|
```ts
|
|
1276
1296
|
export type GraphNode =
|
|
@@ -1297,7 +1317,7 @@ export type GraphNode =
|
|
|
1297
1317
|
|
|
1298
1318
|
## Graph
|
|
1299
1319
|
|
|
1300
|
-
来源:`packages/sdk/src/index.ts:
|
|
1320
|
+
来源:`packages/sdk/src/index.ts:673`
|
|
1301
1321
|
|
|
1302
1322
|
```ts
|
|
1303
1323
|
export interface Graph {
|
|
@@ -1309,7 +1329,7 @@ export interface Graph {
|
|
|
1309
1329
|
|
|
1310
1330
|
## MaterialGraphs
|
|
1311
1331
|
|
|
1312
|
-
来源:`packages/sdk/src/index.ts:
|
|
1332
|
+
来源:`packages/sdk/src/index.ts:678`
|
|
1313
1333
|
|
|
1314
1334
|
```ts
|
|
1315
1335
|
export interface MaterialGraphs {
|
|
@@ -1325,7 +1345,7 @@ export interface MaterialGraphs {
|
|
|
1325
1345
|
|
|
1326
1346
|
## VertexGraphs
|
|
1327
1347
|
|
|
1328
|
-
来源:`packages/sdk/src/index.ts:
|
|
1348
|
+
来源:`packages/sdk/src/index.ts:687`
|
|
1329
1349
|
|
|
1330
1350
|
```ts
|
|
1331
1351
|
export interface VertexGraphs {
|
|
@@ -1338,7 +1358,7 @@ export interface VertexGraphs {
|
|
|
1338
1358
|
|
|
1339
1359
|
## MaterialInput
|
|
1340
1360
|
|
|
1341
|
-
来源:`packages/sdk/src/index.ts:
|
|
1361
|
+
来源:`packages/sdk/src/index.ts:693`
|
|
1342
1362
|
|
|
1343
1363
|
```ts
|
|
1344
1364
|
export interface MaterialInput {
|
|
@@ -1372,7 +1392,7 @@ export interface MaterialInput {
|
|
|
1372
1392
|
|
|
1373
1393
|
## MaterialDefinition
|
|
1374
1394
|
|
|
1375
|
-
来源:`packages/sdk/src/index.ts:
|
|
1395
|
+
来源:`packages/sdk/src/index.ts:720`
|
|
1376
1396
|
|
|
1377
1397
|
```ts
|
|
1378
1398
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1382,7 +1402,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1382
1402
|
|
|
1383
1403
|
## PostProcessInput
|
|
1384
1404
|
|
|
1385
|
-
来源:`packages/sdk/src/index.ts:
|
|
1405
|
+
来源:`packages/sdk/src/index.ts:723`
|
|
1386
1406
|
|
|
1387
1407
|
```ts
|
|
1388
1408
|
export interface PostProcessInput {
|
|
@@ -1397,7 +1417,7 @@ export interface PostProcessInput {
|
|
|
1397
1417
|
|
|
1398
1418
|
## PostProcessDefinition
|
|
1399
1419
|
|
|
1400
|
-
来源:`packages/sdk/src/index.ts:
|
|
1420
|
+
来源:`packages/sdk/src/index.ts:731`
|
|
1401
1421
|
|
|
1402
1422
|
```ts
|
|
1403
1423
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1407,7 +1427,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1407
1427
|
|
|
1408
1428
|
## ComputeInput
|
|
1409
1429
|
|
|
1410
|
-
来源:`packages/sdk/src/index.ts:
|
|
1430
|
+
来源:`packages/sdk/src/index.ts:734`
|
|
1411
1431
|
|
|
1412
1432
|
```ts
|
|
1413
1433
|
export interface ComputeInput {
|
|
@@ -1423,7 +1443,7 @@ export interface ComputeInput {
|
|
|
1423
1443
|
|
|
1424
1444
|
## ComputeDefinition
|
|
1425
1445
|
|
|
1426
|
-
来源:`packages/sdk/src/index.ts:
|
|
1446
|
+
来源:`packages/sdk/src/index.ts:743`
|
|
1427
1447
|
|
|
1428
1448
|
```ts
|
|
1429
1449
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1433,7 +1453,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1433
1453
|
|
|
1434
1454
|
## AssetInput
|
|
1435
1455
|
|
|
1436
|
-
来源:`packages/sdk/src/index.ts:
|
|
1456
|
+
来源:`packages/sdk/src/index.ts:746`
|
|
1437
1457
|
|
|
1438
1458
|
```ts
|
|
1439
1459
|
export interface AssetInput {
|
|
@@ -1450,7 +1470,7 @@ export interface AssetInput {
|
|
|
1450
1470
|
|
|
1451
1471
|
## AssetDefinition
|
|
1452
1472
|
|
|
1453
|
-
来源:`packages/sdk/src/index.ts:
|
|
1473
|
+
来源:`packages/sdk/src/index.ts:756`
|
|
1454
1474
|
|
|
1455
1475
|
```ts
|
|
1456
1476
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1460,7 +1480,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1460
1480
|
|
|
1461
1481
|
## MeshDefinition
|
|
1462
1482
|
|
|
1463
|
-
来源:`packages/sdk/src/index.ts:
|
|
1483
|
+
来源:`packages/sdk/src/index.ts:759`
|
|
1464
1484
|
|
|
1465
1485
|
```ts
|
|
1466
1486
|
export interface MeshDefinition {
|
|
@@ -1473,7 +1493,7 @@ export interface MeshDefinition {
|
|
|
1473
1493
|
|
|
1474
1494
|
## LightDefinition
|
|
1475
1495
|
|
|
1476
|
-
来源:`packages/sdk/src/index.ts:
|
|
1496
|
+
来源:`packages/sdk/src/index.ts:765`
|
|
1477
1497
|
|
|
1478
1498
|
```ts
|
|
1479
1499
|
export interface LightDefinition {
|
|
@@ -1495,7 +1515,7 @@ export interface LightDefinition {
|
|
|
1495
1515
|
|
|
1496
1516
|
## EntityInput
|
|
1497
1517
|
|
|
1498
|
-
来源:`packages/sdk/src/index.ts:
|
|
1518
|
+
来源:`packages/sdk/src/index.ts:780`
|
|
1499
1519
|
|
|
1500
1520
|
```ts
|
|
1501
1521
|
export interface EntityInput {
|
|
@@ -1514,7 +1534,7 @@ export interface EntityInput {
|
|
|
1514
1534
|
|
|
1515
1535
|
## PrefabInput
|
|
1516
1536
|
|
|
1517
|
-
来源:`packages/sdk/src/index.ts:
|
|
1537
|
+
来源:`packages/sdk/src/index.ts:792`
|
|
1518
1538
|
|
|
1519
1539
|
```ts
|
|
1520
1540
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1524,7 +1544,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1524
1544
|
|
|
1525
1545
|
## PrefabDefinition
|
|
1526
1546
|
|
|
1527
|
-
来源:`packages/sdk/src/index.ts:
|
|
1547
|
+
来源:`packages/sdk/src/index.ts:795`
|
|
1528
1548
|
|
|
1529
1549
|
```ts
|
|
1530
1550
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1534,7 +1554,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1534
1554
|
|
|
1535
1555
|
## SceneInput
|
|
1536
1556
|
|
|
1537
|
-
来源:`packages/sdk/src/index.ts:
|
|
1557
|
+
来源:`packages/sdk/src/index.ts:798`
|
|
1538
1558
|
|
|
1539
1559
|
```ts
|
|
1540
1560
|
export interface SceneInput {
|
|
@@ -1566,7 +1586,7 @@ export interface SceneInput {
|
|
|
1566
1586
|
|
|
1567
1587
|
## SceneDefinition
|
|
1568
1588
|
|
|
1569
|
-
来源:`packages/sdk/src/index.ts:
|
|
1589
|
+
来源:`packages/sdk/src/index.ts:823`
|
|
1570
1590
|
|
|
1571
1591
|
```ts
|
|
1572
1592
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1576,7 +1596,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1576
1596
|
|
|
1577
1597
|
## SystemInput
|
|
1578
1598
|
|
|
1579
|
-
来源:`packages/sdk/src/index.ts:
|
|
1599
|
+
来源:`packages/sdk/src/index.ts:826`
|
|
1580
1600
|
|
|
1581
1601
|
```ts
|
|
1582
1602
|
export interface SystemInput {
|
|
@@ -1593,7 +1613,7 @@ export interface SystemInput {
|
|
|
1593
1613
|
|
|
1594
1614
|
## SystemDefinition
|
|
1595
1615
|
|
|
1596
|
-
来源:`packages/sdk/src/index.ts:
|
|
1616
|
+
来源:`packages/sdk/src/index.ts:836`
|
|
1597
1617
|
|
|
1598
1618
|
```ts
|
|
1599
1619
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1603,7 +1623,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1603
1623
|
|
|
1604
1624
|
## GameInput
|
|
1605
1625
|
|
|
1606
|
-
来源:`packages/sdk/src/index.ts:
|
|
1626
|
+
来源:`packages/sdk/src/index.ts:839`
|
|
1607
1627
|
|
|
1608
1628
|
```ts
|
|
1609
1629
|
export interface GameInput {
|
|
@@ -1629,7 +1649,7 @@ export interface GameInput {
|
|
|
1629
1649
|
|
|
1630
1650
|
## GameDefinition
|
|
1631
1651
|
|
|
1632
|
-
来源:`packages/sdk/src/index.ts:
|
|
1652
|
+
来源:`packages/sdk/src/index.ts:858`
|
|
1633
1653
|
|
|
1634
1654
|
```ts
|
|
1635
1655
|
export interface GameDefinition extends GameInput {
|
|
@@ -1639,7 +1659,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1639
1659
|
|
|
1640
1660
|
## GameInstance
|
|
1641
1661
|
|
|
1642
|
-
来源:`packages/sdk/src/index.ts:
|
|
1662
|
+
来源:`packages/sdk/src/index.ts:861`
|
|
1643
1663
|
|
|
1644
1664
|
```ts
|
|
1645
1665
|
export interface GameInstance {
|
|
@@ -1650,7 +1670,7 @@ export interface GameInstance {
|
|
|
1650
1670
|
|
|
1651
1671
|
## defineComponent
|
|
1652
1672
|
|
|
1653
|
-
来源:`packages/sdk/src/index.ts:
|
|
1673
|
+
来源:`packages/sdk/src/index.ts:865`
|
|
1654
1674
|
|
|
1655
1675
|
```ts
|
|
1656
1676
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1661,7 +1681,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1661
1681
|
|
|
1662
1682
|
## defineMaterial
|
|
1663
1683
|
|
|
1664
|
-
来源:`packages/sdk/src/index.ts:
|
|
1684
|
+
来源:`packages/sdk/src/index.ts:871`
|
|
1665
1685
|
|
|
1666
1686
|
```ts
|
|
1667
1687
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1669,7 +1689,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1669
1689
|
|
|
1670
1690
|
## definePostProcess
|
|
1671
1691
|
|
|
1672
|
-
来源:`packages/sdk/src/index.ts:
|
|
1692
|
+
来源:`packages/sdk/src/index.ts:874`
|
|
1673
1693
|
|
|
1674
1694
|
```ts
|
|
1675
1695
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1677,7 +1697,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1677
1697
|
|
|
1678
1698
|
## defineCompute
|
|
1679
1699
|
|
|
1680
|
-
来源:`packages/sdk/src/index.ts:
|
|
1700
|
+
来源:`packages/sdk/src/index.ts:877`
|
|
1681
1701
|
|
|
1682
1702
|
```ts
|
|
1683
1703
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1685,7 +1705,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1685
1705
|
|
|
1686
1706
|
## defineAsset
|
|
1687
1707
|
|
|
1688
|
-
来源:`packages/sdk/src/index.ts:
|
|
1708
|
+
来源:`packages/sdk/src/index.ts:880`
|
|
1689
1709
|
|
|
1690
1710
|
```ts
|
|
1691
1711
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1693,7 +1713,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1693
1713
|
|
|
1694
1714
|
## definePrefab
|
|
1695
1715
|
|
|
1696
|
-
来源:`packages/sdk/src/index.ts:
|
|
1716
|
+
来源:`packages/sdk/src/index.ts:883`
|
|
1697
1717
|
|
|
1698
1718
|
```ts
|
|
1699
1719
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1701,7 +1721,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1701
1721
|
|
|
1702
1722
|
## defineScene
|
|
1703
1723
|
|
|
1704
|
-
来源:`packages/sdk/src/index.ts:
|
|
1724
|
+
来源:`packages/sdk/src/index.ts:886`
|
|
1705
1725
|
|
|
1706
1726
|
```ts
|
|
1707
1727
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1709,7 +1729,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1709
1729
|
|
|
1710
1730
|
## defineSystem
|
|
1711
1731
|
|
|
1712
|
-
来源:`packages/sdk/src/index.ts:
|
|
1732
|
+
来源:`packages/sdk/src/index.ts:889`
|
|
1713
1733
|
|
|
1714
1734
|
```ts
|
|
1715
1735
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1717,7 +1737,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1717
1737
|
|
|
1718
1738
|
## defineGame
|
|
1719
1739
|
|
|
1720
|
-
来源:`packages/sdk/src/index.ts:
|
|
1740
|
+
来源:`packages/sdk/src/index.ts:892`
|
|
1721
1741
|
|
|
1722
1742
|
```ts
|
|
1723
1743
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1725,7 +1745,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1725
1745
|
|
|
1726
1746
|
## instantiateGame
|
|
1727
1747
|
|
|
1728
|
-
来源:`packages/sdk/src/index.ts:
|
|
1748
|
+
来源:`packages/sdk/src/index.ts:896`
|
|
1729
1749
|
|
|
1730
1750
|
```ts
|
|
1731
1751
|
export function instantiateGame(
|