pelican-engine 0.3.22 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -0
- package/distribution.json +11 -11
- package/docs/STATUS.md +2 -0
- package/docs/api/REFERENCE.md +105 -95
- package/docs/api/index.json +108 -97
- package/docs/npm/GAME-AUTHOR.md +2 -0
- package/engine.manifest.json +1 -1
- package/lib/sdk/index.d.ts +7 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +46 -5
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.23 API 索引
|
|
2
2
|
|
|
3
3
|
Installed declarations: `lib/sdk/index.d.ts` (relative to the package root).
|
|
4
4
|
The signatures below come from the same public SDK source as repository games.
|
|
@@ -11,7 +11,7 @@ Source-file paths and line numbers are build-time provenance only; TypeScript so
|
|
|
11
11
|
来源:`packages/sdk/src/index.ts:2`
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
SDK_VERSION = "0.3.
|
|
14
|
+
SDK_VERSION = "0.3.23"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -456,10 +456,18 @@ export interface ClothVisualOptions {
|
|
|
456
456
|
}
|
|
457
457
|
```
|
|
458
458
|
|
|
459
|
-
##
|
|
459
|
+
## ClothBodyCollider
|
|
460
460
|
|
|
461
461
|
来源:`packages/sdk/src/index.ts:237`
|
|
462
462
|
|
|
463
|
+
```ts
|
|
464
|
+
export interface ClothBodyCollider { readonly id: string; readonly entity: string }
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
## ClothDefinition
|
|
468
|
+
|
|
469
|
+
来源:`packages/sdk/src/index.ts:238`
|
|
470
|
+
|
|
463
471
|
```ts
|
|
464
472
|
export interface ClothDefinition {
|
|
465
473
|
id: string;
|
|
@@ -482,12 +490,14 @@ export interface ClothDefinition {
|
|
|
482
490
|
selfCollisions?: boolean;
|
|
483
491
|
/** Sphere triangle-surface contacts; defaults to true for new cloth. */
|
|
484
492
|
surfaceCollisions?: boolean;
|
|
493
|
+
/** Optional live dynamic sphere bindings; sampled after the physics phase, one-way only. */
|
|
494
|
+
bodyColliders?: readonly ClothBodyCollider[];
|
|
485
495
|
}
|
|
486
496
|
```
|
|
487
497
|
|
|
488
498
|
## ClothContact
|
|
489
499
|
|
|
490
|
-
来源:`packages/sdk/src/index.ts:
|
|
500
|
+
来源:`packages/sdk/src/index.ts:262`
|
|
491
501
|
|
|
492
502
|
```ts
|
|
493
503
|
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }
|
|
@@ -495,7 +505,7 @@ export interface ClothContact { tick: number; particle: number; colliderId: stri
|
|
|
495
505
|
|
|
496
506
|
## ClothSelfContact
|
|
497
507
|
|
|
498
|
-
来源:`packages/sdk/src/index.ts:
|
|
508
|
+
来源:`packages/sdk/src/index.ts:263`
|
|
499
509
|
|
|
500
510
|
```ts
|
|
501
511
|
export interface ClothSelfContact { tick: number; firstParticle: number; secondParticle: number; penetration: number }
|
|
@@ -503,7 +513,7 @@ export interface ClothSelfContact { tick: number; firstParticle: number; secondP
|
|
|
503
513
|
|
|
504
514
|
## ClothSurfaceContact
|
|
505
515
|
|
|
506
|
-
来源:`packages/sdk/src/index.ts:
|
|
516
|
+
来源:`packages/sdk/src/index.ts:264`
|
|
507
517
|
|
|
508
518
|
```ts
|
|
509
519
|
export interface ClothSurfaceContact { tick: number; triangle: number; colliderId: string; penetration: number; barycentric: [number, number, number] }
|
|
@@ -511,7 +521,7 @@ export interface ClothSurfaceContact { tick: number; triangle: number; colliderI
|
|
|
511
521
|
|
|
512
522
|
## ClothState
|
|
513
523
|
|
|
514
|
-
来源:`packages/sdk/src/index.ts:
|
|
524
|
+
来源:`packages/sdk/src/index.ts:265`
|
|
515
525
|
|
|
516
526
|
```ts
|
|
517
527
|
export interface ClothState {
|
|
@@ -526,7 +536,7 @@ export interface ClothState {
|
|
|
526
536
|
|
|
527
537
|
## ClothVisualState
|
|
528
538
|
|
|
529
|
-
来源:`packages/sdk/src/index.ts:
|
|
539
|
+
来源:`packages/sdk/src/index.ts:273`
|
|
530
540
|
|
|
531
541
|
```ts
|
|
532
542
|
export interface ClothVisualState {
|
|
@@ -537,7 +547,7 @@ export interface ClothVisualState {
|
|
|
537
547
|
|
|
538
548
|
## ClothService
|
|
539
549
|
|
|
540
|
-
来源:`packages/sdk/src/index.ts:
|
|
550
|
+
来源:`packages/sdk/src/index.ts:277`
|
|
541
551
|
|
|
542
552
|
```ts
|
|
543
553
|
export interface ClothService {
|
|
@@ -557,7 +567,7 @@ export interface ClothService {
|
|
|
557
567
|
|
|
558
568
|
## NavigationCell
|
|
559
569
|
|
|
560
|
-
来源:`packages/sdk/src/index.ts:
|
|
570
|
+
来源:`packages/sdk/src/index.ts:293`
|
|
561
571
|
|
|
562
572
|
```ts
|
|
563
573
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -565,7 +575,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
565
575
|
|
|
566
576
|
## NavigationObstacleUpdate
|
|
567
577
|
|
|
568
|
-
来源:`packages/sdk/src/index.ts:
|
|
578
|
+
来源:`packages/sdk/src/index.ts:295`
|
|
569
579
|
|
|
570
580
|
```ts
|
|
571
581
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -573,7 +583,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
573
583
|
|
|
574
584
|
## NavigationGrid
|
|
575
585
|
|
|
576
|
-
来源:`packages/sdk/src/index.ts:
|
|
586
|
+
来源:`packages/sdk/src/index.ts:296`
|
|
577
587
|
|
|
578
588
|
```ts
|
|
579
589
|
export interface NavigationGrid {
|
|
@@ -589,7 +599,7 @@ export interface NavigationGrid {
|
|
|
589
599
|
|
|
590
600
|
## NavigationService
|
|
591
601
|
|
|
592
|
-
来源:`packages/sdk/src/index.ts:
|
|
602
|
+
来源:`packages/sdk/src/index.ts:305`
|
|
593
603
|
|
|
594
604
|
```ts
|
|
595
605
|
export interface NavigationService {
|
|
@@ -608,7 +618,7 @@ export interface NavigationService {
|
|
|
608
618
|
|
|
609
619
|
## RenderMode
|
|
610
620
|
|
|
611
|
-
来源:`packages/sdk/src/index.ts:
|
|
621
|
+
来源:`packages/sdk/src/index.ts:317`
|
|
612
622
|
|
|
613
623
|
```ts
|
|
614
624
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -616,7 +626,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
616
626
|
|
|
617
627
|
## RenderCapabilities
|
|
618
628
|
|
|
619
|
-
来源:`packages/sdk/src/index.ts:
|
|
629
|
+
来源:`packages/sdk/src/index.ts:318`
|
|
620
630
|
|
|
621
631
|
```ts
|
|
622
632
|
export interface RenderCapabilities {
|
|
@@ -628,7 +638,7 @@ export interface RenderCapabilities {
|
|
|
628
638
|
|
|
629
639
|
## RenderSettings
|
|
630
640
|
|
|
631
|
-
来源:`packages/sdk/src/index.ts:
|
|
641
|
+
来源:`packages/sdk/src/index.ts:323`
|
|
632
642
|
|
|
633
643
|
```ts
|
|
634
644
|
export interface RenderSettings {
|
|
@@ -646,7 +656,7 @@ export interface RenderSettings {
|
|
|
646
656
|
|
|
647
657
|
## RenderService
|
|
648
658
|
|
|
649
|
-
来源:`packages/sdk/src/index.ts:
|
|
659
|
+
来源:`packages/sdk/src/index.ts:334`
|
|
650
660
|
|
|
651
661
|
```ts
|
|
652
662
|
export interface RenderService {
|
|
@@ -663,7 +673,7 @@ export interface RenderService {
|
|
|
663
673
|
|
|
664
674
|
## MaterialBufferInput
|
|
665
675
|
|
|
666
|
-
来源:`packages/sdk/src/index.ts:
|
|
676
|
+
来源:`packages/sdk/src/index.ts:344`
|
|
667
677
|
|
|
668
678
|
```ts
|
|
669
679
|
export interface MaterialBufferInput {
|
|
@@ -679,7 +689,7 @@ export interface MaterialBufferInput {
|
|
|
679
689
|
|
|
680
690
|
## RenderBufferReference
|
|
681
691
|
|
|
682
|
-
来源:`packages/sdk/src/index.ts:
|
|
692
|
+
来源:`packages/sdk/src/index.ts:353`
|
|
683
693
|
|
|
684
694
|
```ts
|
|
685
695
|
export interface RenderBufferReference {
|
|
@@ -691,7 +701,7 @@ export interface RenderBufferReference {
|
|
|
691
701
|
|
|
692
702
|
## RenderBufferBindings
|
|
693
703
|
|
|
694
|
-
来源:`packages/sdk/src/index.ts:
|
|
704
|
+
来源:`packages/sdk/src/index.ts:358`
|
|
695
705
|
|
|
696
706
|
```ts
|
|
697
707
|
export interface RenderBufferBindings {
|
|
@@ -703,7 +713,7 @@ export interface RenderBufferBindings {
|
|
|
703
713
|
|
|
704
714
|
## MaterialTextureInput
|
|
705
715
|
|
|
706
|
-
来源:`packages/sdk/src/index.ts:
|
|
716
|
+
来源:`packages/sdk/src/index.ts:363`
|
|
707
717
|
|
|
708
718
|
```ts
|
|
709
719
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -716,7 +726,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
716
726
|
|
|
717
727
|
## RenderTextureReference
|
|
718
728
|
|
|
719
|
-
来源:`packages/sdk/src/index.ts:
|
|
729
|
+
来源:`packages/sdk/src/index.ts:369`
|
|
720
730
|
|
|
721
731
|
```ts
|
|
722
732
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -727,7 +737,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
727
737
|
|
|
728
738
|
## RenderTextureBindings
|
|
729
739
|
|
|
730
|
-
来源:`packages/sdk/src/index.ts:
|
|
740
|
+
来源:`packages/sdk/src/index.ts:373`
|
|
731
741
|
|
|
732
742
|
```ts
|
|
733
743
|
export interface RenderTextureBindings {
|
|
@@ -739,7 +749,7 @@ export interface RenderTextureBindings {
|
|
|
739
749
|
|
|
740
750
|
## PostProcessState
|
|
741
751
|
|
|
742
|
-
来源:`packages/sdk/src/index.ts:
|
|
752
|
+
来源:`packages/sdk/src/index.ts:378`
|
|
743
753
|
|
|
744
754
|
```ts
|
|
745
755
|
export interface PostProcessState {
|
|
@@ -751,7 +761,7 @@ export interface PostProcessState {
|
|
|
751
761
|
|
|
752
762
|
## PostProcessService
|
|
753
763
|
|
|
754
|
-
来源:`packages/sdk/src/index.ts:
|
|
764
|
+
来源:`packages/sdk/src/index.ts:383`
|
|
755
765
|
|
|
756
766
|
```ts
|
|
757
767
|
export interface PostProcessService {
|
|
@@ -768,7 +778,7 @@ export interface PostProcessService {
|
|
|
768
778
|
|
|
769
779
|
## ComputeBufferHandle
|
|
770
780
|
|
|
771
|
-
来源:`packages/sdk/src/index.ts:
|
|
781
|
+
来源:`packages/sdk/src/index.ts:393`
|
|
772
782
|
|
|
773
783
|
```ts
|
|
774
784
|
export interface ComputeBufferHandle {
|
|
@@ -780,7 +790,7 @@ export interface ComputeBufferHandle {
|
|
|
780
790
|
|
|
781
791
|
## ComputeTaskHandle
|
|
782
792
|
|
|
783
|
-
来源:`packages/sdk/src/index.ts:
|
|
793
|
+
来源:`packages/sdk/src/index.ts:398`
|
|
784
794
|
|
|
785
795
|
```ts
|
|
786
796
|
export interface ComputeTaskHandle {
|
|
@@ -791,7 +801,7 @@ export interface ComputeTaskHandle {
|
|
|
791
801
|
|
|
792
802
|
## ComputeBufferInput
|
|
793
803
|
|
|
794
|
-
来源:`packages/sdk/src/index.ts:
|
|
804
|
+
来源:`packages/sdk/src/index.ts:402`
|
|
795
805
|
|
|
796
806
|
```ts
|
|
797
807
|
export interface ComputeBufferInput {
|
|
@@ -804,7 +814,7 @@ export interface ComputeBufferInput {
|
|
|
804
814
|
|
|
805
815
|
## ComputeTextureHandle
|
|
806
816
|
|
|
807
|
-
来源:`packages/sdk/src/index.ts:
|
|
817
|
+
来源:`packages/sdk/src/index.ts:408`
|
|
808
818
|
|
|
809
819
|
```ts
|
|
810
820
|
export interface ComputeTextureHandle {
|
|
@@ -817,7 +827,7 @@ export interface ComputeTextureHandle {
|
|
|
817
827
|
|
|
818
828
|
## ComputeTextureSize
|
|
819
829
|
|
|
820
|
-
来源:`packages/sdk/src/index.ts:
|
|
830
|
+
来源:`packages/sdk/src/index.ts:414`
|
|
821
831
|
|
|
822
832
|
```ts
|
|
823
833
|
export interface ComputeTextureSize {
|
|
@@ -828,7 +838,7 @@ export interface ComputeTextureSize {
|
|
|
828
838
|
|
|
829
839
|
## ComputeTextureDataInput
|
|
830
840
|
|
|
831
|
-
来源:`packages/sdk/src/index.ts:
|
|
841
|
+
来源:`packages/sdk/src/index.ts:418`
|
|
832
842
|
|
|
833
843
|
```ts
|
|
834
844
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -841,7 +851,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
841
851
|
|
|
842
852
|
## ComputeTextureAssetInput
|
|
843
853
|
|
|
844
|
-
来源:`packages/sdk/src/index.ts:
|
|
854
|
+
来源:`packages/sdk/src/index.ts:424`
|
|
845
855
|
|
|
846
856
|
```ts
|
|
847
857
|
export interface ComputeTextureAssetInput {
|
|
@@ -855,7 +865,7 @@ export interface ComputeTextureAssetInput {
|
|
|
855
865
|
|
|
856
866
|
## ComputeTextureInput
|
|
857
867
|
|
|
858
|
-
来源:`packages/sdk/src/index.ts:
|
|
868
|
+
来源:`packages/sdk/src/index.ts:431`
|
|
859
869
|
|
|
860
870
|
```ts
|
|
861
871
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -863,7 +873,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
863
873
|
|
|
864
874
|
## ComputeTextureBinding
|
|
865
875
|
|
|
866
|
-
来源:`packages/sdk/src/index.ts:
|
|
876
|
+
来源:`packages/sdk/src/index.ts:432`
|
|
867
877
|
|
|
868
878
|
```ts
|
|
869
879
|
export interface ComputeTextureBinding {
|
|
@@ -876,7 +886,7 @@ export interface ComputeTextureBinding {
|
|
|
876
886
|
|
|
877
887
|
## ComputeDispatchInput
|
|
878
888
|
|
|
879
|
-
来源:`packages/sdk/src/index.ts:
|
|
889
|
+
来源:`packages/sdk/src/index.ts:438`
|
|
880
890
|
|
|
881
891
|
```ts
|
|
882
892
|
export interface ComputeDispatchInput {
|
|
@@ -895,7 +905,7 @@ export interface ComputeDispatchInput {
|
|
|
895
905
|
|
|
896
906
|
## ComputeTaskState
|
|
897
907
|
|
|
898
|
-
来源:`packages/sdk/src/index.ts:
|
|
908
|
+
来源:`packages/sdk/src/index.ts:450`
|
|
899
909
|
|
|
900
910
|
```ts
|
|
901
911
|
export interface ComputeTaskState {
|
|
@@ -906,7 +916,7 @@ export interface ComputeTaskState {
|
|
|
906
916
|
|
|
907
917
|
## ComputeService
|
|
908
918
|
|
|
909
|
-
来源:`packages/sdk/src/index.ts:
|
|
919
|
+
来源:`packages/sdk/src/index.ts:454`
|
|
910
920
|
|
|
911
921
|
```ts
|
|
912
922
|
export interface ComputeService {
|
|
@@ -933,7 +943,7 @@ export interface ComputeService {
|
|
|
933
943
|
|
|
934
944
|
## InputService
|
|
935
945
|
|
|
936
|
-
来源:`packages/sdk/src/index.ts:
|
|
946
|
+
来源:`packages/sdk/src/index.ts:474`
|
|
937
947
|
|
|
938
948
|
```ts
|
|
939
949
|
export interface InputService {
|
|
@@ -946,7 +956,7 @@ export interface InputService {
|
|
|
946
956
|
|
|
947
957
|
## PhysicsService
|
|
948
958
|
|
|
949
|
-
来源:`packages/sdk/src/index.ts:
|
|
959
|
+
来源:`packages/sdk/src/index.ts:480`
|
|
950
960
|
|
|
951
961
|
```ts
|
|
952
962
|
export interface PhysicsService {
|
|
@@ -975,7 +985,7 @@ export interface PhysicsService {
|
|
|
975
985
|
|
|
976
986
|
## AnimationService
|
|
977
987
|
|
|
978
|
-
来源:`packages/sdk/src/index.ts:
|
|
988
|
+
来源:`packages/sdk/src/index.ts:502`
|
|
979
989
|
|
|
980
990
|
```ts
|
|
981
991
|
export interface AnimationService {
|
|
@@ -994,7 +1004,7 @@ export interface AnimationService {
|
|
|
994
1004
|
|
|
995
1005
|
## CameraService
|
|
996
1006
|
|
|
997
|
-
来源:`packages/sdk/src/index.ts:
|
|
1007
|
+
来源:`packages/sdk/src/index.ts:514`
|
|
998
1008
|
|
|
999
1009
|
```ts
|
|
1000
1010
|
export interface CameraService {
|
|
@@ -1014,7 +1024,7 @@ export interface CameraService {
|
|
|
1014
1024
|
|
|
1015
1025
|
## UIService
|
|
1016
1026
|
|
|
1017
|
-
来源:`packages/sdk/src/index.ts:
|
|
1027
|
+
来源:`packages/sdk/src/index.ts:527`
|
|
1018
1028
|
|
|
1019
1029
|
```ts
|
|
1020
1030
|
export interface UIService {
|
|
@@ -1026,7 +1036,7 @@ export interface UIService {
|
|
|
1026
1036
|
|
|
1027
1037
|
## AudioService
|
|
1028
1038
|
|
|
1029
|
-
来源:`packages/sdk/src/index.ts:
|
|
1039
|
+
来源:`packages/sdk/src/index.ts:532`
|
|
1030
1040
|
|
|
1031
1041
|
```ts
|
|
1032
1042
|
export interface AudioService {
|
|
@@ -1048,7 +1058,7 @@ export interface AudioService {
|
|
|
1048
1058
|
|
|
1049
1059
|
## StorageService
|
|
1050
1060
|
|
|
1051
|
-
来源:`packages/sdk/src/index.ts:
|
|
1061
|
+
来源:`packages/sdk/src/index.ts:547`
|
|
1052
1062
|
|
|
1053
1063
|
```ts
|
|
1054
1064
|
export interface StorageService {
|
|
@@ -1064,7 +1074,7 @@ export interface StorageService {
|
|
|
1064
1074
|
|
|
1065
1075
|
## SceneService
|
|
1066
1076
|
|
|
1067
|
-
来源:`packages/sdk/src/index.ts:
|
|
1077
|
+
来源:`packages/sdk/src/index.ts:556`
|
|
1068
1078
|
|
|
1069
1079
|
```ts
|
|
1070
1080
|
export interface SceneService {
|
|
@@ -1075,7 +1085,7 @@ export interface SceneService {
|
|
|
1075
1085
|
|
|
1076
1086
|
## ModelDefinition
|
|
1077
1087
|
|
|
1078
|
-
来源:`packages/sdk/src/index.ts:
|
|
1088
|
+
来源:`packages/sdk/src/index.ts:560`
|
|
1079
1089
|
|
|
1080
1090
|
```ts
|
|
1081
1091
|
export interface ModelDefinition {
|
|
@@ -1095,7 +1105,7 @@ export interface ModelDefinition {
|
|
|
1095
1105
|
|
|
1096
1106
|
## RigidBodyDefinition
|
|
1097
1107
|
|
|
1098
|
-
来源:`packages/sdk/src/index.ts:
|
|
1108
|
+
来源:`packages/sdk/src/index.ts:573`
|
|
1099
1109
|
|
|
1100
1110
|
```ts
|
|
1101
1111
|
export interface RigidBodyDefinition {
|
|
@@ -1116,7 +1126,7 @@ export interface RigidBodyDefinition {
|
|
|
1116
1126
|
|
|
1117
1127
|
## CharacterDefinition
|
|
1118
1128
|
|
|
1119
|
-
来源:`packages/sdk/src/index.ts:
|
|
1129
|
+
来源:`packages/sdk/src/index.ts:587`
|
|
1120
1130
|
|
|
1121
1131
|
```ts
|
|
1122
1132
|
export interface CharacterDefinition {
|
|
@@ -1131,7 +1141,7 @@ export interface CharacterDefinition {
|
|
|
1131
1141
|
|
|
1132
1142
|
## UIElementDefinition
|
|
1133
1143
|
|
|
1134
|
-
来源:`packages/sdk/src/index.ts:
|
|
1144
|
+
来源:`packages/sdk/src/index.ts:595`
|
|
1135
1145
|
|
|
1136
1146
|
```ts
|
|
1137
1147
|
export interface UIElementDefinition {
|
|
@@ -1151,7 +1161,7 @@ export interface UIElementDefinition {
|
|
|
1151
1161
|
|
|
1152
1162
|
## SoundDefinition
|
|
1153
1163
|
|
|
1154
|
-
来源:`packages/sdk/src/index.ts:
|
|
1164
|
+
来源:`packages/sdk/src/index.ts:608`
|
|
1155
1165
|
|
|
1156
1166
|
```ts
|
|
1157
1167
|
export interface SoundDefinition {
|
|
@@ -1165,7 +1175,7 @@ export interface SoundDefinition {
|
|
|
1165
1175
|
|
|
1166
1176
|
## AudioBusDefinition
|
|
1167
1177
|
|
|
1168
|
-
来源:`packages/sdk/src/index.ts:
|
|
1178
|
+
来源:`packages/sdk/src/index.ts:615`
|
|
1169
1179
|
|
|
1170
1180
|
```ts
|
|
1171
1181
|
export interface AudioBusDefinition {
|
|
@@ -1176,7 +1186,7 @@ export interface AudioBusDefinition {
|
|
|
1176
1186
|
|
|
1177
1187
|
## SYSTEM_PHASES
|
|
1178
1188
|
|
|
1179
|
-
来源:`packages/sdk/src/index.ts:
|
|
1189
|
+
来源:`packages/sdk/src/index.ts:619`
|
|
1180
1190
|
|
|
1181
1191
|
```ts
|
|
1182
1192
|
SYSTEM_PHASES = [
|
|
@@ -1191,7 +1201,7 @@ SYSTEM_PHASES = [
|
|
|
1191
1201
|
|
|
1192
1202
|
## SystemPhase
|
|
1193
1203
|
|
|
1194
|
-
来源:`packages/sdk/src/index.ts:
|
|
1204
|
+
来源:`packages/sdk/src/index.ts:627`
|
|
1195
1205
|
|
|
1196
1206
|
```ts
|
|
1197
1207
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1199,7 +1209,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1199
1209
|
|
|
1200
1210
|
## Geometry
|
|
1201
1211
|
|
|
1202
|
-
来源:`packages/sdk/src/index.ts:
|
|
1212
|
+
来源:`packages/sdk/src/index.ts:628`
|
|
1203
1213
|
|
|
1204
1214
|
```ts
|
|
1205
1215
|
export type Geometry =
|
|
@@ -1210,7 +1220,7 @@ export type Geometry =
|
|
|
1210
1220
|
|
|
1211
1221
|
## GRAPH_TYPES
|
|
1212
1222
|
|
|
1213
|
-
来源:`packages/sdk/src/index.ts:
|
|
1223
|
+
来源:`packages/sdk/src/index.ts:632`
|
|
1214
1224
|
|
|
1215
1225
|
```ts
|
|
1216
1226
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1218,7 +1228,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1218
1228
|
|
|
1219
1229
|
## GraphType
|
|
1220
1230
|
|
|
1221
|
-
来源:`packages/sdk/src/index.ts:
|
|
1231
|
+
来源:`packages/sdk/src/index.ts:633`
|
|
1222
1232
|
|
|
1223
1233
|
```ts
|
|
1224
1234
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1226,7 +1236,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1226
1236
|
|
|
1227
1237
|
## GraphValue
|
|
1228
1238
|
|
|
1229
|
-
来源:`packages/sdk/src/index.ts:
|
|
1239
|
+
来源:`packages/sdk/src/index.ts:634`
|
|
1230
1240
|
|
|
1231
1241
|
```ts
|
|
1232
1242
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1234,7 +1244,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1234
1244
|
|
|
1235
1245
|
## GraphParameter
|
|
1236
1246
|
|
|
1237
|
-
来源:`packages/sdk/src/index.ts:
|
|
1247
|
+
来源:`packages/sdk/src/index.ts:635`
|
|
1238
1248
|
|
|
1239
1249
|
```ts
|
|
1240
1250
|
export interface GraphParameter {
|
|
@@ -1246,7 +1256,7 @@ export interface GraphParameter {
|
|
|
1246
1256
|
|
|
1247
1257
|
## GRAPH_INPUT_TYPES
|
|
1248
1258
|
|
|
1249
|
-
来源:`packages/sdk/src/index.ts:
|
|
1259
|
+
来源:`packages/sdk/src/index.ts:640`
|
|
1250
1260
|
|
|
1251
1261
|
```ts
|
|
1252
1262
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1260,7 +1270,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1260
1270
|
|
|
1261
1271
|
## GraphInputName
|
|
1262
1272
|
|
|
1263
|
-
来源:`packages/sdk/src/index.ts:
|
|
1273
|
+
来源:`packages/sdk/src/index.ts:647`
|
|
1264
1274
|
|
|
1265
1275
|
```ts
|
|
1266
1276
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1268,7 +1278,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1268
1278
|
|
|
1269
1279
|
## GRAPH_OPERATIONS
|
|
1270
1280
|
|
|
1271
|
-
来源:`packages/sdk/src/index.ts:
|
|
1281
|
+
来源:`packages/sdk/src/index.ts:648`
|
|
1272
1282
|
|
|
1273
1283
|
```ts
|
|
1274
1284
|
GRAPH_OPERATIONS = {
|
|
@@ -1280,7 +1290,7 @@ GRAPH_OPERATIONS = {
|
|
|
1280
1290
|
|
|
1281
1291
|
## GraphNode
|
|
1282
1292
|
|
|
1283
|
-
来源:`packages/sdk/src/index.ts:
|
|
1293
|
+
来源:`packages/sdk/src/index.ts:653`
|
|
1284
1294
|
|
|
1285
1295
|
```ts
|
|
1286
1296
|
export type GraphNode =
|
|
@@ -1307,7 +1317,7 @@ export type GraphNode =
|
|
|
1307
1317
|
|
|
1308
1318
|
## Graph
|
|
1309
1319
|
|
|
1310
|
-
来源:`packages/sdk/src/index.ts:
|
|
1320
|
+
来源:`packages/sdk/src/index.ts:673`
|
|
1311
1321
|
|
|
1312
1322
|
```ts
|
|
1313
1323
|
export interface Graph {
|
|
@@ -1319,7 +1329,7 @@ export interface Graph {
|
|
|
1319
1329
|
|
|
1320
1330
|
## MaterialGraphs
|
|
1321
1331
|
|
|
1322
|
-
来源:`packages/sdk/src/index.ts:
|
|
1332
|
+
来源:`packages/sdk/src/index.ts:678`
|
|
1323
1333
|
|
|
1324
1334
|
```ts
|
|
1325
1335
|
export interface MaterialGraphs {
|
|
@@ -1335,7 +1345,7 @@ export interface MaterialGraphs {
|
|
|
1335
1345
|
|
|
1336
1346
|
## VertexGraphs
|
|
1337
1347
|
|
|
1338
|
-
来源:`packages/sdk/src/index.ts:
|
|
1348
|
+
来源:`packages/sdk/src/index.ts:687`
|
|
1339
1349
|
|
|
1340
1350
|
```ts
|
|
1341
1351
|
export interface VertexGraphs {
|
|
@@ -1348,7 +1358,7 @@ export interface VertexGraphs {
|
|
|
1348
1358
|
|
|
1349
1359
|
## MaterialInput
|
|
1350
1360
|
|
|
1351
|
-
来源:`packages/sdk/src/index.ts:
|
|
1361
|
+
来源:`packages/sdk/src/index.ts:693`
|
|
1352
1362
|
|
|
1353
1363
|
```ts
|
|
1354
1364
|
export interface MaterialInput {
|
|
@@ -1382,7 +1392,7 @@ export interface MaterialInput {
|
|
|
1382
1392
|
|
|
1383
1393
|
## MaterialDefinition
|
|
1384
1394
|
|
|
1385
|
-
来源:`packages/sdk/src/index.ts:
|
|
1395
|
+
来源:`packages/sdk/src/index.ts:720`
|
|
1386
1396
|
|
|
1387
1397
|
```ts
|
|
1388
1398
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1392,7 +1402,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1392
1402
|
|
|
1393
1403
|
## PostProcessInput
|
|
1394
1404
|
|
|
1395
|
-
来源:`packages/sdk/src/index.ts:
|
|
1405
|
+
来源:`packages/sdk/src/index.ts:723`
|
|
1396
1406
|
|
|
1397
1407
|
```ts
|
|
1398
1408
|
export interface PostProcessInput {
|
|
@@ -1407,7 +1417,7 @@ export interface PostProcessInput {
|
|
|
1407
1417
|
|
|
1408
1418
|
## PostProcessDefinition
|
|
1409
1419
|
|
|
1410
|
-
来源:`packages/sdk/src/index.ts:
|
|
1420
|
+
来源:`packages/sdk/src/index.ts:731`
|
|
1411
1421
|
|
|
1412
1422
|
```ts
|
|
1413
1423
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1417,7 +1427,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1417
1427
|
|
|
1418
1428
|
## ComputeInput
|
|
1419
1429
|
|
|
1420
|
-
来源:`packages/sdk/src/index.ts:
|
|
1430
|
+
来源:`packages/sdk/src/index.ts:734`
|
|
1421
1431
|
|
|
1422
1432
|
```ts
|
|
1423
1433
|
export interface ComputeInput {
|
|
@@ -1433,7 +1443,7 @@ export interface ComputeInput {
|
|
|
1433
1443
|
|
|
1434
1444
|
## ComputeDefinition
|
|
1435
1445
|
|
|
1436
|
-
来源:`packages/sdk/src/index.ts:
|
|
1446
|
+
来源:`packages/sdk/src/index.ts:743`
|
|
1437
1447
|
|
|
1438
1448
|
```ts
|
|
1439
1449
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1443,7 +1453,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1443
1453
|
|
|
1444
1454
|
## AssetInput
|
|
1445
1455
|
|
|
1446
|
-
来源:`packages/sdk/src/index.ts:
|
|
1456
|
+
来源:`packages/sdk/src/index.ts:746`
|
|
1447
1457
|
|
|
1448
1458
|
```ts
|
|
1449
1459
|
export interface AssetInput {
|
|
@@ -1460,7 +1470,7 @@ export interface AssetInput {
|
|
|
1460
1470
|
|
|
1461
1471
|
## AssetDefinition
|
|
1462
1472
|
|
|
1463
|
-
来源:`packages/sdk/src/index.ts:
|
|
1473
|
+
来源:`packages/sdk/src/index.ts:756`
|
|
1464
1474
|
|
|
1465
1475
|
```ts
|
|
1466
1476
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1470,7 +1480,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1470
1480
|
|
|
1471
1481
|
## MeshDefinition
|
|
1472
1482
|
|
|
1473
|
-
来源:`packages/sdk/src/index.ts:
|
|
1483
|
+
来源:`packages/sdk/src/index.ts:759`
|
|
1474
1484
|
|
|
1475
1485
|
```ts
|
|
1476
1486
|
export interface MeshDefinition {
|
|
@@ -1483,7 +1493,7 @@ export interface MeshDefinition {
|
|
|
1483
1493
|
|
|
1484
1494
|
## LightDefinition
|
|
1485
1495
|
|
|
1486
|
-
来源:`packages/sdk/src/index.ts:
|
|
1496
|
+
来源:`packages/sdk/src/index.ts:765`
|
|
1487
1497
|
|
|
1488
1498
|
```ts
|
|
1489
1499
|
export interface LightDefinition {
|
|
@@ -1505,7 +1515,7 @@ export interface LightDefinition {
|
|
|
1505
1515
|
|
|
1506
1516
|
## EntityInput
|
|
1507
1517
|
|
|
1508
|
-
来源:`packages/sdk/src/index.ts:
|
|
1518
|
+
来源:`packages/sdk/src/index.ts:780`
|
|
1509
1519
|
|
|
1510
1520
|
```ts
|
|
1511
1521
|
export interface EntityInput {
|
|
@@ -1524,7 +1534,7 @@ export interface EntityInput {
|
|
|
1524
1534
|
|
|
1525
1535
|
## PrefabInput
|
|
1526
1536
|
|
|
1527
|
-
来源:`packages/sdk/src/index.ts:
|
|
1537
|
+
来源:`packages/sdk/src/index.ts:792`
|
|
1528
1538
|
|
|
1529
1539
|
```ts
|
|
1530
1540
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1534,7 +1544,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1534
1544
|
|
|
1535
1545
|
## PrefabDefinition
|
|
1536
1546
|
|
|
1537
|
-
来源:`packages/sdk/src/index.ts:
|
|
1547
|
+
来源:`packages/sdk/src/index.ts:795`
|
|
1538
1548
|
|
|
1539
1549
|
```ts
|
|
1540
1550
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1544,7 +1554,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1544
1554
|
|
|
1545
1555
|
## SceneInput
|
|
1546
1556
|
|
|
1547
|
-
来源:`packages/sdk/src/index.ts:
|
|
1557
|
+
来源:`packages/sdk/src/index.ts:798`
|
|
1548
1558
|
|
|
1549
1559
|
```ts
|
|
1550
1560
|
export interface SceneInput {
|
|
@@ -1576,7 +1586,7 @@ export interface SceneInput {
|
|
|
1576
1586
|
|
|
1577
1587
|
## SceneDefinition
|
|
1578
1588
|
|
|
1579
|
-
来源:`packages/sdk/src/index.ts:
|
|
1589
|
+
来源:`packages/sdk/src/index.ts:823`
|
|
1580
1590
|
|
|
1581
1591
|
```ts
|
|
1582
1592
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1586,7 +1596,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1586
1596
|
|
|
1587
1597
|
## SystemInput
|
|
1588
1598
|
|
|
1589
|
-
来源:`packages/sdk/src/index.ts:
|
|
1599
|
+
来源:`packages/sdk/src/index.ts:826`
|
|
1590
1600
|
|
|
1591
1601
|
```ts
|
|
1592
1602
|
export interface SystemInput {
|
|
@@ -1603,7 +1613,7 @@ export interface SystemInput {
|
|
|
1603
1613
|
|
|
1604
1614
|
## SystemDefinition
|
|
1605
1615
|
|
|
1606
|
-
来源:`packages/sdk/src/index.ts:
|
|
1616
|
+
来源:`packages/sdk/src/index.ts:836`
|
|
1607
1617
|
|
|
1608
1618
|
```ts
|
|
1609
1619
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1613,7 +1623,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1613
1623
|
|
|
1614
1624
|
## GameInput
|
|
1615
1625
|
|
|
1616
|
-
来源:`packages/sdk/src/index.ts:
|
|
1626
|
+
来源:`packages/sdk/src/index.ts:839`
|
|
1617
1627
|
|
|
1618
1628
|
```ts
|
|
1619
1629
|
export interface GameInput {
|
|
@@ -1639,7 +1649,7 @@ export interface GameInput {
|
|
|
1639
1649
|
|
|
1640
1650
|
## GameDefinition
|
|
1641
1651
|
|
|
1642
|
-
来源:`packages/sdk/src/index.ts:
|
|
1652
|
+
来源:`packages/sdk/src/index.ts:858`
|
|
1643
1653
|
|
|
1644
1654
|
```ts
|
|
1645
1655
|
export interface GameDefinition extends GameInput {
|
|
@@ -1649,7 +1659,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1649
1659
|
|
|
1650
1660
|
## GameInstance
|
|
1651
1661
|
|
|
1652
|
-
来源:`packages/sdk/src/index.ts:
|
|
1662
|
+
来源:`packages/sdk/src/index.ts:861`
|
|
1653
1663
|
|
|
1654
1664
|
```ts
|
|
1655
1665
|
export interface GameInstance {
|
|
@@ -1660,7 +1670,7 @@ export interface GameInstance {
|
|
|
1660
1670
|
|
|
1661
1671
|
## defineComponent
|
|
1662
1672
|
|
|
1663
|
-
来源:`packages/sdk/src/index.ts:
|
|
1673
|
+
来源:`packages/sdk/src/index.ts:865`
|
|
1664
1674
|
|
|
1665
1675
|
```ts
|
|
1666
1676
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1671,7 +1681,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1671
1681
|
|
|
1672
1682
|
## defineMaterial
|
|
1673
1683
|
|
|
1674
|
-
来源:`packages/sdk/src/index.ts:
|
|
1684
|
+
来源:`packages/sdk/src/index.ts:871`
|
|
1675
1685
|
|
|
1676
1686
|
```ts
|
|
1677
1687
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1679,7 +1689,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1679
1689
|
|
|
1680
1690
|
## definePostProcess
|
|
1681
1691
|
|
|
1682
|
-
来源:`packages/sdk/src/index.ts:
|
|
1692
|
+
来源:`packages/sdk/src/index.ts:874`
|
|
1683
1693
|
|
|
1684
1694
|
```ts
|
|
1685
1695
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1687,7 +1697,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1687
1697
|
|
|
1688
1698
|
## defineCompute
|
|
1689
1699
|
|
|
1690
|
-
来源:`packages/sdk/src/index.ts:
|
|
1700
|
+
来源:`packages/sdk/src/index.ts:877`
|
|
1691
1701
|
|
|
1692
1702
|
```ts
|
|
1693
1703
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1695,7 +1705,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1695
1705
|
|
|
1696
1706
|
## defineAsset
|
|
1697
1707
|
|
|
1698
|
-
来源:`packages/sdk/src/index.ts:
|
|
1708
|
+
来源:`packages/sdk/src/index.ts:880`
|
|
1699
1709
|
|
|
1700
1710
|
```ts
|
|
1701
1711
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1703,7 +1713,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1703
1713
|
|
|
1704
1714
|
## definePrefab
|
|
1705
1715
|
|
|
1706
|
-
来源:`packages/sdk/src/index.ts:
|
|
1716
|
+
来源:`packages/sdk/src/index.ts:883`
|
|
1707
1717
|
|
|
1708
1718
|
```ts
|
|
1709
1719
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1711,7 +1721,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1711
1721
|
|
|
1712
1722
|
## defineScene
|
|
1713
1723
|
|
|
1714
|
-
来源:`packages/sdk/src/index.ts:
|
|
1724
|
+
来源:`packages/sdk/src/index.ts:886`
|
|
1715
1725
|
|
|
1716
1726
|
```ts
|
|
1717
1727
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1719,7 +1729,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1719
1729
|
|
|
1720
1730
|
## defineSystem
|
|
1721
1731
|
|
|
1722
|
-
来源:`packages/sdk/src/index.ts:
|
|
1732
|
+
来源:`packages/sdk/src/index.ts:889`
|
|
1723
1733
|
|
|
1724
1734
|
```ts
|
|
1725
1735
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1727,7 +1737,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1727
1737
|
|
|
1728
1738
|
## defineGame
|
|
1729
1739
|
|
|
1730
|
-
来源:`packages/sdk/src/index.ts:
|
|
1740
|
+
来源:`packages/sdk/src/index.ts:892`
|
|
1731
1741
|
|
|
1732
1742
|
```ts
|
|
1733
1743
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1735,7 +1745,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1735
1745
|
|
|
1736
1746
|
## instantiateGame
|
|
1737
1747
|
|
|
1738
|
-
来源:`packages/sdk/src/index.ts:
|
|
1748
|
+
来源:`packages/sdk/src/index.ts:896`
|
|
1739
1749
|
|
|
1740
1750
|
```ts
|
|
1741
1751
|
export function instantiateGame(
|