pelican-engine 0.3.8 → 0.3.10
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 +18 -0
- package/distribution.json +14 -12
- package/docs/STATUS.md +2 -1
- package/docs/api/REFERENCE.md +154 -88
- package/docs/api/index.json +149 -90
- package/docs/npm/GAME-AUTHOR.md +18 -0
- package/engine.manifest.json +1 -1
- package/lib/renderer/gameplay.js +2 -0
- package/lib/runtime/host.js +4 -0
- package/lib/sdk/index.d.ts +68 -1
- package/lib/sdk/index.js +1 -1
- package/lib/simulation/rope-plugin.js +89 -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.10 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.10"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Vec2
|
|
@@ -254,20 +254,86 @@ 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
|
+
substeps?: number;
|
|
285
|
+
iterations?: number;
|
|
286
|
+
damping?: number;
|
|
287
|
+
gravity?: Vec3;
|
|
288
|
+
anchors?: readonly { index: number; position: Vec3 }[];
|
|
289
|
+
}
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## RopeState
|
|
293
|
+
|
|
294
|
+
来源:`packages/sdk/src/index.ts:140`
|
|
295
|
+
|
|
296
|
+
```ts
|
|
297
|
+
export interface RopeState {
|
|
298
|
+
tick: number; simulatedSeconds: number; disposed: boolean;
|
|
299
|
+
positions: Vec3[]; velocities: Vec3[];
|
|
300
|
+
anchors: { index: number; position: Vec3 }[];
|
|
301
|
+
contacts: { tick: number; particle: number; colliderId: string; penetration: number }[];
|
|
302
|
+
maxDistanceError: number;
|
|
303
|
+
resources: { particles: number; constraints: number; anchors: number; colliders: number };
|
|
304
|
+
}
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
## RopeService
|
|
308
|
+
|
|
309
|
+
来源:`packages/sdk/src/index.ts:148`
|
|
310
|
+
|
|
311
|
+
```ts
|
|
312
|
+
export interface RopeService {
|
|
313
|
+
create(definition: RopeDefinition): void;
|
|
314
|
+
/** Explicit fixed solver ticks; not automatically advanced with the host. A failed batch leaves the rope unchanged. */
|
|
315
|
+
step(id: string, ticks?: number): RopeState;
|
|
316
|
+
inspect(id: string): RopeState;
|
|
317
|
+
setColliders(id: string, colliders: readonly RopeCollider[]): void;
|
|
318
|
+
setAnchor(id: string, index: number, position: Vec3): void;
|
|
319
|
+
releaseAnchor(id: string, index: number): void;
|
|
320
|
+
applyForce(id: string, index: number, force: Vec3): void;
|
|
321
|
+
applyImpulse(id: string, index: number, impulse: Vec3): void;
|
|
322
|
+
destroy(id: string): void;
|
|
323
|
+
}
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
## NavigationCell
|
|
327
|
+
|
|
328
|
+
来源:`packages/sdk/src/index.ts:163`
|
|
329
|
+
|
|
264
330
|
```ts
|
|
265
331
|
export interface NavigationCell { readonly x: number; readonly y: number }
|
|
266
332
|
```
|
|
267
333
|
|
|
268
334
|
## NavigationObstacleUpdate
|
|
269
335
|
|
|
270
|
-
来源:`packages/sdk/src/index.ts:
|
|
336
|
+
来源:`packages/sdk/src/index.ts:165`
|
|
271
337
|
|
|
272
338
|
```ts
|
|
273
339
|
export interface NavigationObstacleUpdate { readonly cell: NavigationCell; readonly blocked: boolean }
|
|
@@ -275,7 +341,7 @@ export interface NavigationObstacleUpdate { readonly cell: NavigationCell; reado
|
|
|
275
341
|
|
|
276
342
|
## NavigationGrid
|
|
277
343
|
|
|
278
|
-
来源:`packages/sdk/src/index.ts:
|
|
344
|
+
来源:`packages/sdk/src/index.ts:166`
|
|
279
345
|
|
|
280
346
|
```ts
|
|
281
347
|
export interface NavigationGrid {
|
|
@@ -291,7 +357,7 @@ export interface NavigationGrid {
|
|
|
291
357
|
|
|
292
358
|
## NavigationService
|
|
293
359
|
|
|
294
|
-
来源:`packages/sdk/src/index.ts:
|
|
360
|
+
来源:`packages/sdk/src/index.ts:175`
|
|
295
361
|
|
|
296
362
|
```ts
|
|
297
363
|
export interface NavigationService {
|
|
@@ -310,7 +376,7 @@ export interface NavigationService {
|
|
|
310
376
|
|
|
311
377
|
## RenderMode
|
|
312
378
|
|
|
313
|
-
来源:`packages/sdk/src/index.ts:
|
|
379
|
+
来源:`packages/sdk/src/index.ts:187`
|
|
314
380
|
|
|
315
381
|
```ts
|
|
316
382
|
export type RenderMode = "raster" | "hybrid" | "path";
|
|
@@ -318,7 +384,7 @@ export type RenderMode = "raster" | "hybrid" | "path";
|
|
|
318
384
|
|
|
319
385
|
## RenderCapabilities
|
|
320
386
|
|
|
321
|
-
来源:`packages/sdk/src/index.ts:
|
|
387
|
+
来源:`packages/sdk/src/index.ts:188`
|
|
322
388
|
|
|
323
389
|
```ts
|
|
324
390
|
export interface RenderCapabilities {
|
|
@@ -330,7 +396,7 @@ export interface RenderCapabilities {
|
|
|
330
396
|
|
|
331
397
|
## RenderSettings
|
|
332
398
|
|
|
333
|
-
来源:`packages/sdk/src/index.ts:
|
|
399
|
+
来源:`packages/sdk/src/index.ts:193`
|
|
334
400
|
|
|
335
401
|
```ts
|
|
336
402
|
export interface RenderSettings {
|
|
@@ -348,7 +414,7 @@ export interface RenderSettings {
|
|
|
348
414
|
|
|
349
415
|
## RenderService
|
|
350
416
|
|
|
351
|
-
来源:`packages/sdk/src/index.ts:
|
|
417
|
+
来源:`packages/sdk/src/index.ts:204`
|
|
352
418
|
|
|
353
419
|
```ts
|
|
354
420
|
export interface RenderService {
|
|
@@ -365,7 +431,7 @@ export interface RenderService {
|
|
|
365
431
|
|
|
366
432
|
## MaterialBufferInput
|
|
367
433
|
|
|
368
|
-
来源:`packages/sdk/src/index.ts:
|
|
434
|
+
来源:`packages/sdk/src/index.ts:214`
|
|
369
435
|
|
|
370
436
|
```ts
|
|
371
437
|
export interface MaterialBufferInput {
|
|
@@ -381,7 +447,7 @@ export interface MaterialBufferInput {
|
|
|
381
447
|
|
|
382
448
|
## RenderBufferReference
|
|
383
449
|
|
|
384
|
-
来源:`packages/sdk/src/index.ts:
|
|
450
|
+
来源:`packages/sdk/src/index.ts:223`
|
|
385
451
|
|
|
386
452
|
```ts
|
|
387
453
|
export interface RenderBufferReference {
|
|
@@ -393,7 +459,7 @@ export interface RenderBufferReference {
|
|
|
393
459
|
|
|
394
460
|
## RenderBufferBindings
|
|
395
461
|
|
|
396
|
-
来源:`packages/sdk/src/index.ts:
|
|
462
|
+
来源:`packages/sdk/src/index.ts:228`
|
|
397
463
|
|
|
398
464
|
```ts
|
|
399
465
|
export interface RenderBufferBindings {
|
|
@@ -405,7 +471,7 @@ export interface RenderBufferBindings {
|
|
|
405
471
|
|
|
406
472
|
## MaterialTextureInput
|
|
407
473
|
|
|
408
|
-
来源:`packages/sdk/src/index.ts:
|
|
474
|
+
来源:`packages/sdk/src/index.ts:233`
|
|
409
475
|
|
|
410
476
|
```ts
|
|
411
477
|
export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
@@ -418,7 +484,7 @@ export interface MaterialTextureInput extends ComputeTextureBinding {
|
|
|
418
484
|
|
|
419
485
|
## RenderTextureReference
|
|
420
486
|
|
|
421
|
-
来源:`packages/sdk/src/index.ts:
|
|
487
|
+
来源:`packages/sdk/src/index.ts:239`
|
|
422
488
|
|
|
423
489
|
```ts
|
|
424
490
|
export interface RenderTextureReference extends ComputeTextureSize {
|
|
@@ -429,7 +495,7 @@ export interface RenderTextureReference extends ComputeTextureSize {
|
|
|
429
495
|
|
|
430
496
|
## RenderTextureBindings
|
|
431
497
|
|
|
432
|
-
来源:`packages/sdk/src/index.ts:
|
|
498
|
+
来源:`packages/sdk/src/index.ts:243`
|
|
433
499
|
|
|
434
500
|
```ts
|
|
435
501
|
export interface RenderTextureBindings {
|
|
@@ -441,7 +507,7 @@ export interface RenderTextureBindings {
|
|
|
441
507
|
|
|
442
508
|
## PostProcessState
|
|
443
509
|
|
|
444
|
-
来源:`packages/sdk/src/index.ts:
|
|
510
|
+
来源:`packages/sdk/src/index.ts:248`
|
|
445
511
|
|
|
446
512
|
```ts
|
|
447
513
|
export interface PostProcessState {
|
|
@@ -453,7 +519,7 @@ export interface PostProcessState {
|
|
|
453
519
|
|
|
454
520
|
## PostProcessService
|
|
455
521
|
|
|
456
|
-
来源:`packages/sdk/src/index.ts:
|
|
522
|
+
来源:`packages/sdk/src/index.ts:253`
|
|
457
523
|
|
|
458
524
|
```ts
|
|
459
525
|
export interface PostProcessService {
|
|
@@ -470,7 +536,7 @@ export interface PostProcessService {
|
|
|
470
536
|
|
|
471
537
|
## ComputeBufferHandle
|
|
472
538
|
|
|
473
|
-
来源:`packages/sdk/src/index.ts:
|
|
539
|
+
来源:`packages/sdk/src/index.ts:263`
|
|
474
540
|
|
|
475
541
|
```ts
|
|
476
542
|
export interface ComputeBufferHandle {
|
|
@@ -482,7 +548,7 @@ export interface ComputeBufferHandle {
|
|
|
482
548
|
|
|
483
549
|
## ComputeTaskHandle
|
|
484
550
|
|
|
485
|
-
来源:`packages/sdk/src/index.ts:
|
|
551
|
+
来源:`packages/sdk/src/index.ts:268`
|
|
486
552
|
|
|
487
553
|
```ts
|
|
488
554
|
export interface ComputeTaskHandle {
|
|
@@ -493,7 +559,7 @@ export interface ComputeTaskHandle {
|
|
|
493
559
|
|
|
494
560
|
## ComputeBufferInput
|
|
495
561
|
|
|
496
|
-
来源:`packages/sdk/src/index.ts:
|
|
562
|
+
来源:`packages/sdk/src/index.ts:272`
|
|
497
563
|
|
|
498
564
|
```ts
|
|
499
565
|
export interface ComputeBufferInput {
|
|
@@ -506,7 +572,7 @@ export interface ComputeBufferInput {
|
|
|
506
572
|
|
|
507
573
|
## ComputeTextureHandle
|
|
508
574
|
|
|
509
|
-
来源:`packages/sdk/src/index.ts:
|
|
575
|
+
来源:`packages/sdk/src/index.ts:278`
|
|
510
576
|
|
|
511
577
|
```ts
|
|
512
578
|
export interface ComputeTextureHandle {
|
|
@@ -519,7 +585,7 @@ export interface ComputeTextureHandle {
|
|
|
519
585
|
|
|
520
586
|
## ComputeTextureSize
|
|
521
587
|
|
|
522
|
-
来源:`packages/sdk/src/index.ts:
|
|
588
|
+
来源:`packages/sdk/src/index.ts:284`
|
|
523
589
|
|
|
524
590
|
```ts
|
|
525
591
|
export interface ComputeTextureSize {
|
|
@@ -530,7 +596,7 @@ export interface ComputeTextureSize {
|
|
|
530
596
|
|
|
531
597
|
## ComputeTextureDataInput
|
|
532
598
|
|
|
533
|
-
来源:`packages/sdk/src/index.ts:
|
|
599
|
+
来源:`packages/sdk/src/index.ts:288`
|
|
534
600
|
|
|
535
601
|
```ts
|
|
536
602
|
export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
@@ -543,7 +609,7 @@ export interface ComputeTextureDataInput extends ComputeTextureSize {
|
|
|
543
609
|
|
|
544
610
|
## ComputeTextureAssetInput
|
|
545
611
|
|
|
546
|
-
来源:`packages/sdk/src/index.ts:
|
|
612
|
+
来源:`packages/sdk/src/index.ts:294`
|
|
547
613
|
|
|
548
614
|
```ts
|
|
549
615
|
export interface ComputeTextureAssetInput {
|
|
@@ -557,7 +623,7 @@ export interface ComputeTextureAssetInput {
|
|
|
557
623
|
|
|
558
624
|
## ComputeTextureInput
|
|
559
625
|
|
|
560
|
-
来源:`packages/sdk/src/index.ts:
|
|
626
|
+
来源:`packages/sdk/src/index.ts:301`
|
|
561
627
|
|
|
562
628
|
```ts
|
|
563
629
|
export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetInput;
|
|
@@ -565,7 +631,7 @@ export type ComputeTextureInput = ComputeTextureDataInput | ComputeTextureAssetI
|
|
|
565
631
|
|
|
566
632
|
## ComputeTextureBinding
|
|
567
633
|
|
|
568
|
-
来源:`packages/sdk/src/index.ts:
|
|
634
|
+
来源:`packages/sdk/src/index.ts:302`
|
|
569
635
|
|
|
570
636
|
```ts
|
|
571
637
|
export interface ComputeTextureBinding {
|
|
@@ -578,7 +644,7 @@ export interface ComputeTextureBinding {
|
|
|
578
644
|
|
|
579
645
|
## ComputeDispatchInput
|
|
580
646
|
|
|
581
|
-
来源:`packages/sdk/src/index.ts:
|
|
647
|
+
来源:`packages/sdk/src/index.ts:308`
|
|
582
648
|
|
|
583
649
|
```ts
|
|
584
650
|
export interface ComputeDispatchInput {
|
|
@@ -597,7 +663,7 @@ export interface ComputeDispatchInput {
|
|
|
597
663
|
|
|
598
664
|
## ComputeTaskState
|
|
599
665
|
|
|
600
|
-
来源:`packages/sdk/src/index.ts:
|
|
666
|
+
来源:`packages/sdk/src/index.ts:320`
|
|
601
667
|
|
|
602
668
|
```ts
|
|
603
669
|
export interface ComputeTaskState {
|
|
@@ -608,7 +674,7 @@ export interface ComputeTaskState {
|
|
|
608
674
|
|
|
609
675
|
## ComputeService
|
|
610
676
|
|
|
611
|
-
来源:`packages/sdk/src/index.ts:
|
|
677
|
+
来源:`packages/sdk/src/index.ts:324`
|
|
612
678
|
|
|
613
679
|
```ts
|
|
614
680
|
export interface ComputeService {
|
|
@@ -635,7 +701,7 @@ export interface ComputeService {
|
|
|
635
701
|
|
|
636
702
|
## InputService
|
|
637
703
|
|
|
638
|
-
来源:`packages/sdk/src/index.ts:
|
|
704
|
+
来源:`packages/sdk/src/index.ts:344`
|
|
639
705
|
|
|
640
706
|
```ts
|
|
641
707
|
export interface InputService {
|
|
@@ -648,7 +714,7 @@ export interface InputService {
|
|
|
648
714
|
|
|
649
715
|
## PhysicsService
|
|
650
716
|
|
|
651
|
-
来源:`packages/sdk/src/index.ts:
|
|
717
|
+
来源:`packages/sdk/src/index.ts:350`
|
|
652
718
|
|
|
653
719
|
```ts
|
|
654
720
|
export interface PhysicsService {
|
|
@@ -675,7 +741,7 @@ export interface PhysicsService {
|
|
|
675
741
|
|
|
676
742
|
## AnimationService
|
|
677
743
|
|
|
678
|
-
来源:`packages/sdk/src/index.ts:
|
|
744
|
+
来源:`packages/sdk/src/index.ts:370`
|
|
679
745
|
|
|
680
746
|
```ts
|
|
681
747
|
export interface AnimationService {
|
|
@@ -694,7 +760,7 @@ export interface AnimationService {
|
|
|
694
760
|
|
|
695
761
|
## CameraService
|
|
696
762
|
|
|
697
|
-
来源:`packages/sdk/src/index.ts:
|
|
763
|
+
来源:`packages/sdk/src/index.ts:382`
|
|
698
764
|
|
|
699
765
|
```ts
|
|
700
766
|
export interface CameraService {
|
|
@@ -714,7 +780,7 @@ export interface CameraService {
|
|
|
714
780
|
|
|
715
781
|
## UIService
|
|
716
782
|
|
|
717
|
-
来源:`packages/sdk/src/index.ts:
|
|
783
|
+
来源:`packages/sdk/src/index.ts:395`
|
|
718
784
|
|
|
719
785
|
```ts
|
|
720
786
|
export interface UIService {
|
|
@@ -726,7 +792,7 @@ export interface UIService {
|
|
|
726
792
|
|
|
727
793
|
## AudioService
|
|
728
794
|
|
|
729
|
-
来源:`packages/sdk/src/index.ts:
|
|
795
|
+
来源:`packages/sdk/src/index.ts:400`
|
|
730
796
|
|
|
731
797
|
```ts
|
|
732
798
|
export interface AudioService {
|
|
@@ -748,7 +814,7 @@ export interface AudioService {
|
|
|
748
814
|
|
|
749
815
|
## StorageService
|
|
750
816
|
|
|
751
|
-
来源:`packages/sdk/src/index.ts:
|
|
817
|
+
来源:`packages/sdk/src/index.ts:415`
|
|
752
818
|
|
|
753
819
|
```ts
|
|
754
820
|
export interface StorageService {
|
|
@@ -764,7 +830,7 @@ export interface StorageService {
|
|
|
764
830
|
|
|
765
831
|
## SceneService
|
|
766
832
|
|
|
767
|
-
来源:`packages/sdk/src/index.ts:
|
|
833
|
+
来源:`packages/sdk/src/index.ts:424`
|
|
768
834
|
|
|
769
835
|
```ts
|
|
770
836
|
export interface SceneService {
|
|
@@ -775,7 +841,7 @@ export interface SceneService {
|
|
|
775
841
|
|
|
776
842
|
## ModelDefinition
|
|
777
843
|
|
|
778
|
-
来源:`packages/sdk/src/index.ts:
|
|
844
|
+
来源:`packages/sdk/src/index.ts:428`
|
|
779
845
|
|
|
780
846
|
```ts
|
|
781
847
|
export interface ModelDefinition {
|
|
@@ -795,7 +861,7 @@ export interface ModelDefinition {
|
|
|
795
861
|
|
|
796
862
|
## RigidBodyDefinition
|
|
797
863
|
|
|
798
|
-
来源:`packages/sdk/src/index.ts:
|
|
864
|
+
来源:`packages/sdk/src/index.ts:441`
|
|
799
865
|
|
|
800
866
|
```ts
|
|
801
867
|
export interface RigidBodyDefinition {
|
|
@@ -816,7 +882,7 @@ export interface RigidBodyDefinition {
|
|
|
816
882
|
|
|
817
883
|
## CharacterDefinition
|
|
818
884
|
|
|
819
|
-
来源:`packages/sdk/src/index.ts:
|
|
885
|
+
来源:`packages/sdk/src/index.ts:455`
|
|
820
886
|
|
|
821
887
|
```ts
|
|
822
888
|
export interface CharacterDefinition {
|
|
@@ -831,7 +897,7 @@ export interface CharacterDefinition {
|
|
|
831
897
|
|
|
832
898
|
## UIElementDefinition
|
|
833
899
|
|
|
834
|
-
来源:`packages/sdk/src/index.ts:
|
|
900
|
+
来源:`packages/sdk/src/index.ts:463`
|
|
835
901
|
|
|
836
902
|
```ts
|
|
837
903
|
export interface UIElementDefinition {
|
|
@@ -851,7 +917,7 @@ export interface UIElementDefinition {
|
|
|
851
917
|
|
|
852
918
|
## SoundDefinition
|
|
853
919
|
|
|
854
|
-
来源:`packages/sdk/src/index.ts:
|
|
920
|
+
来源:`packages/sdk/src/index.ts:476`
|
|
855
921
|
|
|
856
922
|
```ts
|
|
857
923
|
export interface SoundDefinition {
|
|
@@ -865,7 +931,7 @@ export interface SoundDefinition {
|
|
|
865
931
|
|
|
866
932
|
## AudioBusDefinition
|
|
867
933
|
|
|
868
|
-
来源:`packages/sdk/src/index.ts:
|
|
934
|
+
来源:`packages/sdk/src/index.ts:483`
|
|
869
935
|
|
|
870
936
|
```ts
|
|
871
937
|
export interface AudioBusDefinition {
|
|
@@ -876,7 +942,7 @@ export interface AudioBusDefinition {
|
|
|
876
942
|
|
|
877
943
|
## SYSTEM_PHASES
|
|
878
944
|
|
|
879
|
-
来源:`packages/sdk/src/index.ts:
|
|
945
|
+
来源:`packages/sdk/src/index.ts:487`
|
|
880
946
|
|
|
881
947
|
```ts
|
|
882
948
|
SYSTEM_PHASES = [
|
|
@@ -891,7 +957,7 @@ SYSTEM_PHASES = [
|
|
|
891
957
|
|
|
892
958
|
## SystemPhase
|
|
893
959
|
|
|
894
|
-
来源:`packages/sdk/src/index.ts:
|
|
960
|
+
来源:`packages/sdk/src/index.ts:495`
|
|
895
961
|
|
|
896
962
|
```ts
|
|
897
963
|
export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
@@ -899,7 +965,7 @@ export type SystemPhase = (typeof SYSTEM_PHASES)[number];
|
|
|
899
965
|
|
|
900
966
|
## Geometry
|
|
901
967
|
|
|
902
|
-
来源:`packages/sdk/src/index.ts:
|
|
968
|
+
来源:`packages/sdk/src/index.ts:496`
|
|
903
969
|
|
|
904
970
|
```ts
|
|
905
971
|
export type Geometry =
|
|
@@ -910,7 +976,7 @@ export type Geometry =
|
|
|
910
976
|
|
|
911
977
|
## GRAPH_TYPES
|
|
912
978
|
|
|
913
|
-
来源:`packages/sdk/src/index.ts:
|
|
979
|
+
来源:`packages/sdk/src/index.ts:500`
|
|
914
980
|
|
|
915
981
|
```ts
|
|
916
982
|
GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
@@ -918,7 +984,7 @@ GRAPH_TYPES = ["float", "vec2", "vec3", "vec4", "bool"] as const
|
|
|
918
984
|
|
|
919
985
|
## GraphType
|
|
920
986
|
|
|
921
|
-
来源:`packages/sdk/src/index.ts:
|
|
987
|
+
来源:`packages/sdk/src/index.ts:501`
|
|
922
988
|
|
|
923
989
|
```ts
|
|
924
990
|
export type GraphType = typeof GRAPH_TYPES[number];
|
|
@@ -926,7 +992,7 @@ export type GraphType = typeof GRAPH_TYPES[number];
|
|
|
926
992
|
|
|
927
993
|
## GraphValue
|
|
928
994
|
|
|
929
|
-
来源:`packages/sdk/src/index.ts:
|
|
995
|
+
来源:`packages/sdk/src/index.ts:502`
|
|
930
996
|
|
|
931
997
|
```ts
|
|
932
998
|
export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
@@ -934,7 +1000,7 @@ export type GraphValue = number | boolean | Vec2 | Vec3 | Vec4;
|
|
|
934
1000
|
|
|
935
1001
|
## GraphParameter
|
|
936
1002
|
|
|
937
|
-
来源:`packages/sdk/src/index.ts:
|
|
1003
|
+
来源:`packages/sdk/src/index.ts:503`
|
|
938
1004
|
|
|
939
1005
|
```ts
|
|
940
1006
|
export interface GraphParameter {
|
|
@@ -946,7 +1012,7 @@ export interface GraphParameter {
|
|
|
946
1012
|
|
|
947
1013
|
## GRAPH_INPUT_TYPES
|
|
948
1014
|
|
|
949
|
-
来源:`packages/sdk/src/index.ts:
|
|
1015
|
+
来源:`packages/sdk/src/index.ts:508`
|
|
950
1016
|
|
|
951
1017
|
```ts
|
|
952
1018
|
GRAPH_INPUT_TYPES = {
|
|
@@ -960,7 +1026,7 @@ GRAPH_INPUT_TYPES = {
|
|
|
960
1026
|
|
|
961
1027
|
## GraphInputName
|
|
962
1028
|
|
|
963
|
-
来源:`packages/sdk/src/index.ts:
|
|
1029
|
+
来源:`packages/sdk/src/index.ts:515`
|
|
964
1030
|
|
|
965
1031
|
```ts
|
|
966
1032
|
export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
@@ -968,7 +1034,7 @@ export type GraphInputName = keyof typeof GRAPH_INPUT_TYPES;
|
|
|
968
1034
|
|
|
969
1035
|
## GRAPH_OPERATIONS
|
|
970
1036
|
|
|
971
|
-
来源:`packages/sdk/src/index.ts:
|
|
1037
|
+
来源:`packages/sdk/src/index.ts:516`
|
|
972
1038
|
|
|
973
1039
|
```ts
|
|
974
1040
|
GRAPH_OPERATIONS = {
|
|
@@ -980,7 +1046,7 @@ GRAPH_OPERATIONS = {
|
|
|
980
1046
|
|
|
981
1047
|
## GraphNode
|
|
982
1048
|
|
|
983
|
-
来源:`packages/sdk/src/index.ts:
|
|
1049
|
+
来源:`packages/sdk/src/index.ts:521`
|
|
984
1050
|
|
|
985
1051
|
```ts
|
|
986
1052
|
export type GraphNode =
|
|
@@ -1007,7 +1073,7 @@ export type GraphNode =
|
|
|
1007
1073
|
|
|
1008
1074
|
## Graph
|
|
1009
1075
|
|
|
1010
|
-
来源:`packages/sdk/src/index.ts:
|
|
1076
|
+
来源:`packages/sdk/src/index.ts:541`
|
|
1011
1077
|
|
|
1012
1078
|
```ts
|
|
1013
1079
|
export interface Graph {
|
|
@@ -1019,7 +1085,7 @@ export interface Graph {
|
|
|
1019
1085
|
|
|
1020
1086
|
## MaterialGraphs
|
|
1021
1087
|
|
|
1022
|
-
来源:`packages/sdk/src/index.ts:
|
|
1088
|
+
来源:`packages/sdk/src/index.ts:546`
|
|
1023
1089
|
|
|
1024
1090
|
```ts
|
|
1025
1091
|
export interface MaterialGraphs {
|
|
@@ -1035,7 +1101,7 @@ export interface MaterialGraphs {
|
|
|
1035
1101
|
|
|
1036
1102
|
## VertexGraphs
|
|
1037
1103
|
|
|
1038
|
-
来源:`packages/sdk/src/index.ts:
|
|
1104
|
+
来源:`packages/sdk/src/index.ts:555`
|
|
1039
1105
|
|
|
1040
1106
|
```ts
|
|
1041
1107
|
export interface VertexGraphs {
|
|
@@ -1048,7 +1114,7 @@ export interface VertexGraphs {
|
|
|
1048
1114
|
|
|
1049
1115
|
## MaterialInput
|
|
1050
1116
|
|
|
1051
|
-
来源:`packages/sdk/src/index.ts:
|
|
1117
|
+
来源:`packages/sdk/src/index.ts:561`
|
|
1052
1118
|
|
|
1053
1119
|
```ts
|
|
1054
1120
|
export interface MaterialInput {
|
|
@@ -1082,7 +1148,7 @@ export interface MaterialInput {
|
|
|
1082
1148
|
|
|
1083
1149
|
## MaterialDefinition
|
|
1084
1150
|
|
|
1085
|
-
来源:`packages/sdk/src/index.ts:
|
|
1151
|
+
来源:`packages/sdk/src/index.ts:588`
|
|
1086
1152
|
|
|
1087
1153
|
```ts
|
|
1088
1154
|
export interface MaterialDefinition extends MaterialInput {
|
|
@@ -1092,7 +1158,7 @@ export interface MaterialDefinition extends MaterialInput {
|
|
|
1092
1158
|
|
|
1093
1159
|
## PostProcessInput
|
|
1094
1160
|
|
|
1095
|
-
来源:`packages/sdk/src/index.ts:
|
|
1161
|
+
来源:`packages/sdk/src/index.ts:591`
|
|
1096
1162
|
|
|
1097
1163
|
```ts
|
|
1098
1164
|
export interface PostProcessInput {
|
|
@@ -1107,7 +1173,7 @@ export interface PostProcessInput {
|
|
|
1107
1173
|
|
|
1108
1174
|
## PostProcessDefinition
|
|
1109
1175
|
|
|
1110
|
-
来源:`packages/sdk/src/index.ts:
|
|
1176
|
+
来源:`packages/sdk/src/index.ts:599`
|
|
1111
1177
|
|
|
1112
1178
|
```ts
|
|
1113
1179
|
export interface PostProcessDefinition extends PostProcessInput {
|
|
@@ -1117,7 +1183,7 @@ export interface PostProcessDefinition extends PostProcessInput {
|
|
|
1117
1183
|
|
|
1118
1184
|
## ComputeInput
|
|
1119
1185
|
|
|
1120
|
-
来源:`packages/sdk/src/index.ts:
|
|
1186
|
+
来源:`packages/sdk/src/index.ts:602`
|
|
1121
1187
|
|
|
1122
1188
|
```ts
|
|
1123
1189
|
export interface ComputeInput {
|
|
@@ -1133,7 +1199,7 @@ export interface ComputeInput {
|
|
|
1133
1199
|
|
|
1134
1200
|
## ComputeDefinition
|
|
1135
1201
|
|
|
1136
|
-
来源:`packages/sdk/src/index.ts:
|
|
1202
|
+
来源:`packages/sdk/src/index.ts:611`
|
|
1137
1203
|
|
|
1138
1204
|
```ts
|
|
1139
1205
|
export interface ComputeDefinition extends ComputeInput {
|
|
@@ -1143,7 +1209,7 @@ export interface ComputeDefinition extends ComputeInput {
|
|
|
1143
1209
|
|
|
1144
1210
|
## AssetInput
|
|
1145
1211
|
|
|
1146
|
-
来源:`packages/sdk/src/index.ts:
|
|
1212
|
+
来源:`packages/sdk/src/index.ts:614`
|
|
1147
1213
|
|
|
1148
1214
|
```ts
|
|
1149
1215
|
export interface AssetInput {
|
|
@@ -1160,7 +1226,7 @@ export interface AssetInput {
|
|
|
1160
1226
|
|
|
1161
1227
|
## AssetDefinition
|
|
1162
1228
|
|
|
1163
|
-
来源:`packages/sdk/src/index.ts:
|
|
1229
|
+
来源:`packages/sdk/src/index.ts:624`
|
|
1164
1230
|
|
|
1165
1231
|
```ts
|
|
1166
1232
|
export interface AssetDefinition extends AssetInput {
|
|
@@ -1170,7 +1236,7 @@ export interface AssetDefinition extends AssetInput {
|
|
|
1170
1236
|
|
|
1171
1237
|
## MeshDefinition
|
|
1172
1238
|
|
|
1173
|
-
来源:`packages/sdk/src/index.ts:
|
|
1239
|
+
来源:`packages/sdk/src/index.ts:627`
|
|
1174
1240
|
|
|
1175
1241
|
```ts
|
|
1176
1242
|
export interface MeshDefinition {
|
|
@@ -1183,7 +1249,7 @@ export interface MeshDefinition {
|
|
|
1183
1249
|
|
|
1184
1250
|
## LightDefinition
|
|
1185
1251
|
|
|
1186
|
-
来源:`packages/sdk/src/index.ts:
|
|
1252
|
+
来源:`packages/sdk/src/index.ts:633`
|
|
1187
1253
|
|
|
1188
1254
|
```ts
|
|
1189
1255
|
export interface LightDefinition {
|
|
@@ -1205,7 +1271,7 @@ export interface LightDefinition {
|
|
|
1205
1271
|
|
|
1206
1272
|
## EntityInput
|
|
1207
1273
|
|
|
1208
|
-
来源:`packages/sdk/src/index.ts:
|
|
1274
|
+
来源:`packages/sdk/src/index.ts:648`
|
|
1209
1275
|
|
|
1210
1276
|
```ts
|
|
1211
1277
|
export interface EntityInput {
|
|
@@ -1224,7 +1290,7 @@ export interface EntityInput {
|
|
|
1224
1290
|
|
|
1225
1291
|
## PrefabInput
|
|
1226
1292
|
|
|
1227
|
-
来源:`packages/sdk/src/index.ts:
|
|
1293
|
+
来源:`packages/sdk/src/index.ts:660`
|
|
1228
1294
|
|
|
1229
1295
|
```ts
|
|
1230
1296
|
export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
@@ -1234,7 +1300,7 @@ export interface PrefabInput extends Omit<EntityInput, "prefab" | "parent"> {
|
|
|
1234
1300
|
|
|
1235
1301
|
## PrefabDefinition
|
|
1236
1302
|
|
|
1237
|
-
来源:`packages/sdk/src/index.ts:
|
|
1303
|
+
来源:`packages/sdk/src/index.ts:663`
|
|
1238
1304
|
|
|
1239
1305
|
```ts
|
|
1240
1306
|
export interface PrefabDefinition extends PrefabInput {
|
|
@@ -1244,7 +1310,7 @@ export interface PrefabDefinition extends PrefabInput {
|
|
|
1244
1310
|
|
|
1245
1311
|
## SceneInput
|
|
1246
1312
|
|
|
1247
|
-
来源:`packages/sdk/src/index.ts:
|
|
1313
|
+
来源:`packages/sdk/src/index.ts:666`
|
|
1248
1314
|
|
|
1249
1315
|
```ts
|
|
1250
1316
|
export interface SceneInput {
|
|
@@ -1276,7 +1342,7 @@ export interface SceneInput {
|
|
|
1276
1342
|
|
|
1277
1343
|
## SceneDefinition
|
|
1278
1344
|
|
|
1279
|
-
来源:`packages/sdk/src/index.ts:
|
|
1345
|
+
来源:`packages/sdk/src/index.ts:691`
|
|
1280
1346
|
|
|
1281
1347
|
```ts
|
|
1282
1348
|
export interface SceneDefinition extends SceneInput {
|
|
@@ -1286,7 +1352,7 @@ export interface SceneDefinition extends SceneInput {
|
|
|
1286
1352
|
|
|
1287
1353
|
## SystemInput
|
|
1288
1354
|
|
|
1289
|
-
来源:`packages/sdk/src/index.ts:
|
|
1355
|
+
来源:`packages/sdk/src/index.ts:694`
|
|
1290
1356
|
|
|
1291
1357
|
```ts
|
|
1292
1358
|
export interface SystemInput {
|
|
@@ -1303,7 +1369,7 @@ export interface SystemInput {
|
|
|
1303
1369
|
|
|
1304
1370
|
## SystemDefinition
|
|
1305
1371
|
|
|
1306
|
-
来源:`packages/sdk/src/index.ts:
|
|
1372
|
+
来源:`packages/sdk/src/index.ts:704`
|
|
1307
1373
|
|
|
1308
1374
|
```ts
|
|
1309
1375
|
export interface SystemDefinition extends SystemInput {
|
|
@@ -1313,7 +1379,7 @@ export interface SystemDefinition extends SystemInput {
|
|
|
1313
1379
|
|
|
1314
1380
|
## GameInput
|
|
1315
1381
|
|
|
1316
|
-
来源:`packages/sdk/src/index.ts:
|
|
1382
|
+
来源:`packages/sdk/src/index.ts:707`
|
|
1317
1383
|
|
|
1318
1384
|
```ts
|
|
1319
1385
|
export interface GameInput {
|
|
@@ -1339,7 +1405,7 @@ export interface GameInput {
|
|
|
1339
1405
|
|
|
1340
1406
|
## GameDefinition
|
|
1341
1407
|
|
|
1342
|
-
来源:`packages/sdk/src/index.ts:
|
|
1408
|
+
来源:`packages/sdk/src/index.ts:726`
|
|
1343
1409
|
|
|
1344
1410
|
```ts
|
|
1345
1411
|
export interface GameDefinition extends GameInput {
|
|
@@ -1349,7 +1415,7 @@ export interface GameDefinition extends GameInput {
|
|
|
1349
1415
|
|
|
1350
1416
|
## GameInstance
|
|
1351
1417
|
|
|
1352
|
-
来源:`packages/sdk/src/index.ts:
|
|
1418
|
+
来源:`packages/sdk/src/index.ts:729`
|
|
1353
1419
|
|
|
1354
1420
|
```ts
|
|
1355
1421
|
export interface GameInstance {
|
|
@@ -1360,7 +1426,7 @@ export interface GameInstance {
|
|
|
1360
1426
|
|
|
1361
1427
|
## defineComponent
|
|
1362
1428
|
|
|
1363
|
-
来源:`packages/sdk/src/index.ts:
|
|
1429
|
+
来源:`packages/sdk/src/index.ts:733`
|
|
1364
1430
|
|
|
1365
1431
|
```ts
|
|
1366
1432
|
export function defineComponent<const S extends ComponentSchema>(input: {
|
|
@@ -1371,7 +1437,7 @@ export function defineComponent<const S extends ComponentSchema>(input: {
|
|
|
1371
1437
|
|
|
1372
1438
|
## defineMaterial
|
|
1373
1439
|
|
|
1374
|
-
来源:`packages/sdk/src/index.ts:
|
|
1440
|
+
来源:`packages/sdk/src/index.ts:739`
|
|
1375
1441
|
|
|
1376
1442
|
```ts
|
|
1377
1443
|
export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
@@ -1379,7 +1445,7 @@ export function defineMaterial(input: MaterialInput): MaterialDefinition;
|
|
|
1379
1445
|
|
|
1380
1446
|
## definePostProcess
|
|
1381
1447
|
|
|
1382
|
-
来源:`packages/sdk/src/index.ts:
|
|
1448
|
+
来源:`packages/sdk/src/index.ts:742`
|
|
1383
1449
|
|
|
1384
1450
|
```ts
|
|
1385
1451
|
export function definePostProcess(input: PostProcessInput): PostProcessDefinition;
|
|
@@ -1387,7 +1453,7 @@ export function definePostProcess(input: PostProcessInput): PostProcessDefinitio
|
|
|
1387
1453
|
|
|
1388
1454
|
## defineCompute
|
|
1389
1455
|
|
|
1390
|
-
来源:`packages/sdk/src/index.ts:
|
|
1456
|
+
来源:`packages/sdk/src/index.ts:745`
|
|
1391
1457
|
|
|
1392
1458
|
```ts
|
|
1393
1459
|
export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
@@ -1395,7 +1461,7 @@ export function defineCompute(input: ComputeInput): ComputeDefinition;
|
|
|
1395
1461
|
|
|
1396
1462
|
## defineAsset
|
|
1397
1463
|
|
|
1398
|
-
来源:`packages/sdk/src/index.ts:
|
|
1464
|
+
来源:`packages/sdk/src/index.ts:748`
|
|
1399
1465
|
|
|
1400
1466
|
```ts
|
|
1401
1467
|
export function defineAsset(input: AssetInput): AssetDefinition;
|
|
@@ -1403,7 +1469,7 @@ export function defineAsset(input: AssetInput): AssetDefinition;
|
|
|
1403
1469
|
|
|
1404
1470
|
## definePrefab
|
|
1405
1471
|
|
|
1406
|
-
来源:`packages/sdk/src/index.ts:
|
|
1472
|
+
来源:`packages/sdk/src/index.ts:751`
|
|
1407
1473
|
|
|
1408
1474
|
```ts
|
|
1409
1475
|
export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
@@ -1411,7 +1477,7 @@ export function definePrefab(input: PrefabInput): PrefabDefinition;
|
|
|
1411
1477
|
|
|
1412
1478
|
## defineScene
|
|
1413
1479
|
|
|
1414
|
-
来源:`packages/sdk/src/index.ts:
|
|
1480
|
+
来源:`packages/sdk/src/index.ts:754`
|
|
1415
1481
|
|
|
1416
1482
|
```ts
|
|
1417
1483
|
export function defineScene(input: SceneInput): SceneDefinition;
|
|
@@ -1419,7 +1485,7 @@ export function defineScene(input: SceneInput): SceneDefinition;
|
|
|
1419
1485
|
|
|
1420
1486
|
## defineSystem
|
|
1421
1487
|
|
|
1422
|
-
来源:`packages/sdk/src/index.ts:
|
|
1488
|
+
来源:`packages/sdk/src/index.ts:757`
|
|
1423
1489
|
|
|
1424
1490
|
```ts
|
|
1425
1491
|
export function defineSystem(input: SystemInput): SystemDefinition;
|
|
@@ -1427,7 +1493,7 @@ export function defineSystem(input: SystemInput): SystemDefinition;
|
|
|
1427
1493
|
|
|
1428
1494
|
## defineGame
|
|
1429
1495
|
|
|
1430
|
-
来源:`packages/sdk/src/index.ts:
|
|
1496
|
+
来源:`packages/sdk/src/index.ts:760`
|
|
1431
1497
|
|
|
1432
1498
|
```ts
|
|
1433
1499
|
export function defineGame(input: GameInput): GameDefinition;
|
|
@@ -1435,7 +1501,7 @@ export function defineGame(input: GameInput): GameDefinition;
|
|
|
1435
1501
|
|
|
1436
1502
|
## instantiateGame
|
|
1437
1503
|
|
|
1438
|
-
来源:`packages/sdk/src/index.ts:
|
|
1504
|
+
来源:`packages/sdk/src/index.ts:764`
|
|
1439
1505
|
|
|
1440
1506
|
```ts
|
|
1441
1507
|
export function instantiateGame(
|