pelican-engine 0.3.14 → 0.3.16
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 +31 -5
- package/distribution.json +15 -14
- package/docs/STATUS.md +2 -2
- package/docs/api/REFERENCE.md +148 -92
- package/docs/api/index.json +143 -95
- package/docs/npm/GAME-AUTHOR.md +31 -5
- package/engine.manifest.json +1 -1
- package/lib/renderer/browser.js +24 -3
- package/lib/renderer/geometry.js +26 -16
- package/lib/renderer/rope-visuals.js +122 -0
- package/lib/sdk/index.d.ts +41 -3
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +43 -9
- package/lib/simulation/rope.js +116 -5
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.16 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.16"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -276,9 +276,39 @@ export type RopeCollider =
|
|
|
276
276
|
export interface RopeBodyCollider { readonly id: string; readonly entity: string }
|
|
277
277
|
```
|
|
278
278
|
|
|
279
|
+
## RopeVisualOptions
|
|
280
|
+
|
|
281
|
+
来源:`packages/sdk/src/index.ts:129`
|
|
282
|
+
|
|
283
|
+
```ts
|
|
284
|
+
export interface RopeVisualOptions {
|
|
285
|
+
material: string;
|
|
286
|
+
radius?: number;
|
|
287
|
+
radialSegments?: number;
|
|
288
|
+
castShadow?: boolean;
|
|
289
|
+
receiveShadow?: boolean;
|
|
290
|
+
}
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
## RopeVisualState
|
|
294
|
+
|
|
295
|
+
来源:`packages/sdk/src/index.ts:137`
|
|
296
|
+
|
|
297
|
+
```ts
|
|
298
|
+
export interface RopeVisualState {
|
|
299
|
+
id: string;
|
|
300
|
+
material: string;
|
|
301
|
+
radius: number;
|
|
302
|
+
radialSegments: number;
|
|
303
|
+
castShadow: boolean;
|
|
304
|
+
receiveShadow: boolean;
|
|
305
|
+
positions: Vec3[];
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
279
309
|
## RopeDefinition
|
|
280
310
|
|
|
281
|
-
来源:`packages/sdk/src/index.ts:
|
|
311
|
+
来源:`packages/sdk/src/index.ts:146`
|
|
282
312
|
|
|
283
313
|
```ts
|
|
284
314
|
export interface RopeDefinition {
|
|
@@ -293,6 +323,10 @@ export interface RopeDefinition {
|
|
|
293
323
|
autoStep?: boolean;
|
|
294
324
|
/** Automatically sample and react to existing dynamic, non-trigger sphere bodies. Requires autoStep. */
|
|
295
325
|
bodyColliders?: readonly RopeBodyCollider[];
|
|
326
|
+
/** Resolve sphere contacts on segment interiors; defaults to true for new ropes. */
|
|
327
|
+
segmentCollisions?: boolean;
|
|
328
|
+
/** Optional segmented presentation using an already-declared material id. */
|
|
329
|
+
visual?: RopeVisualOptions;
|
|
296
330
|
substeps?: number;
|
|
297
331
|
iterations?: number;
|
|
298
332
|
damping?: number;
|
|
@@ -303,7 +337,7 @@ export interface RopeDefinition {
|
|
|
303
337
|
|
|
304
338
|
## RopeContact
|
|
305
339
|
|
|
306
|
-
来源:`packages/sdk/src/index.ts:
|
|
340
|
+
来源:`packages/sdk/src/index.ts:169`
|
|
307
341
|
|
|
308
342
|
```ts
|
|
309
343
|
export interface RopeContact {
|
|
@@ -315,16 +349,36 @@ export interface RopeContact {
|
|
|
315
349
|
}
|
|
316
350
|
```
|
|
317
351
|
|
|
352
|
+
## RopeSegmentContact
|
|
353
|
+
|
|
354
|
+
来源:`packages/sdk/src/index.ts:177`
|
|
355
|
+
|
|
356
|
+
```ts
|
|
357
|
+
export interface RopeSegmentContact {
|
|
358
|
+
tick: number;
|
|
359
|
+
/** Zero-based index of the first endpoint; the second is segment + 1. */
|
|
360
|
+
segment: number;
|
|
361
|
+
colliderId: string;
|
|
362
|
+
/** Last closest-point fraction from the first endpoint toward the second. */
|
|
363
|
+
fraction: number;
|
|
364
|
+
penetration: number;
|
|
365
|
+
reactionImpulse?: Vec3;
|
|
366
|
+
reactionAngularImpulse?: Vec3;
|
|
367
|
+
}
|
|
368
|
+
```
|
|
369
|
+
|
|
318
370
|
## RopeState
|
|
319
371
|
|
|
320
|
-
来源:`packages/sdk/src/index.ts:
|
|
372
|
+
来源:`packages/sdk/src/index.ts:188`
|
|
321
373
|
|
|
322
374
|
```ts
|
|
323
375
|
export interface RopeState {
|
|
324
376
|
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
377
|
+
segmentCollisions: boolean;
|
|
325
378
|
positions: Vec3[]; velocities: Vec3[];
|
|
326
379
|
anchors: { index: number; position: Vec3 }[];
|
|
327
380
|
contacts: RopeContact[];
|
|
381
|
+
segmentContacts: RopeSegmentContact[];
|
|
328
382
|
maxDistanceError: number;
|
|
329
383
|
resources: { particles: number; constraints: number; anchors: number; colliders: number };
|
|
330
384
|
}
|
|
@@ -332,7 +386,7 @@ export interface RopeState {
|
|
|
332
386
|
|
|
333
387
|
## RopeService
|
|
334
388
|
|
|
335
|
-
来源:`packages/sdk/src/index.ts:
|
|
389
|
+
来源:`packages/sdk/src/index.ts:198`
|
|
336
390
|
|
|
337
391
|
```ts
|
|
338
392
|
export interface RopeService {
|
|
@@ -340,6 +394,8 @@ export interface RopeService {
|
|
|
340
394
|
/** Explicit ticks for manual ropes only. Auto-stepped ropes reject this call. A failed batch leaves the rope unchanged. */
|
|
341
395
|
step(id: string, ticks?: number): RopeState;
|
|
342
396
|
inspect(id: string): RopeState;
|
|
397
|
+
/** Detached visual descriptions, sorted by rope id; empty when no visuals are requested. */
|
|
398
|
+
visuals(): readonly RopeVisualState[];
|
|
343
399
|
setColliders(id: string, colliders: readonly RopeCollider[]): void;
|
|
344
400
|
setAnchor(id: string, index: number, position: Vec3): void;
|
|
345
401
|
releaseAnchor(id: string, index: number): void;
|
|
@@ -351,7 +407,7 @@ export interface RopeService {
|
|
|
351
407
|
|
|
352
408
|
## NavigationCell
|
|
353
409
|
|
|
354
|
-
来源:`packages/sdk/src/index.ts:
|
|
410
|
+
来源:`packages/sdk/src/index.ts:215`
|
|
355
411
|
|
|
356
412
|
```ts
|
|
357
413
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
@@ -359,7 +415,7 @@ export interface NavigationCell { readonly x: number; readonly y: number }
|
|
|
359
415
|
|
|
360
416
|
## NavigationObstacleUpdate
|
|
361
417
|
|
|
362
|
-
来源:`packages/sdk/src/index.ts:
|
|
418
|
+
来源:`packages/sdk/src/index.ts:217`
|
|
363
419
|
|
|
364
420
|
```ts
|
|
365
421
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -367,7 +423,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
367
423
|
|
|
368
424
|
## NavigationGrid
|
|
369
425
|
|
|
370
|
-
来源:`packages/sdk/src/index.ts:
|
|
426
|
+
来源:`packages/sdk/src/index.ts:218`
|
|
371
427
|
|
|
372
428
|
```ts
|
|
373
429
|
export interface NavigationGrid {
|
|
@@ -383,7 +439,7 @@ export interface NavigationGrid {
|
|
|
383
439
|
|
|
384
440
|
## NavigationService
|
|
385
441
|
|
|
386
|
-
来源:`packages/sdk/src/index.ts:
|
|
442
|
+
来源:`packages/sdk/src/index.ts:227`
|
|
387
443
|
|
|
388
444
|
```ts
|
|
389
445
|
export interface NavigationService {
|
|
@@ -402,7 +458,7 @@ export interface NavigationService {
|
|
|
402
458
|
|
|
403
459
|
## RenderMode
|
|
404
460
|
|
|
405
|
-
来源:`packages/sdk/src/index.ts:
|
|
461
|
+
来源:`packages/sdk/src/index.ts:239`
|
|
406
462
|
|
|
407
463
|
```ts
|
|
408
464
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -410,7 +466,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
410
466
|
|
|
411
467
|
## RenderCapabilities
|
|
412
468
|
|
|
413
|
-
来源:`packages/sdk/src/index.ts:
|
|
469
|
+
来源:`packages/sdk/src/index.ts:240`
|
|
414
470
|
|
|
415
471
|
```ts
|
|
416
472
|
export interface RenderCapabilities {
|
|
@@ -422,7 +478,7 @@ export interface RenderCapabilities {
|
|
|
422
478
|
|
|
423
479
|
## RenderSettings
|
|
424
480
|
|
|
425
|
-
来源:`packages/sdk/src/index.ts:
|
|
481
|
+
来源:`packages/sdk/src/index.ts:245`
|
|
426
482
|
|
|
427
483
|
```ts
|
|
428
484
|
export interface RenderSettings {
|
|
@@ -440,7 +496,7 @@ export interface RenderSettings {
|
|
|
440
496
|
|
|
441
497
|
## RenderService
|
|
442
498
|
|
|
443
|
-
来源:`packages/sdk/src/index.ts:
|
|
499
|
+
来源:`packages/sdk/src/index.ts:256`
|
|
444
500
|
|
|
445
501
|
```ts
|
|
446
502
|
export interface RenderService {
|
|
@@ -457,7 +513,7 @@ export interface RenderService {
|
|
|
457
513
|
|
|
458
514
|
## MaterialBufferInput
|
|
459
515
|
|
|
460
|
-
来源:`packages/sdk/src/index.ts:
|
|
516
|
+
来源:`packages/sdk/src/index.ts:266`
|
|
461
517
|
|
|
462
518
|
```ts
|
|
463
519
|
export interface MaterialBufferInput {
|
|
@@ -473,7 +529,7 @@ export interface MaterialBufferInput {
|
|
|
473
529
|
|
|
474
530
|
## RenderBufferReference
|
|
475
531
|
|
|
476
|
-
来源:`packages/sdk/src/index.ts:
|
|
532
|
+
来源:`packages/sdk/src/index.ts:275`
|
|
477
533
|
|
|
478
534
|
```ts
|
|
479
535
|
export interface RenderBufferReference {
|
|
@@ -485,7 +541,7 @@ export interface RenderBufferReference {
|
|
|
485
541
|
|
|
486
542
|
## RenderBufferBindings
|
|
487
543
|
|
|
488
|
-
来源:`packages/sdk/src/index.ts:
|
|
544
|
+
来源:`packages/sdk/src/index.ts:280`
|
|
489
545
|
|
|
490
546
|
```ts
|
|
491
547
|
export interface RenderBufferBindings {
|
|
@@ -497,7 +553,7 @@ export interface RenderBufferBindings {
|
|
|
497
553
|
|
|
498
554
|
## MaterialTextureInput
|
|
499
555
|
|
|
500
|
-
来源:`packages/sdk/src/index.ts:
|
|
556
|
+
来源:`packages/sdk/src/index.ts:285`
|
|
501
557
|
|
|
502
558
|
```ts
|
|
503
559
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -510,7 +566,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
510
566
|
|
|
511
567
|
## RenderTextureReference
|
|
512
568
|
|
|
513
|
-
来源:`packages/sdk/src/index.ts:
|
|
569
|
+
来源:`packages/sdk/src/index.ts:291`
|
|
514
570
|
|
|
515
571
|
```ts
|
|
516
572
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -521,7 +577,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
521
577
|
|
|
522
578
|
## RenderTextureBindings
|
|
523
579
|
|
|
524
|
-
来源:`packages/sdk/src/index.ts:
|
|
580
|
+
来源:`packages/sdk/src/index.ts:295`
|
|
525
581
|
|
|
526
582
|
```ts
|
|
527
583
|
export interface RenderTextureBindings {
|
|
@@ -533,7 +589,7 @@ export interface RenderTextureBindings {
|
|
|
533
589
|
|
|
534
590
|
## PostProcessState
|
|
535
591
|
|
|
536
|
-
来源:`packages/sdk/src/index.ts:
|
|
592
|
+
来源:`packages/sdk/src/index.ts:300`
|
|
537
593
|
|
|
538
594
|
```ts
|
|
539
595
|
export interface PostProcessState {
|
|
@@ -545,7 +601,7 @@ export interface PostProcessState {
|
|
|
545
601
|
|
|
546
602
|
## PostProcessService
|
|
547
603
|
|
|
548
|
-
来源:`packages/sdk/src/index.ts:
|
|
604
|
+
来源:`packages/sdk/src/index.ts:305`
|
|
549
605
|
|
|
550
606
|
```ts
|
|
551
607
|
export interface PostProcessService {
|
|
@@ -562,7 +618,7 @@ export interface PostProcessService {
|
|
|
562
618
|
|
|
563
619
|
## ComputeBufferHandle
|
|
564
620
|
|
|
565
|
-
来源:`packages/sdk/src/index.ts:
|
|
621
|
+
来源:`packages/sdk/src/index.ts:315`
|
|
566
622
|
|
|
567
623
|
```ts
|
|
568
624
|
export interface ComputeBufferHandle {
|
|
@@ -574,7 +630,7 @@ export interface ComputeBufferHandle {
|
|
|
574
630
|
|
|
575
631
|
## ComputeTaskHandle
|
|
576
632
|
|
|
577
|
-
来源:`packages/sdk/src/index.ts:
|
|
633
|
+
来源:`packages/sdk/src/index.ts:320`
|
|
578
634
|
|
|
579
635
|
```ts
|
|
580
636
|
export interface ComputeTaskHandle {
|
|
@@ -585,7 +641,7 @@ export interface ComputeTaskHandle {
|
|
|
585
641
|
|
|
586
642
|
## ComputeBufferInput
|
|
587
643
|
|
|
588
|
-
来源:`packages/sdk/src/index.ts:
|
|
644
|
+
来源:`packages/sdk/src/index.ts:324`
|
|
589
645
|
|
|
590
646
|
```ts
|
|
591
647
|
export interface ComputeBufferInput {
|
|
@@ -598,7 +654,7 @@ export interface ComputeBufferInput {
|
|
|
598
654
|
|
|
599
655
|
## ComputeTextureHandle
|
|
600
656
|
|
|
601
|
-
来源:`packages/sdk/src/index.ts:
|
|
657
|
+
来源:`packages/sdk/src/index.ts:330`
|
|
602
658
|
|
|
603
659
|
```ts
|
|
604
660
|
export interface ComputeTextureHandle {
|
|
@@ -611,7 +667,7 @@ export interface ComputeTextureHandle {
|
|
|
611
667
|
|
|
612
668
|
## ComputeTextureSize
|
|
613
669
|
|
|
614
|
-
来源:`packages/sdk/src/index.ts:
|
|
670
|
+
来源:`packages/sdk/src/index.ts:336`
|
|
615
671
|
|
|
616
672
|
```ts
|
|
617
673
|
export interface ComputeTextureSize {
|
|
@@ -622,7 +678,7 @@ export interface ComputeTextureSize {
|
|
|
622
678
|
|
|
623
679
|
## ComputeTextureDataInput
|
|
624
680
|
|
|
625
|
-
来源:`packages/sdk/src/index.ts:
|
|
681
|
+
来源:`packages/sdk/src/index.ts:340`
|
|
626
682
|
|
|
627
683
|
```ts
|
|
628
684
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -635,7 +691,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
635
691
|
|
|
636
692
|
## ComputeTextureAssetInput
|
|
637
693
|
|
|
638
|
-
来源:`packages/sdk/src/index.ts:
|
|
694
|
+
来源:`packages/sdk/src/index.ts:346`
|
|
639
695
|
|
|
640
696
|
```ts
|
|
641
697
|
export interface ComputeTextureAssetInput {
|
|
@@ -649,7 +705,7 @@ export interface ComputeTextureAssetInput {
|
|
|
649
705
|
|
|
650
706
|
## ComputeTextureInput
|
|
651
707
|
|
|
652
|
-
来源:`packages/sdk/src/index.ts:
|
|
708
|
+
来源:`packages/sdk/src/index.ts:353`
|
|
653
709
|
|
|
654
710
|
```ts
|
|
655
711
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -657,7 +713,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
657
713
|
|
|
658
714
|
## ComputeTextureBinding
|
|
659
715
|
|
|
660
|
-
来源:`packages/sdk/src/index.ts:
|
|
716
|
+
来源:`packages/sdk/src/index.ts:354`
|
|
661
717
|
|
|
662
718
|
```ts
|
|
663
719
|
export interface ComputeTextureBinding {
|
|
@@ -670,7 +726,7 @@ export interface ComputeTextureBinding {
|
|
|
670
726
|
|
|
671
727
|
## ComputeDispatchInput
|
|
672
728
|
|
|
673
|
-
来源:`packages/sdk/src/index.ts:
|
|
729
|
+
来源:`packages/sdk/src/index.ts:360`
|
|
674
730
|
|
|
675
731
|
```ts
|
|
676
732
|
export interface ComputeDispatchInput {
|
|
@@ -689,7 +745,7 @@ export interface ComputeDispatchInput {
|
|
|
689
745
|
|
|
690
746
|
## ComputeTaskState
|
|
691
747
|
|
|
692
|
-
来源:`packages/sdk/src/index.ts:
|
|
748
|
+
来源:`packages/sdk/src/index.ts:372`
|
|
693
749
|
|
|
694
750
|
```ts
|
|
695
751
|
export interface ComputeTaskState {
|
|
@@ -700,7 +756,7 @@ export interface ComputeTaskState {
|
|
|
700
756
|
|
|
701
757
|
## ComputeService
|
|
702
758
|
|
|
703
|
-
来源:`packages/sdk/src/index.ts:
|
|
759
|
+
来源:`packages/sdk/src/index.ts:376`
|
|
704
760
|
|
|
705
761
|
```ts
|
|
706
762
|
export interface ComputeService {
|
|
@@ -727,7 +783,7 @@ export interface ComputeService {
|
|
|
727
783
|
|
|
728
784
|
## InputService
|
|
729
785
|
|
|
730
|
-
来源:`packages/sdk/src/index.ts:
|
|
786
|
+
来源:`packages/sdk/src/index.ts:396`
|
|
731
787
|
|
|
732
788
|
```ts
|
|
733
789
|
export interface InputService {
|
|
@@ -740,7 +796,7 @@ export interface InputService {
|
|
|
740
796
|
|
|
741
797
|
## PhysicsService
|
|
742
798
|
|
|
743
|
-
来源:`packages/sdk/src/index.ts:
|
|
799
|
+
来源:`packages/sdk/src/index.ts:402`
|
|
744
800
|
|
|
745
801
|
```ts
|
|
746
802
|
export interface PhysicsService {
|
|
@@ -769,7 +825,7 @@ export interface PhysicsService {
|
|
|
769
825
|
|
|
770
826
|
## AnimationService
|
|
771
827
|
|
|
772
|
-
来源:`packages/sdk/src/index.ts:
|
|
828
|
+
来源:`packages/sdk/src/index.ts:424`
|
|
773
829
|
|
|
774
830
|
```ts
|
|
775
831
|
export interface AnimationService {
|
|
@@ -788,7 +844,7 @@ export interface AnimationService {
|
|
|
788
844
|
|
|
789
845
|
## CameraService
|
|
790
846
|
|
|
791
|
-
来源:`packages/sdk/src/index.ts:
|
|
847
|
+
来源:`packages/sdk/src/index.ts:436`
|
|
792
848
|
|
|
793
849
|
```ts
|
|
794
850
|
export interface CameraService {
|
|
@@ -808,7 +864,7 @@ export interface CameraService {
|
|
|
808
864
|
|
|
809
865
|
## UIService
|
|
810
866
|
|
|
811
|
-
来源:`packages/sdk/src/index.ts:
|
|
867
|
+
来源:`packages/sdk/src/index.ts:449`
|
|
812
868
|
|
|
813
869
|
```ts
|
|
814
870
|
export interface UIService {
|
|
@@ -820,7 +876,7 @@ export interface UIService {
|
|
|
820
876
|
|
|
821
877
|
## AudioService
|
|
822
878
|
|
|
823
|
-
来源:`packages/sdk/src/index.ts:
|
|
879
|
+
来源:`packages/sdk/src/index.ts:454`
|
|
824
880
|
|
|
825
881
|
```ts
|
|
826
882
|
export interface AudioService {
|
|
@@ -842,7 +898,7 @@ export interface AudioService {
|
|
|
842
898
|
|
|
843
899
|
## StorageService
|
|
844
900
|
|
|
845
|
-
来源:`packages/sdk/src/index.ts:
|
|
901
|
+
来源:`packages/sdk/src/index.ts:469`
|
|
846
902
|
|
|
847
903
|
```ts
|
|
848
904
|
export interface StorageService {
|
|
@@ -858,7 +914,7 @@ export interface StorageService {
|
|
|
858
914
|
|
|
859
915
|
## SceneService
|
|
860
916
|
|
|
861
|
-
来源:`packages/sdk/src/index.ts:
|
|
917
|
+
来源:`packages/sdk/src/index.ts:478`
|
|
862
918
|
|
|
863
919
|
```ts
|
|
864
920
|
export interface SceneService {
|
|
@@ -869,7 +925,7 @@ export interface SceneService {
|
|
|
869
925
|
|
|
870
926
|
## ModelDefinition
|
|
871
927
|
|
|
872
|
-
来源:`packages/sdk/src/index.ts:
|
|
928
|
+
来源:`packages/sdk/src/index.ts:482`
|
|
873
929
|
|
|
874
930
|
```ts
|
|
875
931
|
export interface ModelDefinition {
|
|
@@ -889,7 +945,7 @@ export interface ModelDefinition {
|
|
|
889
945
|
|
|
890
946
|
## RigidBodyDefinition
|
|
891
947
|
|
|
892
|
-
来源:`packages/sdk/src/index.ts:
|
|
948
|
+
来源:`packages/sdk/src/index.ts:495`
|
|
893
949
|
|
|
894
950
|
```ts
|
|
895
951
|
export interface RigidBodyDefinition {
|
|
@@ -910,7 +966,7 @@ export interface RigidBodyDefinition {
|
|
|
910
966
|
|
|
911
967
|
## CharacterDefinition
|
|
912
968
|
|
|
913
|
-
来源:`packages/sdk/src/index.ts:
|
|
969
|
+
来源:`packages/sdk/src/index.ts:509`
|
|
914
970
|
|
|
915
971
|
```ts
|
|
916
972
|
export interface CharacterDefinition {
|
|
@@ -925,7 +981,7 @@ export interface CharacterDefinition {
|
|
|
925
981
|
|
|
926
982
|
## UIElementDefinition
|
|
927
983
|
|
|
928
|
-
来源:`packages/sdk/src/index.ts:
|
|
984
|
+
来源:`packages/sdk/src/index.ts:517`
|
|
929
985
|
|
|
930
986
|
```ts
|
|
931
987
|
export interface UIElementDefinition {
|
|
@@ -945,7 +1001,7 @@ export interface UIElementDefinition {
|
|
|
945
1001
|
|
|
946
1002
|
## SoundDefinition
|
|
947
1003
|
|
|
948
|
-
来源:`packages/sdk/src/index.ts:
|
|
1004
|
+
来源:`packages/sdk/src/index.ts:530`
|
|
949
1005
|
|
|
950
1006
|
```ts
|
|
951
1007
|
export interface SoundDefinition {
|
|
@@ -959,7 +1015,7 @@ export interface SoundDefinition {
|
|
|
959
1015
|
|
|
960
1016
|
## AudioBusDefinition
|
|
961
1017
|
|
|
962
|
-
来源:`packages/sdk/src/index.ts:
|
|
1018
|
+
来源:`packages/sdk/src/index.ts:537`
|
|
963
1019
|
|
|
964
1020
|
```ts
|
|
965
1021
|
export interface AudioBusDefinition {
|
|
@@ -970,7 +1026,7 @@ export interface AudioBusDefinition {
|
|
|
970
1026
|
|
|
971
1027
|
## SYSTEM_PHASES
|
|
972
1028
|
|
|
973
|
-
来源:`packages/sdk/src/index.ts:
|
|
1029
|
+
来源:`packages/sdk/src/index.ts:541`
|
|
974
1030
|
|
|
975
1031
|
```ts
|
|
976
1032
|
SYSTEM_PHASES = [
|
|
@@ -985,7 +1041,7 @@ SYSTEM_PHASES = [
|
|
|
985
1041
|
|
|
986
1042
|
## SystemPhase
|
|
987
1043
|
|
|
988
|
-
来源:`packages/sdk/src/index.ts:
|
|
1044
|
+
来源:`packages/sdk/src/index.ts:549`
|
|
989
1045
|
|
|
990
1046
|
```ts
|
|
991
1047
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -993,7 +1049,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
993
1049
|
|
|
994
1050
|
## Geometry
|
|
995
1051
|
|
|
996
|
-
来源:`packages/sdk/src/index.ts:
|
|
1052
|
+
来源:`packages/sdk/src/index.ts:550`
|
|
997
1053
|
|
|
998
1054
|
```ts
|
|
999
1055
|
export type Geometry =
|
|
@@ -1004,7 +1060,7 @@ export type Geometry =
|
|
|
1004
1060
|
|
|
1005
1061
|
## GRAPH_TYPES
|
|
1006
1062
|
|
|
1007
|
-
来源:`packages/sdk/src/index.ts:
|
|
1063
|
+
来源:`packages/sdk/src/index.ts:554`
|
|
1008
1064
|
|
|
1009
1065
|
```ts
|
|
1010
1066
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -1012,7 +1068,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
1012
1068
|
|
|
1013
1069
|
## GraphType
|
|
1014
1070
|
|
|
1015
|
-
来源:`packages/sdk/src/index.ts:
|
|
1071
|
+
来源:`packages/sdk/src/index.ts:555`
|
|
1016
1072
|
|
|
1017
1073
|
```ts
|
|
1018
1074
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -1020,7 +1076,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
1020
1076
|
|
|
1021
1077
|
## GraphValue
|
|
1022
1078
|
|
|
1023
|
-
来源:`packages/sdk/src/index.ts:
|
|
1079
|
+
来源:`packages/sdk/src/index.ts:556`
|
|
1024
1080
|
|
|
1025
1081
|
```ts
|
|
1026
1082
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -1028,7 +1084,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
1028
1084
|
|
|
1029
1085
|
## GraphParameter
|
|
1030
1086
|
|
|
1031
|
-
来源:`packages/sdk/src/index.ts:
|
|
1087
|
+
来源:`packages/sdk/src/index.ts:557`
|
|
1032
1088
|
|
|
1033
1089
|
```ts
|
|
1034
1090
|
export interface GraphParameter {
|
|
@@ -1040,7 +1096,7 @@ export interface GraphParameter {
|
|
|
1040
1096
|
|
|
1041
1097
|
## GRAPH_INPUT_TYPES
|
|
1042
1098
|
|
|
1043
|
-
来源:`packages/sdk/src/index.ts:
|
|
1099
|
+
来源:`packages/sdk/src/index.ts:562`
|
|
1044
1100
|
|
|
1045
1101
|
```ts
|
|
1046
1102
|
GRAPH_INPUT_TYPES = {
|
|
@@ -1054,7 +1110,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
1054
1110
|
|
|
1055
1111
|
## GraphInputName
|
|
1056
1112
|
|
|
1057
|
-
来源:`packages/sdk/src/index.ts:
|
|
1113
|
+
来源:`packages/sdk/src/index.ts:569`
|
|
1058
1114
|
|
|
1059
1115
|
```ts
|
|
1060
1116
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -1062,7 +1118,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
1062
1118
|
|
|
1063
1119
|
## GRAPH_OPERATIONS
|
|
1064
1120
|
|
|
1065
|
-
来源:`packages/sdk/src/index.ts:
|
|
1121
|
+
来源:`packages/sdk/src/index.ts:570`
|
|
1066
1122
|
|
|
1067
1123
|
```ts
|
|
1068
1124
|
GRAPH_OPERATIONS = {
|
|
@@ -1074,7 +1130,7 @@ GRAPH_OPERATIONS = {
|
|
|
1074
1130
|
|
|
1075
1131
|
## GraphNode
|
|
1076
1132
|
|
|
1077
|
-
来源:`packages/sdk/src/index.ts:
|
|
1133
|
+
来源:`packages/sdk/src/index.ts:575`
|
|
1078
1134
|
|
|
1079
1135
|
```ts
|
|
1080
1136
|
export type GraphNode =
|
|
@@ -1101,7 +1157,7 @@ export type GraphNode =
|
|
|
1101
1157
|
|
|
1102
1158
|
## Graph
|
|
1103
1159
|
|
|
1104
|
-
来源:`packages/sdk/src/index.ts:
|
|
1160
|
+
来源:`packages/sdk/src/index.ts:595`
|
|
1105
1161
|
|
|
1106
1162
|
```ts
|
|
1107
1163
|
export interface Graph {
|
|
@@ -1113,7 +1169,7 @@ export interface Graph {
|
|
|
1113
1169
|
|
|
1114
1170
|
## MaterialGraphs
|
|
1115
1171
|
|
|
1116
|
-
来源:`packages/sdk/src/index.ts:
|
|
1172
|
+
来源:`packages/sdk/src/index.ts:600`
|
|
1117
1173
|
|
|
1118
1174
|
```ts
|
|
1119
1175
|
export interface MaterialGraphs {
|
|
@@ -1129,7 +1185,7 @@ export interface MaterialGraphs {
|
|
|
1129
1185
|
|
|
1130
1186
|
## VertexGraphs
|
|
1131
1187
|
|
|
1132
|
-
来源:`packages/sdk/src/index.ts:
|
|
1188
|
+
来源:`packages/sdk/src/index.ts:609`
|
|
1133
1189
|
|
|
1134
1190
|
```ts
|
|
1135
1191
|
export interface VertexGraphs {
|
|
@@ -1142,7 +1198,7 @@ export interface VertexGraphs {
|
|
|
1142
1198
|
|
|
1143
1199
|
## MaterialInput
|
|
1144
1200
|
|
|
1145
|
-
来源:`packages/sdk/src/index.ts:
|
|
1201
|
+
来源:`packages/sdk/src/index.ts:615`
|
|
1146
1202
|
|
|
1147
1203
|
```ts
|
|
1148
1204
|
export interface MaterialInput {
|
|
@@ -1176,7 +1232,7 @@ export interface MaterialInput {
|
|
|
1176
1232
|
|
|
1177
1233
|
## MaterialDefinition
|
|
1178
1234
|
|
|
1179
|
-
来源:`packages/sdk/src/index.ts:
|
|
1235
|
+
来源:`packages/sdk/src/index.ts:642`
|
|
1180
1236
|
|
|
1181
1237
|
```ts
|
|
1182
1238
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1186,7 +1242,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1186
1242
|
|
|
1187
1243
|
## PostProcessInput
|
|
1188
1244
|
|
|
1189
|
-
来源:`packages/sdk/src/index.ts:
|
|
1245
|
+
来源:`packages/sdk/src/index.ts:645`
|
|
1190
1246
|
|
|
1191
1247
|
```ts
|
|
1192
1248
|
export interface PostProcessInput {
|
|
@@ -1201,7 +1257,7 @@ export interface PostProcessInput {
|
|
|
1201
1257
|
|
|
1202
1258
|
## PostProcessDefinition
|
|
1203
1259
|
|
|
1204
|
-
来源:`packages/sdk/src/index.ts:
|
|
1260
|
+
来源:`packages/sdk/src/index.ts:653`
|
|
1205
1261
|
|
|
1206
1262
|
```ts
|
|
1207
1263
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1211,7 +1267,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1211
1267
|
|
|
1212
1268
|
## ComputeInput
|
|
1213
1269
|
|
|
1214
|
-
来源:`packages/sdk/src/index.ts:
|
|
1270
|
+
来源:`packages/sdk/src/index.ts:656`
|
|
1215
1271
|
|
|
1216
1272
|
```ts
|
|
1217
1273
|
export interface ComputeInput {
|
|
@@ -1227,7 +1283,7 @@ export interface ComputeInput {
|
|
|
1227
1283
|
|
|
1228
1284
|
## ComputeDefinition
|
|
1229
1285
|
|
|
1230
|
-
来源:`packages/sdk/src/index.ts:
|
|
1286
|
+
来源:`packages/sdk/src/index.ts:665`
|
|
1231
1287
|
|
|
1232
1288
|
```ts
|
|
1233
1289
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1237,7 +1293,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1237
1293
|
|
|
1238
1294
|
## AssetInput
|
|
1239
1295
|
|
|
1240
|
-
来源:`packages/sdk/src/index.ts:
|
|
1296
|
+
来源:`packages/sdk/src/index.ts:668`
|
|
1241
1297
|
|
|
1242
1298
|
```ts
|
|
1243
1299
|
export interface AssetInput {
|
|
@@ -1254,7 +1310,7 @@ export interface AssetInput {
|
|
|
1254
1310
|
|
|
1255
1311
|
## AssetDefinition
|
|
1256
1312
|
|
|
1257
|
-
来源:`packages/sdk/src/index.ts:
|
|
1313
|
+
来源:`packages/sdk/src/index.ts:678`
|
|
1258
1314
|
|
|
1259
1315
|
```ts
|
|
1260
1316
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1264,7 +1320,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1264
1320
|
|
|
1265
1321
|
## MeshDefinition
|
|
1266
1322
|
|
|
1267
|
-
来源:`packages/sdk/src/index.ts:
|
|
1323
|
+
来源:`packages/sdk/src/index.ts:681`
|
|
1268
1324
|
|
|
1269
1325
|
```ts
|
|
1270
1326
|
export interface MeshDefinition {
|
|
@@ -1277,7 +1333,7 @@ export interface MeshDefinition {
|
|
|
1277
1333
|
|
|
1278
1334
|
## LightDefinition
|
|
1279
1335
|
|
|
1280
|
-
来源:`packages/sdk/src/index.ts:
|
|
1336
|
+
来源:`packages/sdk/src/index.ts:687`
|
|
1281
1337
|
|
|
1282
1338
|
```ts
|
|
1283
1339
|
export interface LightDefinition {
|
|
@@ -1299,7 +1355,7 @@ export interface LightDefinition {
|
|
|
1299
1355
|
|
|
1300
1356
|
## EntityInput
|
|
1301
1357
|
|
|
1302
|
-
来源:`packages/sdk/src/index.ts:
|
|
1358
|
+
来源:`packages/sdk/src/index.ts:702`
|
|
1303
1359
|
|
|
1304
1360
|
```ts
|
|
1305
1361
|
export interface EntityInput {
|
|
@@ -1318,7 +1374,7 @@ export interface EntityInput {
|
|
|
1318
1374
|
|
|
1319
1375
|
## PrefabInput
|
|
1320
1376
|
|
|
1321
|
-
来源:`packages/sdk/src/index.ts:
|
|
1377
|
+
来源:`packages/sdk/src/index.ts:714`
|
|
1322
1378
|
|
|
1323
1379
|
```ts
|
|
1324
1380
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1328,7 +1384,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1328
1384
|
|
|
1329
1385
|
## PrefabDefinition
|
|
1330
1386
|
|
|
1331
|
-
来源:`packages/sdk/src/index.ts:
|
|
1387
|
+
来源:`packages/sdk/src/index.ts:717`
|
|
1332
1388
|
|
|
1333
1389
|
```ts
|
|
1334
1390
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1338,7 +1394,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1338
1394
|
|
|
1339
1395
|
## SceneInput
|
|
1340
1396
|
|
|
1341
|
-
来源:`packages/sdk/src/index.ts:
|
|
1397
|
+
来源:`packages/sdk/src/index.ts:720`
|
|
1342
1398
|
|
|
1343
1399
|
```ts
|
|
1344
1400
|
export interface SceneInput {
|
|
@@ -1370,7 +1426,7 @@ export interface SceneInput {
|
|
|
1370
1426
|
|
|
1371
1427
|
## SceneDefinition
|
|
1372
1428
|
|
|
1373
|
-
来源:`packages/sdk/src/index.ts:
|
|
1429
|
+
来源:`packages/sdk/src/index.ts:745`
|
|
1374
1430
|
|
|
1375
1431
|
```ts
|
|
1376
1432
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1380,7 +1436,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1380
1436
|
|
|
1381
1437
|
## SystemInput
|
|
1382
1438
|
|
|
1383
|
-
来源:`packages/sdk/src/index.ts:
|
|
1439
|
+
来源:`packages/sdk/src/index.ts:748`
|
|
1384
1440
|
|
|
1385
1441
|
```ts
|
|
1386
1442
|
export interface SystemInput {
|
|
@@ -1397,7 +1453,7 @@ export interface SystemInput {
|
|
|
1397
1453
|
|
|
1398
1454
|
## SystemDefinition
|
|
1399
1455
|
|
|
1400
|
-
来源:`packages/sdk/src/index.ts:
|
|
1456
|
+
来源:`packages/sdk/src/index.ts:758`
|
|
1401
1457
|
|
|
1402
1458
|
```ts
|
|
1403
1459
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1407,7 +1463,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1407
1463
|
|
|
1408
1464
|
## GameInput
|
|
1409
1465
|
|
|
1410
|
-
来源:`packages/sdk/src/index.ts:
|
|
1466
|
+
来源:`packages/sdk/src/index.ts:761`
|
|
1411
1467
|
|
|
1412
1468
|
```ts
|
|
1413
1469
|
export interface GameInput {
|
|
@@ -1433,7 +1489,7 @@ export interface GameInput {
|
|
|
1433
1489
|
|
|
1434
1490
|
## GameDefinition
|
|
1435
1491
|
|
|
1436
|
-
来源:`packages/sdk/src/index.ts:
|
|
1492
|
+
来源:`packages/sdk/src/index.ts:780`
|
|
1437
1493
|
|
|
1438
1494
|
```ts
|
|
1439
1495
|
export interface GameDefinition extends GameInput {
|
|
@@ -1443,7 +1499,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1443
1499
|
|
|
1444
1500
|
## GameInstance
|
|
1445
1501
|
|
|
1446
|
-
来源:`packages/sdk/src/index.ts:
|
|
1502
|
+
来源:`packages/sdk/src/index.ts:783`
|
|
1447
1503
|
|
|
1448
1504
|
```ts
|
|
1449
1505
|
export interface GameInstance {
|
|
@@ -1454,7 +1510,7 @@ export interface GameInstance {
|
|
|
1454
1510
|
|
|
1455
1511
|
## defineComponent
|
|
1456
1512
|
|
|
1457
|
-
来源:`packages/sdk/src/index.ts:
|
|
1513
|
+
来源:`packages/sdk/src/index.ts:787`
|
|
1458
1514
|
|
|
1459
1515
|
```ts
|
|
1460
1516
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1465,7 +1521,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1465
1521
|
|
|
1466
1522
|
## defineMaterial
|
|
1467
1523
|
|
|
1468
|
-
来源:`packages/sdk/src/index.ts:
|
|
1524
|
+
来源:`packages/sdk/src/index.ts:793`
|
|
1469
1525
|
|
|
1470
1526
|
```ts
|
|
1471
1527
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1473,7 +1529,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1473
1529
|
|
|
1474
1530
|
## definePostProcess
|
|
1475
1531
|
|
|
1476
|
-
来源:`packages/sdk/src/index.ts:
|
|
1532
|
+
来源:`packages/sdk/src/index.ts:796`
|
|
1477
1533
|
|
|
1478
1534
|
```ts
|
|
1479
1535
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1481,7 +1537,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1481
1537
|
|
|
1482
1538
|
## defineCompute
|
|
1483
1539
|
|
|
1484
|
-
来源:`packages/sdk/src/index.ts:
|
|
1540
|
+
来源:`packages/sdk/src/index.ts:799`
|
|
1485
1541
|
|
|
1486
1542
|
```ts
|
|
1487
1543
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1489,7 +1545,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1489
1545
|
|
|
1490
1546
|
## defineAsset
|
|
1491
1547
|
|
|
1492
|
-
来源:`packages/sdk/src/index.ts:
|
|
1548
|
+
来源:`packages/sdk/src/index.ts:802`
|
|
1493
1549
|
|
|
1494
1550
|
```ts
|
|
1495
1551
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1497,7 +1553,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1497
1553
|
|
|
1498
1554
|
## definePrefab
|
|
1499
1555
|
|
|
1500
|
-
来源:`packages/sdk/src/index.ts:
|
|
1556
|
+
来源:`packages/sdk/src/index.ts:805`
|
|
1501
1557
|
|
|
1502
1558
|
```ts
|
|
1503
1559
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1505,7 +1561,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1505
1561
|
|
|
1506
1562
|
## defineScene
|
|
1507
1563
|
|
|
1508
|
-
来源:`packages/sdk/src/index.ts:
|
|
1564
|
+
来源:`packages/sdk/src/index.ts:808`
|
|
1509
1565
|
|
|
1510
1566
|
```ts
|
|
1511
1567
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1513,7 +1569,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1513
1569
|
|
|
1514
1570
|
## defineSystem
|
|
1515
1571
|
|
|
1516
|
-
来源:`packages/sdk/src/index.ts:
|
|
1572
|
+
来源:`packages/sdk/src/index.ts:811`
|
|
1517
1573
|
|
|
1518
1574
|
```ts
|
|
1519
1575
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1521,7 +1577,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1521
1577
|
|
|
1522
1578
|
## defineGame
|
|
1523
1579
|
|
|
1524
|
-
来源:`packages/sdk/src/index.ts:
|
|
1580
|
+
来源:`packages/sdk/src/index.ts:814`
|
|
1525
1581
|
|
|
1526
1582
|
```ts
|
|
1527
1583
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1529,7 +1585,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1529
1585
|
|
|
1530
1586
|
## instantiateGame
|
|
1531
1587
|
|
|
1532
|
-
来源:`packages/sdk/src/index.ts:
|
|
1588
|
+
来源:`packages/sdk/src/index.ts:818`
|
|
1533
1589
|
|
|
1534
1590
|
```ts
|
|
1535
1591
|
export function instantiateGame(
|