pelican-engine 0.3.10 → 0.3.12
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 +37 -13
- package/distribution.json +15 -15
- package/docs/STATUS.md +3 -2
- package/docs/api/REFERENCE.md +110 -92
- package/docs/api/index.json +110 -94
- package/docs/npm/GAME-AUTHOR.md +37 -13
- package/engine.manifest.json +1 -1
- package/lib/physics/index.js +3 -0
- package/lib/runtime/host.js +13 -1
- package/lib/runtime/scheduler.js +11 -1
- package/lib/sdk/index.d.ts +19 -9
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +37 -2
- package/lib/simulation/rope.js +34 -5
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.12 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.12"
|
|
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;
|
|
@@ -289,16 +291,30 @@ export interface RopeDefinition {
|
|
|
289
291
|
}
|
|
290
292
|
```
|
|
291
293
|
|
|
294
|
+
## RopeContact
|
|
295
|
+
|
|
296
|
+
来源:`packages/sdk/src/index.ts:143`
|
|
297
|
+
|
|
298
|
+
```ts
|
|
299
|
+
export interface RopeContact {
|
|
300
|
+
tick: number; particle: number; colliderId: string; penetration: number;
|
|
301
|
+
/** Opposite of particle projection impulses, N·s; absent in older snapshots. */
|
|
302
|
+
reactionImpulse?: Vec3;
|
|
303
|
+
/** Angular impulse about the world origin; absent in older snapshots. */
|
|
304
|
+
reactionAngularImpulse?: Vec3;
|
|
305
|
+
}
|
|
306
|
+
```
|
|
307
|
+
|
|
292
308
|
## RopeState
|
|
293
309
|
|
|
294
|
-
来源:`packages/sdk/src/index.ts:
|
|
310
|
+
来源:`packages/sdk/src/index.ts:150`
|
|
295
311
|
|
|
296
312
|
```ts
|
|
297
313
|
export interface RopeState {
|
|
298
314
|
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
299
315
|
positions: Vec3[]; velocities: Vec3[];
|
|
300
316
|
anchors: { index: number; position: Vec3 }[];
|
|
301
|
-
contacts:
|
|
317
|
+
contacts: RopeContact[];
|
|
302
318
|
maxDistanceError: number;
|
|
303
319
|
resources: { particles: number; constraints: number; anchors: number; colliders: number };
|
|
304
320
|
}
|
|
@@ -306,12 +322,12 @@ export interface RopeState {
|
|
|
306
322
|
|
|
307
323
|
## RopeService
|
|
308
324
|
|
|
309
|
-
来源:`packages/sdk/src/index.ts:
|
|
325
|
+
来源:`packages/sdk/src/index.ts:158`
|
|
310
326
|
|
|
311
327
|
```ts
|
|
312
328
|
export interface RopeService {
|
|
313
329
|
create(definition: RopeDefinition): void;
|
|
314
|
-
/** Explicit
|
|
330
|
+
/** Explicit ticks for manual ropes only. Auto-stepped ropes reject this call. A failed batch leaves the rope unchanged. */
|
|
315
331
|
step(id: string, ticks?: number): RopeState;
|
|
316
332
|
inspect(id: string): RopeState;
|
|
317
333
|
setColliders(id: string, colliders: readonly RopeCollider[]): void;
|
|
@@ -325,7 +341,7 @@ export interface RopeService {
|
|
|
325
341
|
|
|
326
342
|
## NavigationCell
|
|
327
343
|
|
|
328
|
-
来源:`packages/sdk/src/index.ts:
|
|
344
|
+
来源:`packages/sdk/src/index.ts:173`
|
|
329
345
|
|
|
330
346
|
```ts
|
|
331
347
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -333,7 +349,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
333
349
|
|
|
334
350
|
## NavigationObstacleUpdate
|
|
335
351
|
|
|
336
|
-
来源:`packages/sdk/src/index.ts:
|
|
352
|
+
来源:`packages/sdk/src/index.ts:175`
|
|
337
353
|
|
|
338
354
|
```ts
|
|
339
355
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -341,7 +357,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
341
357
|
|
|
342
358
|
## NavigationGrid
|
|
343
359
|
|
|
344
|
-
来源:`packages/sdk/src/index.ts:
|
|
360
|
+
来源:`packages/sdk/src/index.ts:176`
|
|
345
361
|
|
|
346
362
|
```ts
|
|
347
363
|
export interface NavigationGrid {
|
|
@@ -357,7 +373,7 @@ export interface NavigationGrid {
|
|
|
357
373
|
|
|
358
374
|
## NavigationService
|
|
359
375
|
|
|
360
|
-
来源:`packages/sdk/src/index.ts:
|
|
376
|
+
来源:`packages/sdk/src/index.ts:185`
|
|
361
377
|
|
|
362
378
|
```ts
|
|
363
379
|
export interface NavigationService {
|
|
@@ -376,7 +392,7 @@ export interface NavigationService {
|
|
|
376
392
|
|
|
377
393
|
## RenderMode
|
|
378
394
|
|
|
379
|
-
来源:`packages/sdk/src/index.ts:
|
|
395
|
+
来源:`packages/sdk/src/index.ts:197`
|
|
380
396
|
|
|
381
397
|
```ts
|
|
382
398
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -384,7 +400,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
384
400
|
|
|
385
401
|
## RenderCapabilities
|
|
386
402
|
|
|
387
|
-
来源:`packages/sdk/src/index.ts:
|
|
403
|
+
来源:`packages/sdk/src/index.ts:198`
|
|
388
404
|
|
|
389
405
|
```ts
|
|
390
406
|
export interface RenderCapabilities {
|
|
@@ -396,7 +412,7 @@ export interface RenderCapabilities {
|
|
|
396
412
|
|
|
397
413
|
## RenderSettings
|
|
398
414
|
|
|
399
|
-
来源:`packages/sdk/src/index.ts:
|
|
415
|
+
来源:`packages/sdk/src/index.ts:203`
|
|
400
416
|
|
|
401
417
|
```ts
|
|
402
418
|
export interface RenderSettings {
|
|
@@ -414,7 +430,7 @@ export interface RenderSettings {
|
|
|
414
430
|
|
|
415
431
|
## RenderService
|
|
416
432
|
|
|
417
|
-
来源:`packages/sdk/src/index.ts:
|
|
433
|
+
来源:`packages/sdk/src/index.ts:214`
|
|
418
434
|
|
|
419
435
|
```ts
|
|
420
436
|
export interface RenderService {
|
|
@@ -431,7 +447,7 @@ export interface RenderService {
|
|
|
431
447
|
|
|
432
448
|
## MaterialBufferInput
|
|
433
449
|
|
|
434
|
-
来源:`packages/sdk/src/index.ts:
|
|
450
|
+
来源:`packages/sdk/src/index.ts:224`
|
|
435
451
|
|
|
436
452
|
```ts
|
|
437
453
|
export interface MaterialBufferInput {
|
|
@@ -447,7 +463,7 @@ export interface MaterialBufferInput {
|
|
|
447
463
|
|
|
448
464
|
## RenderBufferReference
|
|
449
465
|
|
|
450
|
-
来源:`packages/sdk/src/index.ts:
|
|
466
|
+
来源:`packages/sdk/src/index.ts:233`
|
|
451
467
|
|
|
452
468
|
```ts
|
|
453
469
|
export interface RenderBufferReference {
|
|
@@ -459,7 +475,7 @@ export interface RenderBufferReference {
|
|
|
459
475
|
|
|
460
476
|
## RenderBufferBindings
|
|
461
477
|
|
|
462
|
-
来源:`packages/sdk/src/index.ts:
|
|
478
|
+
来源:`packages/sdk/src/index.ts:238`
|
|
463
479
|
|
|
464
480
|
```ts
|
|
465
481
|
export interface RenderBufferBindings {
|
|
@@ -471,7 +487,7 @@ export interface RenderBufferBindings {
|
|
|
471
487
|
|
|
472
488
|
## MaterialTextureInput
|
|
473
489
|
|
|
474
|
-
来源:`packages/sdk/src/index.ts:
|
|
490
|
+
来源:`packages/sdk/src/index.ts:243`
|
|
475
491
|
|
|
476
492
|
```ts
|
|
477
493
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -484,7 +500,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
484
500
|
|
|
485
501
|
## RenderTextureReference
|
|
486
502
|
|
|
487
|
-
来源:`packages/sdk/src/index.ts:
|
|
503
|
+
来源:`packages/sdk/src/index.ts:249`
|
|
488
504
|
|
|
489
505
|
```ts
|
|
490
506
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -495,7 +511,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
495
511
|
|
|
496
512
|
## RenderTextureBindings
|
|
497
513
|
|
|
498
|
-
来源:`packages/sdk/src/index.ts:
|
|
514
|
+
来源:`packages/sdk/src/index.ts:253`
|
|
499
515
|
|
|
500
516
|
```ts
|
|
501
517
|
export interface RenderTextureBindings {
|
|
@@ -507,7 +523,7 @@ export interface RenderTextureBindings {
|
|
|
507
523
|
|
|
508
524
|
## PostProcessState
|
|
509
525
|
|
|
510
|
-
来源:`packages/sdk/src/index.ts:
|
|
526
|
+
来源:`packages/sdk/src/index.ts:258`
|
|
511
527
|
|
|
512
528
|
```ts
|
|
513
529
|
export interface PostProcessState {
|
|
@@ -519,7 +535,7 @@ export interface PostProcessState {
|
|
|
519
535
|
|
|
520
536
|
## PostProcessService
|
|
521
537
|
|
|
522
|
-
来源:`packages/sdk/src/index.ts:
|
|
538
|
+
来源:`packages/sdk/src/index.ts:263`
|
|
523
539
|
|
|
524
540
|
```ts
|
|
525
541
|
export interface PostProcessService {
|
|
@@ -536,7 +552,7 @@ export interface PostProcessService {
|
|
|
536
552
|
|
|
537
553
|
## ComputeBufferHandle
|
|
538
554
|
|
|
539
|
-
来源:`packages/sdk/src/index.ts:
|
|
555
|
+
来源:`packages/sdk/src/index.ts:273`
|
|
540
556
|
|
|
541
557
|
```ts
|
|
542
558
|
export interface ComputeBufferHandle {
|
|
@@ -548,7 +564,7 @@ export interface ComputeBufferHandle {
|
|
|
548
564
|
|
|
549
565
|
## ComputeTaskHandle
|
|
550
566
|
|
|
551
|
-
来源:`packages/sdk/src/index.ts:
|
|
567
|
+
来源:`packages/sdk/src/index.ts:278`
|
|
552
568
|
|
|
553
569
|
```ts
|
|
554
570
|
export interface ComputeTaskHandle {
|
|
@@ -559,7 +575,7 @@ export interface ComputeTaskHandle {
|
|
|
559
575
|
|
|
560
576
|
## ComputeBufferInput
|
|
561
577
|
|
|
562
|
-
来源:`packages/sdk/src/index.ts:
|
|
578
|
+
来源:`packages/sdk/src/index.ts:282`
|
|
563
579
|
|
|
564
580
|
```ts
|
|
565
581
|
export interface ComputeBufferInput {
|
|
@@ -572,7 +588,7 @@ export interface ComputeBufferInput {
|
|
|
572
588
|
|
|
573
589
|
## ComputeTextureHandle
|
|
574
590
|
|
|
575
|
-
来源:`packages/sdk/src/index.ts:
|
|
591
|
+
来源:`packages/sdk/src/index.ts:288`
|
|
576
592
|
|
|
577
593
|
```ts
|
|
578
594
|
export interface ComputeTextureHandle {
|
|
@@ -585,7 +601,7 @@ export interface ComputeTextureHandle {
|
|
|
585
601
|
|
|
586
602
|
## ComputeTextureSize
|
|
587
603
|
|
|
588
|
-
来源:`packages/sdk/src/index.ts:
|
|
604
|
+
来源:`packages/sdk/src/index.ts:294`
|
|
589
605
|
|
|
590
606
|
```ts
|
|
591
607
|
export interface ComputeTextureSize {
|
|
@@ -596,7 +612,7 @@ export interface ComputeTextureSize {
|
|
|
596
612
|
|
|
597
613
|
## ComputeTextureDataInput
|
|
598
614
|
|
|
599
|
-
来源:`packages/sdk/src/index.ts:
|
|
615
|
+
来源:`packages/sdk/src/index.ts:298`
|
|
600
616
|
|
|
601
617
|
```ts
|
|
602
618
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -609,7 +625,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
609
625
|
|
|
610
626
|
## ComputeTextureAssetInput
|
|
611
627
|
|
|
612
|
-
来源:`packages/sdk/src/index.ts:
|
|
628
|
+
来源:`packages/sdk/src/index.ts:304`
|
|
613
629
|
|
|
614
630
|
```ts
|
|
615
631
|
export interface ComputeTextureAssetInput {
|
|
@@ -623,7 +639,7 @@ export interface ComputeTextureAssetInput {
|
|
|
623
639
|
|
|
624
640
|
## ComputeTextureInput
|
|
625
641
|
|
|
626
|
-
来源:`packages/sdk/src/index.ts:
|
|
642
|
+
来源:`packages/sdk/src/index.ts:311`
|
|
627
643
|
|
|
628
644
|
```ts
|
|
629
645
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -631,7 +647,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
631
647
|
|
|
632
648
|
## ComputeTextureBinding
|
|
633
649
|
|
|
634
|
-
来源:`packages/sdk/src/index.ts:
|
|
650
|
+
来源:`packages/sdk/src/index.ts:312`
|
|
635
651
|
|
|
636
652
|
```ts
|
|
637
653
|
export interface ComputeTextureBinding {
|
|
@@ -644,7 +660,7 @@ export interface ComputeTextureBinding {
|
|
|
644
660
|
|
|
645
661
|
## ComputeDispatchInput
|
|
646
662
|
|
|
647
|
-
来源:`packages/sdk/src/index.ts:
|
|
663
|
+
来源:`packages/sdk/src/index.ts:318`
|
|
648
664
|
|
|
649
665
|
```ts
|
|
650
666
|
export interface ComputeDispatchInput {
|
|
@@ -663,7 +679,7 @@ export interface ComputeDispatchInput {
|
|
|
663
679
|
|
|
664
680
|
## ComputeTaskState
|
|
665
681
|
|
|
666
|
-
来源:`packages/sdk/src/index.ts:
|
|
682
|
+
来源:`packages/sdk/src/index.ts:330`
|
|
667
683
|
|
|
668
684
|
```ts
|
|
669
685
|
export interface ComputeTaskState {
|
|
@@ -674,7 +690,7 @@ export interface ComputeTaskState {
|
|
|
674
690
|
|
|
675
691
|
## ComputeService
|
|
676
692
|
|
|
677
|
-
来源:`packages/sdk/src/index.ts:
|
|
693
|
+
来源:`packages/sdk/src/index.ts:334`
|
|
678
694
|
|
|
679
695
|
```ts
|
|
680
696
|
export interface ComputeService {
|
|
@@ -701,7 +717,7 @@ export interface ComputeService {
|
|
|
701
717
|
|
|
702
718
|
## InputService
|
|
703
719
|
|
|
704
|
-
来源:`packages/sdk/src/index.ts:
|
|
720
|
+
来源:`packages/sdk/src/index.ts:354`
|
|
705
721
|
|
|
706
722
|
```ts
|
|
707
723
|
export interface InputService {
|
|
@@ -714,13 +730,15 @@ export interface InputService {
|
|
|
714
730
|
|
|
715
731
|
## PhysicsService
|
|
716
732
|
|
|
717
|
-
来源:`packages/sdk/src/index.ts:
|
|
733
|
+
来源:`packages/sdk/src/index.ts:360`
|
|
718
734
|
|
|
719
735
|
```ts
|
|
720
736
|
export interface PhysicsService {
|
|
721
737
|
moveCharacter(entity: string, displacement: Vec3): void;
|
|
722
738
|
grounded(entity: string): boolean;
|
|
723
739
|
velocity(entity: string): Vec3;
|
|
740
|
+
/** World-space rigid-body center of mass, including collider offsets. */
|
|
741
|
+
centerOfMass(entity: string): Vec3;
|
|
724
742
|
setVelocity(entity: string, velocity: Vec3): void;
|
|
725
743
|
impulse(entity: string, impulse: Vec3): void;
|
|
726
744
|
/** Angular velocity in world-space radians per second. */
|
|
@@ -741,7 +759,7 @@ export interface PhysicsService {
|
|
|
741
759
|
|
|
742
760
|
## AnimationService
|
|
743
761
|
|
|
744
|
-
来源:`packages/sdk/src/index.ts:
|
|
762
|
+
来源:`packages/sdk/src/index.ts:382`
|
|
745
763
|
|
|
746
764
|
```ts
|
|
747
765
|
export interface AnimationService {
|
|
@@ -760,7 +778,7 @@ export interface AnimationService {
|
|
|
760
778
|
|
|
761
779
|
## CameraService
|
|
762
780
|
|
|
763
|
-
来源:`packages/sdk/src/index.ts:
|
|
781
|
+
来源:`packages/sdk/src/index.ts:394`
|
|
764
782
|
|
|
765
783
|
```ts
|
|
766
784
|
export interface CameraService {
|
|
@@ -780,7 +798,7 @@ export interface CameraService {
|
|
|
780
798
|
|
|
781
799
|
## UIService
|
|
782
800
|
|
|
783
|
-
来源:`packages/sdk/src/index.ts:
|
|
801
|
+
来源:`packages/sdk/src/index.ts:407`
|
|
784
802
|
|
|
785
803
|
```ts
|
|
786
804
|
export interface UIService {
|
|
@@ -792,7 +810,7 @@ export interface UIService {
|
|
|
792
810
|
|
|
793
811
|
## AudioService
|
|
794
812
|
|
|
795
|
-
来源:`packages/sdk/src/index.ts:
|
|
813
|
+
来源:`packages/sdk/src/index.ts:412`
|
|
796
814
|
|
|
797
815
|
```ts
|
|
798
816
|
export interface AudioService {
|
|
@@ -814,7 +832,7 @@ export interface AudioService {
|
|
|
814
832
|
|
|
815
833
|
## StorageService
|
|
816
834
|
|
|
817
|
-
来源:`packages/sdk/src/index.ts:
|
|
835
|
+
来源:`packages/sdk/src/index.ts:427`
|
|
818
836
|
|
|
819
837
|
```ts
|
|
820
838
|
export interface StorageService {
|
|
@@ -830,7 +848,7 @@ export interface StorageService {
|
|
|
830
848
|
|
|
831
849
|
## SceneService
|
|
832
850
|
|
|
833
|
-
来源:`packages/sdk/src/index.ts:
|
|
851
|
+
来源:`packages/sdk/src/index.ts:436`
|
|
834
852
|
|
|
835
853
|
```ts
|
|
836
854
|
export interface SceneService {
|
|
@@ -841,7 +859,7 @@ export interface SceneService {
|
|
|
841
859
|
|
|
842
860
|
## ModelDefinition
|
|
843
861
|
|
|
844
|
-
来源:`packages/sdk/src/index.ts:
|
|
862
|
+
来源:`packages/sdk/src/index.ts:440`
|
|
845
863
|
|
|
846
864
|
```ts
|
|
847
865
|
export interface ModelDefinition {
|
|
@@ -861,7 +879,7 @@ export interface ModelDefinition {
|
|
|
861
879
|
|
|
862
880
|
## RigidBodyDefinition
|
|
863
881
|
|
|
864
|
-
来源:`packages/sdk/src/index.ts:
|
|
882
|
+
来源:`packages/sdk/src/index.ts:453`
|
|
865
883
|
|
|
866
884
|
```ts
|
|
867
885
|
export interface RigidBodyDefinition {
|
|
@@ -882,7 +900,7 @@ export interface RigidBodyDefinition {
|
|
|
882
900
|
|
|
883
901
|
## CharacterDefinition
|
|
884
902
|
|
|
885
|
-
来源:`packages/sdk/src/index.ts:
|
|
903
|
+
来源:`packages/sdk/src/index.ts:467`
|
|
886
904
|
|
|
887
905
|
```ts
|
|
888
906
|
export interface CharacterDefinition {
|
|
@@ -897,7 +915,7 @@ export interface CharacterDefinition {
|
|
|
897
915
|
|
|
898
916
|
## UIElementDefinition
|
|
899
917
|
|
|
900
|
-
来源:`packages/sdk/src/index.ts:
|
|
918
|
+
来源:`packages/sdk/src/index.ts:475`
|
|
901
919
|
|
|
902
920
|
```ts
|
|
903
921
|
export interface UIElementDefinition {
|
|
@@ -917,7 +935,7 @@ export interface UIElementDefinition {
|
|
|
917
935
|
|
|
918
936
|
## SoundDefinition
|
|
919
937
|
|
|
920
|
-
来源:`packages/sdk/src/index.ts:
|
|
938
|
+
来源:`packages/sdk/src/index.ts:488`
|
|
921
939
|
|
|
922
940
|
```ts
|
|
923
941
|
export interface SoundDefinition {
|
|
@@ -931,7 +949,7 @@ export interface SoundDefinition {
|
|
|
931
949
|
|
|
932
950
|
## AudioBusDefinition
|
|
933
951
|
|
|
934
|
-
来源:`packages/sdk/src/index.ts:
|
|
952
|
+
来源:`packages/sdk/src/index.ts:495`
|
|
935
953
|
|
|
936
954
|
```ts
|
|
937
955
|
export interface AudioBusDefinition {
|
|
@@ -942,7 +960,7 @@ export interface AudioBusDefinition {
|
|
|
942
960
|
|
|
943
961
|
## SYSTEM_PHASES
|
|
944
962
|
|
|
945
|
-
来源:`packages/sdk/src/index.ts:
|
|
963
|
+
来源:`packages/sdk/src/index.ts:499`
|
|
946
964
|
|
|
947
965
|
```ts
|
|
948
966
|
SYSTEM_PHASES = [
|
|
@@ -957,7 +975,7 @@ SYSTEM_PHASES = [
|
|
|
957
975
|
|
|
958
976
|
## SystemPhase
|
|
959
977
|
|
|
960
|
-
来源:`packages/sdk/src/index.ts:
|
|
978
|
+
来源:`packages/sdk/src/index.ts:507`
|
|
961
979
|
|
|
962
980
|
```ts
|
|
963
981
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -965,7 +983,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
965
983
|
|
|
966
984
|
## Geometry
|
|
967
985
|
|
|
968
|
-
来源:`packages/sdk/src/index.ts:
|
|
986
|
+
来源:`packages/sdk/src/index.ts:508`
|
|
969
987
|
|
|
970
988
|
```ts
|
|
971
989
|
export type Geometry =
|
|
@@ -976,7 +994,7 @@ export type Geometry =
|
|
|
976
994
|
|
|
977
995
|
## GRAPH_TYPES
|
|
978
996
|
|
|
979
|
-
来源:`packages/sdk/src/index.ts:
|
|
997
|
+
来源:`packages/sdk/src/index.ts:512`
|
|
980
998
|
|
|
981
999
|
```ts
|
|
982
1000
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -984,7 +1002,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
984
1002
|
|
|
985
1003
|
## GraphType
|
|
986
1004
|
|
|
987
|
-
来源:`packages/sdk/src/index.ts:
|
|
1005
|
+
来源:`packages/sdk/src/index.ts:513`
|
|
988
1006
|
|
|
989
1007
|
```ts
|
|
990
1008
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -992,7 +1010,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
992
1010
|
|
|
993
1011
|
## GraphValue
|
|
994
1012
|
|
|
995
|
-
来源:`packages/sdk/src/index.ts:
|
|
1013
|
+
来源:`packages/sdk/src/index.ts:514`
|
|
996
1014
|
|
|
997
1015
|
```ts
|
|
998
1016
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1000,7 +1018,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1000
1018
|
|
|
1001
1019
|
## GraphParameter
|
|
1002
1020
|
|
|
1003
|
-
来源:`packages/sdk/src/index.ts:
|
|
1021
|
+
来源:`packages/sdk/src/index.ts:515`
|
|
1004
1022
|
|
|
1005
1023
|
```ts
|
|
1006
1024
|
export interface GraphParameter {
|
|
@@ -1012,7 +1030,7 @@ export interface GraphParameter {
|
|
|
1012
1030
|
|
|
1013
1031
|
## GRAPH_INPUT_TYPES
|
|
1014
1032
|
|
|
1015
|
-
来源:`packages/sdk/src/index.ts:
|
|
1033
|
+
来源:`packages/sdk/src/index.ts:520`
|
|
1016
1034
|
|
|
1017
1035
|
```ts
|
|
1018
1036
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1026,7 +1044,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1026
1044
|
|
|
1027
1045
|
## GraphInputName
|
|
1028
1046
|
|
|
1029
|
-
来源:`packages/sdk/src/index.ts:
|
|
1047
|
+
来源:`packages/sdk/src/index.ts:527`
|
|
1030
1048
|
|
|
1031
1049
|
```ts
|
|
1032
1050
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1034,7 +1052,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1034
1052
|
|
|
1035
1053
|
## GRAPH_OPERATIONS
|
|
1036
1054
|
|
|
1037
|
-
来源:`packages/sdk/src/index.ts:
|
|
1055
|
+
来源:`packages/sdk/src/index.ts:528`
|
|
1038
1056
|
|
|
1039
1057
|
```ts
|
|
1040
1058
|
GRAPH_OPERATIONS = {
|
|
@@ -1046,7 +1064,7 @@ GRAPH_OPERATIONS = {
|
|
|
1046
1064
|
|
|
1047
1065
|
## GraphNode
|
|
1048
1066
|
|
|
1049
|
-
来源:`packages/sdk/src/index.ts:
|
|
1067
|
+
来源:`packages/sdk/src/index.ts:533`
|
|
1050
1068
|
|
|
1051
1069
|
```ts
|
|
1052
1070
|
export type GraphNode =
|
|
@@ -1073,7 +1091,7 @@ export type GraphNode =
|
|
|
1073
1091
|
|
|
1074
1092
|
## Graph
|
|
1075
1093
|
|
|
1076
|
-
来源:`packages/sdk/src/index.ts:
|
|
1094
|
+
来源:`packages/sdk/src/index.ts:553`
|
|
1077
1095
|
|
|
1078
1096
|
```ts
|
|
1079
1097
|
export interface Graph {
|
|
@@ -1085,7 +1103,7 @@ export interface Graph {
|
|
|
1085
1103
|
|
|
1086
1104
|
## MaterialGraphs
|
|
1087
1105
|
|
|
1088
|
-
来源:`packages/sdk/src/index.ts:
|
|
1106
|
+
来源:`packages/sdk/src/index.ts:558`
|
|
1089
1107
|
|
|
1090
1108
|
```ts
|
|
1091
1109
|
export interface MaterialGraphs {
|
|
@@ -1101,7 +1119,7 @@ export interface MaterialGraphs {
|
|
|
1101
1119
|
|
|
1102
1120
|
## VertexGraphs
|
|
1103
1121
|
|
|
1104
|
-
来源:`packages/sdk/src/index.ts:
|
|
1122
|
+
来源:`packages/sdk/src/index.ts:567`
|
|
1105
1123
|
|
|
1106
1124
|
```ts
|
|
1107
1125
|
export interface VertexGraphs {
|
|
@@ -1114,7 +1132,7 @@ export interface VertexGraphs {
|
|
|
1114
1132
|
|
|
1115
1133
|
## MaterialInput
|
|
1116
1134
|
|
|
1117
|
-
来源:`packages/sdk/src/index.ts:
|
|
1135
|
+
来源:`packages/sdk/src/index.ts:573`
|
|
1118
1136
|
|
|
1119
1137
|
```ts
|
|
1120
1138
|
export interface MaterialInput {
|
|
@@ -1148,7 +1166,7 @@ export interface MaterialInput {
|
|
|
1148
1166
|
|
|
1149
1167
|
## MaterialDefinition
|
|
1150
1168
|
|
|
1151
|
-
来源:`packages/sdk/src/index.ts:
|
|
1169
|
+
来源:`packages/sdk/src/index.ts:600`
|
|
1152
1170
|
|
|
1153
1171
|
```ts
|
|
1154
1172
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1158,7 +1176,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1158
1176
|
|
|
1159
1177
|
## PostProcessInput
|
|
1160
1178
|
|
|
1161
|
-
来源:`packages/sdk/src/index.ts:
|
|
1179
|
+
来源:`packages/sdk/src/index.ts:603`
|
|
1162
1180
|
|
|
1163
1181
|
```ts
|
|
1164
1182
|
export interface PostProcessInput {
|
|
@@ -1173,7 +1191,7 @@ export interface PostProcessInput {
|
|
|
1173
1191
|
|
|
1174
1192
|
## PostProcessDefinition
|
|
1175
1193
|
|
|
1176
|
-
来源:`packages/sdk/src/index.ts:
|
|
1194
|
+
来源:`packages/sdk/src/index.ts:611`
|
|
1177
1195
|
|
|
1178
1196
|
```ts
|
|
1179
1197
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1183,7 +1201,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1183
1201
|
|
|
1184
1202
|
## ComputeInput
|
|
1185
1203
|
|
|
1186
|
-
来源:`packages/sdk/src/index.ts:
|
|
1204
|
+
来源:`packages/sdk/src/index.ts:614`
|
|
1187
1205
|
|
|
1188
1206
|
```ts
|
|
1189
1207
|
export interface ComputeInput {
|
|
@@ -1199,7 +1217,7 @@ export interface ComputeInput {
|
|
|
1199
1217
|
|
|
1200
1218
|
## ComputeDefinition
|
|
1201
1219
|
|
|
1202
|
-
来源:`packages/sdk/src/index.ts:
|
|
1220
|
+
来源:`packages/sdk/src/index.ts:623`
|
|
1203
1221
|
|
|
1204
1222
|
```ts
|
|
1205
1223
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1209,7 +1227,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1209
1227
|
|
|
1210
1228
|
## AssetInput
|
|
1211
1229
|
|
|
1212
|
-
来源:`packages/sdk/src/index.ts:
|
|
1230
|
+
来源:`packages/sdk/src/index.ts:626`
|
|
1213
1231
|
|
|
1214
1232
|
```ts
|
|
1215
1233
|
export interface AssetInput {
|
|
@@ -1226,7 +1244,7 @@ export interface AssetInput {
|
|
|
1226
1244
|
|
|
1227
1245
|
## AssetDefinition
|
|
1228
1246
|
|
|
1229
|
-
来源:`packages/sdk/src/index.ts:
|
|
1247
|
+
来源:`packages/sdk/src/index.ts:636`
|
|
1230
1248
|
|
|
1231
1249
|
```ts
|
|
1232
1250
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1236,7 +1254,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1236
1254
|
|
|
1237
1255
|
## MeshDefinition
|
|
1238
1256
|
|
|
1239
|
-
来源:`packages/sdk/src/index.ts:
|
|
1257
|
+
来源:`packages/sdk/src/index.ts:639`
|
|
1240
1258
|
|
|
1241
1259
|
```ts
|
|
1242
1260
|
export interface MeshDefinition {
|
|
@@ -1249,7 +1267,7 @@ export interface MeshDefinition {
|
|
|
1249
1267
|
|
|
1250
1268
|
## LightDefinition
|
|
1251
1269
|
|
|
1252
|
-
来源:`packages/sdk/src/index.ts:
|
|
1270
|
+
来源:`packages/sdk/src/index.ts:645`
|
|
1253
1271
|
|
|
1254
1272
|
```ts
|
|
1255
1273
|
export interface LightDefinition {
|
|
@@ -1271,7 +1289,7 @@ export interface LightDefinition {
|
|
|
1271
1289
|
|
|
1272
1290
|
## EntityInput
|
|
1273
1291
|
|
|
1274
|
-
来源:`packages/sdk/src/index.ts:
|
|
1292
|
+
来源:`packages/sdk/src/index.ts:660`
|
|
1275
1293
|
|
|
1276
1294
|
```ts
|
|
1277
1295
|
export interface EntityInput {
|
|
@@ -1290,7 +1308,7 @@ export interface EntityInput {
|
|
|
1290
1308
|
|
|
1291
1309
|
## PrefabInput
|
|
1292
1310
|
|
|
1293
|
-
来源:`packages/sdk/src/index.ts:
|
|
1311
|
+
来源:`packages/sdk/src/index.ts:672`
|
|
1294
1312
|
|
|
1295
1313
|
```ts
|
|
1296
1314
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1300,7 +1318,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1300
1318
|
|
|
1301
1319
|
## PrefabDefinition
|
|
1302
1320
|
|
|
1303
|
-
来源:`packages/sdk/src/index.ts:
|
|
1321
|
+
来源:`packages/sdk/src/index.ts:675`
|
|
1304
1322
|
|
|
1305
1323
|
```ts
|
|
1306
1324
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1310,7 +1328,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1310
1328
|
|
|
1311
1329
|
## SceneInput
|
|
1312
1330
|
|
|
1313
|
-
来源:`packages/sdk/src/index.ts:
|
|
1331
|
+
来源:`packages/sdk/src/index.ts:678`
|
|
1314
1332
|
|
|
1315
1333
|
```ts
|
|
1316
1334
|
export interface SceneInput {
|
|
@@ -1342,7 +1360,7 @@ export interface SceneInput {
|
|
|
1342
1360
|
|
|
1343
1361
|
## SceneDefinition
|
|
1344
1362
|
|
|
1345
|
-
来源:`packages/sdk/src/index.ts:
|
|
1363
|
+
来源:`packages/sdk/src/index.ts:703`
|
|
1346
1364
|
|
|
1347
1365
|
```ts
|
|
1348
1366
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1352,7 +1370,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1352
1370
|
|
|
1353
1371
|
## SystemInput
|
|
1354
1372
|
|
|
1355
|
-
来源:`packages/sdk/src/index.ts:
|
|
1373
|
+
来源:`packages/sdk/src/index.ts:706`
|
|
1356
1374
|
|
|
1357
1375
|
```ts
|
|
1358
1376
|
export interface SystemInput {
|
|
@@ -1369,7 +1387,7 @@ export interface SystemInput {
|
|
|
1369
1387
|
|
|
1370
1388
|
## SystemDefinition
|
|
1371
1389
|
|
|
1372
|
-
来源:`packages/sdk/src/index.ts:
|
|
1390
|
+
来源:`packages/sdk/src/index.ts:716`
|
|
1373
1391
|
|
|
1374
1392
|
```ts
|
|
1375
1393
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1379,7 +1397,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1379
1397
|
|
|
1380
1398
|
## GameInput
|
|
1381
1399
|
|
|
1382
|
-
来源:`packages/sdk/src/index.ts:
|
|
1400
|
+
来源:`packages/sdk/src/index.ts:719`
|
|
1383
1401
|
|
|
1384
1402
|
```ts
|
|
1385
1403
|
export interface GameInput {
|
|
@@ -1405,7 +1423,7 @@ export interface GameInput {
|
|
|
1405
1423
|
|
|
1406
1424
|
## GameDefinition
|
|
1407
1425
|
|
|
1408
|
-
来源:`packages/sdk/src/index.ts:
|
|
1426
|
+
来源:`packages/sdk/src/index.ts:738`
|
|
1409
1427
|
|
|
1410
1428
|
```ts
|
|
1411
1429
|
export interface GameDefinition extends GameInput {
|
|
@@ -1415,7 +1433,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1415
1433
|
|
|
1416
1434
|
## GameInstance
|
|
1417
1435
|
|
|
1418
|
-
来源:`packages/sdk/src/index.ts:
|
|
1436
|
+
来源:`packages/sdk/src/index.ts:741`
|
|
1419
1437
|
|
|
1420
1438
|
```ts
|
|
1421
1439
|
export interface GameInstance {
|
|
@@ -1426,7 +1444,7 @@ export interface GameInstance {
|
|
|
1426
1444
|
|
|
1427
1445
|
## defineComponent
|
|
1428
1446
|
|
|
1429
|
-
来源:`packages/sdk/src/index.ts:
|
|
1447
|
+
来源:`packages/sdk/src/index.ts:745`
|
|
1430
1448
|
|
|
1431
1449
|
```ts
|
|
1432
1450
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1437,7 +1455,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1437
1455
|
|
|
1438
1456
|
## defineMaterial
|
|
1439
1457
|
|
|
1440
|
-
来源:`packages/sdk/src/index.ts:
|
|
1458
|
+
来源:`packages/sdk/src/index.ts:751`
|
|
1441
1459
|
|
|
1442
1460
|
```ts
|
|
1443
1461
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1445,7 +1463,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1445
1463
|
|
|
1446
1464
|
## definePostProcess
|
|
1447
1465
|
|
|
1448
|
-
来源:`packages/sdk/src/index.ts:
|
|
1466
|
+
来源:`packages/sdk/src/index.ts:754`
|
|
1449
1467
|
|
|
1450
1468
|
```ts
|
|
1451
1469
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1453,7 +1471,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1453
1471
|
|
|
1454
1472
|
## defineCompute
|
|
1455
1473
|
|
|
1456
|
-
来源:`packages/sdk/src/index.ts:
|
|
1474
|
+
来源:`packages/sdk/src/index.ts:757`
|
|
1457
1475
|
|
|
1458
1476
|
```ts
|
|
1459
1477
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1461,7 +1479,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1461
1479
|
|
|
1462
1480
|
## defineAsset
|
|
1463
1481
|
|
|
1464
|
-
来源:`packages/sdk/src/index.ts:
|
|
1482
|
+
来源:`packages/sdk/src/index.ts:760`
|
|
1465
1483
|
|
|
1466
1484
|
```ts
|
|
1467
1485
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1469,7 +1487,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1469
1487
|
|
|
1470
1488
|
## definePrefab
|
|
1471
1489
|
|
|
1472
|
-
来源:`packages/sdk/src/index.ts:
|
|
1490
|
+
来源:`packages/sdk/src/index.ts:763`
|
|
1473
1491
|
|
|
1474
1492
|
```ts
|
|
1475
1493
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1477,7 +1495,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1477
1495
|
|
|
1478
1496
|
## defineScene
|
|
1479
1497
|
|
|
1480
|
-
来源:`packages/sdk/src/index.ts:
|
|
1498
|
+
来源:`packages/sdk/src/index.ts:766`
|
|
1481
1499
|
|
|
1482
1500
|
```ts
|
|
1483
1501
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1485,7 +1503,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1485
1503
|
|
|
1486
1504
|
## defineSystem
|
|
1487
1505
|
|
|
1488
|
-
来源:`packages/sdk/src/index.ts:
|
|
1506
|
+
来源:`packages/sdk/src/index.ts:769`
|
|
1489
1507
|
|
|
1490
1508
|
```ts
|
|
1491
1509
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1493,7 +1511,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1493
1511
|
|
|
1494
1512
|
## defineGame
|
|
1495
1513
|
|
|
1496
|
-
来源:`packages/sdk/src/index.ts:
|
|
1514
|
+
来源:`packages/sdk/src/index.ts:772`
|
|
1497
1515
|
|
|
1498
1516
|
```ts
|
|
1499
1517
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1501,7 +1519,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1501
1519
|
|
|
1502
1520
|
## instantiateGame
|
|
1503
1521
|
|
|
1504
|
-
来源:`packages/sdk/src/index.ts:
|
|
1522
|
+
来源:`packages/sdk/src/index.ts:776`
|
|
1505
1523
|
|
|
1506
1524
|
```ts
|
|
1507
1525
|
export function instantiateGame(
|