pelican-engine 0.3.12 → 0.3.14
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 +28 -4
- package/distribution.json +15 -14
- package/docs/STATUS.md +3 -3
- package/docs/api/REFERENCE.md +103 -93
- package/docs/api/index.json +105 -94
- package/docs/npm/GAME-AUTHOR.md +28 -4
- package/engine.manifest.json +1 -1
- package/lib/physics/index.js +38 -0
- package/lib/runtime/host.js +1 -0
- package/lib/sdk/index.d.ts +11 -4
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-body-coupling.js +107 -0
- package/lib/simulation/rope-plugin.js +182 -15
- package/lib/simulation/rope.js +30 -16
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.14 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.14"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -268,9 +268,17 @@ export type RopeCollider =
|
|
|
268
268
|
| { kind: "plane"; id: string; normal: Vec3; offset: number };
|
|
269
269
|
```
|
|
270
270
|
|
|
271
|
+
## RopeBodyCollider
|
|
272
|
+
|
|
273
|
+
来源:`packages/sdk/src/index.ts:127`
|
|
274
|
+
|
|
275
|
+
```ts
|
|
276
|
+
export interface RopeBodyCollider { readonly id: string; readonly entity: string }
|
|
277
|
+
```
|
|
278
|
+
|
|
271
279
|
## RopeDefinition
|
|
272
280
|
|
|
273
|
-
来源:`packages/sdk/src/index.ts:
|
|
281
|
+
来源:`packages/sdk/src/index.ts:128`
|
|
274
282
|
|
|
275
283
|
```ts
|
|
276
284
|
export interface RopeDefinition {
|
|
@@ -283,6 +291,8 @@ export interface RopeDefinition {
|
|
|
283
291
|
fixedDt?: number;
|
|
284
292
|
/** When true, step once after each physics phase; defaults to false (manual stepping). */
|
|
285
293
|
autoStep?: boolean;
|
|
294
|
+
/** Automatically sample and react to existing dynamic, non-trigger sphere bodies. Requires autoStep. */
|
|
295
|
+
bodyColliders?: readonly RopeBodyCollider[];
|
|
286
296
|
substeps?: number;
|
|
287
297
|
iterations?: number;
|
|
288
298
|
damping?: number;
|
|
@@ -293,12 +303,12 @@ export interface RopeDefinition {
|
|
|
293
303
|
|
|
294
304
|
## RopeContact
|
|
295
305
|
|
|
296
|
-
来源:`packages/sdk/src/index.ts:
|
|
306
|
+
来源:`packages/sdk/src/index.ts:147`
|
|
297
307
|
|
|
298
308
|
```ts
|
|
299
309
|
export interface RopeContact {
|
|
300
310
|
tick: number; particle: number; colliderId: string; penetration: number;
|
|
301
|
-
/** Opposite of particle
|
|
311
|
+
/** Opposite of particle contact impulses, N·s; absent in older snapshots. */
|
|
302
312
|
reactionImpulse?: Vec3;
|
|
303
313
|
/** Angular impulse about the world origin; absent in older snapshots. */
|
|
304
314
|
reactionAngularImpulse?: Vec3;
|
|
@@ -307,7 +317,7 @@ export interface RopeContact {
|
|
|
307
317
|
|
|
308
318
|
## RopeState
|
|
309
319
|
|
|
310
|
-
来源:`packages/sdk/src/index.ts:
|
|
320
|
+
来源:`packages/sdk/src/index.ts:154`
|
|
311
321
|
|
|
312
322
|
```ts
|
|
313
323
|
export interface RopeState {
|
|
@@ -322,7 +332,7 @@ export interface RopeState {
|
|
|
322
332
|
|
|
323
333
|
## RopeService
|
|
324
334
|
|
|
325
|
-
来源:`packages/sdk/src/index.ts:
|
|
335
|
+
来源:`packages/sdk/src/index.ts:162`
|
|
326
336
|
|
|
327
337
|
```ts
|
|
328
338
|
export interface RopeService {
|
|
@@ -341,7 +351,7 @@ export interface RopeService {
|
|
|
341
351
|
|
|
342
352
|
## NavigationCell
|
|
343
353
|
|
|
344
|
-
来源:`packages/sdk/src/index.ts:
|
|
354
|
+
来源:`packages/sdk/src/index.ts:177`
|
|
345
355
|
|
|
346
356
|
```ts
|
|
347
357
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -349,7 +359,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
349
359
|
|
|
350
360
|
## NavigationObstacleUpdate
|
|
351
361
|
|
|
352
|
-
来源:`packages/sdk/src/index.ts:
|
|
362
|
+
来源:`packages/sdk/src/index.ts:179`
|
|
353
363
|
|
|
354
364
|
```ts
|
|
355
365
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -357,7 +367,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
357
367
|
|
|
358
368
|
## NavigationGrid
|
|
359
369
|
|
|
360
|
-
来源:`packages/sdk/src/index.ts:
|
|
370
|
+
来源:`packages/sdk/src/index.ts:180`
|
|
361
371
|
|
|
362
372
|
```ts
|
|
363
373
|
export interface NavigationGrid {
|
|
@@ -373,7 +383,7 @@ export interface NavigationGrid {
|
|
|
373
383
|
|
|
374
384
|
## NavigationService
|
|
375
385
|
|
|
376
|
-
来源:`packages/sdk/src/index.ts:
|
|
386
|
+
来源:`packages/sdk/src/index.ts:189`
|
|
377
387
|
|
|
378
388
|
```ts
|
|
379
389
|
export interface NavigationService {
|
|
@@ -392,7 +402,7 @@ export interface NavigationService {
|
|
|
392
402
|
|
|
393
403
|
## RenderMode
|
|
394
404
|
|
|
395
|
-
来源:`packages/sdk/src/index.ts:
|
|
405
|
+
来源:`packages/sdk/src/index.ts:201`
|
|
396
406
|
|
|
397
407
|
```ts
|
|
398
408
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -400,7 +410,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
400
410
|
|
|
401
411
|
## RenderCapabilities
|
|
402
412
|
|
|
403
|
-
来源:`packages/sdk/src/index.ts:
|
|
413
|
+
来源:`packages/sdk/src/index.ts:202`
|
|
404
414
|
|
|
405
415
|
```ts
|
|
406
416
|
export interface RenderCapabilities {
|
|
@@ -412,7 +422,7 @@ export interface RenderCapabilities {
|
|
|
412
422
|
|
|
413
423
|
## RenderSettings
|
|
414
424
|
|
|
415
|
-
来源:`packages/sdk/src/index.ts:
|
|
425
|
+
来源:`packages/sdk/src/index.ts:207`
|
|
416
426
|
|
|
417
427
|
```ts
|
|
418
428
|
export interface RenderSettings {
|
|
@@ -430,7 +440,7 @@ export interface RenderSettings {
|
|
|
430
440
|
|
|
431
441
|
## RenderService
|
|
432
442
|
|
|
433
|
-
来源:`packages/sdk/src/index.ts:
|
|
443
|
+
来源:`packages/sdk/src/index.ts:218`
|
|
434
444
|
|
|
435
445
|
```ts
|
|
436
446
|
export interface RenderService {
|
|
@@ -447,7 +457,7 @@ export interface RenderService {
|
|
|
447
457
|
|
|
448
458
|
## MaterialBufferInput
|
|
449
459
|
|
|
450
|
-
来源:`packages/sdk/src/index.ts:
|
|
460
|
+
来源:`packages/sdk/src/index.ts:228`
|
|
451
461
|
|
|
452
462
|
```ts
|
|
453
463
|
export interface MaterialBufferInput {
|
|
@@ -463,7 +473,7 @@ export interface MaterialBufferInput {
|
|
|
463
473
|
|
|
464
474
|
## RenderBufferReference
|
|
465
475
|
|
|
466
|
-
来源:`packages/sdk/src/index.ts:
|
|
476
|
+
来源:`packages/sdk/src/index.ts:237`
|
|
467
477
|
|
|
468
478
|
```ts
|
|
469
479
|
export interface RenderBufferReference {
|
|
@@ -475,7 +485,7 @@ export interface RenderBufferReference {
|
|
|
475
485
|
|
|
476
486
|
## RenderBufferBindings
|
|
477
487
|
|
|
478
|
-
来源:`packages/sdk/src/index.ts:
|
|
488
|
+
来源:`packages/sdk/src/index.ts:242`
|
|
479
489
|
|
|
480
490
|
```ts
|
|
481
491
|
export interface RenderBufferBindings {
|
|
@@ -487,7 +497,7 @@ export interface RenderBufferBindings {
|
|
|
487
497
|
|
|
488
498
|
## MaterialTextureInput
|
|
489
499
|
|
|
490
|
-
来源:`packages/sdk/src/index.ts:
|
|
500
|
+
来源:`packages/sdk/src/index.ts:247`
|
|
491
501
|
|
|
492
502
|
```ts
|
|
493
503
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -500,7 +510,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
500
510
|
|
|
501
511
|
## RenderTextureReference
|
|
502
512
|
|
|
503
|
-
来源:`packages/sdk/src/index.ts:
|
|
513
|
+
来源:`packages/sdk/src/index.ts:253`
|
|
504
514
|
|
|
505
515
|
```ts
|
|
506
516
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -511,7 +521,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
511
521
|
|
|
512
522
|
## RenderTextureBindings
|
|
513
523
|
|
|
514
|
-
来源:`packages/sdk/src/index.ts:
|
|
524
|
+
来源:`packages/sdk/src/index.ts:257`
|
|
515
525
|
|
|
516
526
|
```ts
|
|
517
527
|
export interface RenderTextureBindings {
|
|
@@ -523,7 +533,7 @@ export interface RenderTextureBindings {
|
|
|
523
533
|
|
|
524
534
|
## PostProcessState
|
|
525
535
|
|
|
526
|
-
来源:`packages/sdk/src/index.ts:
|
|
536
|
+
来源:`packages/sdk/src/index.ts:262`
|
|
527
537
|
|
|
528
538
|
```ts
|
|
529
539
|
export interface PostProcessState {
|
|
@@ -535,7 +545,7 @@ export interface PostProcessState {
|
|
|
535
545
|
|
|
536
546
|
## PostProcessService
|
|
537
547
|
|
|
538
|
-
来源:`packages/sdk/src/index.ts:
|
|
548
|
+
来源:`packages/sdk/src/index.ts:267`
|
|
539
549
|
|
|
540
550
|
```ts
|
|
541
551
|
export interface PostProcessService {
|
|
@@ -552,7 +562,7 @@ export interface PostProcessService {
|
|
|
552
562
|
|
|
553
563
|
## ComputeBufferHandle
|
|
554
564
|
|
|
555
|
-
来源:`packages/sdk/src/index.ts:
|
|
565
|
+
来源:`packages/sdk/src/index.ts:277`
|
|
556
566
|
|
|
557
567
|
```ts
|
|
558
568
|
export interface ComputeBufferHandle {
|
|
@@ -564,7 +574,7 @@ export interface ComputeBufferHandle {
|
|
|
564
574
|
|
|
565
575
|
## ComputeTaskHandle
|
|
566
576
|
|
|
567
|
-
来源:`packages/sdk/src/index.ts:
|
|
577
|
+
来源:`packages/sdk/src/index.ts:282`
|
|
568
578
|
|
|
569
579
|
```ts
|
|
570
580
|
export interface ComputeTaskHandle {
|
|
@@ -575,7 +585,7 @@ export interface ComputeTaskHandle {
|
|
|
575
585
|
|
|
576
586
|
## ComputeBufferInput
|
|
577
587
|
|
|
578
|
-
来源:`packages/sdk/src/index.ts:
|
|
588
|
+
来源:`packages/sdk/src/index.ts:286`
|
|
579
589
|
|
|
580
590
|
```ts
|
|
581
591
|
export interface ComputeBufferInput {
|
|
@@ -588,7 +598,7 @@ export interface ComputeBufferInput {
|
|
|
588
598
|
|
|
589
599
|
## ComputeTextureHandle
|
|
590
600
|
|
|
591
|
-
来源:`packages/sdk/src/index.ts:
|
|
601
|
+
来源:`packages/sdk/src/index.ts:292`
|
|
592
602
|
|
|
593
603
|
```ts
|
|
594
604
|
export interface ComputeTextureHandle {
|
|
@@ -601,7 +611,7 @@ export interface ComputeTextureHandle {
|
|
|
601
611
|
|
|
602
612
|
## ComputeTextureSize
|
|
603
613
|
|
|
604
|
-
来源:`packages/sdk/src/index.ts:
|
|
614
|
+
来源:`packages/sdk/src/index.ts:298`
|
|
605
615
|
|
|
606
616
|
```ts
|
|
607
617
|
export interface ComputeTextureSize {
|
|
@@ -612,7 +622,7 @@ export interface ComputeTextureSize {
|
|
|
612
622
|
|
|
613
623
|
## ComputeTextureDataInput
|
|
614
624
|
|
|
615
|
-
来源:`packages/sdk/src/index.ts:
|
|
625
|
+
来源:`packages/sdk/src/index.ts:302`
|
|
616
626
|
|
|
617
627
|
```ts
|
|
618
628
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -625,7 +635,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
625
635
|
|
|
626
636
|
## ComputeTextureAssetInput
|
|
627
637
|
|
|
628
|
-
来源:`packages/sdk/src/index.ts:
|
|
638
|
+
来源:`packages/sdk/src/index.ts:308`
|
|
629
639
|
|
|
630
640
|
```ts
|
|
631
641
|
export interface ComputeTextureAssetInput {
|
|
@@ -639,7 +649,7 @@ export interface ComputeTextureAssetInput {
|
|
|
639
649
|
|
|
640
650
|
## ComputeTextureInput
|
|
641
651
|
|
|
642
|
-
来源:`packages/sdk/src/index.ts:
|
|
652
|
+
来源:`packages/sdk/src/index.ts:315`
|
|
643
653
|
|
|
644
654
|
```ts
|
|
645
655
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -647,7 +657,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
647
657
|
|
|
648
658
|
## ComputeTextureBinding
|
|
649
659
|
|
|
650
|
-
来源:`packages/sdk/src/index.ts:
|
|
660
|
+
来源:`packages/sdk/src/index.ts:316`
|
|
651
661
|
|
|
652
662
|
```ts
|
|
653
663
|
export interface ComputeTextureBinding {
|
|
@@ -660,7 +670,7 @@ export interface ComputeTextureBinding {
|
|
|
660
670
|
|
|
661
671
|
## ComputeDispatchInput
|
|
662
672
|
|
|
663
|
-
来源:`packages/sdk/src/index.ts:
|
|
673
|
+
来源:`packages/sdk/src/index.ts:322`
|
|
664
674
|
|
|
665
675
|
```ts
|
|
666
676
|
export interface ComputeDispatchInput {
|
|
@@ -679,7 +689,7 @@ export interface ComputeDispatchInput {
|
|
|
679
689
|
|
|
680
690
|
## ComputeTaskState
|
|
681
691
|
|
|
682
|
-
来源:`packages/sdk/src/index.ts:
|
|
692
|
+
来源:`packages/sdk/src/index.ts:334`
|
|
683
693
|
|
|
684
694
|
```ts
|
|
685
695
|
export interface ComputeTaskState {
|
|
@@ -690,7 +700,7 @@ export interface ComputeTaskState {
|
|
|
690
700
|
|
|
691
701
|
## ComputeService
|
|
692
702
|
|
|
693
|
-
来源:`packages/sdk/src/index.ts:
|
|
703
|
+
来源:`packages/sdk/src/index.ts:338`
|
|
694
704
|
|
|
695
705
|
```ts
|
|
696
706
|
export interface ComputeService {
|
|
@@ -717,7 +727,7 @@ export interface ComputeService {
|
|
|
717
727
|
|
|
718
728
|
## InputService
|
|
719
729
|
|
|
720
|
-
来源:`packages/sdk/src/index.ts:
|
|
730
|
+
来源:`packages/sdk/src/index.ts:358`
|
|
721
731
|
|
|
722
732
|
```ts
|
|
723
733
|
export interface InputService {
|
|
@@ -730,7 +740,7 @@ export interface InputService {
|
|
|
730
740
|
|
|
731
741
|
## PhysicsService
|
|
732
742
|
|
|
733
|
-
来源:`packages/sdk/src/index.ts:
|
|
743
|
+
来源:`packages/sdk/src/index.ts:364`
|
|
734
744
|
|
|
735
745
|
```ts
|
|
736
746
|
export interface PhysicsService {
|
|
@@ -759,7 +769,7 @@ export interface PhysicsService {
|
|
|
759
769
|
|
|
760
770
|
## AnimationService
|
|
761
771
|
|
|
762
|
-
来源:`packages/sdk/src/index.ts:
|
|
772
|
+
来源:`packages/sdk/src/index.ts:386`
|
|
763
773
|
|
|
764
774
|
```ts
|
|
765
775
|
export interface AnimationService {
|
|
@@ -778,7 +788,7 @@ export interface AnimationService {
|
|
|
778
788
|
|
|
779
789
|
## CameraService
|
|
780
790
|
|
|
781
|
-
来源:`packages/sdk/src/index.ts:
|
|
791
|
+
来源:`packages/sdk/src/index.ts:398`
|
|
782
792
|
|
|
783
793
|
```ts
|
|
784
794
|
export interface CameraService {
|
|
@@ -798,7 +808,7 @@ export interface CameraService {
|
|
|
798
808
|
|
|
799
809
|
## UIService
|
|
800
810
|
|
|
801
|
-
来源:`packages/sdk/src/index.ts:
|
|
811
|
+
来源:`packages/sdk/src/index.ts:411`
|
|
802
812
|
|
|
803
813
|
```ts
|
|
804
814
|
export interface UIService {
|
|
@@ -810,7 +820,7 @@ export interface UIService {
|
|
|
810
820
|
|
|
811
821
|
## AudioService
|
|
812
822
|
|
|
813
|
-
来源:`packages/sdk/src/index.ts:
|
|
823
|
+
来源:`packages/sdk/src/index.ts:416`
|
|
814
824
|
|
|
815
825
|
```ts
|
|
816
826
|
export interface AudioService {
|
|
@@ -832,7 +842,7 @@ export interface AudioService {
|
|
|
832
842
|
|
|
833
843
|
## StorageService
|
|
834
844
|
|
|
835
|
-
来源:`packages/sdk/src/index.ts:
|
|
845
|
+
来源:`packages/sdk/src/index.ts:431`
|
|
836
846
|
|
|
837
847
|
```ts
|
|
838
848
|
export interface StorageService {
|
|
@@ -848,7 +858,7 @@ export interface StorageService {
|
|
|
848
858
|
|
|
849
859
|
## SceneService
|
|
850
860
|
|
|
851
|
-
来源:`packages/sdk/src/index.ts:
|
|
861
|
+
来源:`packages/sdk/src/index.ts:440`
|
|
852
862
|
|
|
853
863
|
```ts
|
|
854
864
|
export interface SceneService {
|
|
@@ -859,7 +869,7 @@ export interface SceneService {
|
|
|
859
869
|
|
|
860
870
|
## ModelDefinition
|
|
861
871
|
|
|
862
|
-
来源:`packages/sdk/src/index.ts:
|
|
872
|
+
来源:`packages/sdk/src/index.ts:444`
|
|
863
873
|
|
|
864
874
|
```ts
|
|
865
875
|
export interface ModelDefinition {
|
|
@@ -879,7 +889,7 @@ export interface ModelDefinition {
|
|
|
879
889
|
|
|
880
890
|
## RigidBodyDefinition
|
|
881
891
|
|
|
882
|
-
来源:`packages/sdk/src/index.ts:
|
|
892
|
+
来源:`packages/sdk/src/index.ts:457`
|
|
883
893
|
|
|
884
894
|
```ts
|
|
885
895
|
export interface RigidBodyDefinition {
|
|
@@ -900,7 +910,7 @@ export interface RigidBodyDefinition {
|
|
|
900
910
|
|
|
901
911
|
## CharacterDefinition
|
|
902
912
|
|
|
903
|
-
来源:`packages/sdk/src/index.ts:
|
|
913
|
+
来源:`packages/sdk/src/index.ts:471`
|
|
904
914
|
|
|
905
915
|
```ts
|
|
906
916
|
export interface CharacterDefinition {
|
|
@@ -915,7 +925,7 @@ export interface CharacterDefinition {
|
|
|
915
925
|
|
|
916
926
|
## UIElementDefinition
|
|
917
927
|
|
|
918
|
-
来源:`packages/sdk/src/index.ts:
|
|
928
|
+
来源:`packages/sdk/src/index.ts:479`
|
|
919
929
|
|
|
920
930
|
```ts
|
|
921
931
|
export interface UIElementDefinition {
|
|
@@ -935,7 +945,7 @@ export interface UIElementDefinition {
|
|
|
935
945
|
|
|
936
946
|
## SoundDefinition
|
|
937
947
|
|
|
938
|
-
来源:`packages/sdk/src/index.ts:
|
|
948
|
+
来源:`packages/sdk/src/index.ts:492`
|
|
939
949
|
|
|
940
950
|
```ts
|
|
941
951
|
export interface SoundDefinition {
|
|
@@ -949,7 +959,7 @@ export interface SoundDefinition {
|
|
|
949
959
|
|
|
950
960
|
## AudioBusDefinition
|
|
951
961
|
|
|
952
|
-
来源:`packages/sdk/src/index.ts:
|
|
962
|
+
来源:`packages/sdk/src/index.ts:499`
|
|
953
963
|
|
|
954
964
|
```ts
|
|
955
965
|
export interface AudioBusDefinition {
|
|
@@ -960,7 +970,7 @@ export interface AudioBusDefinition {
|
|
|
960
970
|
|
|
961
971
|
## SYSTEM_PHASES
|
|
962
972
|
|
|
963
|
-
来源:`packages/sdk/src/index.ts:
|
|
973
|
+
来源:`packages/sdk/src/index.ts:503`
|
|
964
974
|
|
|
965
975
|
```ts
|
|
966
976
|
SYSTEM_PHASES = [
|
|
@@ -975,7 +985,7 @@ SYSTEM_PHASES = [
|
|
|
975
985
|
|
|
976
986
|
## SystemPhase
|
|
977
987
|
|
|
978
|
-
来源:`packages/sdk/src/index.ts:
|
|
988
|
+
来源:`packages/sdk/src/index.ts:511`
|
|
979
989
|
|
|
980
990
|
```ts
|
|
981
991
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -983,7 +993,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
983
993
|
|
|
984
994
|
## Geometry
|
|
985
995
|
|
|
986
|
-
来源:`packages/sdk/src/index.ts:
|
|
996
|
+
来源:`packages/sdk/src/index.ts:512`
|
|
987
997
|
|
|
988
998
|
```ts
|
|
989
999
|
export type Geometry =
|
|
@@ -994,7 +1004,7 @@ export type Geometry =
|
|
|
994
1004
|
|
|
995
1005
|
## GRAPH_TYPES
|
|
996
1006
|
|
|
997
|
-
来源:`packages/sdk/src/index.ts:
|
|
1007
|
+
来源:`packages/sdk/src/index.ts:516`
|
|
998
1008
|
|
|
999
1009
|
```ts
|
|
1000
1010
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1002,7 +1012,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1002
1012
|
|
|
1003
1013
|
## GraphType
|
|
1004
1014
|
|
|
1005
|
-
来源:`packages/sdk/src/index.ts:
|
|
1015
|
+
来源:`packages/sdk/src/index.ts:517`
|
|
1006
1016
|
|
|
1007
1017
|
```ts
|
|
1008
1018
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1010,7 +1020,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1010
1020
|
|
|
1011
1021
|
## GraphValue
|
|
1012
1022
|
|
|
1013
|
-
来源:`packages/sdk/src/index.ts:
|
|
1023
|
+
来源:`packages/sdk/src/index.ts:518`
|
|
1014
1024
|
|
|
1015
1025
|
```ts
|
|
1016
1026
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1018,7 +1028,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1018
1028
|
|
|
1019
1029
|
## GraphParameter
|
|
1020
1030
|
|
|
1021
|
-
来源:`packages/sdk/src/index.ts:
|
|
1031
|
+
来源:`packages/sdk/src/index.ts:519`
|
|
1022
1032
|
|
|
1023
1033
|
```ts
|
|
1024
1034
|
export interface GraphParameter {
|
|
@@ -1030,7 +1040,7 @@ export interface GraphParameter {
|
|
|
1030
1040
|
|
|
1031
1041
|
## GRAPH_INPUT_TYPES
|
|
1032
1042
|
|
|
1033
|
-
来源:`packages/sdk/src/index.ts:
|
|
1043
|
+
来源:`packages/sdk/src/index.ts:524`
|
|
1034
1044
|
|
|
1035
1045
|
```ts
|
|
1036
1046
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1044,7 +1054,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1044
1054
|
|
|
1045
1055
|
## GraphInputName
|
|
1046
1056
|
|
|
1047
|
-
来源:`packages/sdk/src/index.ts:
|
|
1057
|
+
来源:`packages/sdk/src/index.ts:531`
|
|
1048
1058
|
|
|
1049
1059
|
```ts
|
|
1050
1060
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1052,7 +1062,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1052
1062
|
|
|
1053
1063
|
## GRAPH_OPERATIONS
|
|
1054
1064
|
|
|
1055
|
-
来源:`packages/sdk/src/index.ts:
|
|
1065
|
+
来源:`packages/sdk/src/index.ts:532`
|
|
1056
1066
|
|
|
1057
1067
|
```ts
|
|
1058
1068
|
GRAPH_OPERATIONS = {
|
|
@@ -1064,7 +1074,7 @@ GRAPH_OPERATIONS = {
|
|
|
1064
1074
|
|
|
1065
1075
|
## GraphNode
|
|
1066
1076
|
|
|
1067
|
-
来源:`packages/sdk/src/index.ts:
|
|
1077
|
+
来源:`packages/sdk/src/index.ts:537`
|
|
1068
1078
|
|
|
1069
1079
|
```ts
|
|
1070
1080
|
export type GraphNode =
|
|
@@ -1091,7 +1101,7 @@ export type GraphNode =
|
|
|
1091
1101
|
|
|
1092
1102
|
## Graph
|
|
1093
1103
|
|
|
1094
|
-
来源:`packages/sdk/src/index.ts:
|
|
1104
|
+
来源:`packages/sdk/src/index.ts:557`
|
|
1095
1105
|
|
|
1096
1106
|
```ts
|
|
1097
1107
|
export interface Graph {
|
|
@@ -1103,7 +1113,7 @@ export interface Graph {
|
|
|
1103
1113
|
|
|
1104
1114
|
## MaterialGraphs
|
|
1105
1115
|
|
|
1106
|
-
来源:`packages/sdk/src/index.ts:
|
|
1116
|
+
来源:`packages/sdk/src/index.ts:562`
|
|
1107
1117
|
|
|
1108
1118
|
```ts
|
|
1109
1119
|
export interface MaterialGraphs {
|
|
@@ -1119,7 +1129,7 @@ export interface MaterialGraphs {
|
|
|
1119
1129
|
|
|
1120
1130
|
## VertexGraphs
|
|
1121
1131
|
|
|
1122
|
-
来源:`packages/sdk/src/index.ts:
|
|
1132
|
+
来源:`packages/sdk/src/index.ts:571`
|
|
1123
1133
|
|
|
1124
1134
|
```ts
|
|
1125
1135
|
export interface VertexGraphs {
|
|
@@ -1132,7 +1142,7 @@ export interface VertexGraphs {
|
|
|
1132
1142
|
|
|
1133
1143
|
## MaterialInput
|
|
1134
1144
|
|
|
1135
|
-
来源:`packages/sdk/src/index.ts:
|
|
1145
|
+
来源:`packages/sdk/src/index.ts:577`
|
|
1136
1146
|
|
|
1137
1147
|
```ts
|
|
1138
1148
|
export interface MaterialInput {
|
|
@@ -1166,7 +1176,7 @@ export interface MaterialInput {
|
|
|
1166
1176
|
|
|
1167
1177
|
## MaterialDefinition
|
|
1168
1178
|
|
|
1169
|
-
来源:`packages/sdk/src/index.ts:
|
|
1179
|
+
来源:`packages/sdk/src/index.ts:604`
|
|
1170
1180
|
|
|
1171
1181
|
```ts
|
|
1172
1182
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1176,7 +1186,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1176
1186
|
|
|
1177
1187
|
## PostProcessInput
|
|
1178
1188
|
|
|
1179
|
-
来源:`packages/sdk/src/index.ts:
|
|
1189
|
+
来源:`packages/sdk/src/index.ts:607`
|
|
1180
1190
|
|
|
1181
1191
|
```ts
|
|
1182
1192
|
export interface PostProcessInput {
|
|
@@ -1191,7 +1201,7 @@ export interface PostProcessInput {
|
|
|
1191
1201
|
|
|
1192
1202
|
## PostProcessDefinition
|
|
1193
1203
|
|
|
1194
|
-
来源:`packages/sdk/src/index.ts:
|
|
1204
|
+
来源:`packages/sdk/src/index.ts:615`
|
|
1195
1205
|
|
|
1196
1206
|
```ts
|
|
1197
1207
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1201,7 +1211,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1201
1211
|
|
|
1202
1212
|
## ComputeInput
|
|
1203
1213
|
|
|
1204
|
-
来源:`packages/sdk/src/index.ts:
|
|
1214
|
+
来源:`packages/sdk/src/index.ts:618`
|
|
1205
1215
|
|
|
1206
1216
|
```ts
|
|
1207
1217
|
export interface ComputeInput {
|
|
@@ -1217,7 +1227,7 @@ export interface ComputeInput {
|
|
|
1217
1227
|
|
|
1218
1228
|
## ComputeDefinition
|
|
1219
1229
|
|
|
1220
|
-
来源:`packages/sdk/src/index.ts:
|
|
1230
|
+
来源:`packages/sdk/src/index.ts:627`
|
|
1221
1231
|
|
|
1222
1232
|
```ts
|
|
1223
1233
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1227,7 +1237,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1227
1237
|
|
|
1228
1238
|
## AssetInput
|
|
1229
1239
|
|
|
1230
|
-
来源:`packages/sdk/src/index.ts:
|
|
1240
|
+
来源:`packages/sdk/src/index.ts:630`
|
|
1231
1241
|
|
|
1232
1242
|
```ts
|
|
1233
1243
|
export interface AssetInput {
|
|
@@ -1244,7 +1254,7 @@ export interface AssetInput {
|
|
|
1244
1254
|
|
|
1245
1255
|
## AssetDefinition
|
|
1246
1256
|
|
|
1247
|
-
来源:`packages/sdk/src/index.ts:
|
|
1257
|
+
来源:`packages/sdk/src/index.ts:640`
|
|
1248
1258
|
|
|
1249
1259
|
```ts
|
|
1250
1260
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1254,7 +1264,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1254
1264
|
|
|
1255
1265
|
## MeshDefinition
|
|
1256
1266
|
|
|
1257
|
-
来源:`packages/sdk/src/index.ts:
|
|
1267
|
+
来源:`packages/sdk/src/index.ts:643`
|
|
1258
1268
|
|
|
1259
1269
|
```ts
|
|
1260
1270
|
export interface MeshDefinition {
|
|
@@ -1267,7 +1277,7 @@ export interface MeshDefinition {
|
|
|
1267
1277
|
|
|
1268
1278
|
## LightDefinition
|
|
1269
1279
|
|
|
1270
|
-
来源:`packages/sdk/src/index.ts:
|
|
1280
|
+
来源:`packages/sdk/src/index.ts:649`
|
|
1271
1281
|
|
|
1272
1282
|
```ts
|
|
1273
1283
|
export interface LightDefinition {
|
|
@@ -1289,7 +1299,7 @@ export interface LightDefinition {
|
|
|
1289
1299
|
|
|
1290
1300
|
## EntityInput
|
|
1291
1301
|
|
|
1292
|
-
来源:`packages/sdk/src/index.ts:
|
|
1302
|
+
来源:`packages/sdk/src/index.ts:664`
|
|
1293
1303
|
|
|
1294
1304
|
```ts
|
|
1295
1305
|
export interface EntityInput {
|
|
@@ -1308,7 +1318,7 @@ export interface EntityInput {
|
|
|
1308
1318
|
|
|
1309
1319
|
## PrefabInput
|
|
1310
1320
|
|
|
1311
|
-
来源:`packages/sdk/src/index.ts:
|
|
1321
|
+
来源:`packages/sdk/src/index.ts:676`
|
|
1312
1322
|
|
|
1313
1323
|
```ts
|
|
1314
1324
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1318,7 +1328,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1318
1328
|
|
|
1319
1329
|
## PrefabDefinition
|
|
1320
1330
|
|
|
1321
|
-
来源:`packages/sdk/src/index.ts:
|
|
1331
|
+
来源:`packages/sdk/src/index.ts:679`
|
|
1322
1332
|
|
|
1323
1333
|
```ts
|
|
1324
1334
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1328,7 +1338,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1328
1338
|
|
|
1329
1339
|
## SceneInput
|
|
1330
1340
|
|
|
1331
|
-
来源:`packages/sdk/src/index.ts:
|
|
1341
|
+
来源:`packages/sdk/src/index.ts:682`
|
|
1332
1342
|
|
|
1333
1343
|
```ts
|
|
1334
1344
|
export interface SceneInput {
|
|
@@ -1360,7 +1370,7 @@ export interface SceneInput {
|
|
|
1360
1370
|
|
|
1361
1371
|
## SceneDefinition
|
|
1362
1372
|
|
|
1363
|
-
来源:`packages/sdk/src/index.ts:
|
|
1373
|
+
来源:`packages/sdk/src/index.ts:707`
|
|
1364
1374
|
|
|
1365
1375
|
```ts
|
|
1366
1376
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1370,7 +1380,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1370
1380
|
|
|
1371
1381
|
## SystemInput
|
|
1372
1382
|
|
|
1373
|
-
来源:`packages/sdk/src/index.ts:
|
|
1383
|
+
来源:`packages/sdk/src/index.ts:710`
|
|
1374
1384
|
|
|
1375
1385
|
```ts
|
|
1376
1386
|
export interface SystemInput {
|
|
@@ -1387,7 +1397,7 @@ export interface SystemInput {
|
|
|
1387
1397
|
|
|
1388
1398
|
## SystemDefinition
|
|
1389
1399
|
|
|
1390
|
-
来源:`packages/sdk/src/index.ts:
|
|
1400
|
+
来源:`packages/sdk/src/index.ts:720`
|
|
1391
1401
|
|
|
1392
1402
|
```ts
|
|
1393
1403
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1397,7 +1407,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1397
1407
|
|
|
1398
1408
|
## GameInput
|
|
1399
1409
|
|
|
1400
|
-
来源:`packages/sdk/src/index.ts:
|
|
1410
|
+
来源:`packages/sdk/src/index.ts:723`
|
|
1401
1411
|
|
|
1402
1412
|
```ts
|
|
1403
1413
|
export interface GameInput {
|
|
@@ -1423,7 +1433,7 @@ export interface GameInput {
|
|
|
1423
1433
|
|
|
1424
1434
|
## GameDefinition
|
|
1425
1435
|
|
|
1426
|
-
来源:`packages/sdk/src/index.ts:
|
|
1436
|
+
来源:`packages/sdk/src/index.ts:742`
|
|
1427
1437
|
|
|
1428
1438
|
```ts
|
|
1429
1439
|
export interface GameDefinition extends GameInput {
|
|
@@ -1433,7 +1443,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1433
1443
|
|
|
1434
1444
|
## GameInstance
|
|
1435
1445
|
|
|
1436
|
-
来源:`packages/sdk/src/index.ts:
|
|
1446
|
+
来源:`packages/sdk/src/index.ts:745`
|
|
1437
1447
|
|
|
1438
1448
|
```ts
|
|
1439
1449
|
export interface GameInstance {
|
|
@@ -1444,7 +1454,7 @@ export interface GameInstance {
|
|
|
1444
1454
|
|
|
1445
1455
|
## defineComponent
|
|
1446
1456
|
|
|
1447
|
-
来源:`packages/sdk/src/index.ts:
|
|
1457
|
+
来源:`packages/sdk/src/index.ts:749`
|
|
1448
1458
|
|
|
1449
1459
|
```ts
|
|
1450
1460
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1455,7 +1465,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1455
1465
|
|
|
1456
1466
|
## defineMaterial
|
|
1457
1467
|
|
|
1458
|
-
来源:`packages/sdk/src/index.ts:
|
|
1468
|
+
来源:`packages/sdk/src/index.ts:755`
|
|
1459
1469
|
|
|
1460
1470
|
```ts
|
|
1461
1471
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1463,7 +1473,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1463
1473
|
|
|
1464
1474
|
## definePostProcess
|
|
1465
1475
|
|
|
1466
|
-
来源:`packages/sdk/src/index.ts:
|
|
1476
|
+
来源:`packages/sdk/src/index.ts:758`
|
|
1467
1477
|
|
|
1468
1478
|
```ts
|
|
1469
1479
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1471,7 +1481,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1471
1481
|
|
|
1472
1482
|
## defineCompute
|
|
1473
1483
|
|
|
1474
|
-
来源:`packages/sdk/src/index.ts:
|
|
1484
|
+
来源:`packages/sdk/src/index.ts:761`
|
|
1475
1485
|
|
|
1476
1486
|
```ts
|
|
1477
1487
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1479,7 +1489,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1479
1489
|
|
|
1480
1490
|
## defineAsset
|
|
1481
1491
|
|
|
1482
|
-
来源:`packages/sdk/src/index.ts:
|
|
1492
|
+
来源:`packages/sdk/src/index.ts:764`
|
|
1483
1493
|
|
|
1484
1494
|
```ts
|
|
1485
1495
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1487,7 +1497,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1487
1497
|
|
|
1488
1498
|
## definePrefab
|
|
1489
1499
|
|
|
1490
|
-
来源:`packages/sdk/src/index.ts:
|
|
1500
|
+
来源:`packages/sdk/src/index.ts:767`
|
|
1491
1501
|
|
|
1492
1502
|
```ts
|
|
1493
1503
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1495,7 +1505,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1495
1505
|
|
|
1496
1506
|
## defineScene
|
|
1497
1507
|
|
|
1498
|
-
来源:`packages/sdk/src/index.ts:
|
|
1508
|
+
来源:`packages/sdk/src/index.ts:770`
|
|
1499
1509
|
|
|
1500
1510
|
```ts
|
|
1501
1511
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1503,7 +1513,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1503
1513
|
|
|
1504
1514
|
## defineSystem
|
|
1505
1515
|
|
|
1506
|
-
来源:`packages/sdk/src/index.ts:
|
|
1516
|
+
来源:`packages/sdk/src/index.ts:773`
|
|
1507
1517
|
|
|
1508
1518
|
```ts
|
|
1509
1519
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1511,7 +1521,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1511
1521
|
|
|
1512
1522
|
## defineGame
|
|
1513
1523
|
|
|
1514
|
-
来源:`packages/sdk/src/index.ts:
|
|
1524
|
+
来源:`packages/sdk/src/index.ts:776`
|
|
1515
1525
|
|
|
1516
1526
|
```ts
|
|
1517
1527
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1519,7 +1529,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1519
1529
|
|
|
1520
1530
|
## instantiateGame
|
|
1521
1531
|
|
|
1522
|
-
来源:`packages/sdk/src/index.ts:
|
|
1532
|
+
来源:`packages/sdk/src/index.ts:780`
|
|
1523
1533
|
|
|
1524
1534
|
```ts
|
|
1525
1535
|
export function instantiateGame(
|