pelican-engine 0.3.17 → 0.3.18
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 +22 -0
- package/distribution.json +16 -13
- package/docs/STATUS.md +2 -1
- package/docs/api/REFERENCE.md +208 -98
- package/docs/api/index.json +210 -100
- package/docs/npm/GAME-AUTHOR.md +22 -0
- package/engine.manifest.json +1 -1
- package/lib/renderer/browser.js +21 -13
- package/lib/renderer/cloth-visuals.js +140 -0
- package/lib/renderer/gameplay.js +2 -0
- package/lib/runtime/host.js +3 -0
- package/lib/sdk/index.d.ts +82 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/cloth-plugin.js +152 -0
- package/lib/simulation/cloth.js +327 -0
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.18 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.18"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -255,12 +255,13 @@ export interface SystemContext extends EngineFacade {
|
|
|
255
255
|
readonly compute: ComputeService;
|
|
256
256
|
readonly navigation: NavigationService;
|
|
257
257
|
readonly ropes: RopeService;
|
|
258
|
+
readonly cloth: ClothService;
|
|
258
259
|
}
|
|
259
260
|
```
|
|
260
261
|
|
|
261
262
|
## RopeCollider
|
|
262
263
|
|
|
263
|
-
来源:`packages/sdk/src/index.ts:
|
|
264
|
+
来源:`packages/sdk/src/index.ts:124`
|
|
264
265
|
|
|
265
266
|
```ts
|
|
266
267
|
export type RopeCollider =
|
|
@@ -270,7 +271,7 @@ export type RopeCollider =
|
|
|
270
271
|
|
|
271
272
|
## RopeBodyCollider
|
|
272
273
|
|
|
273
|
-
来源:`packages/sdk/src/index.ts:
|
|
274
|
+
来源:`packages/sdk/src/index.ts:128`
|
|
274
275
|
|
|
275
276
|
```ts
|
|
276
277
|
export interface RopeBodyCollider { readonly id: string; readonly entity: string }
|
|
@@ -278,7 +279,7 @@ export interface RopeBodyCollider { readonly id: string; readonly entity: string
|
|
|
278
279
|
|
|
279
280
|
## RopeVisualOptions
|
|
280
281
|
|
|
281
|
-
来源:`packages/sdk/src/index.ts:
|
|
282
|
+
来源:`packages/sdk/src/index.ts:130`
|
|
282
283
|
|
|
283
284
|
```ts
|
|
284
285
|
export interface RopeVisualOptions {
|
|
@@ -292,7 +293,7 @@ export interface RopeVisualOptions {
|
|
|
292
293
|
|
|
293
294
|
## RopeVisualState
|
|
294
295
|
|
|
295
|
-
来源:`packages/sdk/src/index.ts:
|
|
296
|
+
来源:`packages/sdk/src/index.ts:138`
|
|
296
297
|
|
|
297
298
|
```ts
|
|
298
299
|
export interface RopeVisualState {
|
|
@@ -308,7 +309,7 @@ export interface RopeVisualState {
|
|
|
308
309
|
|
|
309
310
|
## RopeDefinition
|
|
310
311
|
|
|
311
|
-
来源:`packages/sdk/src/index.ts:
|
|
312
|
+
来源:`packages/sdk/src/index.ts:147`
|
|
312
313
|
|
|
313
314
|
```ts
|
|
314
315
|
export interface RopeDefinition {
|
|
@@ -339,7 +340,7 @@ export interface RopeDefinition {
|
|
|
339
340
|
|
|
340
341
|
## RopeContact
|
|
341
342
|
|
|
342
|
-
来源:`packages/sdk/src/index.ts:
|
|
343
|
+
来源:`packages/sdk/src/index.ts:172`
|
|
343
344
|
|
|
344
345
|
```ts
|
|
345
346
|
export interface RopeContact {
|
|
@@ -353,7 +354,7 @@ export interface RopeContact {
|
|
|
353
354
|
|
|
354
355
|
## RopeSegmentContact
|
|
355
356
|
|
|
356
|
-
来源:`packages/sdk/src/index.ts:
|
|
357
|
+
来源:`packages/sdk/src/index.ts:180`
|
|
357
358
|
|
|
358
359
|
```ts
|
|
359
360
|
export interface RopeSegmentContact {
|
|
@@ -371,7 +372,7 @@ export interface RopeSegmentContact {
|
|
|
371
372
|
|
|
372
373
|
## RopeSelfContact
|
|
373
374
|
|
|
374
|
-
来源:`packages/sdk/src/index.ts:
|
|
375
|
+
来源:`packages/sdk/src/index.ts:192`
|
|
375
376
|
|
|
376
377
|
```ts
|
|
377
378
|
export interface RopeSelfContact {
|
|
@@ -387,7 +388,7 @@ export interface RopeSelfContact {
|
|
|
387
388
|
|
|
388
389
|
## RopeState
|
|
389
390
|
|
|
390
|
-
来源:`packages/sdk/src/index.ts:
|
|
391
|
+
来源:`packages/sdk/src/index.ts:201`
|
|
391
392
|
|
|
392
393
|
```ts
|
|
393
394
|
export interface RopeState {
|
|
@@ -406,7 +407,7 @@ export interface RopeState {
|
|
|
406
407
|
|
|
407
408
|
## RopeService
|
|
408
409
|
|
|
409
|
-
来源:`packages/sdk/src/index.ts:
|
|
410
|
+
来源:`packages/sdk/src/index.ts:213`
|
|
410
411
|
|
|
411
412
|
```ts
|
|
412
413
|
export interface RopeService {
|
|
@@ -425,17 +426,126 @@ export interface RopeService {
|
|
|
425
426
|
}
|
|
426
427
|
```
|
|
427
428
|
|
|
428
|
-
##
|
|
429
|
+
## ClothCollider
|
|
430
|
+
|
|
431
|
+
来源:`packages/sdk/src/index.ts:228`
|
|
432
|
+
|
|
433
|
+
```ts
|
|
434
|
+
export type ClothCollider = RopeCollider;
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
## ClothTriangle
|
|
429
438
|
|
|
430
439
|
来源:`packages/sdk/src/index.ts:229`
|
|
431
440
|
|
|
441
|
+
```ts
|
|
442
|
+
export type ClothTriangle = readonly [number, number, number];
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
## ClothVisualOptions
|
|
446
|
+
|
|
447
|
+
来源:`packages/sdk/src/index.ts:230`
|
|
448
|
+
|
|
449
|
+
```ts
|
|
450
|
+
export interface ClothVisualOptions {
|
|
451
|
+
material: string;
|
|
452
|
+
/** Optional per-particle UV coordinates; defaults to a planar projection. */
|
|
453
|
+
uvs?: readonly Vec2[];
|
|
454
|
+
castShadow?: boolean;
|
|
455
|
+
receiveShadow?: boolean;
|
|
456
|
+
}
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
## ClothDefinition
|
|
460
|
+
|
|
461
|
+
来源:`packages/sdk/src/index.ts:237`
|
|
462
|
+
|
|
463
|
+
```ts
|
|
464
|
+
export interface ClothDefinition {
|
|
465
|
+
id: string;
|
|
466
|
+
points: readonly Vec3[];
|
|
467
|
+
triangles: readonly ClothTriangle[];
|
|
468
|
+
/** Kilograms per movable particle. */
|
|
469
|
+
mass: number;
|
|
470
|
+
radius?: number;
|
|
471
|
+
fixedDt?: number;
|
|
472
|
+
autoStep?: boolean;
|
|
473
|
+
substeps?: number;
|
|
474
|
+
iterations?: number;
|
|
475
|
+
damping?: number;
|
|
476
|
+
gravity?: Vec3;
|
|
477
|
+
/** Distance-based bending approximation across shared triangle edges; defaults to true. */
|
|
478
|
+
bending?: boolean;
|
|
479
|
+
anchors?: readonly { index: number; position: Vec3 }[];
|
|
480
|
+
visual?: ClothVisualOptions;
|
|
481
|
+
}
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
## ClothContact
|
|
485
|
+
|
|
486
|
+
来源:`packages/sdk/src/index.ts:255`
|
|
487
|
+
|
|
488
|
+
```ts
|
|
489
|
+
export interface ClothContact { tick: number; particle: number; colliderId: string; penetration: number }
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
## ClothState
|
|
493
|
+
|
|
494
|
+
来源:`packages/sdk/src/index.ts:256`
|
|
495
|
+
|
|
496
|
+
```ts
|
|
497
|
+
export interface ClothState {
|
|
498
|
+
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
499
|
+
positions: Vec3[]; velocities: Vec3[]; triangles: ClothTriangle[];
|
|
500
|
+
anchors: { index: number; position: Vec3 }[];
|
|
501
|
+
contacts: ClothContact[];
|
|
502
|
+
maxDistanceError: number;
|
|
503
|
+
resources: { particles: number; triangles: number; constraints: number; anchors: number; colliders: number };
|
|
504
|
+
}
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
## ClothVisualState
|
|
508
|
+
|
|
509
|
+
来源:`packages/sdk/src/index.ts:264`
|
|
510
|
+
|
|
511
|
+
```ts
|
|
512
|
+
export interface ClothVisualState {
|
|
513
|
+
id: string; material: string; positions: Vec3[]; triangles: ClothTriangle[];
|
|
514
|
+
uvs: Vec2[]; castShadow: boolean; receiveShadow: boolean;
|
|
515
|
+
}
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
## ClothService
|
|
519
|
+
|
|
520
|
+
来源:`packages/sdk/src/index.ts:268`
|
|
521
|
+
|
|
522
|
+
```ts
|
|
523
|
+
export interface ClothService {
|
|
524
|
+
create(definition: ClothDefinition): void;
|
|
525
|
+
/** Explicit ticks for manual cloth only; automatic cloth rejects this call. */
|
|
526
|
+
step(id: string, ticks?: number): ClothState;
|
|
527
|
+
inspect(id: string): ClothState;
|
|
528
|
+
visuals(): readonly ClothVisualState[];
|
|
529
|
+
setColliders(id: string, colliders: readonly ClothCollider[]): void;
|
|
530
|
+
setAnchor(id: string, index: number, position: Vec3): void;
|
|
531
|
+
releaseAnchor(id: string, index: number): void;
|
|
532
|
+
applyForce(id: string, index: number, force: Vec3): void;
|
|
533
|
+
applyImpulse(id: string, index: number, impulse: Vec3): void;
|
|
534
|
+
destroy(id: string): void;
|
|
535
|
+
}
|
|
536
|
+
```
|
|
537
|
+
|
|
538
|
+
## NavigationCell
|
|
539
|
+
|
|
540
|
+
来源:`packages/sdk/src/index.ts:284`
|
|
541
|
+
|
|
432
542
|
```ts
|
|
433
543
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
434
544
|
```
|
|
435
545
|
|
|
436
546
|
## NavigationObstacleUpdate
|
|
437
547
|
|
|
438
|
-
来源:`packages/sdk/src/index.ts:
|
|
548
|
+
来源:`packages/sdk/src/index.ts:286`
|
|
439
549
|
|
|
440
550
|
```ts
|
|
441
551
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -443,7 +553,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
443
553
|
|
|
444
554
|
## NavigationGrid
|
|
445
555
|
|
|
446
|
-
来源:`packages/sdk/src/index.ts:
|
|
556
|
+
来源:`packages/sdk/src/index.ts:287`
|
|
447
557
|
|
|
448
558
|
```ts
|
|
449
559
|
export interface NavigationGrid {
|
|
@@ -459,7 +569,7 @@ export interface NavigationGrid {
|
|
|
459
569
|
|
|
460
570
|
## NavigationService
|
|
461
571
|
|
|
462
|
-
来源:`packages/sdk/src/index.ts:
|
|
572
|
+
来源:`packages/sdk/src/index.ts:296`
|
|
463
573
|
|
|
464
574
|
```ts
|
|
465
575
|
export interface NavigationService {
|
|
@@ -478,7 +588,7 @@ export interface NavigationService {
|
|
|
478
588
|
|
|
479
589
|
## RenderMode
|
|
480
590
|
|
|
481
|
-
来源:`packages/sdk/src/index.ts:
|
|
591
|
+
来源:`packages/sdk/src/index.ts:308`
|
|
482
592
|
|
|
483
593
|
```ts
|
|
484
594
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -486,7 +596,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
486
596
|
|
|
487
597
|
## RenderCapabilities
|
|
488
598
|
|
|
489
|
-
来源:`packages/sdk/src/index.ts:
|
|
599
|
+
来源:`packages/sdk/src/index.ts:309`
|
|
490
600
|
|
|
491
601
|
```ts
|
|
492
602
|
export interface RenderCapabilities {
|
|
@@ -498,7 +608,7 @@ export interface RenderCapabilities {
|
|
|
498
608
|
|
|
499
609
|
## RenderSettings
|
|
500
610
|
|
|
501
|
-
来源:`packages/sdk/src/index.ts:
|
|
611
|
+
来源:`packages/sdk/src/index.ts:314`
|
|
502
612
|
|
|
503
613
|
```ts
|
|
504
614
|
export interface RenderSettings {
|
|
@@ -516,7 +626,7 @@ export interface RenderSettings {
|
|
|
516
626
|
|
|
517
627
|
## RenderService
|
|
518
628
|
|
|
519
|
-
来源:`packages/sdk/src/index.ts:
|
|
629
|
+
来源:`packages/sdk/src/index.ts:325`
|
|
520
630
|
|
|
521
631
|
```ts
|
|
522
632
|
export interface RenderService {
|
|
@@ -533,7 +643,7 @@ export interface RenderService {
|
|
|
533
643
|
|
|
534
644
|
## MaterialBufferInput
|
|
535
645
|
|
|
536
|
-
来源:`packages/sdk/src/index.ts:
|
|
646
|
+
来源:`packages/sdk/src/index.ts:335`
|
|
537
647
|
|
|
538
648
|
```ts
|
|
539
649
|
export interface MaterialBufferInput {
|
|
@@ -549,7 +659,7 @@ export interface MaterialBufferInput {
|
|
|
549
659
|
|
|
550
660
|
## RenderBufferReference
|
|
551
661
|
|
|
552
|
-
来源:`packages/sdk/src/index.ts:
|
|
662
|
+
来源:`packages/sdk/src/index.ts:344`
|
|
553
663
|
|
|
554
664
|
```ts
|
|
555
665
|
export interface RenderBufferReference {
|
|
@@ -561,7 +671,7 @@ export interface RenderBufferReference {
|
|
|
561
671
|
|
|
562
672
|
## RenderBufferBindings
|
|
563
673
|
|
|
564
|
-
来源:`packages/sdk/src/index.ts:
|
|
674
|
+
来源:`packages/sdk/src/index.ts:349`
|
|
565
675
|
|
|
566
676
|
```ts
|
|
567
677
|
export interface RenderBufferBindings {
|
|
@@ -573,7 +683,7 @@ export interface RenderBufferBindings {
|
|
|
573
683
|
|
|
574
684
|
## MaterialTextureInput
|
|
575
685
|
|
|
576
|
-
来源:`packages/sdk/src/index.ts:
|
|
686
|
+
来源:`packages/sdk/src/index.ts:354`
|
|
577
687
|
|
|
578
688
|
```ts
|
|
579
689
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -586,7 +696,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
586
696
|
|
|
587
697
|
## RenderTextureReference
|
|
588
698
|
|
|
589
|
-
来源:`packages/sdk/src/index.ts:
|
|
699
|
+
来源:`packages/sdk/src/index.ts:360`
|
|
590
700
|
|
|
591
701
|
```ts
|
|
592
702
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -597,7 +707,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
597
707
|
|
|
598
708
|
## RenderTextureBindings
|
|
599
709
|
|
|
600
|
-
来源:`packages/sdk/src/index.ts:
|
|
710
|
+
来源:`packages/sdk/src/index.ts:364`
|
|
601
711
|
|
|
602
712
|
```ts
|
|
603
713
|
export interface RenderTextureBindings {
|
|
@@ -609,7 +719,7 @@ export interface RenderTextureBindings {
|
|
|
609
719
|
|
|
610
720
|
## PostProcessState
|
|
611
721
|
|
|
612
|
-
来源:`packages/sdk/src/index.ts:
|
|
722
|
+
来源:`packages/sdk/src/index.ts:369`
|
|
613
723
|
|
|
614
724
|
```ts
|
|
615
725
|
export interface PostProcessState {
|
|
@@ -621,7 +731,7 @@ export interface PostProcessState {
|
|
|
621
731
|
|
|
622
732
|
## PostProcessService
|
|
623
733
|
|
|
624
|
-
来源:`packages/sdk/src/index.ts:
|
|
734
|
+
来源:`packages/sdk/src/index.ts:374`
|
|
625
735
|
|
|
626
736
|
```ts
|
|
627
737
|
export interface PostProcessService {
|
|
@@ -638,7 +748,7 @@ export interface PostProcessService {
|
|
|
638
748
|
|
|
639
749
|
## ComputeBufferHandle
|
|
640
750
|
|
|
641
|
-
来源:`packages/sdk/src/index.ts:
|
|
751
|
+
来源:`packages/sdk/src/index.ts:384`
|
|
642
752
|
|
|
643
753
|
```ts
|
|
644
754
|
export interface ComputeBufferHandle {
|
|
@@ -650,7 +760,7 @@ export interface ComputeBufferHandle {
|
|
|
650
760
|
|
|
651
761
|
## ComputeTaskHandle
|
|
652
762
|
|
|
653
|
-
来源:`packages/sdk/src/index.ts:
|
|
763
|
+
来源:`packages/sdk/src/index.ts:389`
|
|
654
764
|
|
|
655
765
|
```ts
|
|
656
766
|
export interface ComputeTaskHandle {
|
|
@@ -661,7 +771,7 @@ export interface ComputeTaskHandle {
|
|
|
661
771
|
|
|
662
772
|
## ComputeBufferInput
|
|
663
773
|
|
|
664
|
-
来源:`packages/sdk/src/index.ts:
|
|
774
|
+
来源:`packages/sdk/src/index.ts:393`
|
|
665
775
|
|
|
666
776
|
```ts
|
|
667
777
|
export interface ComputeBufferInput {
|
|
@@ -674,7 +784,7 @@ export interface ComputeBufferInput {
|
|
|
674
784
|
|
|
675
785
|
## ComputeTextureHandle
|
|
676
786
|
|
|
677
|
-
来源:`packages/sdk/src/index.ts:
|
|
787
|
+
来源:`packages/sdk/src/index.ts:399`
|
|
678
788
|
|
|
679
789
|
```ts
|
|
680
790
|
export interface ComputeTextureHandle {
|
|
@@ -687,7 +797,7 @@ export interface ComputeTextureHandle {
|
|
|
687
797
|
|
|
688
798
|
## ComputeTextureSize
|
|
689
799
|
|
|
690
|
-
来源:`packages/sdk/src/index.ts:
|
|
800
|
+
来源:`packages/sdk/src/index.ts:405`
|
|
691
801
|
|
|
692
802
|
```ts
|
|
693
803
|
export interface ComputeTextureSize {
|
|
@@ -698,7 +808,7 @@ export interface ComputeTextureSize {
|
|
|
698
808
|
|
|
699
809
|
## ComputeTextureDataInput
|
|
700
810
|
|
|
701
|
-
来源:`packages/sdk/src/index.ts:
|
|
811
|
+
来源:`packages/sdk/src/index.ts:409`
|
|
702
812
|
|
|
703
813
|
```ts
|
|
704
814
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -711,7 +821,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
711
821
|
|
|
712
822
|
## ComputeTextureAssetInput
|
|
713
823
|
|
|
714
|
-
来源:`packages/sdk/src/index.ts:
|
|
824
|
+
来源:`packages/sdk/src/index.ts:415`
|
|
715
825
|
|
|
716
826
|
```ts
|
|
717
827
|
export interface ComputeTextureAssetInput {
|
|
@@ -725,7 +835,7 @@ export interface ComputeTextureAssetInput {
|
|
|
725
835
|
|
|
726
836
|
## ComputeTextureInput
|
|
727
837
|
|
|
728
|
-
来源:`packages/sdk/src/index.ts:
|
|
838
|
+
来源:`packages/sdk/src/index.ts:422`
|
|
729
839
|
|
|
730
840
|
```ts
|
|
731
841
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -733,7 +843,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
733
843
|
|
|
734
844
|
## ComputeTextureBinding
|
|
735
845
|
|
|
736
|
-
来源:`packages/sdk/src/index.ts:
|
|
846
|
+
来源:`packages/sdk/src/index.ts:423`
|
|
737
847
|
|
|
738
848
|
```ts
|
|
739
849
|
export interface ComputeTextureBinding {
|
|
@@ -746,7 +856,7 @@ export interface ComputeTextureBinding {
|
|
|
746
856
|
|
|
747
857
|
## ComputeDispatchInput
|
|
748
858
|
|
|
749
|
-
来源:`packages/sdk/src/index.ts:
|
|
859
|
+
来源:`packages/sdk/src/index.ts:429`
|
|
750
860
|
|
|
751
861
|
```ts
|
|
752
862
|
export interface ComputeDispatchInput {
|
|
@@ -765,7 +875,7 @@ export interface ComputeDispatchInput {
|
|
|
765
875
|
|
|
766
876
|
## ComputeTaskState
|
|
767
877
|
|
|
768
|
-
来源:`packages/sdk/src/index.ts:
|
|
878
|
+
来源:`packages/sdk/src/index.ts:441`
|
|
769
879
|
|
|
770
880
|
```ts
|
|
771
881
|
export interface ComputeTaskState {
|
|
@@ -776,7 +886,7 @@ export interface ComputeTaskState {
|
|
|
776
886
|
|
|
777
887
|
## ComputeService
|
|
778
888
|
|
|
779
|
-
来源:`packages/sdk/src/index.ts:
|
|
889
|
+
来源:`packages/sdk/src/index.ts:445`
|
|
780
890
|
|
|
781
891
|
```ts
|
|
782
892
|
export interface ComputeService {
|
|
@@ -803,7 +913,7 @@ export interface ComputeService {
|
|
|
803
913
|
|
|
804
914
|
## InputService
|
|
805
915
|
|
|
806
|
-
来源:`packages/sdk/src/index.ts:
|
|
916
|
+
来源:`packages/sdk/src/index.ts:465`
|
|
807
917
|
|
|
808
918
|
```ts
|
|
809
919
|
export interface InputService {
|
|
@@ -816,7 +926,7 @@ export interface InputService {
|
|
|
816
926
|
|
|
817
927
|
## PhysicsService
|
|
818
928
|
|
|
819
|
-
来源:`packages/sdk/src/index.ts:
|
|
929
|
+
来源:`packages/sdk/src/index.ts:471`
|
|
820
930
|
|
|
821
931
|
```ts
|
|
822
932
|
export interface PhysicsService {
|
|
@@ -845,7 +955,7 @@ export interface PhysicsService {
|
|
|
845
955
|
|
|
846
956
|
## AnimationService
|
|
847
957
|
|
|
848
|
-
来源:`packages/sdk/src/index.ts:
|
|
958
|
+
来源:`packages/sdk/src/index.ts:493`
|
|
849
959
|
|
|
850
960
|
```ts
|
|
851
961
|
export interface AnimationService {
|
|
@@ -864,7 +974,7 @@ export interface AnimationService {
|
|
|
864
974
|
|
|
865
975
|
## CameraService
|
|
866
976
|
|
|
867
|
-
来源:`packages/sdk/src/index.ts:
|
|
977
|
+
来源:`packages/sdk/src/index.ts:505`
|
|
868
978
|
|
|
869
979
|
```ts
|
|
870
980
|
export interface CameraService {
|
|
@@ -884,7 +994,7 @@ export interface CameraService {
|
|
|
884
994
|
|
|
885
995
|
## UIService
|
|
886
996
|
|
|
887
|
-
来源:`packages/sdk/src/index.ts:
|
|
997
|
+
来源:`packages/sdk/src/index.ts:518`
|
|
888
998
|
|
|
889
999
|
```ts
|
|
890
1000
|
export interface UIService {
|
|
@@ -896,7 +1006,7 @@ export interface UIService {
|
|
|
896
1006
|
|
|
897
1007
|
## AudioService
|
|
898
1008
|
|
|
899
|
-
来源:`packages/sdk/src/index.ts:
|
|
1009
|
+
来源:`packages/sdk/src/index.ts:523`
|
|
900
1010
|
|
|
901
1011
|
```ts
|
|
902
1012
|
export interface AudioService {
|
|
@@ -918,7 +1028,7 @@ export interface AudioService {
|
|
|
918
1028
|
|
|
919
1029
|
## StorageService
|
|
920
1030
|
|
|
921
|
-
来源:`packages/sdk/src/index.ts:
|
|
1031
|
+
来源:`packages/sdk/src/index.ts:538`
|
|
922
1032
|
|
|
923
1033
|
```ts
|
|
924
1034
|
export interface StorageService {
|
|
@@ -934,7 +1044,7 @@ export interface StorageService {
|
|
|
934
1044
|
|
|
935
1045
|
## SceneService
|
|
936
1046
|
|
|
937
|
-
来源:`packages/sdk/src/index.ts:
|
|
1047
|
+
来源:`packages/sdk/src/index.ts:547`
|
|
938
1048
|
|
|
939
1049
|
```ts
|
|
940
1050
|
export interface SceneService {
|
|
@@ -945,7 +1055,7 @@ export interface SceneService {
|
|
|
945
1055
|
|
|
946
1056
|
## ModelDefinition
|
|
947
1057
|
|
|
948
|
-
来源:`packages/sdk/src/index.ts:
|
|
1058
|
+
来源:`packages/sdk/src/index.ts:551`
|
|
949
1059
|
|
|
950
1060
|
```ts
|
|
951
1061
|
export interface ModelDefinition {
|
|
@@ -965,7 +1075,7 @@ export interface ModelDefinition {
|
|
|
965
1075
|
|
|
966
1076
|
## RigidBodyDefinition
|
|
967
1077
|
|
|
968
|
-
来源:`packages/sdk/src/index.ts:
|
|
1078
|
+
来源:`packages/sdk/src/index.ts:564`
|
|
969
1079
|
|
|
970
1080
|
```ts
|
|
971
1081
|
export interface RigidBodyDefinition {
|
|
@@ -986,7 +1096,7 @@ export interface RigidBodyDefinition {
|
|
|
986
1096
|
|
|
987
1097
|
## CharacterDefinition
|
|
988
1098
|
|
|
989
|
-
来源:`packages/sdk/src/index.ts:
|
|
1099
|
+
来源:`packages/sdk/src/index.ts:578`
|
|
990
1100
|
|
|
991
1101
|
```ts
|
|
992
1102
|
export interface CharacterDefinition {
|
|
@@ -1001,7 +1111,7 @@ export interface CharacterDefinition {
|
|
|
1001
1111
|
|
|
1002
1112
|
## UIElementDefinition
|
|
1003
1113
|
|
|
1004
|
-
来源:`packages/sdk/src/index.ts:
|
|
1114
|
+
来源:`packages/sdk/src/index.ts:586`
|
|
1005
1115
|
|
|
1006
1116
|
```ts
|
|
1007
1117
|
export interface UIElementDefinition {
|
|
@@ -1021,7 +1131,7 @@ export interface UIElementDefinition {
|
|
|
1021
1131
|
|
|
1022
1132
|
## SoundDefinition
|
|
1023
1133
|
|
|
1024
|
-
来源:`packages/sdk/src/index.ts:
|
|
1134
|
+
来源:`packages/sdk/src/index.ts:599`
|
|
1025
1135
|
|
|
1026
1136
|
```ts
|
|
1027
1137
|
export interface SoundDefinition {
|
|
@@ -1035,7 +1145,7 @@ export interface SoundDefinition {
|
|
|
1035
1145
|
|
|
1036
1146
|
## AudioBusDefinition
|
|
1037
1147
|
|
|
1038
|
-
来源:`packages/sdk/src/index.ts:
|
|
1148
|
+
来源:`packages/sdk/src/index.ts:606`
|
|
1039
1149
|
|
|
1040
1150
|
```ts
|
|
1041
1151
|
export interface AudioBusDefinition {
|
|
@@ -1046,7 +1156,7 @@ export interface AudioBusDefinition {
|
|
|
1046
1156
|
|
|
1047
1157
|
## SYSTEM_PHASES
|
|
1048
1158
|
|
|
1049
|
-
来源:`packages/sdk/src/index.ts:
|
|
1159
|
+
来源:`packages/sdk/src/index.ts:610`
|
|
1050
1160
|
|
|
1051
1161
|
```ts
|
|
1052
1162
|
SYSTEM_PHASES = [
|
|
@@ -1061,7 +1171,7 @@ SYSTEM_PHASES = [
|
|
|
1061
1171
|
|
|
1062
1172
|
## SystemPhase
|
|
1063
1173
|
|
|
1064
|
-
来源:`packages/sdk/src/index.ts:
|
|
1174
|
+
来源:`packages/sdk/src/index.ts:618`
|
|
1065
1175
|
|
|
1066
1176
|
```ts
|
|
1067
1177
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -1069,7 +1179,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
1069
1179
|
|
|
1070
1180
|
## Geometry
|
|
1071
1181
|
|
|
1072
|
-
来源:`packages/sdk/src/index.ts:
|
|
1182
|
+
来源:`packages/sdk/src/index.ts:619`
|
|
1073
1183
|
|
|
1074
1184
|
```ts
|
|
1075
1185
|
export type Geometry =
|
|
@@ -1080,7 +1190,7 @@ export type Geometry =
|
|
|
1080
1190
|
|
|
1081
1191
|
## GRAPH_TYPES
|
|
1082
1192
|
|
|
1083
|
-
来源:`packages/sdk/src/index.ts:
|
|
1193
|
+
来源:`packages/sdk/src/index.ts:623`
|
|
1084
1194
|
|
|
1085
1195
|
```ts
|
|
1086
1196
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1088,7 +1198,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1088
1198
|
|
|
1089
1199
|
## GraphType
|
|
1090
1200
|
|
|
1091
|
-
来源:`packages/sdk/src/index.ts:
|
|
1201
|
+
来源:`packages/sdk/src/index.ts:624`
|
|
1092
1202
|
|
|
1093
1203
|
```ts
|
|
1094
1204
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1096,7 +1206,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1096
1206
|
|
|
1097
1207
|
## GraphValue
|
|
1098
1208
|
|
|
1099
|
-
来源:`packages/sdk/src/index.ts:
|
|
1209
|
+
来源:`packages/sdk/src/index.ts:625`
|
|
1100
1210
|
|
|
1101
1211
|
```ts
|
|
1102
1212
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1104,7 +1214,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1104
1214
|
|
|
1105
1215
|
## GraphParameter
|
|
1106
1216
|
|
|
1107
|
-
来源:`packages/sdk/src/index.ts:
|
|
1217
|
+
来源:`packages/sdk/src/index.ts:626`
|
|
1108
1218
|
|
|
1109
1219
|
```ts
|
|
1110
1220
|
export interface GraphParameter {
|
|
@@ -1116,7 +1226,7 @@ export interface GraphParameter {
|
|
|
1116
1226
|
|
|
1117
1227
|
## GRAPH_INPUT_TYPES
|
|
1118
1228
|
|
|
1119
|
-
来源:`packages/sdk/src/index.ts:
|
|
1229
|
+
来源:`packages/sdk/src/index.ts:631`
|
|
1120
1230
|
|
|
1121
1231
|
```ts
|
|
1122
1232
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1130,7 +1240,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1130
1240
|
|
|
1131
1241
|
## GraphInputName
|
|
1132
1242
|
|
|
1133
|
-
来源:`packages/sdk/src/index.ts:
|
|
1243
|
+
来源:`packages/sdk/src/index.ts:638`
|
|
1134
1244
|
|
|
1135
1245
|
```ts
|
|
1136
1246
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1138,7 +1248,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1138
1248
|
|
|
1139
1249
|
## GRAPH_OPERATIONS
|
|
1140
1250
|
|
|
1141
|
-
来源:`packages/sdk/src/index.ts:
|
|
1251
|
+
来源:`packages/sdk/src/index.ts:639`
|
|
1142
1252
|
|
|
1143
1253
|
```ts
|
|
1144
1254
|
GRAPH_OPERATIONS = {
|
|
@@ -1150,7 +1260,7 @@ GRAPH_OPERATIONS = {
|
|
|
1150
1260
|
|
|
1151
1261
|
## GraphNode
|
|
1152
1262
|
|
|
1153
|
-
来源:`packages/sdk/src/index.ts:
|
|
1263
|
+
来源:`packages/sdk/src/index.ts:644`
|
|
1154
1264
|
|
|
1155
1265
|
```ts
|
|
1156
1266
|
export type GraphNode =
|
|
@@ -1177,7 +1287,7 @@ export type GraphNode =
|
|
|
1177
1287
|
|
|
1178
1288
|
## Graph
|
|
1179
1289
|
|
|
1180
|
-
来源:`packages/sdk/src/index.ts:
|
|
1290
|
+
来源:`packages/sdk/src/index.ts:664`
|
|
1181
1291
|
|
|
1182
1292
|
```ts
|
|
1183
1293
|
export interface Graph {
|
|
@@ -1189,7 +1299,7 @@ export interface Graph {
|
|
|
1189
1299
|
|
|
1190
1300
|
## MaterialGraphs
|
|
1191
1301
|
|
|
1192
|
-
来源:`packages/sdk/src/index.ts:
|
|
1302
|
+
来源:`packages/sdk/src/index.ts:669`
|
|
1193
1303
|
|
|
1194
1304
|
```ts
|
|
1195
1305
|
export interface MaterialGraphs {
|
|
@@ -1205,7 +1315,7 @@ export interface MaterialGraphs {
|
|
|
1205
1315
|
|
|
1206
1316
|
## VertexGraphs
|
|
1207
1317
|
|
|
1208
|
-
来源:`packages/sdk/src/index.ts:
|
|
1318
|
+
来源:`packages/sdk/src/index.ts:678`
|
|
1209
1319
|
|
|
1210
1320
|
```ts
|
|
1211
1321
|
export interface VertexGraphs {
|
|
@@ -1218,7 +1328,7 @@ export interface VertexGraphs {
|
|
|
1218
1328
|
|
|
1219
1329
|
## MaterialInput
|
|
1220
1330
|
|
|
1221
|
-
来源:`packages/sdk/src/index.ts:
|
|
1331
|
+
来源:`packages/sdk/src/index.ts:684`
|
|
1222
1332
|
|
|
1223
1333
|
```ts
|
|
1224
1334
|
export interface MaterialInput {
|
|
@@ -1252,7 +1362,7 @@ export interface MaterialInput {
|
|
|
1252
1362
|
|
|
1253
1363
|
## MaterialDefinition
|
|
1254
1364
|
|
|
1255
|
-
来源:`packages/sdk/src/index.ts:
|
|
1365
|
+
来源:`packages/sdk/src/index.ts:711`
|
|
1256
1366
|
|
|
1257
1367
|
```ts
|
|
1258
1368
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1262,7 +1372,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1262
1372
|
|
|
1263
1373
|
## PostProcessInput
|
|
1264
1374
|
|
|
1265
|
-
来源:`packages/sdk/src/index.ts:
|
|
1375
|
+
来源:`packages/sdk/src/index.ts:714`
|
|
1266
1376
|
|
|
1267
1377
|
```ts
|
|
1268
1378
|
export interface PostProcessInput {
|
|
@@ -1277,7 +1387,7 @@ export interface PostProcessInput {
|
|
|
1277
1387
|
|
|
1278
1388
|
## PostProcessDefinition
|
|
1279
1389
|
|
|
1280
|
-
来源:`packages/sdk/src/index.ts:
|
|
1390
|
+
来源:`packages/sdk/src/index.ts:722`
|
|
1281
1391
|
|
|
1282
1392
|
```ts
|
|
1283
1393
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1287,7 +1397,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1287
1397
|
|
|
1288
1398
|
## ComputeInput
|
|
1289
1399
|
|
|
1290
|
-
来源:`packages/sdk/src/index.ts:
|
|
1400
|
+
来源:`packages/sdk/src/index.ts:725`
|
|
1291
1401
|
|
|
1292
1402
|
```ts
|
|
1293
1403
|
export interface ComputeInput {
|
|
@@ -1303,7 +1413,7 @@ export interface ComputeInput {
|
|
|
1303
1413
|
|
|
1304
1414
|
## ComputeDefinition
|
|
1305
1415
|
|
|
1306
|
-
来源:`packages/sdk/src/index.ts:
|
|
1416
|
+
来源:`packages/sdk/src/index.ts:734`
|
|
1307
1417
|
|
|
1308
1418
|
```ts
|
|
1309
1419
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1313,7 +1423,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1313
1423
|
|
|
1314
1424
|
## AssetInput
|
|
1315
1425
|
|
|
1316
|
-
来源:`packages/sdk/src/index.ts:
|
|
1426
|
+
来源:`packages/sdk/src/index.ts:737`
|
|
1317
1427
|
|
|
1318
1428
|
```ts
|
|
1319
1429
|
export interface AssetInput {
|
|
@@ -1330,7 +1440,7 @@ export interface AssetInput {
|
|
|
1330
1440
|
|
|
1331
1441
|
## AssetDefinition
|
|
1332
1442
|
|
|
1333
|
-
来源:`packages/sdk/src/index.ts:
|
|
1443
|
+
来源:`packages/sdk/src/index.ts:747`
|
|
1334
1444
|
|
|
1335
1445
|
```ts
|
|
1336
1446
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1340,7 +1450,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1340
1450
|
|
|
1341
1451
|
## MeshDefinition
|
|
1342
1452
|
|
|
1343
|
-
来源:`packages/sdk/src/index.ts:
|
|
1453
|
+
来源:`packages/sdk/src/index.ts:750`
|
|
1344
1454
|
|
|
1345
1455
|
```ts
|
|
1346
1456
|
export interface MeshDefinition {
|
|
@@ -1353,7 +1463,7 @@ export interface MeshDefinition {
|
|
|
1353
1463
|
|
|
1354
1464
|
## LightDefinition
|
|
1355
1465
|
|
|
1356
|
-
来源:`packages/sdk/src/index.ts:
|
|
1466
|
+
来源:`packages/sdk/src/index.ts:756`
|
|
1357
1467
|
|
|
1358
1468
|
```ts
|
|
1359
1469
|
export interface LightDefinition {
|
|
@@ -1375,7 +1485,7 @@ export interface LightDefinition {
|
|
|
1375
1485
|
|
|
1376
1486
|
## EntityInput
|
|
1377
1487
|
|
|
1378
|
-
来源:`packages/sdk/src/index.ts:
|
|
1488
|
+
来源:`packages/sdk/src/index.ts:771`
|
|
1379
1489
|
|
|
1380
1490
|
```ts
|
|
1381
1491
|
export interface EntityInput {
|
|
@@ -1394,7 +1504,7 @@ export interface EntityInput {
|
|
|
1394
1504
|
|
|
1395
1505
|
## PrefabInput
|
|
1396
1506
|
|
|
1397
|
-
来源:`packages/sdk/src/index.ts:
|
|
1507
|
+
来源:`packages/sdk/src/index.ts:783`
|
|
1398
1508
|
|
|
1399
1509
|
```ts
|
|
1400
1510
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1404,7 +1514,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1404
1514
|
|
|
1405
1515
|
## PrefabDefinition
|
|
1406
1516
|
|
|
1407
|
-
来源:`packages/sdk/src/index.ts:
|
|
1517
|
+
来源:`packages/sdk/src/index.ts:786`
|
|
1408
1518
|
|
|
1409
1519
|
```ts
|
|
1410
1520
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1414,7 +1524,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1414
1524
|
|
|
1415
1525
|
## SceneInput
|
|
1416
1526
|
|
|
1417
|
-
来源:`packages/sdk/src/index.ts:
|
|
1527
|
+
来源:`packages/sdk/src/index.ts:789`
|
|
1418
1528
|
|
|
1419
1529
|
```ts
|
|
1420
1530
|
export interface SceneInput {
|
|
@@ -1446,7 +1556,7 @@ export interface SceneInput {
|
|
|
1446
1556
|
|
|
1447
1557
|
## SceneDefinition
|
|
1448
1558
|
|
|
1449
|
-
来源:`packages/sdk/src/index.ts:
|
|
1559
|
+
来源:`packages/sdk/src/index.ts:814`
|
|
1450
1560
|
|
|
1451
1561
|
```ts
|
|
1452
1562
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1456,7 +1566,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1456
1566
|
|
|
1457
1567
|
## SystemInput
|
|
1458
1568
|
|
|
1459
|
-
来源:`packages/sdk/src/index.ts:
|
|
1569
|
+
来源:`packages/sdk/src/index.ts:817`
|
|
1460
1570
|
|
|
1461
1571
|
```ts
|
|
1462
1572
|
export interface SystemInput {
|
|
@@ -1473,7 +1583,7 @@ export interface SystemInput {
|
|
|
1473
1583
|
|
|
1474
1584
|
## SystemDefinition
|
|
1475
1585
|
|
|
1476
|
-
来源:`packages/sdk/src/index.ts:
|
|
1586
|
+
来源:`packages/sdk/src/index.ts:827`
|
|
1477
1587
|
|
|
1478
1588
|
```ts
|
|
1479
1589
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1483,7 +1593,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1483
1593
|
|
|
1484
1594
|
## GameInput
|
|
1485
1595
|
|
|
1486
|
-
来源:`packages/sdk/src/index.ts:
|
|
1596
|
+
来源:`packages/sdk/src/index.ts:830`
|
|
1487
1597
|
|
|
1488
1598
|
```ts
|
|
1489
1599
|
export interface GameInput {
|
|
@@ -1509,7 +1619,7 @@ export interface GameInput {
|
|
|
1509
1619
|
|
|
1510
1620
|
## GameDefinition
|
|
1511
1621
|
|
|
1512
|
-
来源:`packages/sdk/src/index.ts:
|
|
1622
|
+
来源:`packages/sdk/src/index.ts:849`
|
|
1513
1623
|
|
|
1514
1624
|
```ts
|
|
1515
1625
|
export interface GameDefinition extends GameInput {
|
|
@@ -1519,7 +1629,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1519
1629
|
|
|
1520
1630
|
## GameInstance
|
|
1521
1631
|
|
|
1522
|
-
来源:`packages/sdk/src/index.ts:
|
|
1632
|
+
来源:`packages/sdk/src/index.ts:852`
|
|
1523
1633
|
|
|
1524
1634
|
```ts
|
|
1525
1635
|
export interface GameInstance {
|
|
@@ -1530,7 +1640,7 @@ export interface GameInstance {
|
|
|
1530
1640
|
|
|
1531
1641
|
## defineComponent
|
|
1532
1642
|
|
|
1533
|
-
来源:`packages/sdk/src/index.ts:
|
|
1643
|
+
来源:`packages/sdk/src/index.ts:856`
|
|
1534
1644
|
|
|
1535
1645
|
```ts
|
|
1536
1646
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1541,7 +1651,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1541
1651
|
|
|
1542
1652
|
## defineMaterial
|
|
1543
1653
|
|
|
1544
|
-
来源:`packages/sdk/src/index.ts:
|
|
1654
|
+
来源:`packages/sdk/src/index.ts:862`
|
|
1545
1655
|
|
|
1546
1656
|
```ts
|
|
1547
1657
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1549,7 +1659,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1549
1659
|
|
|
1550
1660
|
## definePostProcess
|
|
1551
1661
|
|
|
1552
|
-
来源:`packages/sdk/src/index.ts:
|
|
1662
|
+
来源:`packages/sdk/src/index.ts:865`
|
|
1553
1663
|
|
|
1554
1664
|
```ts
|
|
1555
1665
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1557,7 +1667,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1557
1667
|
|
|
1558
1668
|
## defineCompute
|
|
1559
1669
|
|
|
1560
|
-
来源:`packages/sdk/src/index.ts:
|
|
1670
|
+
来源:`packages/sdk/src/index.ts:868`
|
|
1561
1671
|
|
|
1562
1672
|
```ts
|
|
1563
1673
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1565,7 +1675,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1565
1675
|
|
|
1566
1676
|
## defineAsset
|
|
1567
1677
|
|
|
1568
|
-
来源:`packages/sdk/src/index.ts:
|
|
1678
|
+
来源:`packages/sdk/src/index.ts:871`
|
|
1569
1679
|
|
|
1570
1680
|
```ts
|
|
1571
1681
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1573,7 +1683,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1573
1683
|
|
|
1574
1684
|
## definePrefab
|
|
1575
1685
|
|
|
1576
|
-
来源:`packages/sdk/src/index.ts:
|
|
1686
|
+
来源:`packages/sdk/src/index.ts:874`
|
|
1577
1687
|
|
|
1578
1688
|
```ts
|
|
1579
1689
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1581,7 +1691,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1581
1691
|
|
|
1582
1692
|
## defineScene
|
|
1583
1693
|
|
|
1584
|
-
来源:`packages/sdk/src/index.ts:
|
|
1694
|
+
来源:`packages/sdk/src/index.ts:877`
|
|
1585
1695
|
|
|
1586
1696
|
```ts
|
|
1587
1697
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1589,7 +1699,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1589
1699
|
|
|
1590
1700
|
## defineSystem
|
|
1591
1701
|
|
|
1592
|
-
来源:`packages/sdk/src/index.ts:
|
|
1702
|
+
来源:`packages/sdk/src/index.ts:880`
|
|
1593
1703
|
|
|
1594
1704
|
```ts
|
|
1595
1705
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1597,7 +1707,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1597
1707
|
|
|
1598
1708
|
## defineGame
|
|
1599
1709
|
|
|
1600
|
-
来源:`packages/sdk/src/index.ts:
|
|
1710
|
+
来源:`packages/sdk/src/index.ts:883`
|
|
1601
1711
|
|
|
1602
1712
|
```ts
|
|
1603
1713
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1605,7 +1715,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1605
1715
|
|
|
1606
1716
|
## instantiateGame
|
|
1607
1717
|
|
|
1608
|
-
来源:`packages/sdk/src/index.ts:
|
|
1718
|
+
来源:`packages/sdk/src/index.ts:887`
|
|
1609
1719
|
|
|
1610
1720
|
```ts
|
|
1611
1721
|
export function instantiateGame(
|