pelican-engine 0.3.18 → 0.3.20
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 -2
- package/distribution.json +12 -12
- package/docs/STATUS.md +2 -2
- package/docs/api/REFERENCE.md +104 -94
- package/docs/api/index.json +110 -95
- package/docs/npm/GAME-AUTHOR.md +10 -2
- package/engine.manifest.json +1 -1
- package/lib/sdk/index.d.ts +11 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +10 -3
- package/lib/simulation/cloth.js +54 -10
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.20 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.20"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -478,27 +478,37 @@ export interface ClothDefinition {
|
|
|
478
478
|
bending?: boolean;
|
|
479
479
|
anchors?: readonly { index: number; position: Vec3 }[];
|
|
480
480
|
visual?: ClothVisualOptions;
|
|
481
|
+
/** Discrete non-adjacent particle self-contact; defaults to true for new cloth. */
|
|
482
|
+
selfCollisions?: boolean;
|
|
481
483
|
}
|
|
482
484
|
```
|
|
483
485
|
|
|
484
486
|
## ClothContact
|
|
485
487
|
|
|
486
|
-
来源:`packages/sdk/src/index.ts:
|
|
488
|
+
来源:`packages/sdk/src/index.ts:257`
|
|
487
489
|
|
|
488
490
|
```ts
|
|
489
491
|
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }
|
|
490
492
|
```
|
|
491
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
|
+
|
|
492
502
|
## ClothState
|
|
493
503
|
|
|
494
|
-
来源:`packages/sdk/src/index.ts:
|
|
504
|
+
来源:`packages/sdk/src/index.ts:259`
|
|
495
505
|
|
|
496
506
|
```ts
|
|
497
507
|
export interface ClothState {
|
|
498
|
-
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
508
|
+
tick: number; simulatedSeconds: number; disposed: boolean; selfCollisions: boolean;
|
|
499
509
|
positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];
|
|
500
510
|
anchors: { index: number; position: Vec3 }[];
|
|
501
|
-
contacts: ClothContact[];
|
|
511
|
+
contacts: ClothContact[]; selfContacts: ClothSelfContact[];
|
|
502
512
|
maxDistanceError: number;
|
|
503
513
|
resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };
|
|
504
514
|
}
|
|
@@ -506,7 +516,7 @@ export interface ClothState {
|
|
|
506
516
|
|
|
507
517
|
## ClothVisualState
|
|
508
518
|
|
|
509
|
-
来源:`packages/sdk/src/index.ts:
|
|
519
|
+
来源:`packages/sdk/src/index.ts:267`
|
|
510
520
|
|
|
511
521
|
```ts
|
|
512
522
|
export interface ClothVisualState {
|
|
@@ -517,7 +527,7 @@ export interface ClothVisualState {
|
|
|
517
527
|
|
|
518
528
|
## ClothService
|
|
519
529
|
|
|
520
|
-
来源:`packages/sdk/src/index.ts:
|
|
530
|
+
来源:`packages/sdk/src/index.ts:271`
|
|
521
531
|
|
|
522
532
|
```ts
|
|
523
533
|
export interface ClothService {
|
|
@@ -537,7 +547,7 @@ export interface ClothService {
|
|
|
537
547
|
|
|
538
548
|
## NavigationCell
|
|
539
549
|
|
|
540
|
-
来源:`packages/sdk/src/index.ts:
|
|
550
|
+
来源:`packages/sdk/src/index.ts:287`
|
|
541
551
|
|
|
542
552
|
```ts
|
|
543
553
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -545,7 +555,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
545
555
|
|
|
546
556
|
## NavigationObstacleUpdate
|
|
547
557
|
|
|
548
|
-
来源:`packages/sdk/src/index.ts:
|
|
558
|
+
来源:`packages/sdk/src/index.ts:289`
|
|
549
559
|
|
|
550
560
|
```ts
|
|
551
561
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -553,7 +563,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
553
563
|
|
|
554
564
|
## NavigationGrid
|
|
555
565
|
|
|
556
|
-
来源:`packages/sdk/src/index.ts:
|
|
566
|
+
来源:`packages/sdk/src/index.ts:290`
|
|
557
567
|
|
|
558
568
|
```ts
|
|
559
569
|
export interface NavigationGrid {
|
|
@@ -569,7 +579,7 @@ export interface NavigationGrid {
|
|
|
569
579
|
|
|
570
580
|
## NavigationService
|
|
571
581
|
|
|
572
|
-
来源:`packages/sdk/src/index.ts:
|
|
582
|
+
来源:`packages/sdk/src/index.ts:299`
|
|
573
583
|
|
|
574
584
|
```ts
|
|
575
585
|
export interface NavigationService {
|
|
@@ -588,7 +598,7 @@ export interface NavigationService {
|
|
|
588
598
|
|
|
589
599
|
## RenderMode
|
|
590
600
|
|
|
591
|
-
来源:`packages/sdk/src/index.ts:
|
|
601
|
+
来源:`packages/sdk/src/index.ts:311`
|
|
592
602
|
|
|
593
603
|
```ts
|
|
594
604
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -596,7 +606,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
596
606
|
|
|
597
607
|
## RenderCapabilities
|
|
598
608
|
|
|
599
|
-
来源:`packages/sdk/src/index.ts:
|
|
609
|
+
来源:`packages/sdk/src/index.ts:312`
|
|
600
610
|
|
|
601
611
|
```ts
|
|
602
612
|
export interface RenderCapabilities {
|
|
@@ -608,7 +618,7 @@ export interface RenderCapabilities {
|
|
|
608
618
|
|
|
609
619
|
## RenderSettings
|
|
610
620
|
|
|
611
|
-
来源:`packages/sdk/src/index.ts:
|
|
621
|
+
来源:`packages/sdk/src/index.ts:317`
|
|
612
622
|
|
|
613
623
|
```ts
|
|
614
624
|
export interface RenderSettings {
|
|
@@ -626,7 +636,7 @@ export interface RenderSettings {
|
|
|
626
636
|
|
|
627
637
|
## RenderService
|
|
628
638
|
|
|
629
|
-
来源:`packages/sdk/src/index.ts:
|
|
639
|
+
来源:`packages/sdk/src/index.ts:328`
|
|
630
640
|
|
|
631
641
|
```ts
|
|
632
642
|
export interface RenderService {
|
|
@@ -643,7 +653,7 @@ export interface RenderService {
|
|
|
643
653
|
|
|
644
654
|
## MaterialBufferInput
|
|
645
655
|
|
|
646
|
-
来源:`packages/sdk/src/index.ts:
|
|
656
|
+
来源:`packages/sdk/src/index.ts:338`
|
|
647
657
|
|
|
648
658
|
```ts
|
|
649
659
|
export interface MaterialBufferInput {
|
|
@@ -659,7 +669,7 @@ export interface MaterialBufferInput {
|
|
|
659
669
|
|
|
660
670
|
## RenderBufferReference
|
|
661
671
|
|
|
662
|
-
来源:`packages/sdk/src/index.ts:
|
|
672
|
+
来源:`packages/sdk/src/index.ts:347`
|
|
663
673
|
|
|
664
674
|
```ts
|
|
665
675
|
export interface RenderBufferReference {
|
|
@@ -671,7 +681,7 @@ export interface RenderBufferReference {
|
|
|
671
681
|
|
|
672
682
|
## RenderBufferBindings
|
|
673
683
|
|
|
674
|
-
来源:`packages/sdk/src/index.ts:
|
|
684
|
+
来源:`packages/sdk/src/index.ts:352`
|
|
675
685
|
|
|
676
686
|
```ts
|
|
677
687
|
export interface RenderBufferBindings {
|
|
@@ -683,7 +693,7 @@ export interface RenderBufferBindings {
|
|
|
683
693
|
|
|
684
694
|
## MaterialTextureInput
|
|
685
695
|
|
|
686
|
-
来源:`packages/sdk/src/index.ts:
|
|
696
|
+
来源:`packages/sdk/src/index.ts:357`
|
|
687
697
|
|
|
688
698
|
```ts
|
|
689
699
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -696,7 +706,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
696
706
|
|
|
697
707
|
## RenderTextureReference
|
|
698
708
|
|
|
699
|
-
来源:`packages/sdk/src/index.ts:
|
|
709
|
+
来源:`packages/sdk/src/index.ts:363`
|
|
700
710
|
|
|
701
711
|
```ts
|
|
702
712
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -707,7 +717,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
707
717
|
|
|
708
718
|
## RenderTextureBindings
|
|
709
719
|
|
|
710
|
-
来源:`packages/sdk/src/index.ts:
|
|
720
|
+
来源:`packages/sdk/src/index.ts:367`
|
|
711
721
|
|
|
712
722
|
```ts
|
|
713
723
|
export interface RenderTextureBindings {
|
|
@@ -719,7 +729,7 @@ export interface RenderTextureBindings {
|
|
|
719
729
|
|
|
720
730
|
## PostProcessState
|
|
721
731
|
|
|
722
|
-
来源:`packages/sdk/src/index.ts:
|
|
732
|
+
来源:`packages/sdk/src/index.ts:372`
|
|
723
733
|
|
|
724
734
|
```ts
|
|
725
735
|
export interface PostProcessState {
|
|
@@ -731,7 +741,7 @@ export interface PostProcessState {
|
|
|
731
741
|
|
|
732
742
|
## PostProcessService
|
|
733
743
|
|
|
734
|
-
来源:`packages/sdk/src/index.ts:
|
|
744
|
+
来源:`packages/sdk/src/index.ts:377`
|
|
735
745
|
|
|
736
746
|
```ts
|
|
737
747
|
export interface PostProcessService {
|
|
@@ -748,7 +758,7 @@ export interface PostProcessService {
|
|
|
748
758
|
|
|
749
759
|
## ComputeBufferHandle
|
|
750
760
|
|
|
751
|
-
来源:`packages/sdk/src/index.ts:
|
|
761
|
+
来源:`packages/sdk/src/index.ts:387`
|
|
752
762
|
|
|
753
763
|
```ts
|
|
754
764
|
export interface ComputeBufferHandle {
|
|
@@ -760,7 +770,7 @@ export interface ComputeBufferHandle {
|
|
|
760
770
|
|
|
761
771
|
## ComputeTaskHandle
|
|
762
772
|
|
|
763
|
-
来源:`packages/sdk/src/index.ts:
|
|
773
|
+
来源:`packages/sdk/src/index.ts:392`
|
|
764
774
|
|
|
765
775
|
```ts
|
|
766
776
|
export interface ComputeTaskHandle {
|
|
@@ -771,7 +781,7 @@ export interface ComputeTaskHandle {
|
|
|
771
781
|
|
|
772
782
|
## ComputeBufferInput
|
|
773
783
|
|
|
774
|
-
来源:`packages/sdk/src/index.ts:
|
|
784
|
+
来源:`packages/sdk/src/index.ts:396`
|
|
775
785
|
|
|
776
786
|
```ts
|
|
777
787
|
export interface ComputeBufferInput {
|
|
@@ -784,7 +794,7 @@ export interface ComputeBufferInput {
|
|
|
784
794
|
|
|
785
795
|
## ComputeTextureHandle
|
|
786
796
|
|
|
787
|
-
来源:`packages/sdk/src/index.ts:
|
|
797
|
+
来源:`packages/sdk/src/index.ts:402`
|
|
788
798
|
|
|
789
799
|
```ts
|
|
790
800
|
export interface ComputeTextureHandle {
|
|
@@ -797,7 +807,7 @@ export interface ComputeTextureHandle {
|
|
|
797
807
|
|
|
798
808
|
## ComputeTextureSize
|
|
799
809
|
|
|
800
|
-
来源:`packages/sdk/src/index.ts:
|
|
810
|
+
来源:`packages/sdk/src/index.ts:408`
|
|
801
811
|
|
|
802
812
|
```ts
|
|
803
813
|
export interface ComputeTextureSize {
|
|
@@ -808,7 +818,7 @@ export interface ComputeTextureSize {
|
|
|
808
818
|
|
|
809
819
|
## ComputeTextureDataInput
|
|
810
820
|
|
|
811
|
-
来源:`packages/sdk/src/index.ts:
|
|
821
|
+
来源:`packages/sdk/src/index.ts:412`
|
|
812
822
|
|
|
813
823
|
```ts
|
|
814
824
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -821,7 +831,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
821
831
|
|
|
822
832
|
## ComputeTextureAssetInput
|
|
823
833
|
|
|
824
|
-
来源:`packages/sdk/src/index.ts:
|
|
834
|
+
来源:`packages/sdk/src/index.ts:418`
|
|
825
835
|
|
|
826
836
|
```ts
|
|
827
837
|
export interface ComputeTextureAssetInput {
|
|
@@ -835,7 +845,7 @@ export interface ComputeTextureAssetInput {
|
|
|
835
845
|
|
|
836
846
|
## ComputeTextureInput
|
|
837
847
|
|
|
838
|
-
来源:`packages/sdk/src/index.ts:
|
|
848
|
+
来源:`packages/sdk/src/index.ts:425`
|
|
839
849
|
|
|
840
850
|
```ts
|
|
841
851
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -843,7 +853,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
843
853
|
|
|
844
854
|
## ComputeTextureBinding
|
|
845
855
|
|
|
846
|
-
来源:`packages/sdk/src/index.ts:
|
|
856
|
+
来源:`packages/sdk/src/index.ts:426`
|
|
847
857
|
|
|
848
858
|
```ts
|
|
849
859
|
export interface ComputeTextureBinding {
|
|
@@ -856,7 +866,7 @@ export interface ComputeTextureBinding {
|
|
|
856
866
|
|
|
857
867
|
## ComputeDispatchInput
|
|
858
868
|
|
|
859
|
-
来源:`packages/sdk/src/index.ts:
|
|
869
|
+
来源:`packages/sdk/src/index.ts:432`
|
|
860
870
|
|
|
861
871
|
```ts
|
|
862
872
|
export interface ComputeDispatchInput {
|
|
@@ -875,7 +885,7 @@ export interface ComputeDispatchInput {
|
|
|
875
885
|
|
|
876
886
|
## ComputeTaskState
|
|
877
887
|
|
|
878
|
-
来源:`packages/sdk/src/index.ts:
|
|
888
|
+
来源:`packages/sdk/src/index.ts:444`
|
|
879
889
|
|
|
880
890
|
```ts
|
|
881
891
|
export interface ComputeTaskState {
|
|
@@ -886,7 +896,7 @@ export interface ComputeTaskState {
|
|
|
886
896
|
|
|
887
897
|
## ComputeService
|
|
888
898
|
|
|
889
|
-
来源:`packages/sdk/src/index.ts:
|
|
899
|
+
来源:`packages/sdk/src/index.ts:448`
|
|
890
900
|
|
|
891
901
|
```ts
|
|
892
902
|
export interface ComputeService {
|
|
@@ -913,7 +923,7 @@ export interface ComputeService {
|
|
|
913
923
|
|
|
914
924
|
## InputService
|
|
915
925
|
|
|
916
|
-
来源:`packages/sdk/src/index.ts:
|
|
926
|
+
来源:`packages/sdk/src/index.ts:468`
|
|
917
927
|
|
|
918
928
|
```ts
|
|
919
929
|
export interface InputService {
|
|
@@ -926,7 +936,7 @@ export interface InputService {
|
|
|
926
936
|
|
|
927
937
|
## PhysicsService
|
|
928
938
|
|
|
929
|
-
来源:`packages/sdk/src/index.ts:
|
|
939
|
+
来源:`packages/sdk/src/index.ts:474`
|
|
930
940
|
|
|
931
941
|
```ts
|
|
932
942
|
export interface PhysicsService {
|
|
@@ -955,7 +965,7 @@ export interface PhysicsService {
|
|
|
955
965
|
|
|
956
966
|
## AnimationService
|
|
957
967
|
|
|
958
|
-
来源:`packages/sdk/src/index.ts:
|
|
968
|
+
来源:`packages/sdk/src/index.ts:496`
|
|
959
969
|
|
|
960
970
|
```ts
|
|
961
971
|
export interface AnimationService {
|
|
@@ -974,7 +984,7 @@ export interface AnimationService {
|
|
|
974
984
|
|
|
975
985
|
## CameraService
|
|
976
986
|
|
|
977
|
-
来源:`packages/sdk/src/index.ts:
|
|
987
|
+
来源:`packages/sdk/src/index.ts:508`
|
|
978
988
|
|
|
979
989
|
```ts
|
|
980
990
|
export interface CameraService {
|
|
@@ -994,7 +1004,7 @@ export interface CameraService {
|
|
|
994
1004
|
|
|
995
1005
|
## UIService
|
|
996
1006
|
|
|
997
|
-
来源:`packages/sdk/src/index.ts:
|
|
1007
|
+
来源:`packages/sdk/src/index.ts:521`
|
|
998
1008
|
|
|
999
1009
|
```ts
|
|
1000
1010
|
export interface UIService {
|
|
@@ -1006,7 +1016,7 @@ export interface UIService {
|
|
|
1006
1016
|
|
|
1007
1017
|
## AudioService
|
|
1008
1018
|
|
|
1009
|
-
来源:`packages/sdk/src/index.ts:
|
|
1019
|
+
来源:`packages/sdk/src/index.ts:526`
|
|
1010
1020
|
|
|
1011
1021
|
```ts
|
|
1012
1022
|
export interface AudioService {
|
|
@@ -1028,7 +1038,7 @@ export interface AudioService {
|
|
|
1028
1038
|
|
|
1029
1039
|
## StorageService
|
|
1030
1040
|
|
|
1031
|
-
来源:`packages/sdk/src/index.ts:
|
|
1041
|
+
来源:`packages/sdk/src/index.ts:541`
|
|
1032
1042
|
|
|
1033
1043
|
```ts
|
|
1034
1044
|
export interface StorageService {
|
|
@@ -1044,7 +1054,7 @@ export interface StorageService {
|
|
|
1044
1054
|
|
|
1045
1055
|
## SceneService
|
|
1046
1056
|
|
|
1047
|
-
来源:`packages/sdk/src/index.ts:
|
|
1057
|
+
来源:`packages/sdk/src/index.ts:550`
|
|
1048
1058
|
|
|
1049
1059
|
```ts
|
|
1050
1060
|
export interface SceneService {
|
|
@@ -1055,7 +1065,7 @@ export interface SceneService {
|
|
|
1055
1065
|
|
|
1056
1066
|
## ModelDefinition
|
|
1057
1067
|
|
|
1058
|
-
来源:`packages/sdk/src/index.ts:
|
|
1068
|
+
来源:`packages/sdk/src/index.ts:554`
|
|
1059
1069
|
|
|
1060
1070
|
```ts
|
|
1061
1071
|
export interface ModelDefinition {
|
|
@@ -1075,7 +1085,7 @@ export interface ModelDefinition {
|
|
|
1075
1085
|
|
|
1076
1086
|
## RigidBodyDefinition
|
|
1077
1087
|
|
|
1078
|
-
来源:`packages/sdk/src/index.ts:
|
|
1088
|
+
来源:`packages/sdk/src/index.ts:567`
|
|
1079
1089
|
|
|
1080
1090
|
```ts
|
|
1081
1091
|
export interface RigidBodyDefinition {
|
|
@@ -1096,7 +1106,7 @@ export interface RigidBodyDefinition {
|
|
|
1096
1106
|
|
|
1097
1107
|
## CharacterDefinition
|
|
1098
1108
|
|
|
1099
|
-
来源:`packages/sdk/src/index.ts:
|
|
1109
|
+
来源:`packages/sdk/src/index.ts:581`
|
|
1100
1110
|
|
|
1101
1111
|
```ts
|
|
1102
1112
|
export interface CharacterDefinition {
|
|
@@ -1111,7 +1121,7 @@ export interface CharacterDefinition {
|
|
|
1111
1121
|
|
|
1112
1122
|
## UIElementDefinition
|
|
1113
1123
|
|
|
1114
|
-
来源:`packages/sdk/src/index.ts:
|
|
1124
|
+
来源:`packages/sdk/src/index.ts:589`
|
|
1115
1125
|
|
|
1116
1126
|
```ts
|
|
1117
1127
|
export interface UIElementDefinition {
|
|
@@ -1131,7 +1141,7 @@ export interface UIElementDefinition {
|
|
|
1131
1141
|
|
|
1132
1142
|
## SoundDefinition
|
|
1133
1143
|
|
|
1134
|
-
来源:`packages/sdk/src/index.ts:
|
|
1144
|
+
来源:`packages/sdk/src/index.ts:602`
|
|
1135
1145
|
|
|
1136
1146
|
```ts
|
|
1137
1147
|
export interface SoundDefinition {
|
|
@@ -1145,7 +1155,7 @@ export interface SoundDefinition {
|
|
|
1145
1155
|
|
|
1146
1156
|
## AudioBusDefinition
|
|
1147
1157
|
|
|
1148
|
-
来源:`packages/sdk/src/index.ts:
|
|
1158
|
+
来源:`packages/sdk/src/index.ts:609`
|
|
1149
1159
|
|
|
1150
1160
|
```ts
|
|
1151
1161
|
export interface AudioBusDefinition {
|
|
@@ -1156,7 +1166,7 @@ export interface AudioBusDefinition {
|
|
|
1156
1166
|
|
|
1157
1167
|
## SYSTEM_PHASES
|
|
1158
1168
|
|
|
1159
|
-
来源:`packages/sdk/src/index.ts:
|
|
1169
|
+
来源:`packages/sdk/src/index.ts:613`
|
|
1160
1170
|
|
|
1161
1171
|
```ts
|
|
1162
1172
|
SYSTEM_PHASES = [
|
|
@@ -1171,7 +1181,7 @@ SYSTEM_PHASES = [
|
|
|
1171
1181
|
|
|
1172
1182
|
## SystemPhase
|
|
1173
1183
|
|
|
1174
|
-
来源:`packages/sdk/src/index.ts:
|
|
1184
|
+
来源:`packages/sdk/src/index.ts:621`
|
|
1175
1185
|
|
|
1176
1186
|
```ts
|
|
1177
1187
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1179,7 +1189,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1179
1189
|
|
|
1180
1190
|
## Geometry
|
|
1181
1191
|
|
|
1182
|
-
来源:`packages/sdk/src/index.ts:
|
|
1192
|
+
来源:`packages/sdk/src/index.ts:622`
|
|
1183
1193
|
|
|
1184
1194
|
```ts
|
|
1185
1195
|
export type Geometry =
|
|
@@ -1190,7 +1200,7 @@ export type Geometry =
|
|
|
1190
1200
|
|
|
1191
1201
|
## GRAPH_TYPES
|
|
1192
1202
|
|
|
1193
|
-
来源:`packages/sdk/src/index.ts:
|
|
1203
|
+
来源:`packages/sdk/src/index.ts:626`
|
|
1194
1204
|
|
|
1195
1205
|
```ts
|
|
1196
1206
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1198,7 +1208,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1198
1208
|
|
|
1199
1209
|
## GraphType
|
|
1200
1210
|
|
|
1201
|
-
来源:`packages/sdk/src/index.ts:
|
|
1211
|
+
来源:`packages/sdk/src/index.ts:627`
|
|
1202
1212
|
|
|
1203
1213
|
```ts
|
|
1204
1214
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1206,7 +1216,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1206
1216
|
|
|
1207
1217
|
## GraphValue
|
|
1208
1218
|
|
|
1209
|
-
来源:`packages/sdk/src/index.ts:
|
|
1219
|
+
来源:`packages/sdk/src/index.ts:628`
|
|
1210
1220
|
|
|
1211
1221
|
```ts
|
|
1212
1222
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1214,7 +1224,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1214
1224
|
|
|
1215
1225
|
## GraphParameter
|
|
1216
1226
|
|
|
1217
|
-
来源:`packages/sdk/src/index.ts:
|
|
1227
|
+
来源:`packages/sdk/src/index.ts:629`
|
|
1218
1228
|
|
|
1219
1229
|
```ts
|
|
1220
1230
|
export interface GraphParameter {
|
|
@@ -1226,7 +1236,7 @@ export interface GraphParameter {
|
|
|
1226
1236
|
|
|
1227
1237
|
## GRAPH_INPUT_TYPES
|
|
1228
1238
|
|
|
1229
|
-
来源:`packages/sdk/src/index.ts:
|
|
1239
|
+
来源:`packages/sdk/src/index.ts:634`
|
|
1230
1240
|
|
|
1231
1241
|
```ts
|
|
1232
1242
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1240,7 +1250,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1240
1250
|
|
|
1241
1251
|
## GraphInputName
|
|
1242
1252
|
|
|
1243
|
-
来源:`packages/sdk/src/index.ts:
|
|
1253
|
+
来源:`packages/sdk/src/index.ts:641`
|
|
1244
1254
|
|
|
1245
1255
|
```ts
|
|
1246
1256
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1248,7 +1258,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1248
1258
|
|
|
1249
1259
|
## GRAPH_OPERATIONS
|
|
1250
1260
|
|
|
1251
|
-
来源:`packages/sdk/src/index.ts:
|
|
1261
|
+
来源:`packages/sdk/src/index.ts:642`
|
|
1252
1262
|
|
|
1253
1263
|
```ts
|
|
1254
1264
|
GRAPH_OPERATIONS = {
|
|
@@ -1260,7 +1270,7 @@ GRAPH_OPERATIONS = {
|
|
|
1260
1270
|
|
|
1261
1271
|
## GraphNode
|
|
1262
1272
|
|
|
1263
|
-
来源:`packages/sdk/src/index.ts:
|
|
1273
|
+
来源:`packages/sdk/src/index.ts:647`
|
|
1264
1274
|
|
|
1265
1275
|
```ts
|
|
1266
1276
|
export type GraphNode =
|
|
@@ -1287,7 +1297,7 @@ export type GraphNode =
|
|
|
1287
1297
|
|
|
1288
1298
|
## Graph
|
|
1289
1299
|
|
|
1290
|
-
来源:`packages/sdk/src/index.ts:
|
|
1300
|
+
来源:`packages/sdk/src/index.ts:667`
|
|
1291
1301
|
|
|
1292
1302
|
```ts
|
|
1293
1303
|
export interface Graph {
|
|
@@ -1299,7 +1309,7 @@ export interface Graph {
|
|
|
1299
1309
|
|
|
1300
1310
|
## MaterialGraphs
|
|
1301
1311
|
|
|
1302
|
-
来源:`packages/sdk/src/index.ts:
|
|
1312
|
+
来源:`packages/sdk/src/index.ts:672`
|
|
1303
1313
|
|
|
1304
1314
|
```ts
|
|
1305
1315
|
export interface MaterialGraphs {
|
|
@@ -1315,7 +1325,7 @@ export interface MaterialGraphs {
|
|
|
1315
1325
|
|
|
1316
1326
|
## VertexGraphs
|
|
1317
1327
|
|
|
1318
|
-
来源:`packages/sdk/src/index.ts:
|
|
1328
|
+
来源:`packages/sdk/src/index.ts:681`
|
|
1319
1329
|
|
|
1320
1330
|
```ts
|
|
1321
1331
|
export interface VertexGraphs {
|
|
@@ -1328,7 +1338,7 @@ export interface VertexGraphs {
|
|
|
1328
1338
|
|
|
1329
1339
|
## MaterialInput
|
|
1330
1340
|
|
|
1331
|
-
来源:`packages/sdk/src/index.ts:
|
|
1341
|
+
来源:`packages/sdk/src/index.ts:687`
|
|
1332
1342
|
|
|
1333
1343
|
```ts
|
|
1334
1344
|
export interface MaterialInput {
|
|
@@ -1362,7 +1372,7 @@ export interface MaterialInput {
|
|
|
1362
1372
|
|
|
1363
1373
|
## MaterialDefinition
|
|
1364
1374
|
|
|
1365
|
-
来源:`packages/sdk/src/index.ts:
|
|
1375
|
+
来源:`packages/sdk/src/index.ts:714`
|
|
1366
1376
|
|
|
1367
1377
|
```ts
|
|
1368
1378
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1372,7 +1382,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1372
1382
|
|
|
1373
1383
|
## PostProcessInput
|
|
1374
1384
|
|
|
1375
|
-
来源:`packages/sdk/src/index.ts:
|
|
1385
|
+
来源:`packages/sdk/src/index.ts:717`
|
|
1376
1386
|
|
|
1377
1387
|
```ts
|
|
1378
1388
|
export interface PostProcessInput {
|
|
@@ -1387,7 +1397,7 @@ export interface PostProcessInput {
|
|
|
1387
1397
|
|
|
1388
1398
|
## PostProcessDefinition
|
|
1389
1399
|
|
|
1390
|
-
来源:`packages/sdk/src/index.ts:
|
|
1400
|
+
来源:`packages/sdk/src/index.ts:725`
|
|
1391
1401
|
|
|
1392
1402
|
```ts
|
|
1393
1403
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1397,7 +1407,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1397
1407
|
|
|
1398
1408
|
## ComputeInput
|
|
1399
1409
|
|
|
1400
|
-
来源:`packages/sdk/src/index.ts:
|
|
1410
|
+
来源:`packages/sdk/src/index.ts:728`
|
|
1401
1411
|
|
|
1402
1412
|
```ts
|
|
1403
1413
|
export interface ComputeInput {
|
|
@@ -1413,7 +1423,7 @@ export interface ComputeInput {
|
|
|
1413
1423
|
|
|
1414
1424
|
## ComputeDefinition
|
|
1415
1425
|
|
|
1416
|
-
来源:`packages/sdk/src/index.ts:
|
|
1426
|
+
来源:`packages/sdk/src/index.ts:737`
|
|
1417
1427
|
|
|
1418
1428
|
```ts
|
|
1419
1429
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1423,7 +1433,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1423
1433
|
|
|
1424
1434
|
## AssetInput
|
|
1425
1435
|
|
|
1426
|
-
来源:`packages/sdk/src/index.ts:
|
|
1436
|
+
来源:`packages/sdk/src/index.ts:740`
|
|
1427
1437
|
|
|
1428
1438
|
```ts
|
|
1429
1439
|
export interface AssetInput {
|
|
@@ -1440,7 +1450,7 @@ export interface AssetInput {
|
|
|
1440
1450
|
|
|
1441
1451
|
## AssetDefinition
|
|
1442
1452
|
|
|
1443
|
-
来源:`packages/sdk/src/index.ts:
|
|
1453
|
+
来源:`packages/sdk/src/index.ts:750`
|
|
1444
1454
|
|
|
1445
1455
|
```ts
|
|
1446
1456
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1450,7 +1460,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1450
1460
|
|
|
1451
1461
|
## MeshDefinition
|
|
1452
1462
|
|
|
1453
|
-
来源:`packages/sdk/src/index.ts:
|
|
1463
|
+
来源:`packages/sdk/src/index.ts:753`
|
|
1454
1464
|
|
|
1455
1465
|
```ts
|
|
1456
1466
|
export interface MeshDefinition {
|
|
@@ -1463,7 +1473,7 @@ export interface MeshDefinition {
|
|
|
1463
1473
|
|
|
1464
1474
|
## LightDefinition
|
|
1465
1475
|
|
|
1466
|
-
来源:`packages/sdk/src/index.ts:
|
|
1476
|
+
来源:`packages/sdk/src/index.ts:759`
|
|
1467
1477
|
|
|
1468
1478
|
```ts
|
|
1469
1479
|
export interface LightDefinition {
|
|
@@ -1485,7 +1495,7 @@ export interface LightDefinition {
|
|
|
1485
1495
|
|
|
1486
1496
|
## EntityInput
|
|
1487
1497
|
|
|
1488
|
-
来源:`packages/sdk/src/index.ts:
|
|
1498
|
+
来源:`packages/sdk/src/index.ts:774`
|
|
1489
1499
|
|
|
1490
1500
|
```ts
|
|
1491
1501
|
export interface EntityInput {
|
|
@@ -1504,7 +1514,7 @@ export interface EntityInput {
|
|
|
1504
1514
|
|
|
1505
1515
|
## PrefabInput
|
|
1506
1516
|
|
|
1507
|
-
来源:`packages/sdk/src/index.ts:
|
|
1517
|
+
来源:`packages/sdk/src/index.ts:786`
|
|
1508
1518
|
|
|
1509
1519
|
```ts
|
|
1510
1520
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1514,7 +1524,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1514
1524
|
|
|
1515
1525
|
## PrefabDefinition
|
|
1516
1526
|
|
|
1517
|
-
来源:`packages/sdk/src/index.ts:
|
|
1527
|
+
来源:`packages/sdk/src/index.ts:789`
|
|
1518
1528
|
|
|
1519
1529
|
```ts
|
|
1520
1530
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1524,7 +1534,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1524
1534
|
|
|
1525
1535
|
## SceneInput
|
|
1526
1536
|
|
|
1527
|
-
来源:`packages/sdk/src/index.ts:
|
|
1537
|
+
来源:`packages/sdk/src/index.ts:792`
|
|
1528
1538
|
|
|
1529
1539
|
```ts
|
|
1530
1540
|
export interface SceneInput {
|
|
@@ -1556,7 +1566,7 @@ export interface SceneInput {
|
|
|
1556
1566
|
|
|
1557
1567
|
## SceneDefinition
|
|
1558
1568
|
|
|
1559
|
-
来源:`packages/sdk/src/index.ts:
|
|
1569
|
+
来源:`packages/sdk/src/index.ts:817`
|
|
1560
1570
|
|
|
1561
1571
|
```ts
|
|
1562
1572
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1566,7 +1576,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1566
1576
|
|
|
1567
1577
|
## SystemInput
|
|
1568
1578
|
|
|
1569
|
-
来源:`packages/sdk/src/index.ts:
|
|
1579
|
+
来源:`packages/sdk/src/index.ts:820`
|
|
1570
1580
|
|
|
1571
1581
|
```ts
|
|
1572
1582
|
export interface SystemInput {
|
|
@@ -1583,7 +1593,7 @@ export interface SystemInput {
|
|
|
1583
1593
|
|
|
1584
1594
|
## SystemDefinition
|
|
1585
1595
|
|
|
1586
|
-
来源:`packages/sdk/src/index.ts:
|
|
1596
|
+
来源:`packages/sdk/src/index.ts:830`
|
|
1587
1597
|
|
|
1588
1598
|
```ts
|
|
1589
1599
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1593,7 +1603,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1593
1603
|
|
|
1594
1604
|
## GameInput
|
|
1595
1605
|
|
|
1596
|
-
来源:`packages/sdk/src/index.ts:
|
|
1606
|
+
来源:`packages/sdk/src/index.ts:833`
|
|
1597
1607
|
|
|
1598
1608
|
```ts
|
|
1599
1609
|
export interface GameInput {
|
|
@@ -1619,7 +1629,7 @@ export interface GameInput {
|
|
|
1619
1629
|
|
|
1620
1630
|
## GameDefinition
|
|
1621
1631
|
|
|
1622
|
-
来源:`packages/sdk/src/index.ts:
|
|
1632
|
+
来源:`packages/sdk/src/index.ts:852`
|
|
1623
1633
|
|
|
1624
1634
|
```ts
|
|
1625
1635
|
export interface GameDefinition extends GameInput {
|
|
@@ -1629,7 +1639,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1629
1639
|
|
|
1630
1640
|
## GameInstance
|
|
1631
1641
|
|
|
1632
|
-
来源:`packages/sdk/src/index.ts:
|
|
1642
|
+
来源:`packages/sdk/src/index.ts:855`
|
|
1633
1643
|
|
|
1634
1644
|
```ts
|
|
1635
1645
|
export interface GameInstance {
|
|
@@ -1640,7 +1650,7 @@ export interface GameInstance {
|
|
|
1640
1650
|
|
|
1641
1651
|
## defineComponent
|
|
1642
1652
|
|
|
1643
|
-
来源:`packages/sdk/src/index.ts:
|
|
1653
|
+
来源:`packages/sdk/src/index.ts:859`
|
|
1644
1654
|
|
|
1645
1655
|
```ts
|
|
1646
1656
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1651,7 +1661,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1651
1661
|
|
|
1652
1662
|
## defineMaterial
|
|
1653
1663
|
|
|
1654
|
-
来源:`packages/sdk/src/index.ts:
|
|
1664
|
+
来源:`packages/sdk/src/index.ts:865`
|
|
1655
1665
|
|
|
1656
1666
|
```ts
|
|
1657
1667
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1659,7 +1669,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1659
1669
|
|
|
1660
1670
|
## definePostProcess
|
|
1661
1671
|
|
|
1662
|
-
来源:`packages/sdk/src/index.ts:
|
|
1672
|
+
来源:`packages/sdk/src/index.ts:868`
|
|
1663
1673
|
|
|
1664
1674
|
```ts
|
|
1665
1675
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1667,7 +1677,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1667
1677
|
|
|
1668
1678
|
## defineCompute
|
|
1669
1679
|
|
|
1670
|
-
来源:`packages/sdk/src/index.ts:
|
|
1680
|
+
来源:`packages/sdk/src/index.ts:871`
|
|
1671
1681
|
|
|
1672
1682
|
```ts
|
|
1673
1683
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1675,7 +1685,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1675
1685
|
|
|
1676
1686
|
## defineAsset
|
|
1677
1687
|
|
|
1678
|
-
来源:`packages/sdk/src/index.ts:
|
|
1688
|
+
来源:`packages/sdk/src/index.ts:874`
|
|
1679
1689
|
|
|
1680
1690
|
```ts
|
|
1681
1691
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1683,7 +1693,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1683
1693
|
|
|
1684
1694
|
## definePrefab
|
|
1685
1695
|
|
|
1686
|
-
来源:`packages/sdk/src/index.ts:
|
|
1696
|
+
来源:`packages/sdk/src/index.ts:877`
|
|
1687
1697
|
|
|
1688
1698
|
```ts
|
|
1689
1699
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1691,7 +1701,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1691
1701
|
|
|
1692
1702
|
## defineScene
|
|
1693
1703
|
|
|
1694
|
-
来源:`packages/sdk/src/index.ts:
|
|
1704
|
+
来源:`packages/sdk/src/index.ts:880`
|
|
1695
1705
|
|
|
1696
1706
|
```ts
|
|
1697
1707
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1699,7 +1709,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1699
1709
|
|
|
1700
1710
|
## defineSystem
|
|
1701
1711
|
|
|
1702
|
-
来源:`packages/sdk/src/index.ts:
|
|
1712
|
+
来源:`packages/sdk/src/index.ts:883`
|
|
1703
1713
|
|
|
1704
1714
|
```ts
|
|
1705
1715
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1707,7 +1717,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1707
1717
|
|
|
1708
1718
|
## defineGame
|
|
1709
1719
|
|
|
1710
|
-
来源:`packages/sdk/src/index.ts:
|
|
1720
|
+
来源:`packages/sdk/src/index.ts:886`
|
|
1711
1721
|
|
|
1712
1722
|
```ts
|
|
1713
1723
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1715,7 +1725,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1715
1725
|
|
|
1716
1726
|
## instantiateGame
|
|
1717
1727
|
|
|
1718
|
-
来源:`packages/sdk/src/index.ts:
|
|
1728
|
+
来源:`packages/sdk/src/index.ts:890`
|
|
1719
1729
|
|
|
1720
1730
|
```ts
|
|
1721
1731
|
export function instantiateGame(
|