pelican-engine 0.3.24 → 0.3.26
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 +6 -1
- package/distribution.json +12 -12
- package/docs/STATUS.md +4 -0
- package/docs/api/REFERENCE.md +99 -97
- package/docs/api/index.json +105 -100
- package/docs/npm/GAME-AUTHOR.md +6 -1
- package/engine.manifest.json +1 -1
- package/lib/sdk/index.d.ts +8 -2
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +65 -8
- package/lib/simulation/cloth.js +21 -7
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.26 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.26"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -490,22 +490,24 @@ export interface ClothDefinition {
|
|
|
490
490
|
selfCollisions?: boolean;
|
|
491
491
|
/** Sphere triangle-surface contacts; defaults to true for new cloth. */
|
|
492
492
|
surfaceCollisions?: boolean;
|
|
493
|
-
/** Optional live dynamic sphere bindings; sampled after the physics phase
|
|
493
|
+
/** Optional live dynamic sphere bindings; sampled after the physics phase. */
|
|
494
494
|
bodyColliders?: readonly ClothBodyCollider[];
|
|
495
|
+
/** When true, detected contacts submit approximate reaction impulses to bound bodies. */
|
|
496
|
+
bodyReactions?: boolean;
|
|
495
497
|
}
|
|
496
498
|
```
|
|
497
499
|
|
|
498
500
|
## ClothContact
|
|
499
501
|
|
|
500
|
-
来源:`packages/sdk/src/index.ts:
|
|
502
|
+
来源:`packages/sdk/src/index.ts:264`
|
|
501
503
|
|
|
502
504
|
```ts
|
|
503
|
-
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }
|
|
505
|
+
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number; reactionImpulse?: Vec3; reactionAngularImpulse?: Vec3 }
|
|
504
506
|
```
|
|
505
507
|
|
|
506
508
|
## ClothSelfContact
|
|
507
509
|
|
|
508
|
-
来源:`packages/sdk/src/index.ts:
|
|
510
|
+
来源:`packages/sdk/src/index.ts:265`
|
|
509
511
|
|
|
510
512
|
```ts
|
|
511
513
|
export interface ClothSelfContact { tick: number; firstParticle: number; secondParticle: number; penetration: number }
|
|
@@ -513,15 +515,15 @@ export interface ClothSelfContact { tick: number; firstParticle: number; secondP
|
|
|
513
515
|
|
|
514
516
|
## ClothSurfaceContact
|
|
515
517
|
|
|
516
|
-
来源:`packages/sdk/src/index.ts:
|
|
518
|
+
来源:`packages/sdk/src/index.ts:266`
|
|
517
519
|
|
|
518
520
|
```ts
|
|
519
|
-
export interface ClothSurfaceContact { tick: number; triangle: number; colliderId: string; penetration: number; barycentric: [number, number, number] }
|
|
521
|
+
export interface ClothSurfaceContact { tick: number; triangle: number; colliderId: string; penetration: number; barycentric: [number, number, number]; reactionImpulse?: Vec3; reactionAngularImpulse?: Vec3 }
|
|
520
522
|
```
|
|
521
523
|
|
|
522
524
|
## ClothState
|
|
523
525
|
|
|
524
|
-
来源:`packages/sdk/src/index.ts:
|
|
526
|
+
来源:`packages/sdk/src/index.ts:267`
|
|
525
527
|
|
|
526
528
|
```ts
|
|
527
529
|
export interface ClothState {
|
|
@@ -536,7 +538,7 @@ export interface ClothState {
|
|
|
536
538
|
|
|
537
539
|
## ClothVisualState
|
|
538
540
|
|
|
539
|
-
来源:`packages/sdk/src/index.ts:
|
|
541
|
+
来源:`packages/sdk/src/index.ts:275`
|
|
540
542
|
|
|
541
543
|
```ts
|
|
542
544
|
export interface ClothVisualState {
|
|
@@ -547,7 +549,7 @@ export interface ClothVisualState {
|
|
|
547
549
|
|
|
548
550
|
## ClothService
|
|
549
551
|
|
|
550
|
-
来源:`packages/sdk/src/index.ts:
|
|
552
|
+
来源:`packages/sdk/src/index.ts:279`
|
|
551
553
|
|
|
552
554
|
```ts
|
|
553
555
|
export interface ClothService {
|
|
@@ -567,7 +569,7 @@ export interface ClothService {
|
|
|
567
569
|
|
|
568
570
|
## NavigationCell
|
|
569
571
|
|
|
570
|
-
来源:`packages/sdk/src/index.ts:
|
|
572
|
+
来源:`packages/sdk/src/index.ts:295`
|
|
571
573
|
|
|
572
574
|
```ts
|
|
573
575
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -575,7 +577,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
575
577
|
|
|
576
578
|
## NavigationObstacleUpdate
|
|
577
579
|
|
|
578
|
-
来源:`packages/sdk/src/index.ts:
|
|
580
|
+
来源:`packages/sdk/src/index.ts:297`
|
|
579
581
|
|
|
580
582
|
```ts
|
|
581
583
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -583,7 +585,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
583
585
|
|
|
584
586
|
## NavigationGrid
|
|
585
587
|
|
|
586
|
-
来源:`packages/sdk/src/index.ts:
|
|
588
|
+
来源:`packages/sdk/src/index.ts:298`
|
|
587
589
|
|
|
588
590
|
```ts
|
|
589
591
|
export interface NavigationGrid {
|
|
@@ -599,7 +601,7 @@ export interface NavigationGrid {
|
|
|
599
601
|
|
|
600
602
|
## NavigationService
|
|
601
603
|
|
|
602
|
-
来源:`packages/sdk/src/index.ts:
|
|
604
|
+
来源:`packages/sdk/src/index.ts:307`
|
|
603
605
|
|
|
604
606
|
```ts
|
|
605
607
|
export interface NavigationService {
|
|
@@ -618,7 +620,7 @@ export interface NavigationService {
|
|
|
618
620
|
|
|
619
621
|
## RenderMode
|
|
620
622
|
|
|
621
|
-
来源:`packages/sdk/src/index.ts:
|
|
623
|
+
来源:`packages/sdk/src/index.ts:319`
|
|
622
624
|
|
|
623
625
|
```ts
|
|
624
626
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -626,7 +628,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
626
628
|
|
|
627
629
|
## RenderCapabilities
|
|
628
630
|
|
|
629
|
-
来源:`packages/sdk/src/index.ts:
|
|
631
|
+
来源:`packages/sdk/src/index.ts:320`
|
|
630
632
|
|
|
631
633
|
```ts
|
|
632
634
|
export interface RenderCapabilities {
|
|
@@ -638,7 +640,7 @@ export interface RenderCapabilities {
|
|
|
638
640
|
|
|
639
641
|
## RenderSettings
|
|
640
642
|
|
|
641
|
-
来源:`packages/sdk/src/index.ts:
|
|
643
|
+
来源:`packages/sdk/src/index.ts:325`
|
|
642
644
|
|
|
643
645
|
```ts
|
|
644
646
|
export interface RenderSettings {
|
|
@@ -656,7 +658,7 @@ export interface RenderSettings {
|
|
|
656
658
|
|
|
657
659
|
## RenderService
|
|
658
660
|
|
|
659
|
-
来源:`packages/sdk/src/index.ts:
|
|
661
|
+
来源:`packages/sdk/src/index.ts:336`
|
|
660
662
|
|
|
661
663
|
```ts
|
|
662
664
|
export interface RenderService {
|
|
@@ -673,7 +675,7 @@ export interface RenderService {
|
|
|
673
675
|
|
|
674
676
|
## MaterialBufferInput
|
|
675
677
|
|
|
676
|
-
来源:`packages/sdk/src/index.ts:
|
|
678
|
+
来源:`packages/sdk/src/index.ts:346`
|
|
677
679
|
|
|
678
680
|
```ts
|
|
679
681
|
export interface MaterialBufferInput {
|
|
@@ -689,7 +691,7 @@ export interface MaterialBufferInput {
|
|
|
689
691
|
|
|
690
692
|
## RenderBufferReference
|
|
691
693
|
|
|
692
|
-
来源:`packages/sdk/src/index.ts:
|
|
694
|
+
来源:`packages/sdk/src/index.ts:355`
|
|
693
695
|
|
|
694
696
|
```ts
|
|
695
697
|
export interface RenderBufferReference {
|
|
@@ -701,7 +703,7 @@ export interface RenderBufferReference {
|
|
|
701
703
|
|
|
702
704
|
## RenderBufferBindings
|
|
703
705
|
|
|
704
|
-
来源:`packages/sdk/src/index.ts:
|
|
706
|
+
来源:`packages/sdk/src/index.ts:360`
|
|
705
707
|
|
|
706
708
|
```ts
|
|
707
709
|
export interface RenderBufferBindings {
|
|
@@ -713,7 +715,7 @@ export interface RenderBufferBindings {
|
|
|
713
715
|
|
|
714
716
|
## MaterialTextureInput
|
|
715
717
|
|
|
716
|
-
来源:`packages/sdk/src/index.ts:
|
|
718
|
+
来源:`packages/sdk/src/index.ts:365`
|
|
717
719
|
|
|
718
720
|
```ts
|
|
719
721
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -726,7 +728,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
726
728
|
|
|
727
729
|
## RenderTextureReference
|
|
728
730
|
|
|
729
|
-
来源:`packages/sdk/src/index.ts:
|
|
731
|
+
来源:`packages/sdk/src/index.ts:371`
|
|
730
732
|
|
|
731
733
|
```ts
|
|
732
734
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -737,7 +739,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
737
739
|
|
|
738
740
|
## RenderTextureBindings
|
|
739
741
|
|
|
740
|
-
来源:`packages/sdk/src/index.ts:
|
|
742
|
+
来源:`packages/sdk/src/index.ts:375`
|
|
741
743
|
|
|
742
744
|
```ts
|
|
743
745
|
export interface RenderTextureBindings {
|
|
@@ -749,7 +751,7 @@ export interface RenderTextureBindings {
|
|
|
749
751
|
|
|
750
752
|
## PostProcessState
|
|
751
753
|
|
|
752
|
-
来源:`packages/sdk/src/index.ts:
|
|
754
|
+
来源:`packages/sdk/src/index.ts:380`
|
|
753
755
|
|
|
754
756
|
```ts
|
|
755
757
|
export interface PostProcessState {
|
|
@@ -761,7 +763,7 @@ export interface PostProcessState {
|
|
|
761
763
|
|
|
762
764
|
## PostProcessService
|
|
763
765
|
|
|
764
|
-
来源:`packages/sdk/src/index.ts:
|
|
766
|
+
来源:`packages/sdk/src/index.ts:385`
|
|
765
767
|
|
|
766
768
|
```ts
|
|
767
769
|
export interface PostProcessService {
|
|
@@ -778,7 +780,7 @@ export interface PostProcessService {
|
|
|
778
780
|
|
|
779
781
|
## ComputeBufferHandle
|
|
780
782
|
|
|
781
|
-
来源:`packages/sdk/src/index.ts:
|
|
783
|
+
来源:`packages/sdk/src/index.ts:395`
|
|
782
784
|
|
|
783
785
|
```ts
|
|
784
786
|
export interface ComputeBufferHandle {
|
|
@@ -790,7 +792,7 @@ export interface ComputeBufferHandle {
|
|
|
790
792
|
|
|
791
793
|
## ComputeTaskHandle
|
|
792
794
|
|
|
793
|
-
来源:`packages/sdk/src/index.ts:
|
|
795
|
+
来源:`packages/sdk/src/index.ts:400`
|
|
794
796
|
|
|
795
797
|
```ts
|
|
796
798
|
export interface ComputeTaskHandle {
|
|
@@ -801,7 +803,7 @@ export interface ComputeTaskHandle {
|
|
|
801
803
|
|
|
802
804
|
## ComputeBufferInput
|
|
803
805
|
|
|
804
|
-
来源:`packages/sdk/src/index.ts:
|
|
806
|
+
来源:`packages/sdk/src/index.ts:404`
|
|
805
807
|
|
|
806
808
|
```ts
|
|
807
809
|
export interface ComputeBufferInput {
|
|
@@ -814,7 +816,7 @@ export interface ComputeBufferInput {
|
|
|
814
816
|
|
|
815
817
|
## ComputeTextureHandle
|
|
816
818
|
|
|
817
|
-
来源:`packages/sdk/src/index.ts:
|
|
819
|
+
来源:`packages/sdk/src/index.ts:410`
|
|
818
820
|
|
|
819
821
|
```ts
|
|
820
822
|
export interface ComputeTextureHandle {
|
|
@@ -827,7 +829,7 @@ export interface ComputeTextureHandle {
|
|
|
827
829
|
|
|
828
830
|
## ComputeTextureSize
|
|
829
831
|
|
|
830
|
-
来源:`packages/sdk/src/index.ts:
|
|
832
|
+
来源:`packages/sdk/src/index.ts:416`
|
|
831
833
|
|
|
832
834
|
```ts
|
|
833
835
|
export interface ComputeTextureSize {
|
|
@@ -838,7 +840,7 @@ export interface ComputeTextureSize {
|
|
|
838
840
|
|
|
839
841
|
## ComputeTextureDataInput
|
|
840
842
|
|
|
841
|
-
来源:`packages/sdk/src/index.ts:
|
|
843
|
+
来源:`packages/sdk/src/index.ts:420`
|
|
842
844
|
|
|
843
845
|
```ts
|
|
844
846
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -851,7 +853,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
851
853
|
|
|
852
854
|
## ComputeTextureAssetInput
|
|
853
855
|
|
|
854
|
-
来源:`packages/sdk/src/index.ts:
|
|
856
|
+
来源:`packages/sdk/src/index.ts:426`
|
|
855
857
|
|
|
856
858
|
```ts
|
|
857
859
|
export interface ComputeTextureAssetInput {
|
|
@@ -865,7 +867,7 @@ export interface ComputeTextureAssetInput {
|
|
|
865
867
|
|
|
866
868
|
## ComputeTextureInput
|
|
867
869
|
|
|
868
|
-
来源:`packages/sdk/src/index.ts:
|
|
870
|
+
来源:`packages/sdk/src/index.ts:433`
|
|
869
871
|
|
|
870
872
|
```ts
|
|
871
873
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -873,7 +875,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
873
875
|
|
|
874
876
|
## ComputeTextureBinding
|
|
875
877
|
|
|
876
|
-
来源:`packages/sdk/src/index.ts:
|
|
878
|
+
来源:`packages/sdk/src/index.ts:434`
|
|
877
879
|
|
|
878
880
|
```ts
|
|
879
881
|
export interface ComputeTextureBinding {
|
|
@@ -886,7 +888,7 @@ export interface ComputeTextureBinding {
|
|
|
886
888
|
|
|
887
889
|
## ComputeDispatchInput
|
|
888
890
|
|
|
889
|
-
来源:`packages/sdk/src/index.ts:
|
|
891
|
+
来源:`packages/sdk/src/index.ts:440`
|
|
890
892
|
|
|
891
893
|
```ts
|
|
892
894
|
export interface ComputeDispatchInput {
|
|
@@ -905,7 +907,7 @@ export interface ComputeDispatchInput {
|
|
|
905
907
|
|
|
906
908
|
## ComputeTaskState
|
|
907
909
|
|
|
908
|
-
来源:`packages/sdk/src/index.ts:
|
|
910
|
+
来源:`packages/sdk/src/index.ts:452`
|
|
909
911
|
|
|
910
912
|
```ts
|
|
911
913
|
export interface ComputeTaskState {
|
|
@@ -916,7 +918,7 @@ export interface ComputeTaskState {
|
|
|
916
918
|
|
|
917
919
|
## ComputeService
|
|
918
920
|
|
|
919
|
-
来源:`packages/sdk/src/index.ts:
|
|
921
|
+
来源:`packages/sdk/src/index.ts:456`
|
|
920
922
|
|
|
921
923
|
```ts
|
|
922
924
|
export interface ComputeService {
|
|
@@ -943,7 +945,7 @@ export interface ComputeService {
|
|
|
943
945
|
|
|
944
946
|
## InputService
|
|
945
947
|
|
|
946
|
-
来源:`packages/sdk/src/index.ts:
|
|
948
|
+
来源:`packages/sdk/src/index.ts:476`
|
|
947
949
|
|
|
948
950
|
```ts
|
|
949
951
|
export interface InputService {
|
|
@@ -956,7 +958,7 @@ export interface InputService {
|
|
|
956
958
|
|
|
957
959
|
## PhysicsService
|
|
958
960
|
|
|
959
|
-
来源:`packages/sdk/src/index.ts:
|
|
961
|
+
来源:`packages/sdk/src/index.ts:482`
|
|
960
962
|
|
|
961
963
|
```ts
|
|
962
964
|
export interface PhysicsService {
|
|
@@ -985,7 +987,7 @@ export interface PhysicsService {
|
|
|
985
987
|
|
|
986
988
|
## AnimationService
|
|
987
989
|
|
|
988
|
-
来源:`packages/sdk/src/index.ts:
|
|
990
|
+
来源:`packages/sdk/src/index.ts:504`
|
|
989
991
|
|
|
990
992
|
```ts
|
|
991
993
|
export interface AnimationService {
|
|
@@ -1004,7 +1006,7 @@ export interface AnimationService {
|
|
|
1004
1006
|
|
|
1005
1007
|
## CameraService
|
|
1006
1008
|
|
|
1007
|
-
来源:`packages/sdk/src/index.ts:
|
|
1009
|
+
来源:`packages/sdk/src/index.ts:516`
|
|
1008
1010
|
|
|
1009
1011
|
```ts
|
|
1010
1012
|
export interface CameraService {
|
|
@@ -1024,7 +1026,7 @@ export interface CameraService {
|
|
|
1024
1026
|
|
|
1025
1027
|
## UIService
|
|
1026
1028
|
|
|
1027
|
-
来源:`packages/sdk/src/index.ts:
|
|
1029
|
+
来源:`packages/sdk/src/index.ts:529`
|
|
1028
1030
|
|
|
1029
1031
|
```ts
|
|
1030
1032
|
export interface UIService {
|
|
@@ -1036,7 +1038,7 @@ export interface UIService {
|
|
|
1036
1038
|
|
|
1037
1039
|
## AudioService
|
|
1038
1040
|
|
|
1039
|
-
来源:`packages/sdk/src/index.ts:
|
|
1041
|
+
来源:`packages/sdk/src/index.ts:534`
|
|
1040
1042
|
|
|
1041
1043
|
```ts
|
|
1042
1044
|
export interface AudioService {
|
|
@@ -1058,7 +1060,7 @@ export interface AudioService {
|
|
|
1058
1060
|
|
|
1059
1061
|
## StorageService
|
|
1060
1062
|
|
|
1061
|
-
来源:`packages/sdk/src/index.ts:
|
|
1063
|
+
来源:`packages/sdk/src/index.ts:549`
|
|
1062
1064
|
|
|
1063
1065
|
```ts
|
|
1064
1066
|
export interface StorageService {
|
|
@@ -1074,7 +1076,7 @@ export interface StorageService {
|
|
|
1074
1076
|
|
|
1075
1077
|
## SceneService
|
|
1076
1078
|
|
|
1077
|
-
来源:`packages/sdk/src/index.ts:
|
|
1079
|
+
来源:`packages/sdk/src/index.ts:558`
|
|
1078
1080
|
|
|
1079
1081
|
```ts
|
|
1080
1082
|
export interface SceneService {
|
|
@@ -1085,7 +1087,7 @@ export interface SceneService {
|
|
|
1085
1087
|
|
|
1086
1088
|
## ModelDefinition
|
|
1087
1089
|
|
|
1088
|
-
来源:`packages/sdk/src/index.ts:
|
|
1090
|
+
来源:`packages/sdk/src/index.ts:562`
|
|
1089
1091
|
|
|
1090
1092
|
```ts
|
|
1091
1093
|
export interface ModelDefinition {
|
|
@@ -1105,7 +1107,7 @@ export interface ModelDefinition {
|
|
|
1105
1107
|
|
|
1106
1108
|
## RigidBodyDefinition
|
|
1107
1109
|
|
|
1108
|
-
来源:`packages/sdk/src/index.ts:
|
|
1110
|
+
来源:`packages/sdk/src/index.ts:575`
|
|
1109
1111
|
|
|
1110
1112
|
```ts
|
|
1111
1113
|
export interface RigidBodyDefinition {
|
|
@@ -1126,7 +1128,7 @@ export interface RigidBodyDefinition {
|
|
|
1126
1128
|
|
|
1127
1129
|
## CharacterDefinition
|
|
1128
1130
|
|
|
1129
|
-
来源:`packages/sdk/src/index.ts:
|
|
1131
|
+
来源:`packages/sdk/src/index.ts:589`
|
|
1130
1132
|
|
|
1131
1133
|
```ts
|
|
1132
1134
|
export interface CharacterDefinition {
|
|
@@ -1141,7 +1143,7 @@ export interface CharacterDefinition {
|
|
|
1141
1143
|
|
|
1142
1144
|
## UIElementDefinition
|
|
1143
1145
|
|
|
1144
|
-
来源:`packages/sdk/src/index.ts:
|
|
1146
|
+
来源:`packages/sdk/src/index.ts:597`
|
|
1145
1147
|
|
|
1146
1148
|
```ts
|
|
1147
1149
|
export interface UIElementDefinition {
|
|
@@ -1161,7 +1163,7 @@ export interface UIElementDefinition {
|
|
|
1161
1163
|
|
|
1162
1164
|
## SoundDefinition
|
|
1163
1165
|
|
|
1164
|
-
来源:`packages/sdk/src/index.ts:
|
|
1166
|
+
来源:`packages/sdk/src/index.ts:610`
|
|
1165
1167
|
|
|
1166
1168
|
```ts
|
|
1167
1169
|
export interface SoundDefinition {
|
|
@@ -1175,7 +1177,7 @@ export interface SoundDefinition {
|
|
|
1175
1177
|
|
|
1176
1178
|
## AudioBusDefinition
|
|
1177
1179
|
|
|
1178
|
-
来源:`packages/sdk/src/index.ts:
|
|
1180
|
+
来源:`packages/sdk/src/index.ts:617`
|
|
1179
1181
|
|
|
1180
1182
|
```ts
|
|
1181
1183
|
export interface AudioBusDefinition {
|
|
@@ -1186,7 +1188,7 @@ export interface AudioBusDefinition {
|
|
|
1186
1188
|
|
|
1187
1189
|
## SYSTEM_PHASES
|
|
1188
1190
|
|
|
1189
|
-
来源:`packages/sdk/src/index.ts:
|
|
1191
|
+
来源:`packages/sdk/src/index.ts:621`
|
|
1190
1192
|
|
|
1191
1193
|
```ts
|
|
1192
1194
|
SYSTEM_PHASES = [
|
|
@@ -1201,7 +1203,7 @@ SYSTEM_PHASES = [
|
|
|
1201
1203
|
|
|
1202
1204
|
## SystemPhase
|
|
1203
1205
|
|
|
1204
|
-
来源:`packages/sdk/src/index.ts:
|
|
1206
|
+
来源:`packages/sdk/src/index.ts:629`
|
|
1205
1207
|
|
|
1206
1208
|
```ts
|
|
1207
1209
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1209,7 +1211,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1209
1211
|
|
|
1210
1212
|
## Geometry
|
|
1211
1213
|
|
|
1212
|
-
来源:`packages/sdk/src/index.ts:
|
|
1214
|
+
来源:`packages/sdk/src/index.ts:630`
|
|
1213
1215
|
|
|
1214
1216
|
```ts
|
|
1215
1217
|
export type Geometry =
|
|
@@ -1220,7 +1222,7 @@ export type Geometry =
|
|
|
1220
1222
|
|
|
1221
1223
|
## GRAPH_TYPES
|
|
1222
1224
|
|
|
1223
|
-
来源:`packages/sdk/src/index.ts:
|
|
1225
|
+
来源:`packages/sdk/src/index.ts:634`
|
|
1224
1226
|
|
|
1225
1227
|
```ts
|
|
1226
1228
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1228,7 +1230,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1228
1230
|
|
|
1229
1231
|
## GraphType
|
|
1230
1232
|
|
|
1231
|
-
来源:`packages/sdk/src/index.ts:
|
|
1233
|
+
来源:`packages/sdk/src/index.ts:635`
|
|
1232
1234
|
|
|
1233
1235
|
```ts
|
|
1234
1236
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1236,7 +1238,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1236
1238
|
|
|
1237
1239
|
## GraphValue
|
|
1238
1240
|
|
|
1239
|
-
来源:`packages/sdk/src/index.ts:
|
|
1241
|
+
来源:`packages/sdk/src/index.ts:636`
|
|
1240
1242
|
|
|
1241
1243
|
```ts
|
|
1242
1244
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1244,7 +1246,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1244
1246
|
|
|
1245
1247
|
## GraphParameter
|
|
1246
1248
|
|
|
1247
|
-
来源:`packages/sdk/src/index.ts:
|
|
1249
|
+
来源:`packages/sdk/src/index.ts:637`
|
|
1248
1250
|
|
|
1249
1251
|
```ts
|
|
1250
1252
|
export interface GraphParameter {
|
|
@@ -1256,7 +1258,7 @@ export interface GraphParameter {
|
|
|
1256
1258
|
|
|
1257
1259
|
## GRAPH_INPUT_TYPES
|
|
1258
1260
|
|
|
1259
|
-
来源:`packages/sdk/src/index.ts:
|
|
1261
|
+
来源:`packages/sdk/src/index.ts:642`
|
|
1260
1262
|
|
|
1261
1263
|
```ts
|
|
1262
1264
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1270,7 +1272,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1270
1272
|
|
|
1271
1273
|
## GraphInputName
|
|
1272
1274
|
|
|
1273
|
-
来源:`packages/sdk/src/index.ts:
|
|
1275
|
+
来源:`packages/sdk/src/index.ts:649`
|
|
1274
1276
|
|
|
1275
1277
|
```ts
|
|
1276
1278
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1278,7 +1280,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1278
1280
|
|
|
1279
1281
|
## GRAPH_OPERATIONS
|
|
1280
1282
|
|
|
1281
|
-
来源:`packages/sdk/src/index.ts:
|
|
1283
|
+
来源:`packages/sdk/src/index.ts:650`
|
|
1282
1284
|
|
|
1283
1285
|
```ts
|
|
1284
1286
|
GRAPH_OPERATIONS = {
|
|
@@ -1290,7 +1292,7 @@ GRAPH_OPERATIONS = {
|
|
|
1290
1292
|
|
|
1291
1293
|
## GraphNode
|
|
1292
1294
|
|
|
1293
|
-
来源:`packages/sdk/src/index.ts:
|
|
1295
|
+
来源:`packages/sdk/src/index.ts:655`
|
|
1294
1296
|
|
|
1295
1297
|
```ts
|
|
1296
1298
|
export type GraphNode =
|
|
@@ -1317,7 +1319,7 @@ export type GraphNode =
|
|
|
1317
1319
|
|
|
1318
1320
|
## Graph
|
|
1319
1321
|
|
|
1320
|
-
来源:`packages/sdk/src/index.ts:
|
|
1322
|
+
来源:`packages/sdk/src/index.ts:675`
|
|
1321
1323
|
|
|
1322
1324
|
```ts
|
|
1323
1325
|
export interface Graph {
|
|
@@ -1329,7 +1331,7 @@ export interface Graph {
|
|
|
1329
1331
|
|
|
1330
1332
|
## MaterialGraphs
|
|
1331
1333
|
|
|
1332
|
-
来源:`packages/sdk/src/index.ts:
|
|
1334
|
+
来源:`packages/sdk/src/index.ts:680`
|
|
1333
1335
|
|
|
1334
1336
|
```ts
|
|
1335
1337
|
export interface MaterialGraphs {
|
|
@@ -1345,7 +1347,7 @@ export interface MaterialGraphs {
|
|
|
1345
1347
|
|
|
1346
1348
|
## VertexGraphs
|
|
1347
1349
|
|
|
1348
|
-
来源:`packages/sdk/src/index.ts:
|
|
1350
|
+
来源:`packages/sdk/src/index.ts:689`
|
|
1349
1351
|
|
|
1350
1352
|
```ts
|
|
1351
1353
|
export interface VertexGraphs {
|
|
@@ -1358,7 +1360,7 @@ export interface VertexGraphs {
|
|
|
1358
1360
|
|
|
1359
1361
|
## MaterialInput
|
|
1360
1362
|
|
|
1361
|
-
来源:`packages/sdk/src/index.ts:
|
|
1363
|
+
来源:`packages/sdk/src/index.ts:695`
|
|
1362
1364
|
|
|
1363
1365
|
```ts
|
|
1364
1366
|
export interface MaterialInput {
|
|
@@ -1392,7 +1394,7 @@ export interface MaterialInput {
|
|
|
1392
1394
|
|
|
1393
1395
|
## MaterialDefinition
|
|
1394
1396
|
|
|
1395
|
-
来源:`packages/sdk/src/index.ts:
|
|
1397
|
+
来源:`packages/sdk/src/index.ts:722`
|
|
1396
1398
|
|
|
1397
1399
|
```ts
|
|
1398
1400
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1402,7 +1404,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1402
1404
|
|
|
1403
1405
|
## PostProcessInput
|
|
1404
1406
|
|
|
1405
|
-
来源:`packages/sdk/src/index.ts:
|
|
1407
|
+
来源:`packages/sdk/src/index.ts:725`
|
|
1406
1408
|
|
|
1407
1409
|
```ts
|
|
1408
1410
|
export interface PostProcessInput {
|
|
@@ -1417,7 +1419,7 @@ export interface PostProcessInput {
|
|
|
1417
1419
|
|
|
1418
1420
|
## PostProcessDefinition
|
|
1419
1421
|
|
|
1420
|
-
来源:`packages/sdk/src/index.ts:
|
|
1422
|
+
来源:`packages/sdk/src/index.ts:733`
|
|
1421
1423
|
|
|
1422
1424
|
```ts
|
|
1423
1425
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1427,7 +1429,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1427
1429
|
|
|
1428
1430
|
## ComputeInput
|
|
1429
1431
|
|
|
1430
|
-
来源:`packages/sdk/src/index.ts:
|
|
1432
|
+
来源:`packages/sdk/src/index.ts:736`
|
|
1431
1433
|
|
|
1432
1434
|
```ts
|
|
1433
1435
|
export interface ComputeInput {
|
|
@@ -1443,7 +1445,7 @@ export interface ComputeInput {
|
|
|
1443
1445
|
|
|
1444
1446
|
## ComputeDefinition
|
|
1445
1447
|
|
|
1446
|
-
来源:`packages/sdk/src/index.ts:
|
|
1448
|
+
来源:`packages/sdk/src/index.ts:745`
|
|
1447
1449
|
|
|
1448
1450
|
```ts
|
|
1449
1451
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1453,7 +1455,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1453
1455
|
|
|
1454
1456
|
## AssetInput
|
|
1455
1457
|
|
|
1456
|
-
来源:`packages/sdk/src/index.ts:
|
|
1458
|
+
来源:`packages/sdk/src/index.ts:748`
|
|
1457
1459
|
|
|
1458
1460
|
```ts
|
|
1459
1461
|
export interface AssetInput {
|
|
@@ -1470,7 +1472,7 @@ export interface AssetInput {
|
|
|
1470
1472
|
|
|
1471
1473
|
## AssetDefinition
|
|
1472
1474
|
|
|
1473
|
-
来源:`packages/sdk/src/index.ts:
|
|
1475
|
+
来源:`packages/sdk/src/index.ts:758`
|
|
1474
1476
|
|
|
1475
1477
|
```ts
|
|
1476
1478
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1480,7 +1482,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1480
1482
|
|
|
1481
1483
|
## MeshDefinition
|
|
1482
1484
|
|
|
1483
|
-
来源:`packages/sdk/src/index.ts:
|
|
1485
|
+
来源:`packages/sdk/src/index.ts:761`
|
|
1484
1486
|
|
|
1485
1487
|
```ts
|
|
1486
1488
|
export interface MeshDefinition {
|
|
@@ -1493,7 +1495,7 @@ export interface MeshDefinition {
|
|
|
1493
1495
|
|
|
1494
1496
|
## LightDefinition
|
|
1495
1497
|
|
|
1496
|
-
来源:`packages/sdk/src/index.ts:
|
|
1498
|
+
来源:`packages/sdk/src/index.ts:767`
|
|
1497
1499
|
|
|
1498
1500
|
```ts
|
|
1499
1501
|
export interface LightDefinition {
|
|
@@ -1515,7 +1517,7 @@ export interface LightDefinition {
|
|
|
1515
1517
|
|
|
1516
1518
|
## EntityInput
|
|
1517
1519
|
|
|
1518
|
-
来源:`packages/sdk/src/index.ts:
|
|
1520
|
+
来源:`packages/sdk/src/index.ts:782`
|
|
1519
1521
|
|
|
1520
1522
|
```ts
|
|
1521
1523
|
export interface EntityInput {
|
|
@@ -1534,7 +1536,7 @@ export interface EntityInput {
|
|
|
1534
1536
|
|
|
1535
1537
|
## PrefabInput
|
|
1536
1538
|
|
|
1537
|
-
来源:`packages/sdk/src/index.ts:
|
|
1539
|
+
来源:`packages/sdk/src/index.ts:794`
|
|
1538
1540
|
|
|
1539
1541
|
```ts
|
|
1540
1542
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1544,7 +1546,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1544
1546
|
|
|
1545
1547
|
## PrefabDefinition
|
|
1546
1548
|
|
|
1547
|
-
来源:`packages/sdk/src/index.ts:
|
|
1549
|
+
来源:`packages/sdk/src/index.ts:797`
|
|
1548
1550
|
|
|
1549
1551
|
```ts
|
|
1550
1552
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1554,7 +1556,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1554
1556
|
|
|
1555
1557
|
## SceneInput
|
|
1556
1558
|
|
|
1557
|
-
来源:`packages/sdk/src/index.ts:
|
|
1559
|
+
来源:`packages/sdk/src/index.ts:800`
|
|
1558
1560
|
|
|
1559
1561
|
```ts
|
|
1560
1562
|
export interface SceneInput {
|
|
@@ -1586,7 +1588,7 @@ export interface SceneInput {
|
|
|
1586
1588
|
|
|
1587
1589
|
## SceneDefinition
|
|
1588
1590
|
|
|
1589
|
-
来源:`packages/sdk/src/index.ts:
|
|
1591
|
+
来源:`packages/sdk/src/index.ts:825`
|
|
1590
1592
|
|
|
1591
1593
|
```ts
|
|
1592
1594
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1596,7 +1598,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1596
1598
|
|
|
1597
1599
|
## SystemInput
|
|
1598
1600
|
|
|
1599
|
-
来源:`packages/sdk/src/index.ts:
|
|
1601
|
+
来源:`packages/sdk/src/index.ts:828`
|
|
1600
1602
|
|
|
1601
1603
|
```ts
|
|
1602
1604
|
export interface SystemInput {
|
|
@@ -1613,7 +1615,7 @@ export interface SystemInput {
|
|
|
1613
1615
|
|
|
1614
1616
|
## SystemDefinition
|
|
1615
1617
|
|
|
1616
|
-
来源:`packages/sdk/src/index.ts:
|
|
1618
|
+
来源:`packages/sdk/src/index.ts:838`
|
|
1617
1619
|
|
|
1618
1620
|
```ts
|
|
1619
1621
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1623,7 +1625,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1623
1625
|
|
|
1624
1626
|
## GameInput
|
|
1625
1627
|
|
|
1626
|
-
来源:`packages/sdk/src/index.ts:
|
|
1628
|
+
来源:`packages/sdk/src/index.ts:841`
|
|
1627
1629
|
|
|
1628
1630
|
```ts
|
|
1629
1631
|
export interface GameInput {
|
|
@@ -1649,7 +1651,7 @@ export interface GameInput {
|
|
|
1649
1651
|
|
|
1650
1652
|
## GameDefinition
|
|
1651
1653
|
|
|
1652
|
-
来源:`packages/sdk/src/index.ts:
|
|
1654
|
+
来源:`packages/sdk/src/index.ts:860`
|
|
1653
1655
|
|
|
1654
1656
|
```ts
|
|
1655
1657
|
export interface GameDefinition extends GameInput {
|
|
@@ -1659,7 +1661,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1659
1661
|
|
|
1660
1662
|
## GameInstance
|
|
1661
1663
|
|
|
1662
|
-
来源:`packages/sdk/src/index.ts:
|
|
1664
|
+
来源:`packages/sdk/src/index.ts:863`
|
|
1663
1665
|
|
|
1664
1666
|
```ts
|
|
1665
1667
|
export interface GameInstance {
|
|
@@ -1670,7 +1672,7 @@ export interface GameInstance {
|
|
|
1670
1672
|
|
|
1671
1673
|
## defineComponent
|
|
1672
1674
|
|
|
1673
|
-
来源:`packages/sdk/src/index.ts:
|
|
1675
|
+
来源:`packages/sdk/src/index.ts:867`
|
|
1674
1676
|
|
|
1675
1677
|
```ts
|
|
1676
1678
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1681,7 +1683,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1681
1683
|
|
|
1682
1684
|
## defineMaterial
|
|
1683
1685
|
|
|
1684
|
-
来源:`packages/sdk/src/index.ts:
|
|
1686
|
+
来源:`packages/sdk/src/index.ts:873`
|
|
1685
1687
|
|
|
1686
1688
|
```ts
|
|
1687
1689
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1689,7 +1691,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1689
1691
|
|
|
1690
1692
|
## definePostProcess
|
|
1691
1693
|
|
|
1692
|
-
来源:`packages/sdk/src/index.ts:
|
|
1694
|
+
来源:`packages/sdk/src/index.ts:876`
|
|
1693
1695
|
|
|
1694
1696
|
```ts
|
|
1695
1697
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1697,7 +1699,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1697
1699
|
|
|
1698
1700
|
## defineCompute
|
|
1699
1701
|
|
|
1700
|
-
来源:`packages/sdk/src/index.ts:
|
|
1702
|
+
来源:`packages/sdk/src/index.ts:879`
|
|
1701
1703
|
|
|
1702
1704
|
```ts
|
|
1703
1705
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1705,7 +1707,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1705
1707
|
|
|
1706
1708
|
## defineAsset
|
|
1707
1709
|
|
|
1708
|
-
来源:`packages/sdk/src/index.ts:
|
|
1710
|
+
来源:`packages/sdk/src/index.ts:882`
|
|
1709
1711
|
|
|
1710
1712
|
```ts
|
|
1711
1713
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1713,7 +1715,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1713
1715
|
|
|
1714
1716
|
## definePrefab
|
|
1715
1717
|
|
|
1716
|
-
来源:`packages/sdk/src/index.ts:
|
|
1718
|
+
来源:`packages/sdk/src/index.ts:885`
|
|
1717
1719
|
|
|
1718
1720
|
```ts
|
|
1719
1721
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1721,7 +1723,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1721
1723
|
|
|
1722
1724
|
## defineScene
|
|
1723
1725
|
|
|
1724
|
-
来源:`packages/sdk/src/index.ts:
|
|
1726
|
+
来源:`packages/sdk/src/index.ts:888`
|
|
1725
1727
|
|
|
1726
1728
|
```ts
|
|
1727
1729
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1729,7 +1731,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1729
1731
|
|
|
1730
1732
|
## defineSystem
|
|
1731
1733
|
|
|
1732
|
-
来源:`packages/sdk/src/index.ts:
|
|
1734
|
+
来源:`packages/sdk/src/index.ts:891`
|
|
1733
1735
|
|
|
1734
1736
|
```ts
|
|
1735
1737
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1737,7 +1739,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1737
1739
|
|
|
1738
1740
|
## defineGame
|
|
1739
1741
|
|
|
1740
|
-
来源:`packages/sdk/src/index.ts:
|
|
1742
|
+
来源:`packages/sdk/src/index.ts:894`
|
|
1741
1743
|
|
|
1742
1744
|
```ts
|
|
1743
1745
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1745,7 +1747,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1745
1747
|
|
|
1746
1748
|
## instantiateGame
|
|
1747
1749
|
|
|
1748
|
-
来源:`packages/sdk/src/index.ts:
|
|
1750
|
+
来源:`packages/sdk/src/index.ts:898`
|
|
1749
1751
|
|
|
1750
1752
|
```ts
|
|
1751
1753
|
export function instantiateGame(
|