pelican-engine 0.3.10 → 0.3.11
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 +21 -13
- package/distribution.json +13 -13
- package/docs/STATUS.md +2 -2
- package/docs/api/REFERENCE.md +93 -91
- package/docs/api/index.json +93 -92
- package/docs/npm/GAME-AUTHOR.md +21 -13
- package/engine.manifest.json +1 -1
- package/lib/runtime/host.js +13 -1
- package/lib/runtime/scheduler.js +11 -1
- package/lib/sdk/index.d.ts +4 -2
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +37 -2
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.11 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.11"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -281,6 +281,8 @@ export interface RopeDefinition {
|
|
|
281
281
|
radius?: number;
|
|
282
282
|
/** Defaults to the host interval; an explicit value must exactly match it. */
|
|
283
283
|
fixedDt?: number;
|
|
284
|
+
/** When true, step once after each physics phase; defaults to false (manual stepping). */
|
|
285
|
+
autoStep?: boolean;
|
|
284
286
|
substeps?: number;
|
|
285
287
|
iterations?: number;
|
|
286
288
|
damping?: number;
|
|
@@ -291,7 +293,7 @@ export interface RopeDefinition {
|
|
|
291
293
|
|
|
292
294
|
## RopeState
|
|
293
295
|
|
|
294
|
-
来源:`packages/sdk/src/index.ts:
|
|
296
|
+
来源:`packages/sdk/src/index.ts:142`
|
|
295
297
|
|
|
296
298
|
```ts
|
|
297
299
|
export interface RopeState {
|
|
@@ -306,12 +308,12 @@ export interface RopeState {
|
|
|
306
308
|
|
|
307
309
|
## RopeService
|
|
308
310
|
|
|
309
|
-
来源:`packages/sdk/src/index.ts:
|
|
311
|
+
来源:`packages/sdk/src/index.ts:150`
|
|
310
312
|
|
|
311
313
|
```ts
|
|
312
314
|
export interface RopeService {
|
|
313
315
|
create(definition: RopeDefinition): void;
|
|
314
|
-
/** Explicit
|
|
316
|
+
/** Explicit ticks for manual ropes only. Auto-stepped ropes reject this call. A failed batch leaves the rope unchanged. */
|
|
315
317
|
step(id: string, ticks?: number): RopeState;
|
|
316
318
|
inspect(id: string): RopeState;
|
|
317
319
|
setColliders(id: string, colliders: readonly RopeCollider[]): void;
|
|
@@ -325,7 +327,7 @@ export interface RopeService {
|
|
|
325
327
|
|
|
326
328
|
## NavigationCell
|
|
327
329
|
|
|
328
|
-
来源:`packages/sdk/src/index.ts:
|
|
330
|
+
来源:`packages/sdk/src/index.ts:165`
|
|
329
331
|
|
|
330
332
|
```ts
|
|
331
333
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -333,7 +335,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
333
335
|
|
|
334
336
|
## NavigationObstacleUpdate
|
|
335
337
|
|
|
336
|
-
来源:`packages/sdk/src/index.ts:
|
|
338
|
+
来源:`packages/sdk/src/index.ts:167`
|
|
337
339
|
|
|
338
340
|
```ts
|
|
339
341
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -341,7 +343,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
341
343
|
|
|
342
344
|
## NavigationGrid
|
|
343
345
|
|
|
344
|
-
来源:`packages/sdk/src/index.ts:
|
|
346
|
+
来源:`packages/sdk/src/index.ts:168`
|
|
345
347
|
|
|
346
348
|
```ts
|
|
347
349
|
export interface NavigationGrid {
|
|
@@ -357,7 +359,7 @@ export interface NavigationGrid {
|
|
|
357
359
|
|
|
358
360
|
## NavigationService
|
|
359
361
|
|
|
360
|
-
来源:`packages/sdk/src/index.ts:
|
|
362
|
+
来源:`packages/sdk/src/index.ts:177`
|
|
361
363
|
|
|
362
364
|
```ts
|
|
363
365
|
export interface NavigationService {
|
|
@@ -376,7 +378,7 @@ export interface NavigationService {
|
|
|
376
378
|
|
|
377
379
|
## RenderMode
|
|
378
380
|
|
|
379
|
-
来源:`packages/sdk/src/index.ts:
|
|
381
|
+
来源:`packages/sdk/src/index.ts:189`
|
|
380
382
|
|
|
381
383
|
```ts
|
|
382
384
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -384,7 +386,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
384
386
|
|
|
385
387
|
## RenderCapabilities
|
|
386
388
|
|
|
387
|
-
来源:`packages/sdk/src/index.ts:
|
|
389
|
+
来源:`packages/sdk/src/index.ts:190`
|
|
388
390
|
|
|
389
391
|
```ts
|
|
390
392
|
export interface RenderCapabilities {
|
|
@@ -396,7 +398,7 @@ export interface RenderCapabilities {
|
|
|
396
398
|
|
|
397
399
|
## RenderSettings
|
|
398
400
|
|
|
399
|
-
来源:`packages/sdk/src/index.ts:
|
|
401
|
+
来源:`packages/sdk/src/index.ts:195`
|
|
400
402
|
|
|
401
403
|
```ts
|
|
402
404
|
export interface RenderSettings {
|
|
@@ -414,7 +416,7 @@ export interface RenderSettings {
|
|
|
414
416
|
|
|
415
417
|
## RenderService
|
|
416
418
|
|
|
417
|
-
来源:`packages/sdk/src/index.ts:
|
|
419
|
+
来源:`packages/sdk/src/index.ts:206`
|
|
418
420
|
|
|
419
421
|
```ts
|
|
420
422
|
export interface RenderService {
|
|
@@ -431,7 +433,7 @@ export interface RenderService {
|
|
|
431
433
|
|
|
432
434
|
## MaterialBufferInput
|
|
433
435
|
|
|
434
|
-
来源:`packages/sdk/src/index.ts:
|
|
436
|
+
来源:`packages/sdk/src/index.ts:216`
|
|
435
437
|
|
|
436
438
|
```ts
|
|
437
439
|
export interface MaterialBufferInput {
|
|
@@ -447,7 +449,7 @@ export interface MaterialBufferInput {
|
|
|
447
449
|
|
|
448
450
|
## RenderBufferReference
|
|
449
451
|
|
|
450
|
-
来源:`packages/sdk/src/index.ts:
|
|
452
|
+
来源:`packages/sdk/src/index.ts:225`
|
|
451
453
|
|
|
452
454
|
```ts
|
|
453
455
|
export interface RenderBufferReference {
|
|
@@ -459,7 +461,7 @@ export interface RenderBufferReference {
|
|
|
459
461
|
|
|
460
462
|
## RenderBufferBindings
|
|
461
463
|
|
|
462
|
-
来源:`packages/sdk/src/index.ts:
|
|
464
|
+
来源:`packages/sdk/src/index.ts:230`
|
|
463
465
|
|
|
464
466
|
```ts
|
|
465
467
|
export interface RenderBufferBindings {
|
|
@@ -471,7 +473,7 @@ export interface RenderBufferBindings {
|
|
|
471
473
|
|
|
472
474
|
## MaterialTextureInput
|
|
473
475
|
|
|
474
|
-
来源:`packages/sdk/src/index.ts:
|
|
476
|
+
来源:`packages/sdk/src/index.ts:235`
|
|
475
477
|
|
|
476
478
|
```ts
|
|
477
479
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -484,7 +486,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
484
486
|
|
|
485
487
|
## RenderTextureReference
|
|
486
488
|
|
|
487
|
-
来源:`packages/sdk/src/index.ts:
|
|
489
|
+
来源:`packages/sdk/src/index.ts:241`
|
|
488
490
|
|
|
489
491
|
```ts
|
|
490
492
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -495,7 +497,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
495
497
|
|
|
496
498
|
## RenderTextureBindings
|
|
497
499
|
|
|
498
|
-
来源:`packages/sdk/src/index.ts:
|
|
500
|
+
来源:`packages/sdk/src/index.ts:245`
|
|
499
501
|
|
|
500
502
|
```ts
|
|
501
503
|
export interface RenderTextureBindings {
|
|
@@ -507,7 +509,7 @@ export interface RenderTextureBindings {
|
|
|
507
509
|
|
|
508
510
|
## PostProcessState
|
|
509
511
|
|
|
510
|
-
来源:`packages/sdk/src/index.ts:
|
|
512
|
+
来源:`packages/sdk/src/index.ts:250`
|
|
511
513
|
|
|
512
514
|
```ts
|
|
513
515
|
export interface PostProcessState {
|
|
@@ -519,7 +521,7 @@ export interface PostProcessState {
|
|
|
519
521
|
|
|
520
522
|
## PostProcessService
|
|
521
523
|
|
|
522
|
-
来源:`packages/sdk/src/index.ts:
|
|
524
|
+
来源:`packages/sdk/src/index.ts:255`
|
|
523
525
|
|
|
524
526
|
```ts
|
|
525
527
|
export interface PostProcessService {
|
|
@@ -536,7 +538,7 @@ export interface PostProcessService {
|
|
|
536
538
|
|
|
537
539
|
## ComputeBufferHandle
|
|
538
540
|
|
|
539
|
-
来源:`packages/sdk/src/index.ts:
|
|
541
|
+
来源:`packages/sdk/src/index.ts:265`
|
|
540
542
|
|
|
541
543
|
```ts
|
|
542
544
|
export interface ComputeBufferHandle {
|
|
@@ -548,7 +550,7 @@ export interface ComputeBufferHandle {
|
|
|
548
550
|
|
|
549
551
|
## ComputeTaskHandle
|
|
550
552
|
|
|
551
|
-
来源:`packages/sdk/src/index.ts:
|
|
553
|
+
来源:`packages/sdk/src/index.ts:270`
|
|
552
554
|
|
|
553
555
|
```ts
|
|
554
556
|
export interface ComputeTaskHandle {
|
|
@@ -559,7 +561,7 @@ export interface ComputeTaskHandle {
|
|
|
559
561
|
|
|
560
562
|
## ComputeBufferInput
|
|
561
563
|
|
|
562
|
-
来源:`packages/sdk/src/index.ts:
|
|
564
|
+
来源:`packages/sdk/src/index.ts:274`
|
|
563
565
|
|
|
564
566
|
```ts
|
|
565
567
|
export interface ComputeBufferInput {
|
|
@@ -572,7 +574,7 @@ export interface ComputeBufferInput {
|
|
|
572
574
|
|
|
573
575
|
## ComputeTextureHandle
|
|
574
576
|
|
|
575
|
-
来源:`packages/sdk/src/index.ts:
|
|
577
|
+
来源:`packages/sdk/src/index.ts:280`
|
|
576
578
|
|
|
577
579
|
```ts
|
|
578
580
|
export interface ComputeTextureHandle {
|
|
@@ -585,7 +587,7 @@ export interface ComputeTextureHandle {
|
|
|
585
587
|
|
|
586
588
|
## ComputeTextureSize
|
|
587
589
|
|
|
588
|
-
来源:`packages/sdk/src/index.ts:
|
|
590
|
+
来源:`packages/sdk/src/index.ts:286`
|
|
589
591
|
|
|
590
592
|
```ts
|
|
591
593
|
export interface ComputeTextureSize {
|
|
@@ -596,7 +598,7 @@ export interface ComputeTextureSize {
|
|
|
596
598
|
|
|
597
599
|
## ComputeTextureDataInput
|
|
598
600
|
|
|
599
|
-
来源:`packages/sdk/src/index.ts:
|
|
601
|
+
来源:`packages/sdk/src/index.ts:290`
|
|
600
602
|
|
|
601
603
|
```ts
|
|
602
604
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -609,7 +611,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
609
611
|
|
|
610
612
|
## ComputeTextureAssetInput
|
|
611
613
|
|
|
612
|
-
来源:`packages/sdk/src/index.ts:
|
|
614
|
+
来源:`packages/sdk/src/index.ts:296`
|
|
613
615
|
|
|
614
616
|
```ts
|
|
615
617
|
export interface ComputeTextureAssetInput {
|
|
@@ -623,7 +625,7 @@ export interface ComputeTextureAssetInput {
|
|
|
623
625
|
|
|
624
626
|
## ComputeTextureInput
|
|
625
627
|
|
|
626
|
-
来源:`packages/sdk/src/index.ts:
|
|
628
|
+
来源:`packages/sdk/src/index.ts:303`
|
|
627
629
|
|
|
628
630
|
```ts
|
|
629
631
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -631,7 +633,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
631
633
|
|
|
632
634
|
## ComputeTextureBinding
|
|
633
635
|
|
|
634
|
-
来源:`packages/sdk/src/index.ts:
|
|
636
|
+
来源:`packages/sdk/src/index.ts:304`
|
|
635
637
|
|
|
636
638
|
```ts
|
|
637
639
|
export interface ComputeTextureBinding {
|
|
@@ -644,7 +646,7 @@ export interface ComputeTextureBinding {
|
|
|
644
646
|
|
|
645
647
|
## ComputeDispatchInput
|
|
646
648
|
|
|
647
|
-
来源:`packages/sdk/src/index.ts:
|
|
649
|
+
来源:`packages/sdk/src/index.ts:310`
|
|
648
650
|
|
|
649
651
|
```ts
|
|
650
652
|
export interface ComputeDispatchInput {
|
|
@@ -663,7 +665,7 @@ export interface ComputeDispatchInput {
|
|
|
663
665
|
|
|
664
666
|
## ComputeTaskState
|
|
665
667
|
|
|
666
|
-
来源:`packages/sdk/src/index.ts:
|
|
668
|
+
来源:`packages/sdk/src/index.ts:322`
|
|
667
669
|
|
|
668
670
|
```ts
|
|
669
671
|
export interface ComputeTaskState {
|
|
@@ -674,7 +676,7 @@ export interface ComputeTaskState {
|
|
|
674
676
|
|
|
675
677
|
## ComputeService
|
|
676
678
|
|
|
677
|
-
来源:`packages/sdk/src/index.ts:
|
|
679
|
+
来源:`packages/sdk/src/index.ts:326`
|
|
678
680
|
|
|
679
681
|
```ts
|
|
680
682
|
export interface ComputeService {
|
|
@@ -701,7 +703,7 @@ export interface ComputeService {
|
|
|
701
703
|
|
|
702
704
|
## InputService
|
|
703
705
|
|
|
704
|
-
来源:`packages/sdk/src/index.ts:
|
|
706
|
+
来源:`packages/sdk/src/index.ts:346`
|
|
705
707
|
|
|
706
708
|
```ts
|
|
707
709
|
export interface InputService {
|
|
@@ -714,7 +716,7 @@ export interface InputService {
|
|
|
714
716
|
|
|
715
717
|
## PhysicsService
|
|
716
718
|
|
|
717
|
-
来源:`packages/sdk/src/index.ts:
|
|
719
|
+
来源:`packages/sdk/src/index.ts:352`
|
|
718
720
|
|
|
719
721
|
```ts
|
|
720
722
|
export interface PhysicsService {
|
|
@@ -741,7 +743,7 @@ export interface PhysicsService {
|
|
|
741
743
|
|
|
742
744
|
## AnimationService
|
|
743
745
|
|
|
744
|
-
来源:`packages/sdk/src/index.ts:
|
|
746
|
+
来源:`packages/sdk/src/index.ts:372`
|
|
745
747
|
|
|
746
748
|
```ts
|
|
747
749
|
export interface AnimationService {
|
|
@@ -760,7 +762,7 @@ export interface AnimationService {
|
|
|
760
762
|
|
|
761
763
|
## CameraService
|
|
762
764
|
|
|
763
|
-
来源:`packages/sdk/src/index.ts:
|
|
765
|
+
来源:`packages/sdk/src/index.ts:384`
|
|
764
766
|
|
|
765
767
|
```ts
|
|
766
768
|
export interface CameraService {
|
|
@@ -780,7 +782,7 @@ export interface CameraService {
|
|
|
780
782
|
|
|
781
783
|
## UIService
|
|
782
784
|
|
|
783
|
-
来源:`packages/sdk/src/index.ts:
|
|
785
|
+
来源:`packages/sdk/src/index.ts:397`
|
|
784
786
|
|
|
785
787
|
```ts
|
|
786
788
|
export interface UIService {
|
|
@@ -792,7 +794,7 @@ export interface UIService {
|
|
|
792
794
|
|
|
793
795
|
## AudioService
|
|
794
796
|
|
|
795
|
-
来源:`packages/sdk/src/index.ts:
|
|
797
|
+
来源:`packages/sdk/src/index.ts:402`
|
|
796
798
|
|
|
797
799
|
```ts
|
|
798
800
|
export interface AudioService {
|
|
@@ -814,7 +816,7 @@ export interface AudioService {
|
|
|
814
816
|
|
|
815
817
|
## StorageService
|
|
816
818
|
|
|
817
|
-
来源:`packages/sdk/src/index.ts:
|
|
819
|
+
来源:`packages/sdk/src/index.ts:417`
|
|
818
820
|
|
|
819
821
|
```ts
|
|
820
822
|
export interface StorageService {
|
|
@@ -830,7 +832,7 @@ export interface StorageService {
|
|
|
830
832
|
|
|
831
833
|
## SceneService
|
|
832
834
|
|
|
833
|
-
来源:`packages/sdk/src/index.ts:
|
|
835
|
+
来源:`packages/sdk/src/index.ts:426`
|
|
834
836
|
|
|
835
837
|
```ts
|
|
836
838
|
export interface SceneService {
|
|
@@ -841,7 +843,7 @@ export interface SceneService {
|
|
|
841
843
|
|
|
842
844
|
## ModelDefinition
|
|
843
845
|
|
|
844
|
-
来源:`packages/sdk/src/index.ts:
|
|
846
|
+
来源:`packages/sdk/src/index.ts:430`
|
|
845
847
|
|
|
846
848
|
```ts
|
|
847
849
|
export interface ModelDefinition {
|
|
@@ -861,7 +863,7 @@ export interface ModelDefinition {
|
|
|
861
863
|
|
|
862
864
|
## RigidBodyDefinition
|
|
863
865
|
|
|
864
|
-
来源:`packages/sdk/src/index.ts:
|
|
866
|
+
来源:`packages/sdk/src/index.ts:443`
|
|
865
867
|
|
|
866
868
|
```ts
|
|
867
869
|
export interface RigidBodyDefinition {
|
|
@@ -882,7 +884,7 @@ export interface RigidBodyDefinition {
|
|
|
882
884
|
|
|
883
885
|
## CharacterDefinition
|
|
884
886
|
|
|
885
|
-
来源:`packages/sdk/src/index.ts:
|
|
887
|
+
来源:`packages/sdk/src/index.ts:457`
|
|
886
888
|
|
|
887
889
|
```ts
|
|
888
890
|
export interface CharacterDefinition {
|
|
@@ -897,7 +899,7 @@ export interface CharacterDefinition {
|
|
|
897
899
|
|
|
898
900
|
## UIElementDefinition
|
|
899
901
|
|
|
900
|
-
来源:`packages/sdk/src/index.ts:
|
|
902
|
+
来源:`packages/sdk/src/index.ts:465`
|
|
901
903
|
|
|
902
904
|
```ts
|
|
903
905
|
export interface UIElementDefinition {
|
|
@@ -917,7 +919,7 @@ export interface UIElementDefinition {
|
|
|
917
919
|
|
|
918
920
|
## SoundDefinition
|
|
919
921
|
|
|
920
|
-
来源:`packages/sdk/src/index.ts:
|
|
922
|
+
来源:`packages/sdk/src/index.ts:478`
|
|
921
923
|
|
|
922
924
|
```ts
|
|
923
925
|
export interface SoundDefinition {
|
|
@@ -931,7 +933,7 @@ export interface SoundDefinition {
|
|
|
931
933
|
|
|
932
934
|
## AudioBusDefinition
|
|
933
935
|
|
|
934
|
-
来源:`packages/sdk/src/index.ts:
|
|
936
|
+
来源:`packages/sdk/src/index.ts:485`
|
|
935
937
|
|
|
936
938
|
```ts
|
|
937
939
|
export interface AudioBusDefinition {
|
|
@@ -942,7 +944,7 @@ export interface AudioBusDefinition {
|
|
|
942
944
|
|
|
943
945
|
## SYSTEM_PHASES
|
|
944
946
|
|
|
945
|
-
来源:`packages/sdk/src/index.ts:
|
|
947
|
+
来源:`packages/sdk/src/index.ts:489`
|
|
946
948
|
|
|
947
949
|
```ts
|
|
948
950
|
SYSTEM_PHASES = [
|
|
@@ -957,7 +959,7 @@ SYSTEM_PHASES = [
|
|
|
957
959
|
|
|
958
960
|
## SystemPhase
|
|
959
961
|
|
|
960
|
-
来源:`packages/sdk/src/index.ts:
|
|
962
|
+
来源:`packages/sdk/src/index.ts:497`
|
|
961
963
|
|
|
962
964
|
```ts
|
|
963
965
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -965,7 +967,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
965
967
|
|
|
966
968
|
## Geometry
|
|
967
969
|
|
|
968
|
-
来源:`packages/sdk/src/index.ts:
|
|
970
|
+
来源:`packages/sdk/src/index.ts:498`
|
|
969
971
|
|
|
970
972
|
```ts
|
|
971
973
|
export type Geometry =
|
|
@@ -976,7 +978,7 @@ export type Geometry =
|
|
|
976
978
|
|
|
977
979
|
## GRAPH_TYPES
|
|
978
980
|
|
|
979
|
-
来源:`packages/sdk/src/index.ts:
|
|
981
|
+
来源:`packages/sdk/src/index.ts:502`
|
|
980
982
|
|
|
981
983
|
```ts
|
|
982
984
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -984,7 +986,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
984
986
|
|
|
985
987
|
## GraphType
|
|
986
988
|
|
|
987
|
-
来源:`packages/sdk/src/index.ts:
|
|
989
|
+
来源:`packages/sdk/src/index.ts:503`
|
|
988
990
|
|
|
989
991
|
```ts
|
|
990
992
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -992,7 +994,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
992
994
|
|
|
993
995
|
## GraphValue
|
|
994
996
|
|
|
995
|
-
来源:`packages/sdk/src/index.ts:
|
|
997
|
+
来源:`packages/sdk/src/index.ts:504`
|
|
996
998
|
|
|
997
999
|
```ts
|
|
998
1000
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1000,7 +1002,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1000
1002
|
|
|
1001
1003
|
## GraphParameter
|
|
1002
1004
|
|
|
1003
|
-
来源:`packages/sdk/src/index.ts:
|
|
1005
|
+
来源:`packages/sdk/src/index.ts:505`
|
|
1004
1006
|
|
|
1005
1007
|
```ts
|
|
1006
1008
|
export interface GraphParameter {
|
|
@@ -1012,7 +1014,7 @@ export interface GraphParameter {
|
|
|
1012
1014
|
|
|
1013
1015
|
## GRAPH_INPUT_TYPES
|
|
1014
1016
|
|
|
1015
|
-
来源:`packages/sdk/src/index.ts:
|
|
1017
|
+
来源:`packages/sdk/src/index.ts:510`
|
|
1016
1018
|
|
|
1017
1019
|
```ts
|
|
1018
1020
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1026,7 +1028,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1026
1028
|
|
|
1027
1029
|
## GraphInputName
|
|
1028
1030
|
|
|
1029
|
-
来源:`packages/sdk/src/index.ts:
|
|
1031
|
+
来源:`packages/sdk/src/index.ts:517`
|
|
1030
1032
|
|
|
1031
1033
|
```ts
|
|
1032
1034
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1034,7 +1036,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1034
1036
|
|
|
1035
1037
|
## GRAPH_OPERATIONS
|
|
1036
1038
|
|
|
1037
|
-
来源:`packages/sdk/src/index.ts:
|
|
1039
|
+
来源:`packages/sdk/src/index.ts:518`
|
|
1038
1040
|
|
|
1039
1041
|
```ts
|
|
1040
1042
|
GRAPH_OPERATIONS = {
|
|
@@ -1046,7 +1048,7 @@ GRAPH_OPERATIONS = {
|
|
|
1046
1048
|
|
|
1047
1049
|
## GraphNode
|
|
1048
1050
|
|
|
1049
|
-
来源:`packages/sdk/src/index.ts:
|
|
1051
|
+
来源:`packages/sdk/src/index.ts:523`
|
|
1050
1052
|
|
|
1051
1053
|
```ts
|
|
1052
1054
|
export type GraphNode =
|
|
@@ -1073,7 +1075,7 @@ export type GraphNode =
|
|
|
1073
1075
|
|
|
1074
1076
|
## Graph
|
|
1075
1077
|
|
|
1076
|
-
来源:`packages/sdk/src/index.ts:
|
|
1078
|
+
来源:`packages/sdk/src/index.ts:543`
|
|
1077
1079
|
|
|
1078
1080
|
```ts
|
|
1079
1081
|
export interface Graph {
|
|
@@ -1085,7 +1087,7 @@ export interface Graph {
|
|
|
1085
1087
|
|
|
1086
1088
|
## MaterialGraphs
|
|
1087
1089
|
|
|
1088
|
-
来源:`packages/sdk/src/index.ts:
|
|
1090
|
+
来源:`packages/sdk/src/index.ts:548`
|
|
1089
1091
|
|
|
1090
1092
|
```ts
|
|
1091
1093
|
export interface MaterialGraphs {
|
|
@@ -1101,7 +1103,7 @@ export interface MaterialGraphs {
|
|
|
1101
1103
|
|
|
1102
1104
|
## VertexGraphs
|
|
1103
1105
|
|
|
1104
|
-
来源:`packages/sdk/src/index.ts:
|
|
1106
|
+
来源:`packages/sdk/src/index.ts:557`
|
|
1105
1107
|
|
|
1106
1108
|
```ts
|
|
1107
1109
|
export interface VertexGraphs {
|
|
@@ -1114,7 +1116,7 @@ export interface VertexGraphs {
|
|
|
1114
1116
|
|
|
1115
1117
|
## MaterialInput
|
|
1116
1118
|
|
|
1117
|
-
来源:`packages/sdk/src/index.ts:
|
|
1119
|
+
来源:`packages/sdk/src/index.ts:563`
|
|
1118
1120
|
|
|
1119
1121
|
```ts
|
|
1120
1122
|
export interface MaterialInput {
|
|
@@ -1148,7 +1150,7 @@ export interface MaterialInput {
|
|
|
1148
1150
|
|
|
1149
1151
|
## MaterialDefinition
|
|
1150
1152
|
|
|
1151
|
-
来源:`packages/sdk/src/index.ts:
|
|
1153
|
+
来源:`packages/sdk/src/index.ts:590`
|
|
1152
1154
|
|
|
1153
1155
|
```ts
|
|
1154
1156
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1158,7 +1160,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1158
1160
|
|
|
1159
1161
|
## PostProcessInput
|
|
1160
1162
|
|
|
1161
|
-
来源:`packages/sdk/src/index.ts:
|
|
1163
|
+
来源:`packages/sdk/src/index.ts:593`
|
|
1162
1164
|
|
|
1163
1165
|
```ts
|
|
1164
1166
|
export interface PostProcessInput {
|
|
@@ -1173,7 +1175,7 @@ export interface PostProcessInput {
|
|
|
1173
1175
|
|
|
1174
1176
|
## PostProcessDefinition
|
|
1175
1177
|
|
|
1176
|
-
来源:`packages/sdk/src/index.ts:
|
|
1178
|
+
来源:`packages/sdk/src/index.ts:601`
|
|
1177
1179
|
|
|
1178
1180
|
```ts
|
|
1179
1181
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1183,7 +1185,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1183
1185
|
|
|
1184
1186
|
## ComputeInput
|
|
1185
1187
|
|
|
1186
|
-
来源:`packages/sdk/src/index.ts:
|
|
1188
|
+
来源:`packages/sdk/src/index.ts:604`
|
|
1187
1189
|
|
|
1188
1190
|
```ts
|
|
1189
1191
|
export interface ComputeInput {
|
|
@@ -1199,7 +1201,7 @@ export interface ComputeInput {
|
|
|
1199
1201
|
|
|
1200
1202
|
## ComputeDefinition
|
|
1201
1203
|
|
|
1202
|
-
来源:`packages/sdk/src/index.ts:
|
|
1204
|
+
来源:`packages/sdk/src/index.ts:613`
|
|
1203
1205
|
|
|
1204
1206
|
```ts
|
|
1205
1207
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1209,7 +1211,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1209
1211
|
|
|
1210
1212
|
## AssetInput
|
|
1211
1213
|
|
|
1212
|
-
来源:`packages/sdk/src/index.ts:
|
|
1214
|
+
来源:`packages/sdk/src/index.ts:616`
|
|
1213
1215
|
|
|
1214
1216
|
```ts
|
|
1215
1217
|
export interface AssetInput {
|
|
@@ -1226,7 +1228,7 @@ export interface AssetInput {
|
|
|
1226
1228
|
|
|
1227
1229
|
## AssetDefinition
|
|
1228
1230
|
|
|
1229
|
-
来源:`packages/sdk/src/index.ts:
|
|
1231
|
+
来源:`packages/sdk/src/index.ts:626`
|
|
1230
1232
|
|
|
1231
1233
|
```ts
|
|
1232
1234
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1236,7 +1238,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1236
1238
|
|
|
1237
1239
|
## MeshDefinition
|
|
1238
1240
|
|
|
1239
|
-
来源:`packages/sdk/src/index.ts:
|
|
1241
|
+
来源:`packages/sdk/src/index.ts:629`
|
|
1240
1242
|
|
|
1241
1243
|
```ts
|
|
1242
1244
|
export interface MeshDefinition {
|
|
@@ -1249,7 +1251,7 @@ export interface MeshDefinition {
|
|
|
1249
1251
|
|
|
1250
1252
|
## LightDefinition
|
|
1251
1253
|
|
|
1252
|
-
来源:`packages/sdk/src/index.ts:
|
|
1254
|
+
来源:`packages/sdk/src/index.ts:635`
|
|
1253
1255
|
|
|
1254
1256
|
```ts
|
|
1255
1257
|
export interface LightDefinition {
|
|
@@ -1271,7 +1273,7 @@ export interface LightDefinition {
|
|
|
1271
1273
|
|
|
1272
1274
|
## EntityInput
|
|
1273
1275
|
|
|
1274
|
-
来源:`packages/sdk/src/index.ts:
|
|
1276
|
+
来源:`packages/sdk/src/index.ts:650`
|
|
1275
1277
|
|
|
1276
1278
|
```ts
|
|
1277
1279
|
export interface EntityInput {
|
|
@@ -1290,7 +1292,7 @@ export interface EntityInput {
|
|
|
1290
1292
|
|
|
1291
1293
|
## PrefabInput
|
|
1292
1294
|
|
|
1293
|
-
来源:`packages/sdk/src/index.ts:
|
|
1295
|
+
来源:`packages/sdk/src/index.ts:662`
|
|
1294
1296
|
|
|
1295
1297
|
```ts
|
|
1296
1298
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1300,7 +1302,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1300
1302
|
|
|
1301
1303
|
## PrefabDefinition
|
|
1302
1304
|
|
|
1303
|
-
来源:`packages/sdk/src/index.ts:
|
|
1305
|
+
来源:`packages/sdk/src/index.ts:665`
|
|
1304
1306
|
|
|
1305
1307
|
```ts
|
|
1306
1308
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1310,7 +1312,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1310
1312
|
|
|
1311
1313
|
## SceneInput
|
|
1312
1314
|
|
|
1313
|
-
来源:`packages/sdk/src/index.ts:
|
|
1315
|
+
来源:`packages/sdk/src/index.ts:668`
|
|
1314
1316
|
|
|
1315
1317
|
```ts
|
|
1316
1318
|
export interface SceneInput {
|
|
@@ -1342,7 +1344,7 @@ export interface SceneInput {
|
|
|
1342
1344
|
|
|
1343
1345
|
## SceneDefinition
|
|
1344
1346
|
|
|
1345
|
-
来源:`packages/sdk/src/index.ts:
|
|
1347
|
+
来源:`packages/sdk/src/index.ts:693`
|
|
1346
1348
|
|
|
1347
1349
|
```ts
|
|
1348
1350
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1352,7 +1354,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1352
1354
|
|
|
1353
1355
|
## SystemInput
|
|
1354
1356
|
|
|
1355
|
-
来源:`packages/sdk/src/index.ts:
|
|
1357
|
+
来源:`packages/sdk/src/index.ts:696`
|
|
1356
1358
|
|
|
1357
1359
|
```ts
|
|
1358
1360
|
export interface SystemInput {
|
|
@@ -1369,7 +1371,7 @@ export interface SystemInput {
|
|
|
1369
1371
|
|
|
1370
1372
|
## SystemDefinition
|
|
1371
1373
|
|
|
1372
|
-
来源:`packages/sdk/src/index.ts:
|
|
1374
|
+
来源:`packages/sdk/src/index.ts:706`
|
|
1373
1375
|
|
|
1374
1376
|
```ts
|
|
1375
1377
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1379,7 +1381,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1379
1381
|
|
|
1380
1382
|
## GameInput
|
|
1381
1383
|
|
|
1382
|
-
来源:`packages/sdk/src/index.ts:
|
|
1384
|
+
来源:`packages/sdk/src/index.ts:709`
|
|
1383
1385
|
|
|
1384
1386
|
```ts
|
|
1385
1387
|
export interface GameInput {
|
|
@@ -1405,7 +1407,7 @@ export interface GameInput {
|
|
|
1405
1407
|
|
|
1406
1408
|
## GameDefinition
|
|
1407
1409
|
|
|
1408
|
-
来源:`packages/sdk/src/index.ts:
|
|
1410
|
+
来源:`packages/sdk/src/index.ts:728`
|
|
1409
1411
|
|
|
1410
1412
|
```ts
|
|
1411
1413
|
export interface GameDefinition extends GameInput {
|
|
@@ -1415,7 +1417,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1415
1417
|
|
|
1416
1418
|
## GameInstance
|
|
1417
1419
|
|
|
1418
|
-
来源:`packages/sdk/src/index.ts:
|
|
1420
|
+
来源:`packages/sdk/src/index.ts:731`
|
|
1419
1421
|
|
|
1420
1422
|
```ts
|
|
1421
1423
|
export interface GameInstance {
|
|
@@ -1426,7 +1428,7 @@ export interface GameInstance {
|
|
|
1426
1428
|
|
|
1427
1429
|
## defineComponent
|
|
1428
1430
|
|
|
1429
|
-
来源:`packages/sdk/src/index.ts:
|
|
1431
|
+
来源:`packages/sdk/src/index.ts:735`
|
|
1430
1432
|
|
|
1431
1433
|
```ts
|
|
1432
1434
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1437,7 +1439,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1437
1439
|
|
|
1438
1440
|
## defineMaterial
|
|
1439
1441
|
|
|
1440
|
-
来源:`packages/sdk/src/index.ts:
|
|
1442
|
+
来源:`packages/sdk/src/index.ts:741`
|
|
1441
1443
|
|
|
1442
1444
|
```ts
|
|
1443
1445
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1445,7 +1447,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1445
1447
|
|
|
1446
1448
|
## definePostProcess
|
|
1447
1449
|
|
|
1448
|
-
来源:`packages/sdk/src/index.ts:
|
|
1450
|
+
来源:`packages/sdk/src/index.ts:744`
|
|
1449
1451
|
|
|
1450
1452
|
```ts
|
|
1451
1453
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1453,7 +1455,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1453
1455
|
|
|
1454
1456
|
## defineCompute
|
|
1455
1457
|
|
|
1456
|
-
来源:`packages/sdk/src/index.ts:
|
|
1458
|
+
来源:`packages/sdk/src/index.ts:747`
|
|
1457
1459
|
|
|
1458
1460
|
```ts
|
|
1459
1461
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1461,7 +1463,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1461
1463
|
|
|
1462
1464
|
## defineAsset
|
|
1463
1465
|
|
|
1464
|
-
来源:`packages/sdk/src/index.ts:
|
|
1466
|
+
来源:`packages/sdk/src/index.ts:750`
|
|
1465
1467
|
|
|
1466
1468
|
```ts
|
|
1467
1469
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1469,7 +1471,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1469
1471
|
|
|
1470
1472
|
## definePrefab
|
|
1471
1473
|
|
|
1472
|
-
来源:`packages/sdk/src/index.ts:
|
|
1474
|
+
来源:`packages/sdk/src/index.ts:753`
|
|
1473
1475
|
|
|
1474
1476
|
```ts
|
|
1475
1477
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1477,7 +1479,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1477
1479
|
|
|
1478
1480
|
## defineScene
|
|
1479
1481
|
|
|
1480
|
-
来源:`packages/sdk/src/index.ts:
|
|
1482
|
+
来源:`packages/sdk/src/index.ts:756`
|
|
1481
1483
|
|
|
1482
1484
|
```ts
|
|
1483
1485
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1485,7 +1487,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1485
1487
|
|
|
1486
1488
|
## defineSystem
|
|
1487
1489
|
|
|
1488
|
-
来源:`packages/sdk/src/index.ts:
|
|
1490
|
+
来源:`packages/sdk/src/index.ts:759`
|
|
1489
1491
|
|
|
1490
1492
|
```ts
|
|
1491
1493
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1493,7 +1495,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1493
1495
|
|
|
1494
1496
|
## defineGame
|
|
1495
1497
|
|
|
1496
|
-
来源:`packages/sdk/src/index.ts:
|
|
1498
|
+
来源:`packages/sdk/src/index.ts:762`
|
|
1497
1499
|
|
|
1498
1500
|
```ts
|
|
1499
1501
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1501,7 +1503,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1501
1503
|
|
|
1502
1504
|
## instantiateGame
|
|
1503
1505
|
|
|
1504
|
-
来源:`packages/sdk/src/index.ts:
|
|
1506
|
+
来源:`packages/sdk/src/index.ts:766`
|
|
1505
1507
|
|
|
1506
1508
|
```ts
|
|
1507
1509
|
export function instantiateGame(
|