pelican-engine 0.3.16 → 0.3.17
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 +15 -3
- package/distribution.json +13 -12
- package/docs/STATUS.md +2 -2
- package/docs/api/REFERENCE.md +112 -92
- package/docs/api/index.json +111 -94
- package/docs/npm/GAME-AUTHOR.md +15 -3
- package/engine.manifest.json +1 -1
- package/lib/sdk/index.d.ts +18 -2
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +12 -4
- package/lib/simulation/rope-self-collision.js +102 -0
- package/lib/simulation/rope.js +36 -5
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.17 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.17"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -325,6 +325,8 @@ export interface RopeDefinition {
|
|
|
325
325
|
bodyColliders?: readonly RopeBodyCollider[];
|
|
326
326
|
/** Resolve sphere contacts on segment interiors; defaults to true for new ropes. */
|
|
327
327
|
segmentCollisions?: boolean;
|
|
328
|
+
/** Resolve discrete non-adjacent segment self contacts; defaults to true for new ropes. */
|
|
329
|
+
selfCollisions?: boolean;
|
|
328
330
|
/** Optional segmented presentation using an already-declared material id. */
|
|
329
331
|
visual?: RopeVisualOptions;
|
|
330
332
|
substeps?: number;
|
|
@@ -337,7 +339,7 @@ export interface RopeDefinition {
|
|
|
337
339
|
|
|
338
340
|
## RopeContact
|
|
339
341
|
|
|
340
|
-
来源:`packages/sdk/src/index.ts:
|
|
342
|
+
来源:`packages/sdk/src/index.ts:171`
|
|
341
343
|
|
|
342
344
|
```ts
|
|
343
345
|
export interface RopeContact {
|
|
@@ -351,7 +353,7 @@ export interface RopeContact {
|
|
|
351
353
|
|
|
352
354
|
## RopeSegmentContact
|
|
353
355
|
|
|
354
|
-
来源:`packages/sdk/src/index.ts:
|
|
356
|
+
来源:`packages/sdk/src/index.ts:179`
|
|
355
357
|
|
|
356
358
|
```ts
|
|
357
359
|
export interface RopeSegmentContact {
|
|
@@ -367,18 +369,36 @@ export interface RopeSegmentContact {
|
|
|
367
369
|
}
|
|
368
370
|
```
|
|
369
371
|
|
|
372
|
+
## RopeSelfContact
|
|
373
|
+
|
|
374
|
+
来源:`packages/sdk/src/index.ts:191`
|
|
375
|
+
|
|
376
|
+
```ts
|
|
377
|
+
export interface RopeSelfContact {
|
|
378
|
+
tick: number;
|
|
379
|
+
/** Zero-based first endpoint of each non-adjacent segment, ordered ascending. */
|
|
380
|
+
firstSegment: number; secondSegment: number;
|
|
381
|
+
/** Last closest-point fractions along the respective segments. */
|
|
382
|
+
firstFraction: number; secondFraction: number;
|
|
383
|
+
/** Maximum observed overlap in metres during this tick. */
|
|
384
|
+
penetration: number;
|
|
385
|
+
}
|
|
386
|
+
```
|
|
387
|
+
|
|
370
388
|
## RopeState
|
|
371
389
|
|
|
372
|
-
来源:`packages/sdk/src/index.ts:
|
|
390
|
+
来源:`packages/sdk/src/index.ts:200`
|
|
373
391
|
|
|
374
392
|
```ts
|
|
375
393
|
export interface RopeState {
|
|
376
394
|
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
377
395
|
segmentCollisions: boolean;
|
|
396
|
+
selfCollisions: boolean;
|
|
378
397
|
positions: Vec3[]; velocities: Vec3[];
|
|
379
398
|
anchors: { index: number; position: Vec3 }[];
|
|
380
399
|
contacts: RopeContact[];
|
|
381
400
|
segmentContacts: RopeSegmentContact[];
|
|
401
|
+
selfContacts: RopeSelfContact[];
|
|
382
402
|
maxDistanceError: number;
|
|
383
403
|
resources: { particles: number; constraints: number; anchors: number; colliders: number };
|
|
384
404
|
}
|
|
@@ -386,7 +406,7 @@ export interface RopeState {
|
|
|
386
406
|
|
|
387
407
|
## RopeService
|
|
388
408
|
|
|
389
|
-
来源:`packages/sdk/src/index.ts:
|
|
409
|
+
来源:`packages/sdk/src/index.ts:212`
|
|
390
410
|
|
|
391
411
|
```ts
|
|
392
412
|
export interface RopeService {
|
|
@@ -407,7 +427,7 @@ export interface RopeService {
|
|
|
407
427
|
|
|
408
428
|
## NavigationCell
|
|
409
429
|
|
|
410
|
-
来源:`packages/sdk/src/index.ts:
|
|
430
|
+
来源:`packages/sdk/src/index.ts:229`
|
|
411
431
|
|
|
412
432
|
```ts
|
|
413
433
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -415,7 +435,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
415
435
|
|
|
416
436
|
## NavigationObstacleUpdate
|
|
417
437
|
|
|
418
|
-
来源:`packages/sdk/src/index.ts:
|
|
438
|
+
来源:`packages/sdk/src/index.ts:231`
|
|
419
439
|
|
|
420
440
|
```ts
|
|
421
441
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -423,7 +443,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
423
443
|
|
|
424
444
|
## NavigationGrid
|
|
425
445
|
|
|
426
|
-
来源:`packages/sdk/src/index.ts:
|
|
446
|
+
来源:`packages/sdk/src/index.ts:232`
|
|
427
447
|
|
|
428
448
|
```ts
|
|
429
449
|
export interface NavigationGrid {
|
|
@@ -439,7 +459,7 @@ export interface NavigationGrid {
|
|
|
439
459
|
|
|
440
460
|
## NavigationService
|
|
441
461
|
|
|
442
|
-
来源:`packages/sdk/src/index.ts:
|
|
462
|
+
来源:`packages/sdk/src/index.ts:241`
|
|
443
463
|
|
|
444
464
|
```ts
|
|
445
465
|
export interface NavigationService {
|
|
@@ -458,7 +478,7 @@ export interface NavigationService {
|
|
|
458
478
|
|
|
459
479
|
## RenderMode
|
|
460
480
|
|
|
461
|
-
来源:`packages/sdk/src/index.ts:
|
|
481
|
+
来源:`packages/sdk/src/index.ts:253`
|
|
462
482
|
|
|
463
483
|
```ts
|
|
464
484
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -466,7 +486,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
466
486
|
|
|
467
487
|
## RenderCapabilities
|
|
468
488
|
|
|
469
|
-
来源:`packages/sdk/src/index.ts:
|
|
489
|
+
来源:`packages/sdk/src/index.ts:254`
|
|
470
490
|
|
|
471
491
|
```ts
|
|
472
492
|
export interface RenderCapabilities {
|
|
@@ -478,7 +498,7 @@ export interface RenderCapabilities {
|
|
|
478
498
|
|
|
479
499
|
## RenderSettings
|
|
480
500
|
|
|
481
|
-
来源:`packages/sdk/src/index.ts:
|
|
501
|
+
来源:`packages/sdk/src/index.ts:259`
|
|
482
502
|
|
|
483
503
|
```ts
|
|
484
504
|
export interface RenderSettings {
|
|
@@ -496,7 +516,7 @@ export interface RenderSettings {
|
|
|
496
516
|
|
|
497
517
|
## RenderService
|
|
498
518
|
|
|
499
|
-
来源:`packages/sdk/src/index.ts:
|
|
519
|
+
来源:`packages/sdk/src/index.ts:270`
|
|
500
520
|
|
|
501
521
|
```ts
|
|
502
522
|
export interface RenderService {
|
|
@@ -513,7 +533,7 @@ export interface RenderService {
|
|
|
513
533
|
|
|
514
534
|
## MaterialBufferInput
|
|
515
535
|
|
|
516
|
-
来源:`packages/sdk/src/index.ts:
|
|
536
|
+
来源:`packages/sdk/src/index.ts:280`
|
|
517
537
|
|
|
518
538
|
```ts
|
|
519
539
|
export interface MaterialBufferInput {
|
|
@@ -529,7 +549,7 @@ export interface MaterialBufferInput {
|
|
|
529
549
|
|
|
530
550
|
## RenderBufferReference
|
|
531
551
|
|
|
532
|
-
来源:`packages/sdk/src/index.ts:
|
|
552
|
+
来源:`packages/sdk/src/index.ts:289`
|
|
533
553
|
|
|
534
554
|
```ts
|
|
535
555
|
export interface RenderBufferReference {
|
|
@@ -541,7 +561,7 @@ export interface RenderBufferReference {
|
|
|
541
561
|
|
|
542
562
|
## RenderBufferBindings
|
|
543
563
|
|
|
544
|
-
来源:`packages/sdk/src/index.ts:
|
|
564
|
+
来源:`packages/sdk/src/index.ts:294`
|
|
545
565
|
|
|
546
566
|
```ts
|
|
547
567
|
export interface RenderBufferBindings {
|
|
@@ -553,7 +573,7 @@ export interface RenderBufferBindings {
|
|
|
553
573
|
|
|
554
574
|
## MaterialTextureInput
|
|
555
575
|
|
|
556
|
-
来源:`packages/sdk/src/index.ts:
|
|
576
|
+
来源:`packages/sdk/src/index.ts:299`
|
|
557
577
|
|
|
558
578
|
```ts
|
|
559
579
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -566,7 +586,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
566
586
|
|
|
567
587
|
## RenderTextureReference
|
|
568
588
|
|
|
569
|
-
来源:`packages/sdk/src/index.ts:
|
|
589
|
+
来源:`packages/sdk/src/index.ts:305`
|
|
570
590
|
|
|
571
591
|
```ts
|
|
572
592
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -577,7 +597,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
577
597
|
|
|
578
598
|
## RenderTextureBindings
|
|
579
599
|
|
|
580
|
-
来源:`packages/sdk/src/index.ts:
|
|
600
|
+
来源:`packages/sdk/src/index.ts:309`
|
|
581
601
|
|
|
582
602
|
```ts
|
|
583
603
|
export interface RenderTextureBindings {
|
|
@@ -589,7 +609,7 @@ export interface RenderTextureBindings {
|
|
|
589
609
|
|
|
590
610
|
## PostProcessState
|
|
591
611
|
|
|
592
|
-
来源:`packages/sdk/src/index.ts:
|
|
612
|
+
来源:`packages/sdk/src/index.ts:314`
|
|
593
613
|
|
|
594
614
|
```ts
|
|
595
615
|
export interface PostProcessState {
|
|
@@ -601,7 +621,7 @@ export interface PostProcessState {
|
|
|
601
621
|
|
|
602
622
|
## PostProcessService
|
|
603
623
|
|
|
604
|
-
来源:`packages/sdk/src/index.ts:
|
|
624
|
+
来源:`packages/sdk/src/index.ts:319`
|
|
605
625
|
|
|
606
626
|
```ts
|
|
607
627
|
export interface PostProcessService {
|
|
@@ -618,7 +638,7 @@ export interface PostProcessService {
|
|
|
618
638
|
|
|
619
639
|
## ComputeBufferHandle
|
|
620
640
|
|
|
621
|
-
来源:`packages/sdk/src/index.ts:
|
|
641
|
+
来源:`packages/sdk/src/index.ts:329`
|
|
622
642
|
|
|
623
643
|
```ts
|
|
624
644
|
export interface ComputeBufferHandle {
|
|
@@ -630,7 +650,7 @@ export interface ComputeBufferHandle {
|
|
|
630
650
|
|
|
631
651
|
## ComputeTaskHandle
|
|
632
652
|
|
|
633
|
-
来源:`packages/sdk/src/index.ts:
|
|
653
|
+
来源:`packages/sdk/src/index.ts:334`
|
|
634
654
|
|
|
635
655
|
```ts
|
|
636
656
|
export interface ComputeTaskHandle {
|
|
@@ -641,7 +661,7 @@ export interface ComputeTaskHandle {
|
|
|
641
661
|
|
|
642
662
|
## ComputeBufferInput
|
|
643
663
|
|
|
644
|
-
来源:`packages/sdk/src/index.ts:
|
|
664
|
+
来源:`packages/sdk/src/index.ts:338`
|
|
645
665
|
|
|
646
666
|
```ts
|
|
647
667
|
export interface ComputeBufferInput {
|
|
@@ -654,7 +674,7 @@ export interface ComputeBufferInput {
|
|
|
654
674
|
|
|
655
675
|
## ComputeTextureHandle
|
|
656
676
|
|
|
657
|
-
来源:`packages/sdk/src/index.ts:
|
|
677
|
+
来源:`packages/sdk/src/index.ts:344`
|
|
658
678
|
|
|
659
679
|
```ts
|
|
660
680
|
export interface ComputeTextureHandle {
|
|
@@ -667,7 +687,7 @@ export interface ComputeTextureHandle {
|
|
|
667
687
|
|
|
668
688
|
## ComputeTextureSize
|
|
669
689
|
|
|
670
|
-
来源:`packages/sdk/src/index.ts:
|
|
690
|
+
来源:`packages/sdk/src/index.ts:350`
|
|
671
691
|
|
|
672
692
|
```ts
|
|
673
693
|
export interface ComputeTextureSize {
|
|
@@ -678,7 +698,7 @@ export interface ComputeTextureSize {
|
|
|
678
698
|
|
|
679
699
|
## ComputeTextureDataInput
|
|
680
700
|
|
|
681
|
-
来源:`packages/sdk/src/index.ts:
|
|
701
|
+
来源:`packages/sdk/src/index.ts:354`
|
|
682
702
|
|
|
683
703
|
```ts
|
|
684
704
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -691,7 +711,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
691
711
|
|
|
692
712
|
## ComputeTextureAssetInput
|
|
693
713
|
|
|
694
|
-
来源:`packages/sdk/src/index.ts:
|
|
714
|
+
来源:`packages/sdk/src/index.ts:360`
|
|
695
715
|
|
|
696
716
|
```ts
|
|
697
717
|
export interface ComputeTextureAssetInput {
|
|
@@ -705,7 +725,7 @@ export interface ComputeTextureAssetInput {
|
|
|
705
725
|
|
|
706
726
|
## ComputeTextureInput
|
|
707
727
|
|
|
708
|
-
来源:`packages/sdk/src/index.ts:
|
|
728
|
+
来源:`packages/sdk/src/index.ts:367`
|
|
709
729
|
|
|
710
730
|
```ts
|
|
711
731
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -713,7 +733,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
713
733
|
|
|
714
734
|
## ComputeTextureBinding
|
|
715
735
|
|
|
716
|
-
来源:`packages/sdk/src/index.ts:
|
|
736
|
+
来源:`packages/sdk/src/index.ts:368`
|
|
717
737
|
|
|
718
738
|
```ts
|
|
719
739
|
export interface ComputeTextureBinding {
|
|
@@ -726,7 +746,7 @@ export interface ComputeTextureBinding {
|
|
|
726
746
|
|
|
727
747
|
## ComputeDispatchInput
|
|
728
748
|
|
|
729
|
-
来源:`packages/sdk/src/index.ts:
|
|
749
|
+
来源:`packages/sdk/src/index.ts:374`
|
|
730
750
|
|
|
731
751
|
```ts
|
|
732
752
|
export interface ComputeDispatchInput {
|
|
@@ -745,7 +765,7 @@ export interface ComputeDispatchInput {
|
|
|
745
765
|
|
|
746
766
|
## ComputeTaskState
|
|
747
767
|
|
|
748
|
-
来源:`packages/sdk/src/index.ts:
|
|
768
|
+
来源:`packages/sdk/src/index.ts:386`
|
|
749
769
|
|
|
750
770
|
```ts
|
|
751
771
|
export interface ComputeTaskState {
|
|
@@ -756,7 +776,7 @@ export interface ComputeTaskState {
|
|
|
756
776
|
|
|
757
777
|
## ComputeService
|
|
758
778
|
|
|
759
|
-
来源:`packages/sdk/src/index.ts:
|
|
779
|
+
来源:`packages/sdk/src/index.ts:390`
|
|
760
780
|
|
|
761
781
|
```ts
|
|
762
782
|
export interface ComputeService {
|
|
@@ -783,7 +803,7 @@ export interface ComputeService {
|
|
|
783
803
|
|
|
784
804
|
## InputService
|
|
785
805
|
|
|
786
|
-
来源:`packages/sdk/src/index.ts:
|
|
806
|
+
来源:`packages/sdk/src/index.ts:410`
|
|
787
807
|
|
|
788
808
|
```ts
|
|
789
809
|
export interface InputService {
|
|
@@ -796,7 +816,7 @@ export interface InputService {
|
|
|
796
816
|
|
|
797
817
|
## PhysicsService
|
|
798
818
|
|
|
799
|
-
来源:`packages/sdk/src/index.ts:
|
|
819
|
+
来源:`packages/sdk/src/index.ts:416`
|
|
800
820
|
|
|
801
821
|
```ts
|
|
802
822
|
export interface PhysicsService {
|
|
@@ -825,7 +845,7 @@ export interface PhysicsService {
|
|
|
825
845
|
|
|
826
846
|
## AnimationService
|
|
827
847
|
|
|
828
|
-
来源:`packages/sdk/src/index.ts:
|
|
848
|
+
来源:`packages/sdk/src/index.ts:438`
|
|
829
849
|
|
|
830
850
|
```ts
|
|
831
851
|
export interface AnimationService {
|
|
@@ -844,7 +864,7 @@ export interface AnimationService {
|
|
|
844
864
|
|
|
845
865
|
## CameraService
|
|
846
866
|
|
|
847
|
-
来源:`packages/sdk/src/index.ts:
|
|
867
|
+
来源:`packages/sdk/src/index.ts:450`
|
|
848
868
|
|
|
849
869
|
```ts
|
|
850
870
|
export interface CameraService {
|
|
@@ -864,7 +884,7 @@ export interface CameraService {
|
|
|
864
884
|
|
|
865
885
|
## UIService
|
|
866
886
|
|
|
867
|
-
来源:`packages/sdk/src/index.ts:
|
|
887
|
+
来源:`packages/sdk/src/index.ts:463`
|
|
868
888
|
|
|
869
889
|
```ts
|
|
870
890
|
export interface UIService {
|
|
@@ -876,7 +896,7 @@ export interface UIService {
|
|
|
876
896
|
|
|
877
897
|
## AudioService
|
|
878
898
|
|
|
879
|
-
来源:`packages/sdk/src/index.ts:
|
|
899
|
+
来源:`packages/sdk/src/index.ts:468`
|
|
880
900
|
|
|
881
901
|
```ts
|
|
882
902
|
export interface AudioService {
|
|
@@ -898,7 +918,7 @@ export interface AudioService {
|
|
|
898
918
|
|
|
899
919
|
## StorageService
|
|
900
920
|
|
|
901
|
-
来源:`packages/sdk/src/index.ts:
|
|
921
|
+
来源:`packages/sdk/src/index.ts:483`
|
|
902
922
|
|
|
903
923
|
```ts
|
|
904
924
|
export interface StorageService {
|
|
@@ -914,7 +934,7 @@ export interface StorageService {
|
|
|
914
934
|
|
|
915
935
|
## SceneService
|
|
916
936
|
|
|
917
|
-
来源:`packages/sdk/src/index.ts:
|
|
937
|
+
来源:`packages/sdk/src/index.ts:492`
|
|
918
938
|
|
|
919
939
|
```ts
|
|
920
940
|
export interface SceneService {
|
|
@@ -925,7 +945,7 @@ export interface SceneService {
|
|
|
925
945
|
|
|
926
946
|
## ModelDefinition
|
|
927
947
|
|
|
928
|
-
来源:`packages/sdk/src/index.ts:
|
|
948
|
+
来源:`packages/sdk/src/index.ts:496`
|
|
929
949
|
|
|
930
950
|
```ts
|
|
931
951
|
export interface ModelDefinition {
|
|
@@ -945,7 +965,7 @@ export interface ModelDefinition {
|
|
|
945
965
|
|
|
946
966
|
## RigidBodyDefinition
|
|
947
967
|
|
|
948
|
-
来源:`packages/sdk/src/index.ts:
|
|
968
|
+
来源:`packages/sdk/src/index.ts:509`
|
|
949
969
|
|
|
950
970
|
```ts
|
|
951
971
|
export interface RigidBodyDefinition {
|
|
@@ -966,7 +986,7 @@ export interface RigidBodyDefinition {
|
|
|
966
986
|
|
|
967
987
|
## CharacterDefinition
|
|
968
988
|
|
|
969
|
-
来源:`packages/sdk/src/index.ts:
|
|
989
|
+
来源:`packages/sdk/src/index.ts:523`
|
|
970
990
|
|
|
971
991
|
```ts
|
|
972
992
|
export interface CharacterDefinition {
|
|
@@ -981,7 +1001,7 @@ export interface CharacterDefinition {
|
|
|
981
1001
|
|
|
982
1002
|
## UIElementDefinition
|
|
983
1003
|
|
|
984
|
-
来源:`packages/sdk/src/index.ts:
|
|
1004
|
+
来源:`packages/sdk/src/index.ts:531`
|
|
985
1005
|
|
|
986
1006
|
```ts
|
|
987
1007
|
export interface UIElementDefinition {
|
|
@@ -1001,7 +1021,7 @@ export interface UIElementDefinition {
|
|
|
1001
1021
|
|
|
1002
1022
|
## SoundDefinition
|
|
1003
1023
|
|
|
1004
|
-
来源:`packages/sdk/src/index.ts:
|
|
1024
|
+
来源:`packages/sdk/src/index.ts:544`
|
|
1005
1025
|
|
|
1006
1026
|
```ts
|
|
1007
1027
|
export interface SoundDefinition {
|
|
@@ -1015,7 +1035,7 @@ export interface SoundDefinition {
|
|
|
1015
1035
|
|
|
1016
1036
|
## AudioBusDefinition
|
|
1017
1037
|
|
|
1018
|
-
来源:`packages/sdk/src/index.ts:
|
|
1038
|
+
来源:`packages/sdk/src/index.ts:551`
|
|
1019
1039
|
|
|
1020
1040
|
```ts
|
|
1021
1041
|
export interface AudioBusDefinition {
|
|
@@ -1026,7 +1046,7 @@ export interface AudioBusDefinition {
|
|
|
1026
1046
|
|
|
1027
1047
|
## SYSTEM_PHASES
|
|
1028
1048
|
|
|
1029
|
-
来源:`packages/sdk/src/index.ts:
|
|
1049
|
+
来源:`packages/sdk/src/index.ts:555`
|
|
1030
1050
|
|
|
1031
1051
|
```ts
|
|
1032
1052
|
SYSTEM_PHASES = [
|
|
@@ -1041,7 +1061,7 @@ SYSTEM_PHASES = [
|
|
|
1041
1061
|
|
|
1042
1062
|
## SystemPhase
|
|
1043
1063
|
|
|
1044
|
-
来源:`packages/sdk/src/index.ts:
|
|
1064
|
+
来源:`packages/sdk/src/index.ts:563`
|
|
1045
1065
|
|
|
1046
1066
|
```ts
|
|
1047
1067
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1049,7 +1069,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1049
1069
|
|
|
1050
1070
|
## Geometry
|
|
1051
1071
|
|
|
1052
|
-
来源:`packages/sdk/src/index.ts:
|
|
1072
|
+
来源:`packages/sdk/src/index.ts:564`
|
|
1053
1073
|
|
|
1054
1074
|
```ts
|
|
1055
1075
|
export type Geometry =
|
|
@@ -1060,7 +1080,7 @@ export type Geometry =
|
|
|
1060
1080
|
|
|
1061
1081
|
## GRAPH_TYPES
|
|
1062
1082
|
|
|
1063
|
-
来源:`packages/sdk/src/index.ts:
|
|
1083
|
+
来源:`packages/sdk/src/index.ts:568`
|
|
1064
1084
|
|
|
1065
1085
|
```ts
|
|
1066
1086
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1068,7 +1088,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1068
1088
|
|
|
1069
1089
|
## GraphType
|
|
1070
1090
|
|
|
1071
|
-
来源:`packages/sdk/src/index.ts:
|
|
1091
|
+
来源:`packages/sdk/src/index.ts:569`
|
|
1072
1092
|
|
|
1073
1093
|
```ts
|
|
1074
1094
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1076,7 +1096,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1076
1096
|
|
|
1077
1097
|
## GraphValue
|
|
1078
1098
|
|
|
1079
|
-
来源:`packages/sdk/src/index.ts:
|
|
1099
|
+
来源:`packages/sdk/src/index.ts:570`
|
|
1080
1100
|
|
|
1081
1101
|
```ts
|
|
1082
1102
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1084,7 +1104,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1084
1104
|
|
|
1085
1105
|
## GraphParameter
|
|
1086
1106
|
|
|
1087
|
-
来源:`packages/sdk/src/index.ts:
|
|
1107
|
+
来源:`packages/sdk/src/index.ts:571`
|
|
1088
1108
|
|
|
1089
1109
|
```ts
|
|
1090
1110
|
export interface GraphParameter {
|
|
@@ -1096,7 +1116,7 @@ export interface GraphParameter {
|
|
|
1096
1116
|
|
|
1097
1117
|
## GRAPH_INPUT_TYPES
|
|
1098
1118
|
|
|
1099
|
-
来源:`packages/sdk/src/index.ts:
|
|
1119
|
+
来源:`packages/sdk/src/index.ts:576`
|
|
1100
1120
|
|
|
1101
1121
|
```ts
|
|
1102
1122
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1110,7 +1130,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1110
1130
|
|
|
1111
1131
|
## GraphInputName
|
|
1112
1132
|
|
|
1113
|
-
来源:`packages/sdk/src/index.ts:
|
|
1133
|
+
来源:`packages/sdk/src/index.ts:583`
|
|
1114
1134
|
|
|
1115
1135
|
```ts
|
|
1116
1136
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1118,7 +1138,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1118
1138
|
|
|
1119
1139
|
## GRAPH_OPERATIONS
|
|
1120
1140
|
|
|
1121
|
-
来源:`packages/sdk/src/index.ts:
|
|
1141
|
+
来源:`packages/sdk/src/index.ts:584`
|
|
1122
1142
|
|
|
1123
1143
|
```ts
|
|
1124
1144
|
GRAPH_OPERATIONS = {
|
|
@@ -1130,7 +1150,7 @@ GRAPH_OPERATIONS = {
|
|
|
1130
1150
|
|
|
1131
1151
|
## GraphNode
|
|
1132
1152
|
|
|
1133
|
-
来源:`packages/sdk/src/index.ts:
|
|
1153
|
+
来源:`packages/sdk/src/index.ts:589`
|
|
1134
1154
|
|
|
1135
1155
|
```ts
|
|
1136
1156
|
export type GraphNode =
|
|
@@ -1157,7 +1177,7 @@ export type GraphNode =
|
|
|
1157
1177
|
|
|
1158
1178
|
## Graph
|
|
1159
1179
|
|
|
1160
|
-
来源:`packages/sdk/src/index.ts:
|
|
1180
|
+
来源:`packages/sdk/src/index.ts:609`
|
|
1161
1181
|
|
|
1162
1182
|
```ts
|
|
1163
1183
|
export interface Graph {
|
|
@@ -1169,7 +1189,7 @@ export interface Graph {
|
|
|
1169
1189
|
|
|
1170
1190
|
## MaterialGraphs
|
|
1171
1191
|
|
|
1172
|
-
来源:`packages/sdk/src/index.ts:
|
|
1192
|
+
来源:`packages/sdk/src/index.ts:614`
|
|
1173
1193
|
|
|
1174
1194
|
```ts
|
|
1175
1195
|
export interface MaterialGraphs {
|
|
@@ -1185,7 +1205,7 @@ export interface MaterialGraphs {
|
|
|
1185
1205
|
|
|
1186
1206
|
## VertexGraphs
|
|
1187
1207
|
|
|
1188
|
-
来源:`packages/sdk/src/index.ts:
|
|
1208
|
+
来源:`packages/sdk/src/index.ts:623`
|
|
1189
1209
|
|
|
1190
1210
|
```ts
|
|
1191
1211
|
export interface VertexGraphs {
|
|
@@ -1198,7 +1218,7 @@ export interface VertexGraphs {
|
|
|
1198
1218
|
|
|
1199
1219
|
## MaterialInput
|
|
1200
1220
|
|
|
1201
|
-
来源:`packages/sdk/src/index.ts:
|
|
1221
|
+
来源:`packages/sdk/src/index.ts:629`
|
|
1202
1222
|
|
|
1203
1223
|
```ts
|
|
1204
1224
|
export interface MaterialInput {
|
|
@@ -1232,7 +1252,7 @@ export interface MaterialInput {
|
|
|
1232
1252
|
|
|
1233
1253
|
## MaterialDefinition
|
|
1234
1254
|
|
|
1235
|
-
来源:`packages/sdk/src/index.ts:
|
|
1255
|
+
来源:`packages/sdk/src/index.ts:656`
|
|
1236
1256
|
|
|
1237
1257
|
```ts
|
|
1238
1258
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1242,7 +1262,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1242
1262
|
|
|
1243
1263
|
## PostProcessInput
|
|
1244
1264
|
|
|
1245
|
-
来源:`packages/sdk/src/index.ts:
|
|
1265
|
+
来源:`packages/sdk/src/index.ts:659`
|
|
1246
1266
|
|
|
1247
1267
|
```ts
|
|
1248
1268
|
export interface PostProcessInput {
|
|
@@ -1257,7 +1277,7 @@ export interface PostProcessInput {
|
|
|
1257
1277
|
|
|
1258
1278
|
## PostProcessDefinition
|
|
1259
1279
|
|
|
1260
|
-
来源:`packages/sdk/src/index.ts:
|
|
1280
|
+
来源:`packages/sdk/src/index.ts:667`
|
|
1261
1281
|
|
|
1262
1282
|
```ts
|
|
1263
1283
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1267,7 +1287,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1267
1287
|
|
|
1268
1288
|
## ComputeInput
|
|
1269
1289
|
|
|
1270
|
-
来源:`packages/sdk/src/index.ts:
|
|
1290
|
+
来源:`packages/sdk/src/index.ts:670`
|
|
1271
1291
|
|
|
1272
1292
|
```ts
|
|
1273
1293
|
export interface ComputeInput {
|
|
@@ -1283,7 +1303,7 @@ export interface ComputeInput {
|
|
|
1283
1303
|
|
|
1284
1304
|
## ComputeDefinition
|
|
1285
1305
|
|
|
1286
|
-
来源:`packages/sdk/src/index.ts:
|
|
1306
|
+
来源:`packages/sdk/src/index.ts:679`
|
|
1287
1307
|
|
|
1288
1308
|
```ts
|
|
1289
1309
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1293,7 +1313,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1293
1313
|
|
|
1294
1314
|
## AssetInput
|
|
1295
1315
|
|
|
1296
|
-
来源:`packages/sdk/src/index.ts:
|
|
1316
|
+
来源:`packages/sdk/src/index.ts:682`
|
|
1297
1317
|
|
|
1298
1318
|
```ts
|
|
1299
1319
|
export interface AssetInput {
|
|
@@ -1310,7 +1330,7 @@ export interface AssetInput {
|
|
|
1310
1330
|
|
|
1311
1331
|
## AssetDefinition
|
|
1312
1332
|
|
|
1313
|
-
来源:`packages/sdk/src/index.ts:
|
|
1333
|
+
来源:`packages/sdk/src/index.ts:692`
|
|
1314
1334
|
|
|
1315
1335
|
```ts
|
|
1316
1336
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1320,7 +1340,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1320
1340
|
|
|
1321
1341
|
## MeshDefinition
|
|
1322
1342
|
|
|
1323
|
-
来源:`packages/sdk/src/index.ts:
|
|
1343
|
+
来源:`packages/sdk/src/index.ts:695`
|
|
1324
1344
|
|
|
1325
1345
|
```ts
|
|
1326
1346
|
export interface MeshDefinition {
|
|
@@ -1333,7 +1353,7 @@ export interface MeshDefinition {
|
|
|
1333
1353
|
|
|
1334
1354
|
## LightDefinition
|
|
1335
1355
|
|
|
1336
|
-
来源:`packages/sdk/src/index.ts:
|
|
1356
|
+
来源:`packages/sdk/src/index.ts:701`
|
|
1337
1357
|
|
|
1338
1358
|
```ts
|
|
1339
1359
|
export interface LightDefinition {
|
|
@@ -1355,7 +1375,7 @@ export interface LightDefinition {
|
|
|
1355
1375
|
|
|
1356
1376
|
## EntityInput
|
|
1357
1377
|
|
|
1358
|
-
来源:`packages/sdk/src/index.ts:
|
|
1378
|
+
来源:`packages/sdk/src/index.ts:716`
|
|
1359
1379
|
|
|
1360
1380
|
```ts
|
|
1361
1381
|
export interface EntityInput {
|
|
@@ -1374,7 +1394,7 @@ export interface EntityInput {
|
|
|
1374
1394
|
|
|
1375
1395
|
## PrefabInput
|
|
1376
1396
|
|
|
1377
|
-
来源:`packages/sdk/src/index.ts:
|
|
1397
|
+
来源:`packages/sdk/src/index.ts:728`
|
|
1378
1398
|
|
|
1379
1399
|
```ts
|
|
1380
1400
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1384,7 +1404,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1384
1404
|
|
|
1385
1405
|
## PrefabDefinition
|
|
1386
1406
|
|
|
1387
|
-
来源:`packages/sdk/src/index.ts:
|
|
1407
|
+
来源:`packages/sdk/src/index.ts:731`
|
|
1388
1408
|
|
|
1389
1409
|
```ts
|
|
1390
1410
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1394,7 +1414,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1394
1414
|
|
|
1395
1415
|
## SceneInput
|
|
1396
1416
|
|
|
1397
|
-
来源:`packages/sdk/src/index.ts:
|
|
1417
|
+
来源:`packages/sdk/src/index.ts:734`
|
|
1398
1418
|
|
|
1399
1419
|
```ts
|
|
1400
1420
|
export interface SceneInput {
|
|
@@ -1426,7 +1446,7 @@ export interface SceneInput {
|
|
|
1426
1446
|
|
|
1427
1447
|
## SceneDefinition
|
|
1428
1448
|
|
|
1429
|
-
来源:`packages/sdk/src/index.ts:
|
|
1449
|
+
来源:`packages/sdk/src/index.ts:759`
|
|
1430
1450
|
|
|
1431
1451
|
```ts
|
|
1432
1452
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1436,7 +1456,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1436
1456
|
|
|
1437
1457
|
## SystemInput
|
|
1438
1458
|
|
|
1439
|
-
来源:`packages/sdk/src/index.ts:
|
|
1459
|
+
来源:`packages/sdk/src/index.ts:762`
|
|
1440
1460
|
|
|
1441
1461
|
```ts
|
|
1442
1462
|
export interface SystemInput {
|
|
@@ -1453,7 +1473,7 @@ export interface SystemInput {
|
|
|
1453
1473
|
|
|
1454
1474
|
## SystemDefinition
|
|
1455
1475
|
|
|
1456
|
-
来源:`packages/sdk/src/index.ts:
|
|
1476
|
+
来源:`packages/sdk/src/index.ts:772`
|
|
1457
1477
|
|
|
1458
1478
|
```ts
|
|
1459
1479
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1463,7 +1483,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1463
1483
|
|
|
1464
1484
|
## GameInput
|
|
1465
1485
|
|
|
1466
|
-
来源:`packages/sdk/src/index.ts:
|
|
1486
|
+
来源:`packages/sdk/src/index.ts:775`
|
|
1467
1487
|
|
|
1468
1488
|
```ts
|
|
1469
1489
|
export interface GameInput {
|
|
@@ -1489,7 +1509,7 @@ export interface GameInput {
|
|
|
1489
1509
|
|
|
1490
1510
|
## GameDefinition
|
|
1491
1511
|
|
|
1492
|
-
来源:`packages/sdk/src/index.ts:
|
|
1512
|
+
来源:`packages/sdk/src/index.ts:794`
|
|
1493
1513
|
|
|
1494
1514
|
```ts
|
|
1495
1515
|
export interface GameDefinition extends GameInput {
|
|
@@ -1499,7 +1519,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1499
1519
|
|
|
1500
1520
|
## GameInstance
|
|
1501
1521
|
|
|
1502
|
-
来源:`packages/sdk/src/index.ts:
|
|
1522
|
+
来源:`packages/sdk/src/index.ts:797`
|
|
1503
1523
|
|
|
1504
1524
|
```ts
|
|
1505
1525
|
export interface GameInstance {
|
|
@@ -1510,7 +1530,7 @@ export interface GameInstance {
|
|
|
1510
1530
|
|
|
1511
1531
|
## defineComponent
|
|
1512
1532
|
|
|
1513
|
-
来源:`packages/sdk/src/index.ts:
|
|
1533
|
+
来源:`packages/sdk/src/index.ts:801`
|
|
1514
1534
|
|
|
1515
1535
|
```ts
|
|
1516
1536
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1521,7 +1541,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1521
1541
|
|
|
1522
1542
|
## defineMaterial
|
|
1523
1543
|
|
|
1524
|
-
来源:`packages/sdk/src/index.ts:
|
|
1544
|
+
来源:`packages/sdk/src/index.ts:807`
|
|
1525
1545
|
|
|
1526
1546
|
```ts
|
|
1527
1547
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1529,7 +1549,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1529
1549
|
|
|
1530
1550
|
## definePostProcess
|
|
1531
1551
|
|
|
1532
|
-
来源:`packages/sdk/src/index.ts:
|
|
1552
|
+
来源:`packages/sdk/src/index.ts:810`
|
|
1533
1553
|
|
|
1534
1554
|
```ts
|
|
1535
1555
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1537,7 +1557,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1537
1557
|
|
|
1538
1558
|
## defineCompute
|
|
1539
1559
|
|
|
1540
|
-
来源:`packages/sdk/src/index.ts:
|
|
1560
|
+
来源:`packages/sdk/src/index.ts:813`
|
|
1541
1561
|
|
|
1542
1562
|
```ts
|
|
1543
1563
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1545,7 +1565,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1545
1565
|
|
|
1546
1566
|
## defineAsset
|
|
1547
1567
|
|
|
1548
|
-
来源:`packages/sdk/src/index.ts:
|
|
1568
|
+
来源:`packages/sdk/src/index.ts:816`
|
|
1549
1569
|
|
|
1550
1570
|
```ts
|
|
1551
1571
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1553,7 +1573,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1553
1573
|
|
|
1554
1574
|
## definePrefab
|
|
1555
1575
|
|
|
1556
|
-
来源:`packages/sdk/src/index.ts:
|
|
1576
|
+
来源:`packages/sdk/src/index.ts:819`
|
|
1557
1577
|
|
|
1558
1578
|
```ts
|
|
1559
1579
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1561,7 +1581,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1561
1581
|
|
|
1562
1582
|
## defineScene
|
|
1563
1583
|
|
|
1564
|
-
来源:`packages/sdk/src/index.ts:
|
|
1584
|
+
来源:`packages/sdk/src/index.ts:822`
|
|
1565
1585
|
|
|
1566
1586
|
```ts
|
|
1567
1587
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1569,7 +1589,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1569
1589
|
|
|
1570
1590
|
## defineSystem
|
|
1571
1591
|
|
|
1572
|
-
来源:`packages/sdk/src/index.ts:
|
|
1592
|
+
来源:`packages/sdk/src/index.ts:825`
|
|
1573
1593
|
|
|
1574
1594
|
```ts
|
|
1575
1595
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1577,7 +1597,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1577
1597
|
|
|
1578
1598
|
## defineGame
|
|
1579
1599
|
|
|
1580
|
-
来源:`packages/sdk/src/index.ts:
|
|
1600
|
+
来源:`packages/sdk/src/index.ts:828`
|
|
1581
1601
|
|
|
1582
1602
|
```ts
|
|
1583
1603
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1585,7 +1605,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1585
1605
|
|
|
1586
1606
|
## instantiateGame
|
|
1587
1607
|
|
|
1588
|
-
来源:`packages/sdk/src/index.ts:
|
|
1608
|
+
来源:`packages/sdk/src/index.ts:832`
|
|
1589
1609
|
|
|
1590
1610
|
```ts
|
|
1591
1611
|
export function instantiateGame(
|