pelican-engine 0.3.20 → 0.3.22
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 +8 -0
- package/distribution.json +12 -12
- package/docs/STATUS.md +4 -1
- package/docs/api/REFERENCE.md +105 -95
- package/docs/api/index.json +112 -96
- package/docs/npm/GAME-AUTHOR.md +8 -0
- package/engine.manifest.json +1 -1
- package/lib/sdk/index.d.ts +12 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +10 -3
- 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.22 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.22"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -480,12 +480,14 @@ export interface ClothDefinition {
|
|
|
480
480
|
visual?: ClothVisualOptions;
|
|
481
481
|
/** Discrete non-adjacent particle self-contact; defaults to true for new cloth. */
|
|
482
482
|
selfCollisions?: boolean;
|
|
483
|
+
/** Sphere triangle-surface contacts; defaults to true for new cloth. */
|
|
484
|
+
surfaceCollisions?: boolean;
|
|
483
485
|
}
|
|
484
486
|
```
|
|
485
487
|
|
|
486
488
|
## ClothContact
|
|
487
489
|
|
|
488
|
-
来源:`packages/sdk/src/index.ts:
|
|
490
|
+
来源:`packages/sdk/src/index.ts:259`
|
|
489
491
|
|
|
490
492
|
```ts
|
|
491
493
|
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }
|
|
@@ -493,22 +495,30 @@ export interface ClothContact { tick: number; particle: number; colliderId: stri
|
|
|
493
495
|
|
|
494
496
|
## ClothSelfContact
|
|
495
497
|
|
|
496
|
-
来源:`packages/sdk/src/index.ts:
|
|
498
|
+
来源:`packages/sdk/src/index.ts:260`
|
|
497
499
|
|
|
498
500
|
```ts
|
|
499
501
|
export interface ClothSelfContact { tick: number; firstParticle: number; secondParticle: number; penetration: number }
|
|
500
502
|
```
|
|
501
503
|
|
|
504
|
+
## ClothSurfaceContact
|
|
505
|
+
|
|
506
|
+
来源:`packages/sdk/src/index.ts:261`
|
|
507
|
+
|
|
508
|
+
```ts
|
|
509
|
+
export interface ClothSurfaceContact { tick: number; triangle: number; colliderId: string; penetration: number; barycentric: [number, number, number] }
|
|
510
|
+
```
|
|
511
|
+
|
|
502
512
|
## ClothState
|
|
503
513
|
|
|
504
|
-
来源:`packages/sdk/src/index.ts:
|
|
514
|
+
来源:`packages/sdk/src/index.ts:262`
|
|
505
515
|
|
|
506
516
|
```ts
|
|
507
517
|
export interface ClothState {
|
|
508
|
-
tick: number; simulatedSeconds: number; disposed: boolean; selfCollisions: boolean;
|
|
518
|
+
tick: number; simulatedSeconds: number; disposed: boolean; selfCollisions: boolean; surfaceCollisions: boolean;
|
|
509
519
|
positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];
|
|
510
520
|
anchors: { index: number; position: Vec3 }[];
|
|
511
|
-
contacts: ClothContact[]; selfContacts: ClothSelfContact[];
|
|
521
|
+
contacts: ClothContact[]; selfContacts: ClothSelfContact[]; surfaceContacts: ClothSurfaceContact[];
|
|
512
522
|
maxDistanceError: number;
|
|
513
523
|
resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };
|
|
514
524
|
}
|
|
@@ -516,7 +526,7 @@ export interface ClothState {
|
|
|
516
526
|
|
|
517
527
|
## ClothVisualState
|
|
518
528
|
|
|
519
|
-
来源:`packages/sdk/src/index.ts:
|
|
529
|
+
来源:`packages/sdk/src/index.ts:270`
|
|
520
530
|
|
|
521
531
|
```ts
|
|
522
532
|
export interface ClothVisualState {
|
|
@@ -527,7 +537,7 @@ export interface ClothVisualState {
|
|
|
527
537
|
|
|
528
538
|
## ClothService
|
|
529
539
|
|
|
530
|
-
来源:`packages/sdk/src/index.ts:
|
|
540
|
+
来源:`packages/sdk/src/index.ts:274`
|
|
531
541
|
|
|
532
542
|
```ts
|
|
533
543
|
export interface ClothService {
|
|
@@ -547,7 +557,7 @@ export interface ClothService {
|
|
|
547
557
|
|
|
548
558
|
## NavigationCell
|
|
549
559
|
|
|
550
|
-
来源:`packages/sdk/src/index.ts:
|
|
560
|
+
来源:`packages/sdk/src/index.ts:290`
|
|
551
561
|
|
|
552
562
|
```ts
|
|
553
563
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -555,7 +565,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
555
565
|
|
|
556
566
|
## NavigationObstacleUpdate
|
|
557
567
|
|
|
558
|
-
来源:`packages/sdk/src/index.ts:
|
|
568
|
+
来源:`packages/sdk/src/index.ts:292`
|
|
559
569
|
|
|
560
570
|
```ts
|
|
561
571
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -563,7 +573,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
563
573
|
|
|
564
574
|
## NavigationGrid
|
|
565
575
|
|
|
566
|
-
来源:`packages/sdk/src/index.ts:
|
|
576
|
+
来源:`packages/sdk/src/index.ts:293`
|
|
567
577
|
|
|
568
578
|
```ts
|
|
569
579
|
export interface NavigationGrid {
|
|
@@ -579,7 +589,7 @@ export interface NavigationGrid {
|
|
|
579
589
|
|
|
580
590
|
## NavigationService
|
|
581
591
|
|
|
582
|
-
来源:`packages/sdk/src/index.ts:
|
|
592
|
+
来源:`packages/sdk/src/index.ts:302`
|
|
583
593
|
|
|
584
594
|
```ts
|
|
585
595
|
export interface NavigationService {
|
|
@@ -598,7 +608,7 @@ export interface NavigationService {
|
|
|
598
608
|
|
|
599
609
|
## RenderMode
|
|
600
610
|
|
|
601
|
-
来源:`packages/sdk/src/index.ts:
|
|
611
|
+
来源:`packages/sdk/src/index.ts:314`
|
|
602
612
|
|
|
603
613
|
```ts
|
|
604
614
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -606,7 +616,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
606
616
|
|
|
607
617
|
## RenderCapabilities
|
|
608
618
|
|
|
609
|
-
来源:`packages/sdk/src/index.ts:
|
|
619
|
+
来源:`packages/sdk/src/index.ts:315`
|
|
610
620
|
|
|
611
621
|
```ts
|
|
612
622
|
export interface RenderCapabilities {
|
|
@@ -618,7 +628,7 @@ export interface RenderCapabilities {
|
|
|
618
628
|
|
|
619
629
|
## RenderSettings
|
|
620
630
|
|
|
621
|
-
来源:`packages/sdk/src/index.ts:
|
|
631
|
+
来源:`packages/sdk/src/index.ts:320`
|
|
622
632
|
|
|
623
633
|
```ts
|
|
624
634
|
export interface RenderSettings {
|
|
@@ -636,7 +646,7 @@ export interface RenderSettings {
|
|
|
636
646
|
|
|
637
647
|
## RenderService
|
|
638
648
|
|
|
639
|
-
来源:`packages/sdk/src/index.ts:
|
|
649
|
+
来源:`packages/sdk/src/index.ts:331`
|
|
640
650
|
|
|
641
651
|
```ts
|
|
642
652
|
export interface RenderService {
|
|
@@ -653,7 +663,7 @@ export interface RenderService {
|
|
|
653
663
|
|
|
654
664
|
## MaterialBufferInput
|
|
655
665
|
|
|
656
|
-
来源:`packages/sdk/src/index.ts:
|
|
666
|
+
来源:`packages/sdk/src/index.ts:341`
|
|
657
667
|
|
|
658
668
|
```ts
|
|
659
669
|
export interface MaterialBufferInput {
|
|
@@ -669,7 +679,7 @@ export interface MaterialBufferInput {
|
|
|
669
679
|
|
|
670
680
|
## RenderBufferReference
|
|
671
681
|
|
|
672
|
-
来源:`packages/sdk/src/index.ts:
|
|
682
|
+
来源:`packages/sdk/src/index.ts:350`
|
|
673
683
|
|
|
674
684
|
```ts
|
|
675
685
|
export interface RenderBufferReference {
|
|
@@ -681,7 +691,7 @@ export interface RenderBufferReference {
|
|
|
681
691
|
|
|
682
692
|
## RenderBufferBindings
|
|
683
693
|
|
|
684
|
-
来源:`packages/sdk/src/index.ts:
|
|
694
|
+
来源:`packages/sdk/src/index.ts:355`
|
|
685
695
|
|
|
686
696
|
```ts
|
|
687
697
|
export interface RenderBufferBindings {
|
|
@@ -693,7 +703,7 @@ export interface RenderBufferBindings {
|
|
|
693
703
|
|
|
694
704
|
## MaterialTextureInput
|
|
695
705
|
|
|
696
|
-
来源:`packages/sdk/src/index.ts:
|
|
706
|
+
来源:`packages/sdk/src/index.ts:360`
|
|
697
707
|
|
|
698
708
|
```ts
|
|
699
709
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -706,7 +716,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
706
716
|
|
|
707
717
|
## RenderTextureReference
|
|
708
718
|
|
|
709
|
-
来源:`packages/sdk/src/index.ts:
|
|
719
|
+
来源:`packages/sdk/src/index.ts:366`
|
|
710
720
|
|
|
711
721
|
```ts
|
|
712
722
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -717,7 +727,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
717
727
|
|
|
718
728
|
## RenderTextureBindings
|
|
719
729
|
|
|
720
|
-
来源:`packages/sdk/src/index.ts:
|
|
730
|
+
来源:`packages/sdk/src/index.ts:370`
|
|
721
731
|
|
|
722
732
|
```ts
|
|
723
733
|
export interface RenderTextureBindings {
|
|
@@ -729,7 +739,7 @@ export interface RenderTextureBindings {
|
|
|
729
739
|
|
|
730
740
|
## PostProcessState
|
|
731
741
|
|
|
732
|
-
来源:`packages/sdk/src/index.ts:
|
|
742
|
+
来源:`packages/sdk/src/index.ts:375`
|
|
733
743
|
|
|
734
744
|
```ts
|
|
735
745
|
export interface PostProcessState {
|
|
@@ -741,7 +751,7 @@ export interface PostProcessState {
|
|
|
741
751
|
|
|
742
752
|
## PostProcessService
|
|
743
753
|
|
|
744
|
-
来源:`packages/sdk/src/index.ts:
|
|
754
|
+
来源:`packages/sdk/src/index.ts:380`
|
|
745
755
|
|
|
746
756
|
```ts
|
|
747
757
|
export interface PostProcessService {
|
|
@@ -758,7 +768,7 @@ export interface PostProcessService {
|
|
|
758
768
|
|
|
759
769
|
## ComputeBufferHandle
|
|
760
770
|
|
|
761
|
-
来源:`packages/sdk/src/index.ts:
|
|
771
|
+
来源:`packages/sdk/src/index.ts:390`
|
|
762
772
|
|
|
763
773
|
```ts
|
|
764
774
|
export interface ComputeBufferHandle {
|
|
@@ -770,7 +780,7 @@ export interface ComputeBufferHandle {
|
|
|
770
780
|
|
|
771
781
|
## ComputeTaskHandle
|
|
772
782
|
|
|
773
|
-
来源:`packages/sdk/src/index.ts:
|
|
783
|
+
来源:`packages/sdk/src/index.ts:395`
|
|
774
784
|
|
|
775
785
|
```ts
|
|
776
786
|
export interface ComputeTaskHandle {
|
|
@@ -781,7 +791,7 @@ export interface ComputeTaskHandle {
|
|
|
781
791
|
|
|
782
792
|
## ComputeBufferInput
|
|
783
793
|
|
|
784
|
-
来源:`packages/sdk/src/index.ts:
|
|
794
|
+
来源:`packages/sdk/src/index.ts:399`
|
|
785
795
|
|
|
786
796
|
```ts
|
|
787
797
|
export interface ComputeBufferInput {
|
|
@@ -794,7 +804,7 @@ export interface ComputeBufferInput {
|
|
|
794
804
|
|
|
795
805
|
## ComputeTextureHandle
|
|
796
806
|
|
|
797
|
-
来源:`packages/sdk/src/index.ts:
|
|
807
|
+
来源:`packages/sdk/src/index.ts:405`
|
|
798
808
|
|
|
799
809
|
```ts
|
|
800
810
|
export interface ComputeTextureHandle {
|
|
@@ -807,7 +817,7 @@ export interface ComputeTextureHandle {
|
|
|
807
817
|
|
|
808
818
|
## ComputeTextureSize
|
|
809
819
|
|
|
810
|
-
来源:`packages/sdk/src/index.ts:
|
|
820
|
+
来源:`packages/sdk/src/index.ts:411`
|
|
811
821
|
|
|
812
822
|
```ts
|
|
813
823
|
export interface ComputeTextureSize {
|
|
@@ -818,7 +828,7 @@ export interface ComputeTextureSize {
|
|
|
818
828
|
|
|
819
829
|
## ComputeTextureDataInput
|
|
820
830
|
|
|
821
|
-
来源:`packages/sdk/src/index.ts:
|
|
831
|
+
来源:`packages/sdk/src/index.ts:415`
|
|
822
832
|
|
|
823
833
|
```ts
|
|
824
834
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -831,7 +841,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
831
841
|
|
|
832
842
|
## ComputeTextureAssetInput
|
|
833
843
|
|
|
834
|
-
来源:`packages/sdk/src/index.ts:
|
|
844
|
+
来源:`packages/sdk/src/index.ts:421`
|
|
835
845
|
|
|
836
846
|
```ts
|
|
837
847
|
export interface ComputeTextureAssetInput {
|
|
@@ -845,7 +855,7 @@ export interface ComputeTextureAssetInput {
|
|
|
845
855
|
|
|
846
856
|
## ComputeTextureInput
|
|
847
857
|
|
|
848
|
-
来源:`packages/sdk/src/index.ts:
|
|
858
|
+
来源:`packages/sdk/src/index.ts:428`
|
|
849
859
|
|
|
850
860
|
```ts
|
|
851
861
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -853,7 +863,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
853
863
|
|
|
854
864
|
## ComputeTextureBinding
|
|
855
865
|
|
|
856
|
-
来源:`packages/sdk/src/index.ts:
|
|
866
|
+
来源:`packages/sdk/src/index.ts:429`
|
|
857
867
|
|
|
858
868
|
```ts
|
|
859
869
|
export interface ComputeTextureBinding {
|
|
@@ -866,7 +876,7 @@ export interface ComputeTextureBinding {
|
|
|
866
876
|
|
|
867
877
|
## ComputeDispatchInput
|
|
868
878
|
|
|
869
|
-
来源:`packages/sdk/src/index.ts:
|
|
879
|
+
来源:`packages/sdk/src/index.ts:435`
|
|
870
880
|
|
|
871
881
|
```ts
|
|
872
882
|
export interface ComputeDispatchInput {
|
|
@@ -885,7 +895,7 @@ export interface ComputeDispatchInput {
|
|
|
885
895
|
|
|
886
896
|
## ComputeTaskState
|
|
887
897
|
|
|
888
|
-
来源:`packages/sdk/src/index.ts:
|
|
898
|
+
来源:`packages/sdk/src/index.ts:447`
|
|
889
899
|
|
|
890
900
|
```ts
|
|
891
901
|
export interface ComputeTaskState {
|
|
@@ -896,7 +906,7 @@ export interface ComputeTaskState {
|
|
|
896
906
|
|
|
897
907
|
## ComputeService
|
|
898
908
|
|
|
899
|
-
来源:`packages/sdk/src/index.ts:
|
|
909
|
+
来源:`packages/sdk/src/index.ts:451`
|
|
900
910
|
|
|
901
911
|
```ts
|
|
902
912
|
export interface ComputeService {
|
|
@@ -923,7 +933,7 @@ export interface ComputeService {
|
|
|
923
933
|
|
|
924
934
|
## InputService
|
|
925
935
|
|
|
926
|
-
来源:`packages/sdk/src/index.ts:
|
|
936
|
+
来源:`packages/sdk/src/index.ts:471`
|
|
927
937
|
|
|
928
938
|
```ts
|
|
929
939
|
export interface InputService {
|
|
@@ -936,7 +946,7 @@ export interface InputService {
|
|
|
936
946
|
|
|
937
947
|
## PhysicsService
|
|
938
948
|
|
|
939
|
-
来源:`packages/sdk/src/index.ts:
|
|
949
|
+
来源:`packages/sdk/src/index.ts:477`
|
|
940
950
|
|
|
941
951
|
```ts
|
|
942
952
|
export interface PhysicsService {
|
|
@@ -965,7 +975,7 @@ export interface PhysicsService {
|
|
|
965
975
|
|
|
966
976
|
## AnimationService
|
|
967
977
|
|
|
968
|
-
来源:`packages/sdk/src/index.ts:
|
|
978
|
+
来源:`packages/sdk/src/index.ts:499`
|
|
969
979
|
|
|
970
980
|
```ts
|
|
971
981
|
export interface AnimationService {
|
|
@@ -984,7 +994,7 @@ export interface AnimationService {
|
|
|
984
994
|
|
|
985
995
|
## CameraService
|
|
986
996
|
|
|
987
|
-
来源:`packages/sdk/src/index.ts:
|
|
997
|
+
来源:`packages/sdk/src/index.ts:511`
|
|
988
998
|
|
|
989
999
|
```ts
|
|
990
1000
|
export interface CameraService {
|
|
@@ -1004,7 +1014,7 @@ export interface CameraService {
|
|
|
1004
1014
|
|
|
1005
1015
|
## UIService
|
|
1006
1016
|
|
|
1007
|
-
来源:`packages/sdk/src/index.ts:
|
|
1017
|
+
来源:`packages/sdk/src/index.ts:524`
|
|
1008
1018
|
|
|
1009
1019
|
```ts
|
|
1010
1020
|
export interface UIService {
|
|
@@ -1016,7 +1026,7 @@ export interface UIService {
|
|
|
1016
1026
|
|
|
1017
1027
|
## AudioService
|
|
1018
1028
|
|
|
1019
|
-
来源:`packages/sdk/src/index.ts:
|
|
1029
|
+
来源:`packages/sdk/src/index.ts:529`
|
|
1020
1030
|
|
|
1021
1031
|
```ts
|
|
1022
1032
|
export interface AudioService {
|
|
@@ -1038,7 +1048,7 @@ export interface AudioService {
|
|
|
1038
1048
|
|
|
1039
1049
|
## StorageService
|
|
1040
1050
|
|
|
1041
|
-
来源:`packages/sdk/src/index.ts:
|
|
1051
|
+
来源:`packages/sdk/src/index.ts:544`
|
|
1042
1052
|
|
|
1043
1053
|
```ts
|
|
1044
1054
|
export interface StorageService {
|
|
@@ -1054,7 +1064,7 @@ export interface StorageService {
|
|
|
1054
1064
|
|
|
1055
1065
|
## SceneService
|
|
1056
1066
|
|
|
1057
|
-
来源:`packages/sdk/src/index.ts:
|
|
1067
|
+
来源:`packages/sdk/src/index.ts:553`
|
|
1058
1068
|
|
|
1059
1069
|
```ts
|
|
1060
1070
|
export interface SceneService {
|
|
@@ -1065,7 +1075,7 @@ export interface SceneService {
|
|
|
1065
1075
|
|
|
1066
1076
|
## ModelDefinition
|
|
1067
1077
|
|
|
1068
|
-
来源:`packages/sdk/src/index.ts:
|
|
1078
|
+
来源:`packages/sdk/src/index.ts:557`
|
|
1069
1079
|
|
|
1070
1080
|
```ts
|
|
1071
1081
|
export interface ModelDefinition {
|
|
@@ -1085,7 +1095,7 @@ export interface ModelDefinition {
|
|
|
1085
1095
|
|
|
1086
1096
|
## RigidBodyDefinition
|
|
1087
1097
|
|
|
1088
|
-
来源:`packages/sdk/src/index.ts:
|
|
1098
|
+
来源:`packages/sdk/src/index.ts:570`
|
|
1089
1099
|
|
|
1090
1100
|
```ts
|
|
1091
1101
|
export interface RigidBodyDefinition {
|
|
@@ -1106,7 +1116,7 @@ export interface RigidBodyDefinition {
|
|
|
1106
1116
|
|
|
1107
1117
|
## CharacterDefinition
|
|
1108
1118
|
|
|
1109
|
-
来源:`packages/sdk/src/index.ts:
|
|
1119
|
+
来源:`packages/sdk/src/index.ts:584`
|
|
1110
1120
|
|
|
1111
1121
|
```ts
|
|
1112
1122
|
export interface CharacterDefinition {
|
|
@@ -1121,7 +1131,7 @@ export interface CharacterDefinition {
|
|
|
1121
1131
|
|
|
1122
1132
|
## UIElementDefinition
|
|
1123
1133
|
|
|
1124
|
-
来源:`packages/sdk/src/index.ts:
|
|
1134
|
+
来源:`packages/sdk/src/index.ts:592`
|
|
1125
1135
|
|
|
1126
1136
|
```ts
|
|
1127
1137
|
export interface UIElementDefinition {
|
|
@@ -1141,7 +1151,7 @@ export interface UIElementDefinition {
|
|
|
1141
1151
|
|
|
1142
1152
|
## SoundDefinition
|
|
1143
1153
|
|
|
1144
|
-
来源:`packages/sdk/src/index.ts:
|
|
1154
|
+
来源:`packages/sdk/src/index.ts:605`
|
|
1145
1155
|
|
|
1146
1156
|
```ts
|
|
1147
1157
|
export interface SoundDefinition {
|
|
@@ -1155,7 +1165,7 @@ export interface SoundDefinition {
|
|
|
1155
1165
|
|
|
1156
1166
|
## AudioBusDefinition
|
|
1157
1167
|
|
|
1158
|
-
来源:`packages/sdk/src/index.ts:
|
|
1168
|
+
来源:`packages/sdk/src/index.ts:612`
|
|
1159
1169
|
|
|
1160
1170
|
```ts
|
|
1161
1171
|
export interface AudioBusDefinition {
|
|
@@ -1166,7 +1176,7 @@ export interface AudioBusDefinition {
|
|
|
1166
1176
|
|
|
1167
1177
|
## SYSTEM_PHASES
|
|
1168
1178
|
|
|
1169
|
-
来源:`packages/sdk/src/index.ts:
|
|
1179
|
+
来源:`packages/sdk/src/index.ts:616`
|
|
1170
1180
|
|
|
1171
1181
|
```ts
|
|
1172
1182
|
SYSTEM_PHASES = [
|
|
@@ -1181,7 +1191,7 @@ SYSTEM_PHASES = [
|
|
|
1181
1191
|
|
|
1182
1192
|
## SystemPhase
|
|
1183
1193
|
|
|
1184
|
-
来源:`packages/sdk/src/index.ts:
|
|
1194
|
+
来源:`packages/sdk/src/index.ts:624`
|
|
1185
1195
|
|
|
1186
1196
|
```ts
|
|
1187
1197
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1189,7 +1199,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1189
1199
|
|
|
1190
1200
|
## Geometry
|
|
1191
1201
|
|
|
1192
|
-
来源:`packages/sdk/src/index.ts:
|
|
1202
|
+
来源:`packages/sdk/src/index.ts:625`
|
|
1193
1203
|
|
|
1194
1204
|
```ts
|
|
1195
1205
|
export type Geometry =
|
|
@@ -1200,7 +1210,7 @@ export type Geometry =
|
|
|
1200
1210
|
|
|
1201
1211
|
## GRAPH_TYPES
|
|
1202
1212
|
|
|
1203
|
-
来源:`packages/sdk/src/index.ts:
|
|
1213
|
+
来源:`packages/sdk/src/index.ts:629`
|
|
1204
1214
|
|
|
1205
1215
|
```ts
|
|
1206
1216
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1208,7 +1218,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1208
1218
|
|
|
1209
1219
|
## GraphType
|
|
1210
1220
|
|
|
1211
|
-
来源:`packages/sdk/src/index.ts:
|
|
1221
|
+
来源:`packages/sdk/src/index.ts:630`
|
|
1212
1222
|
|
|
1213
1223
|
```ts
|
|
1214
1224
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1216,7 +1226,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1216
1226
|
|
|
1217
1227
|
## GraphValue
|
|
1218
1228
|
|
|
1219
|
-
来源:`packages/sdk/src/index.ts:
|
|
1229
|
+
来源:`packages/sdk/src/index.ts:631`
|
|
1220
1230
|
|
|
1221
1231
|
```ts
|
|
1222
1232
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1224,7 +1234,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1224
1234
|
|
|
1225
1235
|
## GraphParameter
|
|
1226
1236
|
|
|
1227
|
-
来源:`packages/sdk/src/index.ts:
|
|
1237
|
+
来源:`packages/sdk/src/index.ts:632`
|
|
1228
1238
|
|
|
1229
1239
|
```ts
|
|
1230
1240
|
export interface GraphParameter {
|
|
@@ -1236,7 +1246,7 @@ export interface GraphParameter {
|
|
|
1236
1246
|
|
|
1237
1247
|
## GRAPH_INPUT_TYPES
|
|
1238
1248
|
|
|
1239
|
-
来源:`packages/sdk/src/index.ts:
|
|
1249
|
+
来源:`packages/sdk/src/index.ts:637`
|
|
1240
1250
|
|
|
1241
1251
|
```ts
|
|
1242
1252
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1250,7 +1260,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1250
1260
|
|
|
1251
1261
|
## GraphInputName
|
|
1252
1262
|
|
|
1253
|
-
来源:`packages/sdk/src/index.ts:
|
|
1263
|
+
来源:`packages/sdk/src/index.ts:644`
|
|
1254
1264
|
|
|
1255
1265
|
```ts
|
|
1256
1266
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1258,7 +1268,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1258
1268
|
|
|
1259
1269
|
## GRAPH_OPERATIONS
|
|
1260
1270
|
|
|
1261
|
-
来源:`packages/sdk/src/index.ts:
|
|
1271
|
+
来源:`packages/sdk/src/index.ts:645`
|
|
1262
1272
|
|
|
1263
1273
|
```ts
|
|
1264
1274
|
GRAPH_OPERATIONS = {
|
|
@@ -1270,7 +1280,7 @@ GRAPH_OPERATIONS = {
|
|
|
1270
1280
|
|
|
1271
1281
|
## GraphNode
|
|
1272
1282
|
|
|
1273
|
-
来源:`packages/sdk/src/index.ts:
|
|
1283
|
+
来源:`packages/sdk/src/index.ts:650`
|
|
1274
1284
|
|
|
1275
1285
|
```ts
|
|
1276
1286
|
export type GraphNode =
|
|
@@ -1297,7 +1307,7 @@ export type GraphNode =
|
|
|
1297
1307
|
|
|
1298
1308
|
## Graph
|
|
1299
1309
|
|
|
1300
|
-
来源:`packages/sdk/src/index.ts:
|
|
1310
|
+
来源:`packages/sdk/src/index.ts:670`
|
|
1301
1311
|
|
|
1302
1312
|
```ts
|
|
1303
1313
|
export interface Graph {
|
|
@@ -1309,7 +1319,7 @@ export interface Graph {
|
|
|
1309
1319
|
|
|
1310
1320
|
## MaterialGraphs
|
|
1311
1321
|
|
|
1312
|
-
来源:`packages/sdk/src/index.ts:
|
|
1322
|
+
来源:`packages/sdk/src/index.ts:675`
|
|
1313
1323
|
|
|
1314
1324
|
```ts
|
|
1315
1325
|
export interface MaterialGraphs {
|
|
@@ -1325,7 +1335,7 @@ export interface MaterialGraphs {
|
|
|
1325
1335
|
|
|
1326
1336
|
## VertexGraphs
|
|
1327
1337
|
|
|
1328
|
-
来源:`packages/sdk/src/index.ts:
|
|
1338
|
+
来源:`packages/sdk/src/index.ts:684`
|
|
1329
1339
|
|
|
1330
1340
|
```ts
|
|
1331
1341
|
export interface VertexGraphs {
|
|
@@ -1338,7 +1348,7 @@ export interface VertexGraphs {
|
|
|
1338
1348
|
|
|
1339
1349
|
## MaterialInput
|
|
1340
1350
|
|
|
1341
|
-
来源:`packages/sdk/src/index.ts:
|
|
1351
|
+
来源:`packages/sdk/src/index.ts:690`
|
|
1342
1352
|
|
|
1343
1353
|
```ts
|
|
1344
1354
|
export interface MaterialInput {
|
|
@@ -1372,7 +1382,7 @@ export interface MaterialInput {
|
|
|
1372
1382
|
|
|
1373
1383
|
## MaterialDefinition
|
|
1374
1384
|
|
|
1375
|
-
来源:`packages/sdk/src/index.ts:
|
|
1385
|
+
来源:`packages/sdk/src/index.ts:717`
|
|
1376
1386
|
|
|
1377
1387
|
```ts
|
|
1378
1388
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1382,7 +1392,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1382
1392
|
|
|
1383
1393
|
## PostProcessInput
|
|
1384
1394
|
|
|
1385
|
-
来源:`packages/sdk/src/index.ts:
|
|
1395
|
+
来源:`packages/sdk/src/index.ts:720`
|
|
1386
1396
|
|
|
1387
1397
|
```ts
|
|
1388
1398
|
export interface PostProcessInput {
|
|
@@ -1397,7 +1407,7 @@ export interface PostProcessInput {
|
|
|
1397
1407
|
|
|
1398
1408
|
## PostProcessDefinition
|
|
1399
1409
|
|
|
1400
|
-
来源:`packages/sdk/src/index.ts:
|
|
1410
|
+
来源:`packages/sdk/src/index.ts:728`
|
|
1401
1411
|
|
|
1402
1412
|
```ts
|
|
1403
1413
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1407,7 +1417,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1407
1417
|
|
|
1408
1418
|
## ComputeInput
|
|
1409
1419
|
|
|
1410
|
-
来源:`packages/sdk/src/index.ts:
|
|
1420
|
+
来源:`packages/sdk/src/index.ts:731`
|
|
1411
1421
|
|
|
1412
1422
|
```ts
|
|
1413
1423
|
export interface ComputeInput {
|
|
@@ -1423,7 +1433,7 @@ export interface ComputeInput {
|
|
|
1423
1433
|
|
|
1424
1434
|
## ComputeDefinition
|
|
1425
1435
|
|
|
1426
|
-
来源:`packages/sdk/src/index.ts:
|
|
1436
|
+
来源:`packages/sdk/src/index.ts:740`
|
|
1427
1437
|
|
|
1428
1438
|
```ts
|
|
1429
1439
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1433,7 +1443,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1433
1443
|
|
|
1434
1444
|
## AssetInput
|
|
1435
1445
|
|
|
1436
|
-
来源:`packages/sdk/src/index.ts:
|
|
1446
|
+
来源:`packages/sdk/src/index.ts:743`
|
|
1437
1447
|
|
|
1438
1448
|
```ts
|
|
1439
1449
|
export interface AssetInput {
|
|
@@ -1450,7 +1460,7 @@ export interface AssetInput {
|
|
|
1450
1460
|
|
|
1451
1461
|
## AssetDefinition
|
|
1452
1462
|
|
|
1453
|
-
来源:`packages/sdk/src/index.ts:
|
|
1463
|
+
来源:`packages/sdk/src/index.ts:753`
|
|
1454
1464
|
|
|
1455
1465
|
```ts
|
|
1456
1466
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1460,7 +1470,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1460
1470
|
|
|
1461
1471
|
## MeshDefinition
|
|
1462
1472
|
|
|
1463
|
-
来源:`packages/sdk/src/index.ts:
|
|
1473
|
+
来源:`packages/sdk/src/index.ts:756`
|
|
1464
1474
|
|
|
1465
1475
|
```ts
|
|
1466
1476
|
export interface MeshDefinition {
|
|
@@ -1473,7 +1483,7 @@ export interface MeshDefinition {
|
|
|
1473
1483
|
|
|
1474
1484
|
## LightDefinition
|
|
1475
1485
|
|
|
1476
|
-
来源:`packages/sdk/src/index.ts:
|
|
1486
|
+
来源:`packages/sdk/src/index.ts:762`
|
|
1477
1487
|
|
|
1478
1488
|
```ts
|
|
1479
1489
|
export interface LightDefinition {
|
|
@@ -1495,7 +1505,7 @@ export interface LightDefinition {
|
|
|
1495
1505
|
|
|
1496
1506
|
## EntityInput
|
|
1497
1507
|
|
|
1498
|
-
来源:`packages/sdk/src/index.ts:
|
|
1508
|
+
来源:`packages/sdk/src/index.ts:777`
|
|
1499
1509
|
|
|
1500
1510
|
```ts
|
|
1501
1511
|
export interface EntityInput {
|
|
@@ -1514,7 +1524,7 @@ export interface EntityInput {
|
|
|
1514
1524
|
|
|
1515
1525
|
## PrefabInput
|
|
1516
1526
|
|
|
1517
|
-
来源:`packages/sdk/src/index.ts:
|
|
1527
|
+
来源:`packages/sdk/src/index.ts:789`
|
|
1518
1528
|
|
|
1519
1529
|
```ts
|
|
1520
1530
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1524,7 +1534,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1524
1534
|
|
|
1525
1535
|
## PrefabDefinition
|
|
1526
1536
|
|
|
1527
|
-
来源:`packages/sdk/src/index.ts:
|
|
1537
|
+
来源:`packages/sdk/src/index.ts:792`
|
|
1528
1538
|
|
|
1529
1539
|
```ts
|
|
1530
1540
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1534,7 +1544,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1534
1544
|
|
|
1535
1545
|
## SceneInput
|
|
1536
1546
|
|
|
1537
|
-
来源:`packages/sdk/src/index.ts:
|
|
1547
|
+
来源:`packages/sdk/src/index.ts:795`
|
|
1538
1548
|
|
|
1539
1549
|
```ts
|
|
1540
1550
|
export interface SceneInput {
|
|
@@ -1566,7 +1576,7 @@ export interface SceneInput {
|
|
|
1566
1576
|
|
|
1567
1577
|
## SceneDefinition
|
|
1568
1578
|
|
|
1569
|
-
来源:`packages/sdk/src/index.ts:
|
|
1579
|
+
来源:`packages/sdk/src/index.ts:820`
|
|
1570
1580
|
|
|
1571
1581
|
```ts
|
|
1572
1582
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1576,7 +1586,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1576
1586
|
|
|
1577
1587
|
## SystemInput
|
|
1578
1588
|
|
|
1579
|
-
来源:`packages/sdk/src/index.ts:
|
|
1589
|
+
来源:`packages/sdk/src/index.ts:823`
|
|
1580
1590
|
|
|
1581
1591
|
```ts
|
|
1582
1592
|
export interface SystemInput {
|
|
@@ -1593,7 +1603,7 @@ export interface SystemInput {
|
|
|
1593
1603
|
|
|
1594
1604
|
## SystemDefinition
|
|
1595
1605
|
|
|
1596
|
-
来源:`packages/sdk/src/index.ts:
|
|
1606
|
+
来源:`packages/sdk/src/index.ts:833`
|
|
1597
1607
|
|
|
1598
1608
|
```ts
|
|
1599
1609
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1603,7 +1613,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1603
1613
|
|
|
1604
1614
|
## GameInput
|
|
1605
1615
|
|
|
1606
|
-
来源:`packages/sdk/src/index.ts:
|
|
1616
|
+
来源:`packages/sdk/src/index.ts:836`
|
|
1607
1617
|
|
|
1608
1618
|
```ts
|
|
1609
1619
|
export interface GameInput {
|
|
@@ -1629,7 +1639,7 @@ export interface GameInput {
|
|
|
1629
1639
|
|
|
1630
1640
|
## GameDefinition
|
|
1631
1641
|
|
|
1632
|
-
来源:`packages/sdk/src/index.ts:
|
|
1642
|
+
来源:`packages/sdk/src/index.ts:855`
|
|
1633
1643
|
|
|
1634
1644
|
```ts
|
|
1635
1645
|
export interface GameDefinition extends GameInput {
|
|
@@ -1639,7 +1649,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1639
1649
|
|
|
1640
1650
|
## GameInstance
|
|
1641
1651
|
|
|
1642
|
-
来源:`packages/sdk/src/index.ts:
|
|
1652
|
+
来源:`packages/sdk/src/index.ts:858`
|
|
1643
1653
|
|
|
1644
1654
|
```ts
|
|
1645
1655
|
export interface GameInstance {
|
|
@@ -1650,7 +1660,7 @@ export interface GameInstance {
|
|
|
1650
1660
|
|
|
1651
1661
|
## defineComponent
|
|
1652
1662
|
|
|
1653
|
-
来源:`packages/sdk/src/index.ts:
|
|
1663
|
+
来源:`packages/sdk/src/index.ts:862`
|
|
1654
1664
|
|
|
1655
1665
|
```ts
|
|
1656
1666
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1661,7 +1671,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1661
1671
|
|
|
1662
1672
|
## defineMaterial
|
|
1663
1673
|
|
|
1664
|
-
来源:`packages/sdk/src/index.ts:
|
|
1674
|
+
来源:`packages/sdk/src/index.ts:868`
|
|
1665
1675
|
|
|
1666
1676
|
```ts
|
|
1667
1677
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1669,7 +1679,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1669
1679
|
|
|
1670
1680
|
## definePostProcess
|
|
1671
1681
|
|
|
1672
|
-
来源:`packages/sdk/src/index.ts:
|
|
1682
|
+
来源:`packages/sdk/src/index.ts:871`
|
|
1673
1683
|
|
|
1674
1684
|
```ts
|
|
1675
1685
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1677,7 +1687,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1677
1687
|
|
|
1678
1688
|
## defineCompute
|
|
1679
1689
|
|
|
1680
|
-
来源:`packages/sdk/src/index.ts:
|
|
1690
|
+
来源:`packages/sdk/src/index.ts:874`
|
|
1681
1691
|
|
|
1682
1692
|
```ts
|
|
1683
1693
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1685,7 +1695,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1685
1695
|
|
|
1686
1696
|
## defineAsset
|
|
1687
1697
|
|
|
1688
|
-
来源:`packages/sdk/src/index.ts:
|
|
1698
|
+
来源:`packages/sdk/src/index.ts:877`
|
|
1689
1699
|
|
|
1690
1700
|
```ts
|
|
1691
1701
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1693,7 +1703,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1693
1703
|
|
|
1694
1704
|
## definePrefab
|
|
1695
1705
|
|
|
1696
|
-
来源:`packages/sdk/src/index.ts:
|
|
1706
|
+
来源:`packages/sdk/src/index.ts:880`
|
|
1697
1707
|
|
|
1698
1708
|
```ts
|
|
1699
1709
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1701,7 +1711,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1701
1711
|
|
|
1702
1712
|
## defineScene
|
|
1703
1713
|
|
|
1704
|
-
来源:`packages/sdk/src/index.ts:
|
|
1714
|
+
来源:`packages/sdk/src/index.ts:883`
|
|
1705
1715
|
|
|
1706
1716
|
```ts
|
|
1707
1717
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1709,7 +1719,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1709
1719
|
|
|
1710
1720
|
## defineSystem
|
|
1711
1721
|
|
|
1712
|
-
来源:`packages/sdk/src/index.ts:
|
|
1722
|
+
来源:`packages/sdk/src/index.ts:886`
|
|
1713
1723
|
|
|
1714
1724
|
```ts
|
|
1715
1725
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1717,7 +1727,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1717
1727
|
|
|
1718
1728
|
## defineGame
|
|
1719
1729
|
|
|
1720
|
-
来源:`packages/sdk/src/index.ts:
|
|
1730
|
+
来源:`packages/sdk/src/index.ts:889`
|
|
1721
1731
|
|
|
1722
1732
|
```ts
|
|
1723
1733
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1725,7 +1735,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1725
1735
|
|
|
1726
1736
|
## instantiateGame
|
|
1727
1737
|
|
|
1728
|
-
来源:`packages/sdk/src/index.ts:
|
|
1738
|
+
来源:`packages/sdk/src/index.ts:893`
|
|
1729
1739
|
|
|
1730
1740
|
```ts
|
|
1731
1741
|
export function instantiateGame(
|