pelican-engine 0.3.9 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +26 -0
- package/distribution.json +15 -13
- package/docs/STATUS.md +2 -2
- package/docs/api/REFERENCE.md +156 -88
- package/docs/api/index.json +150 -90
- package/docs/npm/GAME-AUTHOR.md +26 -0
- package/engine.manifest.json +1 -1
- package/lib/renderer/gameplay.js +2 -0
- package/lib/runtime/host.js +17 -1
- package/lib/runtime/scheduler.js +11 -1
- package/lib/sdk/index.d.ts +70 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +124 -0
- package/lib/simulation/rope.js +318 -0
- package/package.json +1 -1
package/docs/api/REFERENCE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# pelican 0.3.
|
|
1
|
+
# pelican 0.3.11 API 索引
|
|
2
2
|
|
|
3
3
|
Installed declarations: `lib/sdk/index.d.ts` (relative to the package root).
|
|
4
4
|
The signatures below come from the same public SDK source as repository games.
|
|
@@ -11,7 +11,7 @@ Source-file paths and line numbers are build-time provenance only; TypeScript so
|
|
|
11
11
|
来源:`packages/sdk/src/index.ts:2`
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
SDK_VERSION = "0.3.
|
|
14
|
+
SDK_VERSION = "0.3.11"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -254,20 +254,88 @@ export interface SystemContext extends EngineFacade {
|
|
|
254
254
|
readonly render: RenderService;
|
|
255
255
|
readonly compute: ComputeService;
|
|
256
256
|
readonly navigation: NavigationService;
|
|
257
|
+
readonly ropes: RopeService;
|
|
257
258
|
}
|
|
258
259
|
```
|
|
259
260
|
|
|
260
|
-
##
|
|
261
|
+
## RopeCollider
|
|
261
262
|
|
|
262
263
|
来源:`packages/sdk/src/index.ts:123`
|
|
263
264
|
|
|
265
|
+
```ts
|
|
266
|
+
export type RopeCollider =
|
|
267
|
+
| { kind: "sphere"; id: string; center: Vec3; radius: number }
|
|
268
|
+
| { kind: "plane"; id: string; normal: Vec3; offset: number };
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
## RopeDefinition
|
|
272
|
+
|
|
273
|
+
来源:`packages/sdk/src/index.ts:126`
|
|
274
|
+
|
|
275
|
+
```ts
|
|
276
|
+
export interface RopeDefinition {
|
|
277
|
+
id: string;
|
|
278
|
+
points: readonly Vec3[];
|
|
279
|
+
/** Kilograms per particle, positive and at most 1e6. */
|
|
280
|
+
mass: number;
|
|
281
|
+
radius?: number;
|
|
282
|
+
/** Defaults to the host interval; an explicit value must exactly match it. */
|
|
283
|
+
fixedDt?: number;
|
|
284
|
+
/** When true, step once after each physics phase; defaults to false (manual stepping). */
|
|
285
|
+
autoStep?: boolean;
|
|
286
|
+
substeps?: number;
|
|
287
|
+
iterations?: number;
|
|
288
|
+
damping?: number;
|
|
289
|
+
gravity?: Vec3;
|
|
290
|
+
anchors?: readonly { index: number; position: Vec3 }[];
|
|
291
|
+
}
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
## RopeState
|
|
295
|
+
|
|
296
|
+
来源:`packages/sdk/src/index.ts:142`
|
|
297
|
+
|
|
298
|
+
```ts
|
|
299
|
+
export interface RopeState {
|
|
300
|
+
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
301
|
+
positions: Vec3[]; velocities: Vec3[];
|
|
302
|
+
anchors: { index: number; position: Vec3 }[];
|
|
303
|
+
contacts: { tick: number; particle: number; colliderId: string; penetration: number }[];
|
|
304
|
+
maxDistanceError: number;
|
|
305
|
+
resources: { particles: number; constraints: number; anchors: number; colliders: number };
|
|
306
|
+
}
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
## RopeService
|
|
310
|
+
|
|
311
|
+
来源:`packages/sdk/src/index.ts:150`
|
|
312
|
+
|
|
313
|
+
```ts
|
|
314
|
+
export interface RopeService {
|
|
315
|
+
create(definition: RopeDefinition): void;
|
|
316
|
+
/** Explicit ticks for manual ropes only. Auto-stepped ropes reject this call. A failed batch leaves the rope unchanged. */
|
|
317
|
+
step(id: string, ticks?: number): RopeState;
|
|
318
|
+
inspect(id: string): RopeState;
|
|
319
|
+
setColliders(id: string, colliders: readonly RopeCollider[]): void;
|
|
320
|
+
setAnchor(id: string, index: number, position: Vec3): void;
|
|
321
|
+
releaseAnchor(id: string, index: number): void;
|
|
322
|
+
applyForce(id: string, index: number, force: Vec3): void;
|
|
323
|
+
applyImpulse(id: string, index: number, impulse: Vec3): void;
|
|
324
|
+
destroy(id: string): void;
|
|
325
|
+
}
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
## NavigationCell
|
|
329
|
+
|
|
330
|
+
来源:`packages/sdk/src/index.ts:165`
|
|
331
|
+
|
|
264
332
|
```ts
|
|
265
333
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
266
334
|
```
|
|
267
335
|
|
|
268
336
|
## NavigationObstacleUpdate
|
|
269
337
|
|
|
270
|
-
来源:`packages/sdk/src/index.ts:
|
|
338
|
+
来源:`packages/sdk/src/index.ts:167`
|
|
271
339
|
|
|
272
340
|
```ts
|
|
273
341
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -275,7 +343,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
275
343
|
|
|
276
344
|
## NavigationGrid
|
|
277
345
|
|
|
278
|
-
来源:`packages/sdk/src/index.ts:
|
|
346
|
+
来源:`packages/sdk/src/index.ts:168`
|
|
279
347
|
|
|
280
348
|
```ts
|
|
281
349
|
export interface NavigationGrid {
|
|
@@ -291,7 +359,7 @@ export interface NavigationGrid {
|
|
|
291
359
|
|
|
292
360
|
## NavigationService
|
|
293
361
|
|
|
294
|
-
来源:`packages/sdk/src/index.ts:
|
|
362
|
+
来源:`packages/sdk/src/index.ts:177`
|
|
295
363
|
|
|
296
364
|
```ts
|
|
297
365
|
export interface NavigationService {
|
|
@@ -310,7 +378,7 @@ export interface NavigationService {
|
|
|
310
378
|
|
|
311
379
|
## RenderMode
|
|
312
380
|
|
|
313
|
-
来源:`packages/sdk/src/index.ts:
|
|
381
|
+
来源:`packages/sdk/src/index.ts:189`
|
|
314
382
|
|
|
315
383
|
```ts
|
|
316
384
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -318,7 +386,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
318
386
|
|
|
319
387
|
## RenderCapabilities
|
|
320
388
|
|
|
321
|
-
来源:`packages/sdk/src/index.ts:
|
|
389
|
+
来源:`packages/sdk/src/index.ts:190`
|
|
322
390
|
|
|
323
391
|
```ts
|
|
324
392
|
export interface RenderCapabilities {
|
|
@@ -330,7 +398,7 @@ export interface RenderCapabilities {
|
|
|
330
398
|
|
|
331
399
|
## RenderSettings
|
|
332
400
|
|
|
333
|
-
来源:`packages/sdk/src/index.ts:
|
|
401
|
+
来源:`packages/sdk/src/index.ts:195`
|
|
334
402
|
|
|
335
403
|
```ts
|
|
336
404
|
export interface RenderSettings {
|
|
@@ -348,7 +416,7 @@ export interface RenderSettings {
|
|
|
348
416
|
|
|
349
417
|
## RenderService
|
|
350
418
|
|
|
351
|
-
来源:`packages/sdk/src/index.ts:
|
|
419
|
+
来源:`packages/sdk/src/index.ts:206`
|
|
352
420
|
|
|
353
421
|
```ts
|
|
354
422
|
export interface RenderService {
|
|
@@ -365,7 +433,7 @@ export interface RenderService {
|
|
|
365
433
|
|
|
366
434
|
## MaterialBufferInput
|
|
367
435
|
|
|
368
|
-
来源:`packages/sdk/src/index.ts:
|
|
436
|
+
来源:`packages/sdk/src/index.ts:216`
|
|
369
437
|
|
|
370
438
|
```ts
|
|
371
439
|
export interface MaterialBufferInput {
|
|
@@ -381,7 +449,7 @@ export interface MaterialBufferInput {
|
|
|
381
449
|
|
|
382
450
|
## RenderBufferReference
|
|
383
451
|
|
|
384
|
-
来源:`packages/sdk/src/index.ts:
|
|
452
|
+
来源:`packages/sdk/src/index.ts:225`
|
|
385
453
|
|
|
386
454
|
```ts
|
|
387
455
|
export interface RenderBufferReference {
|
|
@@ -393,7 +461,7 @@ export interface RenderBufferReference {
|
|
|
393
461
|
|
|
394
462
|
## RenderBufferBindings
|
|
395
463
|
|
|
396
|
-
来源:`packages/sdk/src/index.ts:
|
|
464
|
+
来源:`packages/sdk/src/index.ts:230`
|
|
397
465
|
|
|
398
466
|
```ts
|
|
399
467
|
export interface RenderBufferBindings {
|
|
@@ -405,7 +473,7 @@ export interface RenderBufferBindings {
|
|
|
405
473
|
|
|
406
474
|
## MaterialTextureInput
|
|
407
475
|
|
|
408
|
-
来源:`packages/sdk/src/index.ts:
|
|
476
|
+
来源:`packages/sdk/src/index.ts:235`
|
|
409
477
|
|
|
410
478
|
```ts
|
|
411
479
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -418,7 +486,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
418
486
|
|
|
419
487
|
## RenderTextureReference
|
|
420
488
|
|
|
421
|
-
来源:`packages/sdk/src/index.ts:
|
|
489
|
+
来源:`packages/sdk/src/index.ts:241`
|
|
422
490
|
|
|
423
491
|
```ts
|
|
424
492
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -429,7 +497,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
429
497
|
|
|
430
498
|
## RenderTextureBindings
|
|
431
499
|
|
|
432
|
-
来源:`packages/sdk/src/index.ts:
|
|
500
|
+
来源:`packages/sdk/src/index.ts:245`
|
|
433
501
|
|
|
434
502
|
```ts
|
|
435
503
|
export interface RenderTextureBindings {
|
|
@@ -441,7 +509,7 @@ export interface RenderTextureBindings {
|
|
|
441
509
|
|
|
442
510
|
## PostProcessState
|
|
443
511
|
|
|
444
|
-
来源:`packages/sdk/src/index.ts:
|
|
512
|
+
来源:`packages/sdk/src/index.ts:250`
|
|
445
513
|
|
|
446
514
|
```ts
|
|
447
515
|
export interface PostProcessState {
|
|
@@ -453,7 +521,7 @@ export interface PostProcessState {
|
|
|
453
521
|
|
|
454
522
|
## PostProcessService
|
|
455
523
|
|
|
456
|
-
来源:`packages/sdk/src/index.ts:
|
|
524
|
+
来源:`packages/sdk/src/index.ts:255`
|
|
457
525
|
|
|
458
526
|
```ts
|
|
459
527
|
export interface PostProcessService {
|
|
@@ -470,7 +538,7 @@ export interface PostProcessService {
|
|
|
470
538
|
|
|
471
539
|
## ComputeBufferHandle
|
|
472
540
|
|
|
473
|
-
来源:`packages/sdk/src/index.ts:
|
|
541
|
+
来源:`packages/sdk/src/index.ts:265`
|
|
474
542
|
|
|
475
543
|
```ts
|
|
476
544
|
export interface ComputeBufferHandle {
|
|
@@ -482,7 +550,7 @@ export interface ComputeBufferHandle {
|
|
|
482
550
|
|
|
483
551
|
## ComputeTaskHandle
|
|
484
552
|
|
|
485
|
-
来源:`packages/sdk/src/index.ts:
|
|
553
|
+
来源:`packages/sdk/src/index.ts:270`
|
|
486
554
|
|
|
487
555
|
```ts
|
|
488
556
|
export interface ComputeTaskHandle {
|
|
@@ -493,7 +561,7 @@ export interface ComputeTaskHandle {
|
|
|
493
561
|
|
|
494
562
|
## ComputeBufferInput
|
|
495
563
|
|
|
496
|
-
来源:`packages/sdk/src/index.ts:
|
|
564
|
+
来源:`packages/sdk/src/index.ts:274`
|
|
497
565
|
|
|
498
566
|
```ts
|
|
499
567
|
export interface ComputeBufferInput {
|
|
@@ -506,7 +574,7 @@ export interface ComputeBufferInput {
|
|
|
506
574
|
|
|
507
575
|
## ComputeTextureHandle
|
|
508
576
|
|
|
509
|
-
来源:`packages/sdk/src/index.ts:
|
|
577
|
+
来源:`packages/sdk/src/index.ts:280`
|
|
510
578
|
|
|
511
579
|
```ts
|
|
512
580
|
export interface ComputeTextureHandle {
|
|
@@ -519,7 +587,7 @@ export interface ComputeTextureHandle {
|
|
|
519
587
|
|
|
520
588
|
## ComputeTextureSize
|
|
521
589
|
|
|
522
|
-
来源:`packages/sdk/src/index.ts:
|
|
590
|
+
来源:`packages/sdk/src/index.ts:286`
|
|
523
591
|
|
|
524
592
|
```ts
|
|
525
593
|
export interface ComputeTextureSize {
|
|
@@ -530,7 +598,7 @@ export interface ComputeTextureSize {
|
|
|
530
598
|
|
|
531
599
|
## ComputeTextureDataInput
|
|
532
600
|
|
|
533
|
-
来源:`packages/sdk/src/index.ts:
|
|
601
|
+
来源:`packages/sdk/src/index.ts:290`
|
|
534
602
|
|
|
535
603
|
```ts
|
|
536
604
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -543,7 +611,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
543
611
|
|
|
544
612
|
## ComputeTextureAssetInput
|
|
545
613
|
|
|
546
|
-
来源:`packages/sdk/src/index.ts:
|
|
614
|
+
来源:`packages/sdk/src/index.ts:296`
|
|
547
615
|
|
|
548
616
|
```ts
|
|
549
617
|
export interface ComputeTextureAssetInput {
|
|
@@ -557,7 +625,7 @@ export interface ComputeTextureAssetInput {
|
|
|
557
625
|
|
|
558
626
|
## ComputeTextureInput
|
|
559
627
|
|
|
560
|
-
来源:`packages/sdk/src/index.ts:
|
|
628
|
+
来源:`packages/sdk/src/index.ts:303`
|
|
561
629
|
|
|
562
630
|
```ts
|
|
563
631
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -565,7 +633,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
565
633
|
|
|
566
634
|
## ComputeTextureBinding
|
|
567
635
|
|
|
568
|
-
来源:`packages/sdk/src/index.ts:
|
|
636
|
+
来源:`packages/sdk/src/index.ts:304`
|
|
569
637
|
|
|
570
638
|
```ts
|
|
571
639
|
export interface ComputeTextureBinding {
|
|
@@ -578,7 +646,7 @@ export interface ComputeTextureBinding {
|
|
|
578
646
|
|
|
579
647
|
## ComputeDispatchInput
|
|
580
648
|
|
|
581
|
-
来源:`packages/sdk/src/index.ts:
|
|
649
|
+
来源:`packages/sdk/src/index.ts:310`
|
|
582
650
|
|
|
583
651
|
```ts
|
|
584
652
|
export interface ComputeDispatchInput {
|
|
@@ -597,7 +665,7 @@ export interface ComputeDispatchInput {
|
|
|
597
665
|
|
|
598
666
|
## ComputeTaskState
|
|
599
667
|
|
|
600
|
-
来源:`packages/sdk/src/index.ts:
|
|
668
|
+
来源:`packages/sdk/src/index.ts:322`
|
|
601
669
|
|
|
602
670
|
```ts
|
|
603
671
|
export interface ComputeTaskState {
|
|
@@ -608,7 +676,7 @@ export interface ComputeTaskState {
|
|
|
608
676
|
|
|
609
677
|
## ComputeService
|
|
610
678
|
|
|
611
|
-
来源:`packages/sdk/src/index.ts:
|
|
679
|
+
来源:`packages/sdk/src/index.ts:326`
|
|
612
680
|
|
|
613
681
|
```ts
|
|
614
682
|
export interface ComputeService {
|
|
@@ -635,7 +703,7 @@ export interface ComputeService {
|
|
|
635
703
|
|
|
636
704
|
## InputService
|
|
637
705
|
|
|
638
|
-
来源:`packages/sdk/src/index.ts:
|
|
706
|
+
来源:`packages/sdk/src/index.ts:346`
|
|
639
707
|
|
|
640
708
|
```ts
|
|
641
709
|
export interface InputService {
|
|
@@ -648,7 +716,7 @@ export interface InputService {
|
|
|
648
716
|
|
|
649
717
|
## PhysicsService
|
|
650
718
|
|
|
651
|
-
来源:`packages/sdk/src/index.ts:
|
|
719
|
+
来源:`packages/sdk/src/index.ts:352`
|
|
652
720
|
|
|
653
721
|
```ts
|
|
654
722
|
export interface PhysicsService {
|
|
@@ -675,7 +743,7 @@ export interface PhysicsService {
|
|
|
675
743
|
|
|
676
744
|
## AnimationService
|
|
677
745
|
|
|
678
|
-
来源:`packages/sdk/src/index.ts:
|
|
746
|
+
来源:`packages/sdk/src/index.ts:372`
|
|
679
747
|
|
|
680
748
|
```ts
|
|
681
749
|
export interface AnimationService {
|
|
@@ -694,7 +762,7 @@ export interface AnimationService {
|
|
|
694
762
|
|
|
695
763
|
## CameraService
|
|
696
764
|
|
|
697
|
-
来源:`packages/sdk/src/index.ts:
|
|
765
|
+
来源:`packages/sdk/src/index.ts:384`
|
|
698
766
|
|
|
699
767
|
```ts
|
|
700
768
|
export interface CameraService {
|
|
@@ -714,7 +782,7 @@ export interface CameraService {
|
|
|
714
782
|
|
|
715
783
|
## UIService
|
|
716
784
|
|
|
717
|
-
来源:`packages/sdk/src/index.ts:
|
|
785
|
+
来源:`packages/sdk/src/index.ts:397`
|
|
718
786
|
|
|
719
787
|
```ts
|
|
720
788
|
export interface UIService {
|
|
@@ -726,7 +794,7 @@ export interface UIService {
|
|
|
726
794
|
|
|
727
795
|
## AudioService
|
|
728
796
|
|
|
729
|
-
来源:`packages/sdk/src/index.ts:
|
|
797
|
+
来源:`packages/sdk/src/index.ts:402`
|
|
730
798
|
|
|
731
799
|
```ts
|
|
732
800
|
export interface AudioService {
|
|
@@ -748,7 +816,7 @@ export interface AudioService {
|
|
|
748
816
|
|
|
749
817
|
## StorageService
|
|
750
818
|
|
|
751
|
-
来源:`packages/sdk/src/index.ts:
|
|
819
|
+
来源:`packages/sdk/src/index.ts:417`
|
|
752
820
|
|
|
753
821
|
```ts
|
|
754
822
|
export interface StorageService {
|
|
@@ -764,7 +832,7 @@ export interface StorageService {
|
|
|
764
832
|
|
|
765
833
|
## SceneService
|
|
766
834
|
|
|
767
|
-
来源:`packages/sdk/src/index.ts:
|
|
835
|
+
来源:`packages/sdk/src/index.ts:426`
|
|
768
836
|
|
|
769
837
|
```ts
|
|
770
838
|
export interface SceneService {
|
|
@@ -775,7 +843,7 @@ export interface SceneService {
|
|
|
775
843
|
|
|
776
844
|
## ModelDefinition
|
|
777
845
|
|
|
778
|
-
来源:`packages/sdk/src/index.ts:
|
|
846
|
+
来源:`packages/sdk/src/index.ts:430`
|
|
779
847
|
|
|
780
848
|
```ts
|
|
781
849
|
export interface ModelDefinition {
|
|
@@ -795,7 +863,7 @@ export interface ModelDefinition {
|
|
|
795
863
|
|
|
796
864
|
## RigidBodyDefinition
|
|
797
865
|
|
|
798
|
-
来源:`packages/sdk/src/index.ts:
|
|
866
|
+
来源:`packages/sdk/src/index.ts:443`
|
|
799
867
|
|
|
800
868
|
```ts
|
|
801
869
|
export interface RigidBodyDefinition {
|
|
@@ -816,7 +884,7 @@ export interface RigidBodyDefinition {
|
|
|
816
884
|
|
|
817
885
|
## CharacterDefinition
|
|
818
886
|
|
|
819
|
-
来源:`packages/sdk/src/index.ts:
|
|
887
|
+
来源:`packages/sdk/src/index.ts:457`
|
|
820
888
|
|
|
821
889
|
```ts
|
|
822
890
|
export interface CharacterDefinition {
|
|
@@ -831,7 +899,7 @@ export interface CharacterDefinition {
|
|
|
831
899
|
|
|
832
900
|
## UIElementDefinition
|
|
833
901
|
|
|
834
|
-
来源:`packages/sdk/src/index.ts:
|
|
902
|
+
来源:`packages/sdk/src/index.ts:465`
|
|
835
903
|
|
|
836
904
|
```ts
|
|
837
905
|
export interface UIElementDefinition {
|
|
@@ -851,7 +919,7 @@ export interface UIElementDefinition {
|
|
|
851
919
|
|
|
852
920
|
## SoundDefinition
|
|
853
921
|
|
|
854
|
-
来源:`packages/sdk/src/index.ts:
|
|
922
|
+
来源:`packages/sdk/src/index.ts:478`
|
|
855
923
|
|
|
856
924
|
```ts
|
|
857
925
|
export interface SoundDefinition {
|
|
@@ -865,7 +933,7 @@ export interface SoundDefinition {
|
|
|
865
933
|
|
|
866
934
|
## AudioBusDefinition
|
|
867
935
|
|
|
868
|
-
来源:`packages/sdk/src/index.ts:
|
|
936
|
+
来源:`packages/sdk/src/index.ts:485`
|
|
869
937
|
|
|
870
938
|
```ts
|
|
871
939
|
export interface AudioBusDefinition {
|
|
@@ -876,7 +944,7 @@ export interface AudioBusDefinition {
|
|
|
876
944
|
|
|
877
945
|
## SYSTEM_PHASES
|
|
878
946
|
|
|
879
|
-
来源:`packages/sdk/src/index.ts:
|
|
947
|
+
来源:`packages/sdk/src/index.ts:489`
|
|
880
948
|
|
|
881
949
|
```ts
|
|
882
950
|
SYSTEM_PHASES = [
|
|
@@ -891,7 +959,7 @@ SYSTEM_PHASES = [
|
|
|
891
959
|
|
|
892
960
|
## SystemPhase
|
|
893
961
|
|
|
894
|
-
来源:`packages/sdk/src/index.ts:
|
|
962
|
+
来源:`packages/sdk/src/index.ts:497`
|
|
895
963
|
|
|
896
964
|
```ts
|
|
897
965
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -899,7 +967,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
899
967
|
|
|
900
968
|
## Geometry
|
|
901
969
|
|
|
902
|
-
来源:`packages/sdk/src/index.ts:
|
|
970
|
+
来源:`packages/sdk/src/index.ts:498`
|
|
903
971
|
|
|
904
972
|
```ts
|
|
905
973
|
export type Geometry =
|
|
@@ -910,7 +978,7 @@ export type Geometry =
|
|
|
910
978
|
|
|
911
979
|
## GRAPH_TYPES
|
|
912
980
|
|
|
913
|
-
来源:`packages/sdk/src/index.ts:
|
|
981
|
+
来源:`packages/sdk/src/index.ts:502`
|
|
914
982
|
|
|
915
983
|
```ts
|
|
916
984
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -918,7 +986,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
918
986
|
|
|
919
987
|
## GraphType
|
|
920
988
|
|
|
921
|
-
来源:`packages/sdk/src/index.ts:
|
|
989
|
+
来源:`packages/sdk/src/index.ts:503`
|
|
922
990
|
|
|
923
991
|
```ts
|
|
924
992
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -926,7 +994,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
926
994
|
|
|
927
995
|
## GraphValue
|
|
928
996
|
|
|
929
|
-
来源:`packages/sdk/src/index.ts:
|
|
997
|
+
来源:`packages/sdk/src/index.ts:504`
|
|
930
998
|
|
|
931
999
|
```ts
|
|
932
1000
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -934,7 +1002,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
934
1002
|
|
|
935
1003
|
## GraphParameter
|
|
936
1004
|
|
|
937
|
-
来源:`packages/sdk/src/index.ts:
|
|
1005
|
+
来源:`packages/sdk/src/index.ts:505`
|
|
938
1006
|
|
|
939
1007
|
```ts
|
|
940
1008
|
export interface GraphParameter {
|
|
@@ -946,7 +1014,7 @@ export interface GraphParameter {
|
|
|
946
1014
|
|
|
947
1015
|
## GRAPH_INPUT_TYPES
|
|
948
1016
|
|
|
949
|
-
来源:`packages/sdk/src/index.ts:
|
|
1017
|
+
来源:`packages/sdk/src/index.ts:510`
|
|
950
1018
|
|
|
951
1019
|
```ts
|
|
952
1020
|
GRAPH_INPUT_TYPES = {
|
|
@@ -960,7 +1028,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
960
1028
|
|
|
961
1029
|
## GraphInputName
|
|
962
1030
|
|
|
963
|
-
来源:`packages/sdk/src/index.ts:
|
|
1031
|
+
来源:`packages/sdk/src/index.ts:517`
|
|
964
1032
|
|
|
965
1033
|
```ts
|
|
966
1034
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -968,7 +1036,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
968
1036
|
|
|
969
1037
|
## GRAPH_OPERATIONS
|
|
970
1038
|
|
|
971
|
-
来源:`packages/sdk/src/index.ts:
|
|
1039
|
+
来源:`packages/sdk/src/index.ts:518`
|
|
972
1040
|
|
|
973
1041
|
```ts
|
|
974
1042
|
GRAPH_OPERATIONS = {
|
|
@@ -980,7 +1048,7 @@ GRAPH_OPERATIONS = {
|
|
|
980
1048
|
|
|
981
1049
|
## GraphNode
|
|
982
1050
|
|
|
983
|
-
来源:`packages/sdk/src/index.ts:
|
|
1051
|
+
来源:`packages/sdk/src/index.ts:523`
|
|
984
1052
|
|
|
985
1053
|
```ts
|
|
986
1054
|
export type GraphNode =
|
|
@@ -1007,7 +1075,7 @@ export type GraphNode =
|
|
|
1007
1075
|
|
|
1008
1076
|
## Graph
|
|
1009
1077
|
|
|
1010
|
-
来源:`packages/sdk/src/index.ts:
|
|
1078
|
+
来源:`packages/sdk/src/index.ts:543`
|
|
1011
1079
|
|
|
1012
1080
|
```ts
|
|
1013
1081
|
export interface Graph {
|
|
@@ -1019,7 +1087,7 @@ export interface Graph {
|
|
|
1019
1087
|
|
|
1020
1088
|
## MaterialGraphs
|
|
1021
1089
|
|
|
1022
|
-
来源:`packages/sdk/src/index.ts:
|
|
1090
|
+
来源:`packages/sdk/src/index.ts:548`
|
|
1023
1091
|
|
|
1024
1092
|
```ts
|
|
1025
1093
|
export interface MaterialGraphs {
|
|
@@ -1035,7 +1103,7 @@ export interface MaterialGraphs {
|
|
|
1035
1103
|
|
|
1036
1104
|
## VertexGraphs
|
|
1037
1105
|
|
|
1038
|
-
来源:`packages/sdk/src/index.ts:
|
|
1106
|
+
来源:`packages/sdk/src/index.ts:557`
|
|
1039
1107
|
|
|
1040
1108
|
```ts
|
|
1041
1109
|
export interface VertexGraphs {
|
|
@@ -1048,7 +1116,7 @@ export interface VertexGraphs {
|
|
|
1048
1116
|
|
|
1049
1117
|
## MaterialInput
|
|
1050
1118
|
|
|
1051
|
-
来源:`packages/sdk/src/index.ts:
|
|
1119
|
+
来源:`packages/sdk/src/index.ts:563`
|
|
1052
1120
|
|
|
1053
1121
|
```ts
|
|
1054
1122
|
export interface MaterialInput {
|
|
@@ -1082,7 +1150,7 @@ export interface MaterialInput {
|
|
|
1082
1150
|
|
|
1083
1151
|
## MaterialDefinition
|
|
1084
1152
|
|
|
1085
|
-
来源:`packages/sdk/src/index.ts:
|
|
1153
|
+
来源:`packages/sdk/src/index.ts:590`
|
|
1086
1154
|
|
|
1087
1155
|
```ts
|
|
1088
1156
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1092,7 +1160,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1092
1160
|
|
|
1093
1161
|
## PostProcessInput
|
|
1094
1162
|
|
|
1095
|
-
来源:`packages/sdk/src/index.ts:
|
|
1163
|
+
来源:`packages/sdk/src/index.ts:593`
|
|
1096
1164
|
|
|
1097
1165
|
```ts
|
|
1098
1166
|
export interface PostProcessInput {
|
|
@@ -1107,7 +1175,7 @@ export interface PostProcessInput {
|
|
|
1107
1175
|
|
|
1108
1176
|
## PostProcessDefinition
|
|
1109
1177
|
|
|
1110
|
-
来源:`packages/sdk/src/index.ts:
|
|
1178
|
+
来源:`packages/sdk/src/index.ts:601`
|
|
1111
1179
|
|
|
1112
1180
|
```ts
|
|
1113
1181
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1117,7 +1185,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1117
1185
|
|
|
1118
1186
|
## ComputeInput
|
|
1119
1187
|
|
|
1120
|
-
来源:`packages/sdk/src/index.ts:
|
|
1188
|
+
来源:`packages/sdk/src/index.ts:604`
|
|
1121
1189
|
|
|
1122
1190
|
```ts
|
|
1123
1191
|
export interface ComputeInput {
|
|
@@ -1133,7 +1201,7 @@ export interface ComputeInput {
|
|
|
1133
1201
|
|
|
1134
1202
|
## ComputeDefinition
|
|
1135
1203
|
|
|
1136
|
-
来源:`packages/sdk/src/index.ts:
|
|
1204
|
+
来源:`packages/sdk/src/index.ts:613`
|
|
1137
1205
|
|
|
1138
1206
|
```ts
|
|
1139
1207
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1143,7 +1211,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1143
1211
|
|
|
1144
1212
|
## AssetInput
|
|
1145
1213
|
|
|
1146
|
-
来源:`packages/sdk/src/index.ts:
|
|
1214
|
+
来源:`packages/sdk/src/index.ts:616`
|
|
1147
1215
|
|
|
1148
1216
|
```ts
|
|
1149
1217
|
export interface AssetInput {
|
|
@@ -1160,7 +1228,7 @@ export interface AssetInput {
|
|
|
1160
1228
|
|
|
1161
1229
|
## AssetDefinition
|
|
1162
1230
|
|
|
1163
|
-
来源:`packages/sdk/src/index.ts:
|
|
1231
|
+
来源:`packages/sdk/src/index.ts:626`
|
|
1164
1232
|
|
|
1165
1233
|
```ts
|
|
1166
1234
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1170,7 +1238,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1170
1238
|
|
|
1171
1239
|
## MeshDefinition
|
|
1172
1240
|
|
|
1173
|
-
来源:`packages/sdk/src/index.ts:
|
|
1241
|
+
来源:`packages/sdk/src/index.ts:629`
|
|
1174
1242
|
|
|
1175
1243
|
```ts
|
|
1176
1244
|
export interface MeshDefinition {
|
|
@@ -1183,7 +1251,7 @@ export interface MeshDefinition {
|
|
|
1183
1251
|
|
|
1184
1252
|
## LightDefinition
|
|
1185
1253
|
|
|
1186
|
-
来源:`packages/sdk/src/index.ts:
|
|
1254
|
+
来源:`packages/sdk/src/index.ts:635`
|
|
1187
1255
|
|
|
1188
1256
|
```ts
|
|
1189
1257
|
export interface LightDefinition {
|
|
@@ -1205,7 +1273,7 @@ export interface LightDefinition {
|
|
|
1205
1273
|
|
|
1206
1274
|
## EntityInput
|
|
1207
1275
|
|
|
1208
|
-
来源:`packages/sdk/src/index.ts:
|
|
1276
|
+
来源:`packages/sdk/src/index.ts:650`
|
|
1209
1277
|
|
|
1210
1278
|
```ts
|
|
1211
1279
|
export interface EntityInput {
|
|
@@ -1224,7 +1292,7 @@ export interface EntityInput {
|
|
|
1224
1292
|
|
|
1225
1293
|
## PrefabInput
|
|
1226
1294
|
|
|
1227
|
-
来源:`packages/sdk/src/index.ts:
|
|
1295
|
+
来源:`packages/sdk/src/index.ts:662`
|
|
1228
1296
|
|
|
1229
1297
|
```ts
|
|
1230
1298
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1234,7 +1302,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1234
1302
|
|
|
1235
1303
|
## PrefabDefinition
|
|
1236
1304
|
|
|
1237
|
-
来源:`packages/sdk/src/index.ts:
|
|
1305
|
+
来源:`packages/sdk/src/index.ts:665`
|
|
1238
1306
|
|
|
1239
1307
|
```ts
|
|
1240
1308
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1244,7 +1312,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1244
1312
|
|
|
1245
1313
|
## SceneInput
|
|
1246
1314
|
|
|
1247
|
-
来源:`packages/sdk/src/index.ts:
|
|
1315
|
+
来源:`packages/sdk/src/index.ts:668`
|
|
1248
1316
|
|
|
1249
1317
|
```ts
|
|
1250
1318
|
export interface SceneInput {
|
|
@@ -1276,7 +1344,7 @@ export interface SceneInput {
|
|
|
1276
1344
|
|
|
1277
1345
|
## SceneDefinition
|
|
1278
1346
|
|
|
1279
|
-
来源:`packages/sdk/src/index.ts:
|
|
1347
|
+
来源:`packages/sdk/src/index.ts:693`
|
|
1280
1348
|
|
|
1281
1349
|
```ts
|
|
1282
1350
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1286,7 +1354,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1286
1354
|
|
|
1287
1355
|
## SystemInput
|
|
1288
1356
|
|
|
1289
|
-
来源:`packages/sdk/src/index.ts:
|
|
1357
|
+
来源:`packages/sdk/src/index.ts:696`
|
|
1290
1358
|
|
|
1291
1359
|
```ts
|
|
1292
1360
|
export interface SystemInput {
|
|
@@ -1303,7 +1371,7 @@ export interface SystemInput {
|
|
|
1303
1371
|
|
|
1304
1372
|
## SystemDefinition
|
|
1305
1373
|
|
|
1306
|
-
来源:`packages/sdk/src/index.ts:
|
|
1374
|
+
来源:`packages/sdk/src/index.ts:706`
|
|
1307
1375
|
|
|
1308
1376
|
```ts
|
|
1309
1377
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1313,7 +1381,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1313
1381
|
|
|
1314
1382
|
## GameInput
|
|
1315
1383
|
|
|
1316
|
-
来源:`packages/sdk/src/index.ts:
|
|
1384
|
+
来源:`packages/sdk/src/index.ts:709`
|
|
1317
1385
|
|
|
1318
1386
|
```ts
|
|
1319
1387
|
export interface GameInput {
|
|
@@ -1339,7 +1407,7 @@ export interface GameInput {
|
|
|
1339
1407
|
|
|
1340
1408
|
## GameDefinition
|
|
1341
1409
|
|
|
1342
|
-
来源:`packages/sdk/src/index.ts:
|
|
1410
|
+
来源:`packages/sdk/src/index.ts:728`
|
|
1343
1411
|
|
|
1344
1412
|
```ts
|
|
1345
1413
|
export interface GameDefinition extends GameInput {
|
|
@@ -1349,7 +1417,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1349
1417
|
|
|
1350
1418
|
## GameInstance
|
|
1351
1419
|
|
|
1352
|
-
来源:`packages/sdk/src/index.ts:
|
|
1420
|
+
来源:`packages/sdk/src/index.ts:731`
|
|
1353
1421
|
|
|
1354
1422
|
```ts
|
|
1355
1423
|
export interface GameInstance {
|
|
@@ -1360,7 +1428,7 @@ export interface GameInstance {
|
|
|
1360
1428
|
|
|
1361
1429
|
## defineComponent
|
|
1362
1430
|
|
|
1363
|
-
来源:`packages/sdk/src/index.ts:
|
|
1431
|
+
来源:`packages/sdk/src/index.ts:735`
|
|
1364
1432
|
|
|
1365
1433
|
```ts
|
|
1366
1434
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1371,7 +1439,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1371
1439
|
|
|
1372
1440
|
## defineMaterial
|
|
1373
1441
|
|
|
1374
|
-
来源:`packages/sdk/src/index.ts:
|
|
1442
|
+
来源:`packages/sdk/src/index.ts:741`
|
|
1375
1443
|
|
|
1376
1444
|
```ts
|
|
1377
1445
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1379,7 +1447,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1379
1447
|
|
|
1380
1448
|
## definePostProcess
|
|
1381
1449
|
|
|
1382
|
-
来源:`packages/sdk/src/index.ts:
|
|
1450
|
+
来源:`packages/sdk/src/index.ts:744`
|
|
1383
1451
|
|
|
1384
1452
|
```ts
|
|
1385
1453
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1387,7 +1455,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1387
1455
|
|
|
1388
1456
|
## defineCompute
|
|
1389
1457
|
|
|
1390
|
-
来源:`packages/sdk/src/index.ts:
|
|
1458
|
+
来源:`packages/sdk/src/index.ts:747`
|
|
1391
1459
|
|
|
1392
1460
|
```ts
|
|
1393
1461
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1395,7 +1463,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1395
1463
|
|
|
1396
1464
|
## defineAsset
|
|
1397
1465
|
|
|
1398
|
-
来源:`packages/sdk/src/index.ts:
|
|
1466
|
+
来源:`packages/sdk/src/index.ts:750`
|
|
1399
1467
|
|
|
1400
1468
|
```ts
|
|
1401
1469
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1403,7 +1471,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1403
1471
|
|
|
1404
1472
|
## definePrefab
|
|
1405
1473
|
|
|
1406
|
-
来源:`packages/sdk/src/index.ts:
|
|
1474
|
+
来源:`packages/sdk/src/index.ts:753`
|
|
1407
1475
|
|
|
1408
1476
|
```ts
|
|
1409
1477
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1411,7 +1479,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1411
1479
|
|
|
1412
1480
|
## defineScene
|
|
1413
1481
|
|
|
1414
|
-
来源:`packages/sdk/src/index.ts:
|
|
1482
|
+
来源:`packages/sdk/src/index.ts:756`
|
|
1415
1483
|
|
|
1416
1484
|
```ts
|
|
1417
1485
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1419,7 +1487,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1419
1487
|
|
|
1420
1488
|
## defineSystem
|
|
1421
1489
|
|
|
1422
|
-
来源:`packages/sdk/src/index.ts:
|
|
1490
|
+
来源:`packages/sdk/src/index.ts:759`
|
|
1423
1491
|
|
|
1424
1492
|
```ts
|
|
1425
1493
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1427,7 +1495,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1427
1495
|
|
|
1428
1496
|
## defineGame
|
|
1429
1497
|
|
|
1430
|
-
来源:`packages/sdk/src/index.ts:
|
|
1498
|
+
来源:`packages/sdk/src/index.ts:762`
|
|
1431
1499
|
|
|
1432
1500
|
```ts
|
|
1433
1501
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1435,7 +1503,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1435
1503
|
|
|
1436
1504
|
## instantiateGame
|
|
1437
1505
|
|
|
1438
|
-
来源:`packages/sdk/src/index.ts:
|
|
1506
|
+
来源:`packages/sdk/src/index.ts:766`
|
|
1439
1507
|
|
|
1440
1508
|
```ts
|
|
1441
1509
|
export function instantiateGame(
|