@zylem/game-lib 0.8.8 → 0.9.0
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/README.md +7 -1
- package/dist/actions.d.ts +2 -2
- package/dist/actions.js +1 -1
- package/dist/api/game-lib.api.json +35786 -18973
- package/dist/api/game-lib.api.md +1209 -13
- package/dist/api/game-lib.d.ts +1609 -7
- package/dist/api/game-lib.typedoc.json +220861 -97409
- package/dist/audio.d.ts +193 -1
- package/dist/audio.js +1 -1
- package/dist/behavior.js +1 -1
- package/dist/bridge.d.ts +46 -6
- package/dist/bridge.js +1 -1
- package/dist/catalog.d.ts +91 -3
- package/dist/catalog.js +1 -1
- package/dist/chunk-2HSR5XDQ.js +1 -0
- package/dist/chunk-2MHB4X6B.js +24 -0
- package/dist/chunk-2PFNNGTV.js +1 -0
- package/dist/chunk-2XMG3NJS.js +1 -0
- package/dist/chunk-4CZZZCFB.js +9 -0
- package/dist/{chunk-7NYP4YAG.js → chunk-6FGXC4T6.js} +1 -1
- package/dist/chunk-6XFXPIVB.js +1 -0
- package/dist/{chunk-CBUQBP2U.js → chunk-BQRMYLYD.js} +1 -1
- package/dist/chunk-FZNEWOC5.js +1 -0
- package/dist/chunk-GPCSX3M6.js +1 -0
- package/dist/chunk-HISTSRAL.js +1 -0
- package/dist/chunk-K3NNXZIJ.js +1 -0
- package/dist/chunk-KP6DLLJO.js +1 -0
- package/dist/{chunk-JNFFTNMH.js → chunk-KSEP7AUF.js} +1 -1
- package/dist/{chunk-YOVE25NW.js → chunk-LI43BZQN.js} +1 -1
- package/dist/chunk-LSFWI46T.js +1 -0
- package/dist/chunk-NVVLLWIM.js +1 -0
- package/dist/chunk-QGIYILYI.js +1 -0
- package/dist/chunk-STVEILJJ.js +1 -0
- package/dist/chunk-UUOPT2N4.js +1 -0
- package/dist/chunk-VMXSE3EC.js +0 -0
- package/dist/chunk-VSFULLND.js +1 -0
- package/dist/chunk-VUJXR5K5.js +1 -0
- package/dist/chunk-WOT6VMZA.js +1 -0
- package/dist/chunk-YNX3Q3CL.js +1 -0
- package/dist/chunk-YQS7CGXE.js +1 -0
- package/dist/chunk-ZZO4CKRU.js +1 -0
- package/dist/cinematics.d.ts +279 -0
- package/dist/cinematics.js +1 -0
- package/dist/core.d.ts +13 -10
- package/dist/core.js +1 -1
- package/dist/cutscene-definition-C479fkei.d.ts +509 -0
- package/dist/{debug-state-CpnNRUFh.d.ts → debug-state-Cg3f5FB6.d.ts} +1 -1
- package/dist/debug.d.ts +3 -2
- package/dist/debug.js +1 -1
- package/dist/{entity-XZNGBeca.d.ts → entity-XqvuWgPm.d.ts} +54 -0
- package/dist/{entity-type-map-CkkFMSrL.d.ts → entity-type-map-CrsrKT8c.d.ts} +13 -4
- package/dist/entity.d.ts +4 -3
- package/dist/entity.js +1 -1
- package/dist/events.js +1 -1
- package/dist/game-9PjI5z2p.d.ts +652 -0
- package/dist/game-default-WBKQCEDJ.js +1 -0
- package/dist/globals.js +1 -1
- package/dist/graphics.d.ts +1 -1
- package/dist/graphics.js +1 -1
- package/dist/input-ui.js +1 -1
- package/dist/input.js +1 -1
- package/dist/public.d.ts +14 -8
- package/dist/public.js +1 -1
- package/dist/runtime.js +1 -1
- package/dist/schema/cutscene.schema.json +782 -0
- package/dist/schema/entity.schema.json +24 -24
- package/dist/schema/game-config.schema.json +10 -10
- package/dist/schema/song.schema.json +430 -0
- package/dist/schema/stage.schema.json +29 -29
- package/dist/schema.d.ts +2 -0
- package/dist/schema.js +1 -1
- package/dist/selection-bounds-BKmSo9aG.d.ts +50 -0
- package/dist/song-definition-rEKksP0B.d.ts +263 -0
- package/dist/song-player-7QPLFLAS.js +1 -0
- package/dist/{game-BPOr7zTB.d.ts → stage-BuGkjZnr.d.ts} +90 -644
- package/dist/web-components.d.ts +7 -5
- package/dist/web-components.js +1 -1
- package/dist/{zylem-camera-DZTpPOiD.d.ts → zylem-camera-Baf5vH8Z.d.ts} +8 -0
- package/package.json +25 -16
- package/dist/chunk-34MYRTRP.js +0 -9
- package/dist/chunk-AE3CTVHY.js +0 -1
- package/dist/chunk-BMRFDDMR.js +0 -1
- package/dist/chunk-EVMLNMGU.js +0 -1
- package/dist/chunk-F5LROYZL.js +0 -24
- package/dist/chunk-GHJQ2HKI.js +0 -1
- package/dist/chunk-HNCTOJP7.js +0 -1
- package/dist/chunk-IBJLPJLE.js +0 -1
- package/dist/chunk-MXO4VGDB.js +0 -1
- package/dist/chunk-QDQ4QMAI.js +0 -1
- package/dist/chunk-SAQA4SXW.js +0 -1
- package/dist/chunk-XK63E4SX.js +0 -1
- package/dist/chunk-ZRT3ZQVH.js +0 -1
- package/dist/chunk-ZTYNZ2N2.js +0 -1
- package/dist/game-default-7HCJJF5S.js +0 -1
- /package/dist/{chunk-MSCVL5OK.js → chunk-ELQN62PQ.js} +0 -0
package/dist/api/game-lib.api.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import { abs } from 'three/tsl';
|
|
8
8
|
import { announceBridgeReady } from '@zylem/bridge';
|
|
9
|
+
import { applySwatchesToSelection } from '@zylem/bridge';
|
|
9
10
|
import { asin } from 'three/tsl';
|
|
10
11
|
import { atan } from 'three/tsl';
|
|
11
12
|
import { BehaviorDescriptor } from '@zylem/behaviors';
|
|
@@ -27,6 +28,7 @@ import { BoundaryRicochet3DEntity } from '@zylem/behaviors';
|
|
|
27
28
|
import { BoundaryRicochetCoordinator } from '@zylem/behaviors';
|
|
28
29
|
import { BoundaryRicochetEntity } from '@zylem/behaviors';
|
|
29
30
|
import { BoundaryRicochetUpdate } from '@zylem/behaviors';
|
|
31
|
+
import { Box3 } from 'three';
|
|
30
32
|
import { BRIDGE_READY_EVENT } from '@zylem/bridge';
|
|
31
33
|
import { BridgeChannel } from '@zylem/bridge';
|
|
32
34
|
import { BridgeDebugTool } from '@zylem/bridge';
|
|
@@ -34,11 +36,13 @@ import { BridgeHandler } from '@zylem/bridge';
|
|
|
34
36
|
import { GameLoadingPayload as BridgeLoadingPayload } from '@zylem/bridge';
|
|
35
37
|
import { BridgeMessages } from '@zylem/bridge';
|
|
36
38
|
import { BridgeMessageType } from '@zylem/bridge';
|
|
39
|
+
import { BridgeNdc } from '@zylem/bridge';
|
|
37
40
|
import { BridgePose } from '@zylem/bridge';
|
|
38
41
|
import { BridgeVec3 } from '@zylem/bridge';
|
|
39
42
|
import { BufferGeometry } from 'three';
|
|
40
43
|
import { BurstParticlePresetOptions } from '@zylem/behaviors';
|
|
41
44
|
import { Camera } from 'three';
|
|
45
|
+
import { CameraPosePayload } from '@zylem/bridge';
|
|
42
46
|
import { clamp } from 'three/tsl';
|
|
43
47
|
import { Color } from 'three';
|
|
44
48
|
import { ColorRepresentation } from 'three';
|
|
@@ -76,6 +80,10 @@ import { createTopDownMovementInputComponent } from '@zylem/behaviors';
|
|
|
76
80
|
import { createTopDownMovementStateComponent } from '@zylem/behaviors';
|
|
77
81
|
import { createTransformComponent } from '@zylem/behaviors';
|
|
78
82
|
import { createTransformStore } from '@zylem/behaviors/core';
|
|
83
|
+
import { CutsceneLoadPayload } from '@zylem/bridge';
|
|
84
|
+
import { CutscenePlaybackState } from '@zylem/bridge';
|
|
85
|
+
import { CutsceneStatusPayload } from '@zylem/bridge';
|
|
86
|
+
import { CutsceneViewPayload } from '@zylem/bridge';
|
|
79
87
|
import { defineBehavior } from '@zylem/behaviors';
|
|
80
88
|
import { DefineBehaviorConfig } from '@zylem/behaviors';
|
|
81
89
|
import { Destructible3DBehavior } from '@zylem/behaviors';
|
|
@@ -94,7 +102,10 @@ import { emitRuntimeTriggerRegionEnter } from '@zylem/behaviors/runtime-2d';
|
|
|
94
102
|
import { EntityApplySwatchPayload } from '@zylem/bridge';
|
|
95
103
|
import { EntityDefinition } from '@zylem/behaviors/core';
|
|
96
104
|
import { EntityHandle } from '@zylem/behaviors/core';
|
|
105
|
+
import { EntityPickPayload } from '@zylem/bridge';
|
|
106
|
+
import { EntityPickResultPayload } from '@zylem/bridge';
|
|
97
107
|
import { EntitySummaryPayload } from '@zylem/bridge';
|
|
108
|
+
import { EntitySwatchAppliedPayload } from '@zylem/bridge';
|
|
98
109
|
import { EntityThumbnailPayload } from '@zylem/bridge';
|
|
99
110
|
import { EntityTypeDescriptor } from '@zylem/bridge';
|
|
100
111
|
import { exp } from 'three/tsl';
|
|
@@ -282,6 +293,7 @@ import { RuntimeTriggerRegion2DEvent } from '@zylem/behaviors/runtime-2d';
|
|
|
282
293
|
import { RuntimeTriggerRegion2DHandle } from '@zylem/behaviors/runtime-2d';
|
|
283
294
|
import { RuntimeTriggerRegion2DOptions } from '@zylem/behaviors/runtime-2d';
|
|
284
295
|
import { Scene } from 'three';
|
|
296
|
+
import { SceneOperationEntry } from '@zylem/bridge';
|
|
285
297
|
import { SceneOperationPayload } from '@zylem/bridge';
|
|
286
298
|
import { ScreenVisibilityBehavior } from '@zylem/behaviors';
|
|
287
299
|
import { ScreenVisibilityChangeContext } from '@zylem/behaviors';
|
|
@@ -342,6 +354,10 @@ import { StageSnapshotPayload } from '@zylem/bridge';
|
|
|
342
354
|
import { StageTopDownPlane } from '@zylem/behaviors/core';
|
|
343
355
|
import { Static } from '@sinclair/typebox';
|
|
344
356
|
import { step } from 'three/tsl';
|
|
357
|
+
import { SwatchApplyFailureReason } from '@zylem/bridge';
|
|
358
|
+
import { SwatchApplyResult } from '@zylem/bridge';
|
|
359
|
+
import { SwatchKind } from '@zylem/bridge';
|
|
360
|
+
import { SwatchSpec } from '@zylem/bridge';
|
|
345
361
|
import { Texture } from 'three';
|
|
346
362
|
import * as three from 'three';
|
|
347
363
|
import { ThrusterBehavior } from '@zylem/behaviors';
|
|
@@ -356,6 +372,7 @@ import { ThrusterState } from '@zylem/behaviors';
|
|
|
356
372
|
import { ThrusterStateComponent } from '@zylem/behaviors';
|
|
357
373
|
import { tickCooldowns } from '@zylem/behaviors';
|
|
358
374
|
import { time } from 'three/tsl';
|
|
375
|
+
import * as ToneNs from 'tone';
|
|
359
376
|
import { TopDownMovementBehavior } from '@zylem/behaviors';
|
|
360
377
|
import { TopDownMovementBehaviorOptions } from '@zylem/behaviors';
|
|
361
378
|
import { TopDownMovementComponent } from '@zylem/behaviors';
|
|
@@ -417,6 +434,9 @@ export interface Action {
|
|
|
417
434
|
tick(entity: GameEntity<any>, delta: number): void;
|
|
418
435
|
}
|
|
419
436
|
|
|
437
|
+
// @public
|
|
438
|
+
export function activeShot(definition: CutsceneDefinition, time: number): CameraShot | undefined;
|
|
439
|
+
|
|
420
440
|
// @public (undocumented)
|
|
421
441
|
export const ACTOR_TYPE: unique symbol;
|
|
422
442
|
|
|
@@ -438,6 +458,8 @@ export interface AnalogState {
|
|
|
438
458
|
|
|
439
459
|
export { announceBridgeReady }
|
|
440
460
|
|
|
461
|
+
export { applySwatchesToSelection }
|
|
462
|
+
|
|
441
463
|
// Warning: (ae-forgotten-export) The symbol "TransformableEntity" needs to be exported by the entry point public.d.ts
|
|
442
464
|
//
|
|
443
465
|
// @public
|
|
@@ -459,6 +481,49 @@ export type AspectRatioValue = (typeof AspectRatio)[keyof typeof AspectRatio] |
|
|
|
459
481
|
|
|
460
482
|
export { atan }
|
|
461
483
|
|
|
484
|
+
// @public
|
|
485
|
+
export function audibleTrackIds(tracks: readonly SongTrack[]): Set<string>;
|
|
486
|
+
|
|
487
|
+
// @public (undocumented)
|
|
488
|
+
export type AudioClip = Static<typeof AudioClipSchema>;
|
|
489
|
+
|
|
490
|
+
// @public (undocumented)
|
|
491
|
+
export const AudioClipSchema: _sinclair_typebox.TObject<{
|
|
492
|
+
kind: _sinclair_typebox.TLiteral<"audio">;
|
|
493
|
+
id: _sinclair_typebox.TString;
|
|
494
|
+
trackId: _sinclair_typebox.TString;
|
|
495
|
+
name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
496
|
+
url: _sinclair_typebox.TString;
|
|
497
|
+
start: _sinclair_typebox.TNumber;
|
|
498
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
499
|
+
length: _sinclair_typebox.TNumber;
|
|
500
|
+
gain: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
501
|
+
}>;
|
|
502
|
+
|
|
503
|
+
// @public (undocumented)
|
|
504
|
+
export type AudioItem = Static<typeof AudioItemSchema>;
|
|
505
|
+
|
|
506
|
+
// @public (undocumented)
|
|
507
|
+
export const AudioItemSchema: _sinclair_typebox.TObject<{
|
|
508
|
+
id: _sinclair_typebox.TString;
|
|
509
|
+
time: _sinclair_typebox.TNumber;
|
|
510
|
+
kind: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"song">, _sinclair_typebox.TLiteral<"sfx">]>;
|
|
511
|
+
ref: _sinclair_typebox.TString;
|
|
512
|
+
loop: _sinclair_typebox.TBoolean;
|
|
513
|
+
volume: _sinclair_typebox.TNumber;
|
|
514
|
+
}>;
|
|
515
|
+
|
|
516
|
+
// Warning: (ae-forgotten-export) The symbol "AudioTrackSchema" needs to be exported by the entry point public.d.ts
|
|
517
|
+
//
|
|
518
|
+
// @public (undocumented)
|
|
519
|
+
export type AudioTrack = Static<typeof AudioTrackSchema>;
|
|
520
|
+
|
|
521
|
+
// @public
|
|
522
|
+
export function beatsPerBar(signature: TimeSignature): number;
|
|
523
|
+
|
|
524
|
+
// @public (undocumented)
|
|
525
|
+
export function beatsToSeconds(beats: number, bpm: number): number;
|
|
526
|
+
|
|
462
527
|
export { BehaviorDescriptor }
|
|
463
528
|
|
|
464
529
|
export { BehaviorHandle }
|
|
@@ -510,6 +575,8 @@ export { BridgeMessages }
|
|
|
510
575
|
|
|
511
576
|
export { BridgeMessageType }
|
|
512
577
|
|
|
578
|
+
export { BridgeNdc }
|
|
579
|
+
|
|
513
580
|
export { BridgeVec3 }
|
|
514
581
|
|
|
515
582
|
// @public
|
|
@@ -591,6 +658,27 @@ export interface CameraFeedOptions {
|
|
|
591
658
|
width?: number;
|
|
592
659
|
}
|
|
593
660
|
|
|
661
|
+
// @public (undocumented)
|
|
662
|
+
export type CameraKeyframe = Static<typeof CameraKeyframeSchema>;
|
|
663
|
+
|
|
664
|
+
// @public (undocumented)
|
|
665
|
+
export const CameraKeyframeSchema: _sinclair_typebox.TObject<{
|
|
666
|
+
id: _sinclair_typebox.TString;
|
|
667
|
+
time: _sinclair_typebox.TNumber;
|
|
668
|
+
position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
669
|
+
x: _sinclair_typebox.TNumber;
|
|
670
|
+
y: _sinclair_typebox.TNumber;
|
|
671
|
+
z: _sinclair_typebox.TNumber;
|
|
672
|
+
}>>;
|
|
673
|
+
lookAt: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
674
|
+
x: _sinclair_typebox.TNumber;
|
|
675
|
+
y: _sinclair_typebox.TNumber;
|
|
676
|
+
z: _sinclair_typebox.TNumber;
|
|
677
|
+
}>>;
|
|
678
|
+
fov: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
679
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
680
|
+
}>;
|
|
681
|
+
|
|
594
682
|
// @public
|
|
595
683
|
export class CameraManager {
|
|
596
684
|
constructor();
|
|
@@ -695,6 +783,36 @@ export interface CameraPose {
|
|
|
695
783
|
zoom?: number;
|
|
696
784
|
}
|
|
697
785
|
|
|
786
|
+
// Warning: (ae-forgotten-export) The symbol "CameraPoseDefSchema" needs to be exported by the entry point public.d.ts
|
|
787
|
+
//
|
|
788
|
+
// @public (undocumented)
|
|
789
|
+
export type CameraPoseDef = Static<typeof CameraPoseDefSchema>;
|
|
790
|
+
|
|
791
|
+
export { CameraPosePayload }
|
|
792
|
+
|
|
793
|
+
// @public (undocumented)
|
|
794
|
+
export type CameraShot = Static<typeof CameraShotSchema>;
|
|
795
|
+
|
|
796
|
+
// @public (undocumented)
|
|
797
|
+
export const CameraShotSchema: _sinclair_typebox.TObject<{
|
|
798
|
+
id: _sinclair_typebox.TString;
|
|
799
|
+
cameraId: _sinclair_typebox.TString;
|
|
800
|
+
start: _sinclair_typebox.TNumber;
|
|
801
|
+
end: _sinclair_typebox.TNumber;
|
|
802
|
+
blend: _sinclair_typebox.TObject<{
|
|
803
|
+
duration: _sinclair_typebox.TNumber;
|
|
804
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
805
|
+
}>;
|
|
806
|
+
}>;
|
|
807
|
+
|
|
808
|
+
// Warning: (ae-forgotten-export) The symbol "CameraTrackSchema" needs to be exported by the entry point public.d.ts
|
|
809
|
+
//
|
|
810
|
+
// @public (undocumented)
|
|
811
|
+
export type CameraTrack = Static<typeof CameraTrackSchema>;
|
|
812
|
+
|
|
813
|
+
// @public
|
|
814
|
+
export function cameraTracks(definition: CutsceneDefinition): CameraTrack[];
|
|
815
|
+
|
|
698
816
|
// @public
|
|
699
817
|
export class CameraWrapper {
|
|
700
818
|
constructor(camera: ZylemCamera);
|
|
@@ -720,6 +838,9 @@ export { clamp }
|
|
|
720
838
|
// @public
|
|
721
839
|
export function clearGlobalSubscriptions(): void;
|
|
722
840
|
|
|
841
|
+
// @public
|
|
842
|
+
export function clipsAt(song: SongDefinition, trackId: string, beat: number): Array<NoteClip | AudioClip>;
|
|
843
|
+
|
|
723
844
|
// @public
|
|
724
845
|
export function closestAxisValue(ray: GizmoRay, origin: Vector3, axis: Vector3): number | null;
|
|
725
846
|
|
|
@@ -814,6 +935,9 @@ export function createCone(...args: Array<ConeOptions>): ZylemCone;
|
|
|
814
935
|
// @public
|
|
815
936
|
export function createCooldownIcon(...args: Array<CooldownIconOptions>): ZylemCooldownIcon;
|
|
816
937
|
|
|
938
|
+
// @public
|
|
939
|
+
export function createCutscenePlayer(initial: CutsceneDefinition, options: CutscenePlayerOptions): CutscenePlayer;
|
|
940
|
+
|
|
817
941
|
// Warning: (ae-forgotten-export) The symbol "CylinderOptions" needs to be exported by the entry point public.d.ts
|
|
818
942
|
//
|
|
819
943
|
// @public
|
|
@@ -853,6 +977,9 @@ export function createGame<TGlobals extends BaseGlobals>(...options: GameOptions
|
|
|
853
977
|
// @public
|
|
854
978
|
export function createGlobal<T>(path: string, defaultValue: T): T;
|
|
855
979
|
|
|
980
|
+
// @public
|
|
981
|
+
export function createInstrument(Tone: ToneModule, def: InstrumentDefinition): Instrument;
|
|
982
|
+
|
|
856
983
|
export { createJumpConfig2D }
|
|
857
984
|
|
|
858
985
|
export { createJumpConfig3D }
|
|
@@ -920,6 +1047,9 @@ export { createShooter2DStateComponent }
|
|
|
920
1047
|
|
|
921
1048
|
export { createSimulation }
|
|
922
1049
|
|
|
1050
|
+
// @public
|
|
1051
|
+
export function createSongPlayer(definition: SongDefinition, options?: SongPlayerOptions): SongPlayer;
|
|
1052
|
+
|
|
923
1053
|
// Warning: (ae-forgotten-export) The symbol "SphereOptions" needs to be exported by the entry point public.d.ts
|
|
924
1054
|
//
|
|
925
1055
|
// @public (undocumented)
|
|
@@ -935,6 +1065,9 @@ export function createSprite(...args: Array<SpriteOptions>): ZylemSprite;
|
|
|
935
1065
|
// @public
|
|
936
1066
|
export function createStage(...options: StageOptions): Stage;
|
|
937
1067
|
|
|
1068
|
+
// @public (undocumented)
|
|
1069
|
+
export function createStageCutsceneHost(stageLike: CutsceneStageLike, options?: StageCutsceneHostOptions): CutsceneHost;
|
|
1070
|
+
|
|
938
1071
|
// Warning: (ae-forgotten-export) The symbol "TextOptions" needs to be exported by the entry point public.d.ts
|
|
939
1072
|
//
|
|
940
1073
|
// @public (undocumented)
|
|
@@ -967,6 +1100,449 @@ export function createZone(...args: Array<ZoneOptions>): ZylemZone;
|
|
|
967
1100
|
// @public
|
|
968
1101
|
export const crossfadeTransitionShader: ZylemTransitionShader;
|
|
969
1102
|
|
|
1103
|
+
// @public
|
|
1104
|
+
export const CUTSCENE_BEHAVIOR_KEY = "cutscene";
|
|
1105
|
+
|
|
1106
|
+
// @public (undocumented)
|
|
1107
|
+
export type CutsceneCamera = Static<typeof CutsceneCameraSchema>;
|
|
1108
|
+
|
|
1109
|
+
// @public
|
|
1110
|
+
export class CutsceneCameraBehavior implements CameraBehavior {
|
|
1111
|
+
// (undocumented)
|
|
1112
|
+
enabled: boolean;
|
|
1113
|
+
// (undocumented)
|
|
1114
|
+
onDetach(): void;
|
|
1115
|
+
// (undocumented)
|
|
1116
|
+
priority: number;
|
|
1117
|
+
setPose(pose: EvaluatedPose | null, damping?: number): void;
|
|
1118
|
+
snap(): void;
|
|
1119
|
+
// (undocumented)
|
|
1120
|
+
update(ctx: CameraContext, pose: CameraPose): CameraPose;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// Warning: (ae-forgotten-export) The symbol "CutsceneCameraKindSchema" needs to be exported by the entry point public.d.ts
|
|
1124
|
+
//
|
|
1125
|
+
// @public (undocumented)
|
|
1126
|
+
export type CutsceneCameraKind = Static<typeof CutsceneCameraKindSchema>;
|
|
1127
|
+
|
|
1128
|
+
// @public (undocumented)
|
|
1129
|
+
export const CutsceneCameraSchema: _sinclair_typebox.TObject<{
|
|
1130
|
+
id: _sinclair_typebox.TString;
|
|
1131
|
+
name: _sinclair_typebox.TString;
|
|
1132
|
+
kind: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"static">, _sinclair_typebox.TLiteral<"dolly">, _sinclair_typebox.TLiteral<"follow">]>;
|
|
1133
|
+
fov: _sinclair_typebox.TNumber;
|
|
1134
|
+
pose: _sinclair_typebox.TObject<{
|
|
1135
|
+
position: _sinclair_typebox.TObject<{
|
|
1136
|
+
x: _sinclair_typebox.TNumber;
|
|
1137
|
+
y: _sinclair_typebox.TNumber;
|
|
1138
|
+
z: _sinclair_typebox.TNumber;
|
|
1139
|
+
}>;
|
|
1140
|
+
lookAt: _sinclair_typebox.TObject<{
|
|
1141
|
+
x: _sinclair_typebox.TNumber;
|
|
1142
|
+
y: _sinclair_typebox.TNumber;
|
|
1143
|
+
z: _sinclair_typebox.TNumber;
|
|
1144
|
+
}>;
|
|
1145
|
+
}>;
|
|
1146
|
+
dollyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
1147
|
+
dollyEasing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
1148
|
+
target: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
1149
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
1150
|
+
x: _sinclair_typebox.TNumber;
|
|
1151
|
+
y: _sinclair_typebox.TNumber;
|
|
1152
|
+
z: _sinclair_typebox.TNumber;
|
|
1153
|
+
}>>;
|
|
1154
|
+
damping: _sinclair_typebox.TNumber;
|
|
1155
|
+
keyframes: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1156
|
+
id: _sinclair_typebox.TString;
|
|
1157
|
+
time: _sinclair_typebox.TNumber;
|
|
1158
|
+
position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
1159
|
+
x: _sinclair_typebox.TNumber;
|
|
1160
|
+
y: _sinclair_typebox.TNumber;
|
|
1161
|
+
z: _sinclair_typebox.TNumber;
|
|
1162
|
+
}>>;
|
|
1163
|
+
lookAt: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
1164
|
+
x: _sinclair_typebox.TNumber;
|
|
1165
|
+
y: _sinclair_typebox.TNumber;
|
|
1166
|
+
z: _sinclair_typebox.TNumber;
|
|
1167
|
+
}>>;
|
|
1168
|
+
fov: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
1169
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
1170
|
+
}>>;
|
|
1171
|
+
}>;
|
|
1172
|
+
|
|
1173
|
+
// @public (undocumented)
|
|
1174
|
+
export type CutsceneDefinition = Static<typeof CutsceneDefinitionSchema>;
|
|
1175
|
+
|
|
1176
|
+
// @public (undocumented)
|
|
1177
|
+
export const CutsceneDefinitionSchema: _sinclair_typebox.TObject<{
|
|
1178
|
+
id: _sinclair_typebox.TString;
|
|
1179
|
+
name: _sinclair_typebox.TString;
|
|
1180
|
+
duration: _sinclair_typebox.TNumber;
|
|
1181
|
+
stage: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNull]>;
|
|
1182
|
+
skippable: _sinclair_typebox.TBoolean;
|
|
1183
|
+
scenes: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1184
|
+
id: _sinclair_typebox.TString;
|
|
1185
|
+
name: _sinclair_typebox.TString;
|
|
1186
|
+
start: _sinclair_typebox.TNumber;
|
|
1187
|
+
end: _sinclair_typebox.TNumber;
|
|
1188
|
+
transitionIn: _sinclair_typebox.TObject<{
|
|
1189
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"cut">, _sinclair_typebox.TLiteral<"fade">, _sinclair_typebox.TLiteral<"wipe">, _sinclair_typebox.TLiteral<"radial">, _sinclair_typebox.TLiteral<"noise">, _sinclair_typebox.TLiteral<"cells">]>;
|
|
1190
|
+
duration: _sinclair_typebox.TNumber;
|
|
1191
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
1192
|
+
}>;
|
|
1193
|
+
}>>;
|
|
1194
|
+
cameras: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1195
|
+
id: _sinclair_typebox.TString;
|
|
1196
|
+
name: _sinclair_typebox.TString;
|
|
1197
|
+
kind: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"static">, _sinclair_typebox.TLiteral<"dolly">, _sinclair_typebox.TLiteral<"follow">]>;
|
|
1198
|
+
fov: _sinclair_typebox.TNumber;
|
|
1199
|
+
pose: _sinclair_typebox.TObject<{
|
|
1200
|
+
position: _sinclair_typebox.TObject<{
|
|
1201
|
+
x: _sinclair_typebox.TNumber;
|
|
1202
|
+
y: _sinclair_typebox.TNumber;
|
|
1203
|
+
z: _sinclair_typebox.TNumber;
|
|
1204
|
+
}>;
|
|
1205
|
+
lookAt: _sinclair_typebox.TObject<{
|
|
1206
|
+
x: _sinclair_typebox.TNumber;
|
|
1207
|
+
y: _sinclair_typebox.TNumber;
|
|
1208
|
+
z: _sinclair_typebox.TNumber;
|
|
1209
|
+
}>;
|
|
1210
|
+
}>;
|
|
1211
|
+
dollyId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
1212
|
+
dollyEasing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
1213
|
+
target: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
1214
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
1215
|
+
x: _sinclair_typebox.TNumber;
|
|
1216
|
+
y: _sinclair_typebox.TNumber;
|
|
1217
|
+
z: _sinclair_typebox.TNumber;
|
|
1218
|
+
}>>;
|
|
1219
|
+
damping: _sinclair_typebox.TNumber;
|
|
1220
|
+
keyframes: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1221
|
+
id: _sinclair_typebox.TString;
|
|
1222
|
+
time: _sinclair_typebox.TNumber;
|
|
1223
|
+
position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
1224
|
+
x: _sinclair_typebox.TNumber;
|
|
1225
|
+
y: _sinclair_typebox.TNumber;
|
|
1226
|
+
z: _sinclair_typebox.TNumber;
|
|
1227
|
+
}>>;
|
|
1228
|
+
lookAt: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
1229
|
+
x: _sinclair_typebox.TNumber;
|
|
1230
|
+
y: _sinclair_typebox.TNumber;
|
|
1231
|
+
z: _sinclair_typebox.TNumber;
|
|
1232
|
+
}>>;
|
|
1233
|
+
fov: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
1234
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
1235
|
+
}>>;
|
|
1236
|
+
}>>;
|
|
1237
|
+
dollies: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1238
|
+
id: _sinclair_typebox.TString;
|
|
1239
|
+
name: _sinclair_typebox.TString;
|
|
1240
|
+
points: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1241
|
+
x: _sinclair_typebox.TNumber;
|
|
1242
|
+
y: _sinclair_typebox.TNumber;
|
|
1243
|
+
z: _sinclair_typebox.TNumber;
|
|
1244
|
+
}>>;
|
|
1245
|
+
closed: _sinclair_typebox.TBoolean;
|
|
1246
|
+
tension: _sinclair_typebox.TNumber;
|
|
1247
|
+
}>>;
|
|
1248
|
+
tracks: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
1249
|
+
kind: _sinclair_typebox.TLiteral<"camera">;
|
|
1250
|
+
id: _sinclair_typebox.TString;
|
|
1251
|
+
name: _sinclair_typebox.TString;
|
|
1252
|
+
items: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1253
|
+
id: _sinclair_typebox.TString;
|
|
1254
|
+
cameraId: _sinclair_typebox.TString;
|
|
1255
|
+
start: _sinclair_typebox.TNumber;
|
|
1256
|
+
end: _sinclair_typebox.TNumber;
|
|
1257
|
+
blend: _sinclair_typebox.TObject<{
|
|
1258
|
+
duration: _sinclair_typebox.TNumber;
|
|
1259
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
1260
|
+
}>;
|
|
1261
|
+
}>>;
|
|
1262
|
+
}>, _sinclair_typebox.TObject<{
|
|
1263
|
+
kind: _sinclair_typebox.TLiteral<"event">;
|
|
1264
|
+
id: _sinclair_typebox.TString;
|
|
1265
|
+
name: _sinclair_typebox.TString;
|
|
1266
|
+
items: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1267
|
+
id: _sinclair_typebox.TString;
|
|
1268
|
+
time: _sinclair_typebox.TNumber;
|
|
1269
|
+
event: _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
1270
|
+
type: _sinclair_typebox.TLiteral<"emit">;
|
|
1271
|
+
name: _sinclair_typebox.TString;
|
|
1272
|
+
payload: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TBoolean]>>;
|
|
1273
|
+
}>, _sinclair_typebox.TObject<{
|
|
1274
|
+
type: _sinclair_typebox.TLiteral<"playAnimation">;
|
|
1275
|
+
entity: _sinclair_typebox.TString;
|
|
1276
|
+
key: _sinclair_typebox.TString;
|
|
1277
|
+
}>, _sinclair_typebox.TObject<{
|
|
1278
|
+
type: _sinclair_typebox.TLiteral<"playSong">;
|
|
1279
|
+
song: _sinclair_typebox.TString;
|
|
1280
|
+
loop: _sinclair_typebox.TBoolean;
|
|
1281
|
+
}>, _sinclair_typebox.TObject<{
|
|
1282
|
+
type: _sinclair_typebox.TLiteral<"stopSong">;
|
|
1283
|
+
song: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
1284
|
+
}>, _sinclair_typebox.TObject<{
|
|
1285
|
+
type: _sinclair_typebox.TLiteral<"setVariable">;
|
|
1286
|
+
name: _sinclair_typebox.TString;
|
|
1287
|
+
value: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TBoolean]>;
|
|
1288
|
+
}>]>;
|
|
1289
|
+
}>>;
|
|
1290
|
+
}>, _sinclair_typebox.TObject<{
|
|
1291
|
+
kind: _sinclair_typebox.TLiteral<"audio">;
|
|
1292
|
+
id: _sinclair_typebox.TString;
|
|
1293
|
+
name: _sinclair_typebox.TString;
|
|
1294
|
+
items: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1295
|
+
id: _sinclair_typebox.TString;
|
|
1296
|
+
time: _sinclair_typebox.TNumber;
|
|
1297
|
+
kind: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"song">, _sinclair_typebox.TLiteral<"sfx">]>;
|
|
1298
|
+
ref: _sinclair_typebox.TString;
|
|
1299
|
+
loop: _sinclair_typebox.TBoolean;
|
|
1300
|
+
volume: _sinclair_typebox.TNumber;
|
|
1301
|
+
}>>;
|
|
1302
|
+
}>]>>;
|
|
1303
|
+
}>;
|
|
1304
|
+
|
|
1305
|
+
// Warning: (ae-forgotten-export) The symbol "CutsceneEasingSchema" needs to be exported by the entry point public.d.ts
|
|
1306
|
+
//
|
|
1307
|
+
// @public (undocumented)
|
|
1308
|
+
export type CutsceneEasing = Static<typeof CutsceneEasingSchema>;
|
|
1309
|
+
|
|
1310
|
+
// @public (undocumented)
|
|
1311
|
+
export type CutsceneEvent = Static<typeof CutsceneEventSchema>;
|
|
1312
|
+
|
|
1313
|
+
// @public (undocumented)
|
|
1314
|
+
export const CutsceneEventSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
1315
|
+
type: _sinclair_typebox.TLiteral<"emit">;
|
|
1316
|
+
name: _sinclair_typebox.TString;
|
|
1317
|
+
payload: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TBoolean]>>;
|
|
1318
|
+
}>, _sinclair_typebox.TObject<{
|
|
1319
|
+
type: _sinclair_typebox.TLiteral<"playAnimation">;
|
|
1320
|
+
entity: _sinclair_typebox.TString;
|
|
1321
|
+
key: _sinclair_typebox.TString;
|
|
1322
|
+
}>, _sinclair_typebox.TObject<{
|
|
1323
|
+
type: _sinclair_typebox.TLiteral<"playSong">;
|
|
1324
|
+
song: _sinclair_typebox.TString;
|
|
1325
|
+
loop: _sinclair_typebox.TBoolean;
|
|
1326
|
+
}>, _sinclair_typebox.TObject<{
|
|
1327
|
+
type: _sinclair_typebox.TLiteral<"stopSong">;
|
|
1328
|
+
song: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
1329
|
+
}>, _sinclair_typebox.TObject<{
|
|
1330
|
+
type: _sinclair_typebox.TLiteral<"setVariable">;
|
|
1331
|
+
name: _sinclair_typebox.TString;
|
|
1332
|
+
value: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TBoolean]>;
|
|
1333
|
+
}>]>;
|
|
1334
|
+
|
|
1335
|
+
// @public (undocumented)
|
|
1336
|
+
export interface CutsceneFrame {
|
|
1337
|
+
blend: number;
|
|
1338
|
+
// (undocumented)
|
|
1339
|
+
camera: CutsceneCamera | undefined;
|
|
1340
|
+
// (undocumented)
|
|
1341
|
+
pose: EvaluatedPose | undefined;
|
|
1342
|
+
// (undocumented)
|
|
1343
|
+
scene: CutsceneScene | undefined;
|
|
1344
|
+
// (undocumented)
|
|
1345
|
+
shot: CameraShot | undefined;
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
// @public
|
|
1349
|
+
export interface CutsceneHost {
|
|
1350
|
+
beginTransition?: (transition: SceneTransition, shader: ZylemTransitionShader | undefined) => void;
|
|
1351
|
+
camera: () => ZylemCamera | null;
|
|
1352
|
+
dispatch?: (name: string, payload: Record<string, unknown>) => void;
|
|
1353
|
+
entityPosition?: (name: string) => Vec3Def | undefined;
|
|
1354
|
+
// (undocumented)
|
|
1355
|
+
playAnimation?: (entity: string, key: string) => void;
|
|
1356
|
+
// (undocumented)
|
|
1357
|
+
playSfx?: (url: string, options: {
|
|
1358
|
+
volume: number;
|
|
1359
|
+
loop: boolean;
|
|
1360
|
+
}) => void;
|
|
1361
|
+
// (undocumented)
|
|
1362
|
+
playSong?: (ref: string, options: {
|
|
1363
|
+
loop: boolean;
|
|
1364
|
+
volume: number;
|
|
1365
|
+
}) => void;
|
|
1366
|
+
// (undocumented)
|
|
1367
|
+
setVariable?: (name: string, value: unknown) => void;
|
|
1368
|
+
// (undocumented)
|
|
1369
|
+
stopSong?: (ref?: string) => void;
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
// @public
|
|
1373
|
+
export function cutsceneLength(definition: Pick<CutsceneDefinition, 'duration' | 'scenes'>): number;
|
|
1374
|
+
|
|
1375
|
+
export { CutsceneLoadPayload }
|
|
1376
|
+
|
|
1377
|
+
export { CutscenePlaybackState }
|
|
1378
|
+
|
|
1379
|
+
// @public (undocumented)
|
|
1380
|
+
export interface CutscenePlayer {
|
|
1381
|
+
// (undocumented)
|
|
1382
|
+
readonly definition: CutsceneDefinition;
|
|
1383
|
+
// (undocumented)
|
|
1384
|
+
dispose(): void;
|
|
1385
|
+
// (undocumented)
|
|
1386
|
+
readonly length: number;
|
|
1387
|
+
// (undocumented)
|
|
1388
|
+
on<K extends keyof CutscenePlayerEvents>(event: K, handler: CutscenePlayerEvents[K]): () => void;
|
|
1389
|
+
// (undocumented)
|
|
1390
|
+
pause(): void;
|
|
1391
|
+
// (undocumented)
|
|
1392
|
+
play(from?: number): void;
|
|
1393
|
+
readonly pose: EvaluatedPose | undefined;
|
|
1394
|
+
// (undocumented)
|
|
1395
|
+
seek(time: number): void;
|
|
1396
|
+
setDefinition(definition: CutsceneDefinition): void;
|
|
1397
|
+
skip(): boolean;
|
|
1398
|
+
// (undocumented)
|
|
1399
|
+
readonly state: CutscenePlayerState;
|
|
1400
|
+
stop(): void;
|
|
1401
|
+
readonly time: number;
|
|
1402
|
+
update(dt: number): void;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
// @public (undocumented)
|
|
1406
|
+
export interface CutscenePlayerEvents {
|
|
1407
|
+
// (undocumented)
|
|
1408
|
+
audio: (item: AudioItem) => void;
|
|
1409
|
+
// (undocumented)
|
|
1410
|
+
complete: () => void;
|
|
1411
|
+
// (undocumented)
|
|
1412
|
+
event: (item: EventItem) => void;
|
|
1413
|
+
// (undocumented)
|
|
1414
|
+
scene: (scene: CutsceneScene | undefined) => void;
|
|
1415
|
+
// (undocumented)
|
|
1416
|
+
shot: (shot: CameraShot | undefined) => void;
|
|
1417
|
+
// (undocumented)
|
|
1418
|
+
skip: () => void;
|
|
1419
|
+
// (undocumented)
|
|
1420
|
+
state: (state: CutscenePlayerState) => void;
|
|
1421
|
+
// (undocumented)
|
|
1422
|
+
time: (time: number) => void;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
// @public (undocumented)
|
|
1426
|
+
export interface CutscenePlayerOptions {
|
|
1427
|
+
fireEventsOnSeek?: boolean;
|
|
1428
|
+
// (undocumented)
|
|
1429
|
+
host: CutsceneHost;
|
|
1430
|
+
tick?: 'auto' | 'manual';
|
|
1431
|
+
// (undocumented)
|
|
1432
|
+
timeScale?: number;
|
|
1433
|
+
transitionShader?: (type: SceneTransitionType) => ZylemTransitionShader | undefined;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
// @public (undocumented)
|
|
1437
|
+
export type CutscenePlayerState = 'idle' | 'playing' | 'paused' | 'finished';
|
|
1438
|
+
|
|
1439
|
+
// @public
|
|
1440
|
+
export class CutscenePreviewController {
|
|
1441
|
+
// Warning: (ae-forgotten-export) The symbol "ZylemStage" needs to be exported by the entry point public.d.ts
|
|
1442
|
+
constructor(getStage: () => ZylemStage | null, publish: (status: CutsceneStatusPayload) => void, hostOptions?: StageCutsceneHostOptions, publishView?: ((view: CutsceneViewPayload) => void) | undefined);
|
|
1443
|
+
// (undocumented)
|
|
1444
|
+
get active(): boolean;
|
|
1445
|
+
cameraPose(): Omit<CameraPosePayload, 'requestId'> | null;
|
|
1446
|
+
frame(): void;
|
|
1447
|
+
// (undocumented)
|
|
1448
|
+
load(payload: CutsceneLoadPayload): void;
|
|
1449
|
+
// (undocumented)
|
|
1450
|
+
pause(): void;
|
|
1451
|
+
// (undocumented)
|
|
1452
|
+
play(from?: number): void;
|
|
1453
|
+
releaseStage(): void;
|
|
1454
|
+
// (undocumented)
|
|
1455
|
+
seek(time: number): void;
|
|
1456
|
+
stageReady(): void;
|
|
1457
|
+
// (undocumented)
|
|
1458
|
+
stop(): void;
|
|
1459
|
+
// (undocumented)
|
|
1460
|
+
unload(): void;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
// @public (undocumented)
|
|
1464
|
+
export type CutsceneScene = Static<typeof CutsceneSceneSchema>;
|
|
1465
|
+
|
|
1466
|
+
// @public (undocumented)
|
|
1467
|
+
export const CutsceneSceneSchema: _sinclair_typebox.TObject<{
|
|
1468
|
+
id: _sinclair_typebox.TString;
|
|
1469
|
+
name: _sinclair_typebox.TString;
|
|
1470
|
+
start: _sinclair_typebox.TNumber;
|
|
1471
|
+
end: _sinclair_typebox.TNumber;
|
|
1472
|
+
transitionIn: _sinclair_typebox.TObject<{
|
|
1473
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"cut">, _sinclair_typebox.TLiteral<"fade">, _sinclair_typebox.TLiteral<"wipe">, _sinclair_typebox.TLiteral<"radial">, _sinclair_typebox.TLiteral<"noise">, _sinclair_typebox.TLiteral<"cells">]>;
|
|
1474
|
+
duration: _sinclair_typebox.TNumber;
|
|
1475
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
1476
|
+
}>;
|
|
1477
|
+
}>;
|
|
1478
|
+
|
|
1479
|
+
// @public
|
|
1480
|
+
export type CutsceneStageLike = ZylemStage | Stage;
|
|
1481
|
+
|
|
1482
|
+
export { CutsceneStatusPayload }
|
|
1483
|
+
|
|
1484
|
+
// @public (undocumented)
|
|
1485
|
+
export type CutsceneTrack = Static<typeof CutsceneTrackSchema>;
|
|
1486
|
+
|
|
1487
|
+
// @public (undocumented)
|
|
1488
|
+
export const CutsceneTrackSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
1489
|
+
kind: _sinclair_typebox.TLiteral<"camera">;
|
|
1490
|
+
id: _sinclair_typebox.TString;
|
|
1491
|
+
name: _sinclair_typebox.TString;
|
|
1492
|
+
items: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1493
|
+
id: _sinclair_typebox.TString;
|
|
1494
|
+
cameraId: _sinclair_typebox.TString;
|
|
1495
|
+
start: _sinclair_typebox.TNumber;
|
|
1496
|
+
end: _sinclair_typebox.TNumber;
|
|
1497
|
+
blend: _sinclair_typebox.TObject<{
|
|
1498
|
+
duration: _sinclair_typebox.TNumber;
|
|
1499
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
1500
|
+
}>;
|
|
1501
|
+
}>>;
|
|
1502
|
+
}>, _sinclair_typebox.TObject<{
|
|
1503
|
+
kind: _sinclair_typebox.TLiteral<"event">;
|
|
1504
|
+
id: _sinclair_typebox.TString;
|
|
1505
|
+
name: _sinclair_typebox.TString;
|
|
1506
|
+
items: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1507
|
+
id: _sinclair_typebox.TString;
|
|
1508
|
+
time: _sinclair_typebox.TNumber;
|
|
1509
|
+
event: _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
1510
|
+
type: _sinclair_typebox.TLiteral<"emit">;
|
|
1511
|
+
name: _sinclair_typebox.TString;
|
|
1512
|
+
payload: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TBoolean]>>;
|
|
1513
|
+
}>, _sinclair_typebox.TObject<{
|
|
1514
|
+
type: _sinclair_typebox.TLiteral<"playAnimation">;
|
|
1515
|
+
entity: _sinclair_typebox.TString;
|
|
1516
|
+
key: _sinclair_typebox.TString;
|
|
1517
|
+
}>, _sinclair_typebox.TObject<{
|
|
1518
|
+
type: _sinclair_typebox.TLiteral<"playSong">;
|
|
1519
|
+
song: _sinclair_typebox.TString;
|
|
1520
|
+
loop: _sinclair_typebox.TBoolean;
|
|
1521
|
+
}>, _sinclair_typebox.TObject<{
|
|
1522
|
+
type: _sinclair_typebox.TLiteral<"stopSong">;
|
|
1523
|
+
song: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
1524
|
+
}>, _sinclair_typebox.TObject<{
|
|
1525
|
+
type: _sinclair_typebox.TLiteral<"setVariable">;
|
|
1526
|
+
name: _sinclair_typebox.TString;
|
|
1527
|
+
value: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TBoolean]>;
|
|
1528
|
+
}>]>;
|
|
1529
|
+
}>>;
|
|
1530
|
+
}>, _sinclair_typebox.TObject<{
|
|
1531
|
+
kind: _sinclair_typebox.TLiteral<"audio">;
|
|
1532
|
+
id: _sinclair_typebox.TString;
|
|
1533
|
+
name: _sinclair_typebox.TString;
|
|
1534
|
+
items: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1535
|
+
id: _sinclair_typebox.TString;
|
|
1536
|
+
time: _sinclair_typebox.TNumber;
|
|
1537
|
+
kind: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"song">, _sinclair_typebox.TLiteral<"sfx">]>;
|
|
1538
|
+
ref: _sinclair_typebox.TString;
|
|
1539
|
+
loop: _sinclair_typebox.TBoolean;
|
|
1540
|
+
volume: _sinclair_typebox.TNumber;
|
|
1541
|
+
}>>;
|
|
1542
|
+
}>]>;
|
|
1543
|
+
|
|
1544
|
+
export { CutsceneViewPayload }
|
|
1545
|
+
|
|
970
1546
|
// @public (undocumented)
|
|
971
1547
|
export const CYLINDER_TYPE: unique symbol;
|
|
972
1548
|
|
|
@@ -980,6 +1556,9 @@ export function cylinderCollision(opts?: CylinderCollisionOptions): CollisionCom
|
|
|
980
1556
|
// @public
|
|
981
1557
|
export function cylinderMesh(opts?: CylinderMeshOptions): Mesh;
|
|
982
1558
|
|
|
1559
|
+
// @public (undocumented)
|
|
1560
|
+
export function dbToGain(db: number): number;
|
|
1561
|
+
|
|
983
1562
|
// @public
|
|
984
1563
|
export type DebugEntityResolver = (uuid: string) => GameEntity<any> | null;
|
|
985
1564
|
|
|
@@ -1056,16 +1635,52 @@ export const DISK_TYPE: unique symbol;
|
|
|
1056
1635
|
// @public
|
|
1057
1636
|
export function dispatchStageState(): void;
|
|
1058
1637
|
|
|
1638
|
+
// @public (undocumented)
|
|
1639
|
+
export type DollyPath = Static<typeof DollyPathSchema>;
|
|
1640
|
+
|
|
1641
|
+
// @public (undocumented)
|
|
1642
|
+
export const DollyPathSchema: _sinclair_typebox.TObject<{
|
|
1643
|
+
id: _sinclair_typebox.TString;
|
|
1644
|
+
name: _sinclair_typebox.TString;
|
|
1645
|
+
points: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
1646
|
+
x: _sinclair_typebox.TNumber;
|
|
1647
|
+
y: _sinclair_typebox.TNumber;
|
|
1648
|
+
z: _sinclair_typebox.TNumber;
|
|
1649
|
+
}>>;
|
|
1650
|
+
closed: _sinclair_typebox.TBoolean;
|
|
1651
|
+
tension: _sinclair_typebox.TNumber;
|
|
1652
|
+
}>;
|
|
1653
|
+
|
|
1654
|
+
// @public
|
|
1655
|
+
export function dollyPointAt(path: DollyPath, u: number): Vec3Def;
|
|
1656
|
+
|
|
1059
1657
|
export { dot }
|
|
1060
1658
|
|
|
1659
|
+
// @public
|
|
1660
|
+
export function easeValue(easing: CutsceneEasing, t: number): number;
|
|
1661
|
+
|
|
1061
1662
|
export { EditorToGameMessages }
|
|
1062
1663
|
|
|
1664
|
+
// Warning: (ae-forgotten-export) The symbol "EffectTypeSchema" needs to be exported by the entry point public.d.ts
|
|
1665
|
+
//
|
|
1666
|
+
// @public (undocumented)
|
|
1667
|
+
export type EffectType = Static<typeof EffectTypeSchema>;
|
|
1668
|
+
|
|
1063
1669
|
export { emitRuntimeGoal }
|
|
1064
1670
|
|
|
1065
1671
|
export { emitRuntimeRicochet }
|
|
1066
1672
|
|
|
1067
1673
|
export { emitRuntimeTriggerRegionEnter }
|
|
1068
1674
|
|
|
1675
|
+
// @public (undocumented)
|
|
1676
|
+
export function encodeWav(buffer: PcmSource): ArrayBuffer;
|
|
1677
|
+
|
|
1678
|
+
// @public
|
|
1679
|
+
export function encodeWavBlob(buffer: PcmSource): Blob;
|
|
1680
|
+
|
|
1681
|
+
// @public
|
|
1682
|
+
export function ensureAudio(): Promise<ToneModule>;
|
|
1683
|
+
|
|
1069
1684
|
export { EntityApplySwatchPayload }
|
|
1070
1685
|
|
|
1071
1686
|
// @public (undocumented)
|
|
@@ -1164,6 +1779,10 @@ export const EntityJsonSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TObje
|
|
|
1164
1779
|
data: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
|
|
1165
1780
|
}>]>;
|
|
1166
1781
|
|
|
1782
|
+
export { EntityPickPayload }
|
|
1783
|
+
|
|
1784
|
+
export { EntityPickResultPayload }
|
|
1785
|
+
|
|
1167
1786
|
// @public
|
|
1168
1787
|
export const EntitySchema: _sinclair_typebox.TObject<{
|
|
1169
1788
|
id: _sinclair_typebox.TString;
|
|
@@ -1179,6 +1798,8 @@ export function entitySpawner(factory: (x: number, y: number) => Promise<any> |
|
|
|
1179
1798
|
|
|
1180
1799
|
export { EntitySummaryPayload }
|
|
1181
1800
|
|
|
1801
|
+
export { EntitySwatchAppliedPayload }
|
|
1802
|
+
|
|
1182
1803
|
// @public
|
|
1183
1804
|
export class EntityThumbnailCache {
|
|
1184
1805
|
constructor(size?: number, maxEntries?: number);
|
|
@@ -1253,9 +1874,30 @@ export interface EntityTypeMap {
|
|
|
1253
1874
|
[ZONE_TYPE]: ZylemZone;
|
|
1254
1875
|
}
|
|
1255
1876
|
|
|
1877
|
+
// Warning: (ae-forgotten-export) The symbol "EnvelopeSchema" needs to be exported by the entry point public.d.ts
|
|
1878
|
+
//
|
|
1879
|
+
// @public (undocumented)
|
|
1880
|
+
export type Envelope = Static<typeof EnvelopeSchema>;
|
|
1881
|
+
|
|
1256
1882
|
// @public
|
|
1257
1883
|
export function eulerToQuaternion(rotation: Vec3): Quat;
|
|
1258
1884
|
|
|
1885
|
+
// @public
|
|
1886
|
+
export function evaluateCameraPose(camera: CutsceneCamera, definition: Pick<CutsceneDefinition, 'dollies'>, shot: Pick<CameraShot, 'start' | 'end'>, time: number, lookup?: TargetLookup): EvaluatedPose;
|
|
1887
|
+
|
|
1888
|
+
// @public
|
|
1889
|
+
export function evaluateCutscene(definition: CutsceneDefinition, time: number, lookup?: TargetLookup): CutsceneFrame;
|
|
1890
|
+
|
|
1891
|
+
// @public (undocumented)
|
|
1892
|
+
export interface EvaluatedPose {
|
|
1893
|
+
// (undocumented)
|
|
1894
|
+
fov: number;
|
|
1895
|
+
// (undocumented)
|
|
1896
|
+
lookAt: Vec3Def;
|
|
1897
|
+
// (undocumented)
|
|
1898
|
+
position: Vec3Def;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
1259
1901
|
// @public
|
|
1260
1902
|
export class EventEmitterDelegate<TEvents extends Record<string, unknown>> {
|
|
1261
1903
|
constructor();
|
|
@@ -1265,6 +1907,40 @@ export class EventEmitterDelegate<TEvents extends Record<string, unknown>> {
|
|
|
1265
1907
|
listenAll(handler: (type: keyof TEvents, payload: TEvents[keyof TEvents]) => void): () => void;
|
|
1266
1908
|
}
|
|
1267
1909
|
|
|
1910
|
+
// @public (undocumented)
|
|
1911
|
+
export type EventItem = Static<typeof EventItemSchema>;
|
|
1912
|
+
|
|
1913
|
+
// @public (undocumented)
|
|
1914
|
+
export const EventItemSchema: _sinclair_typebox.TObject<{
|
|
1915
|
+
id: _sinclair_typebox.TString;
|
|
1916
|
+
time: _sinclair_typebox.TNumber;
|
|
1917
|
+
event: _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
1918
|
+
type: _sinclair_typebox.TLiteral<"emit">;
|
|
1919
|
+
name: _sinclair_typebox.TString;
|
|
1920
|
+
payload: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TBoolean]>>;
|
|
1921
|
+
}>, _sinclair_typebox.TObject<{
|
|
1922
|
+
type: _sinclair_typebox.TLiteral<"playAnimation">;
|
|
1923
|
+
entity: _sinclair_typebox.TString;
|
|
1924
|
+
key: _sinclair_typebox.TString;
|
|
1925
|
+
}>, _sinclair_typebox.TObject<{
|
|
1926
|
+
type: _sinclair_typebox.TLiteral<"playSong">;
|
|
1927
|
+
song: _sinclair_typebox.TString;
|
|
1928
|
+
loop: _sinclair_typebox.TBoolean;
|
|
1929
|
+
}>, _sinclair_typebox.TObject<{
|
|
1930
|
+
type: _sinclair_typebox.TLiteral<"stopSong">;
|
|
1931
|
+
song: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
1932
|
+
}>, _sinclair_typebox.TObject<{
|
|
1933
|
+
type: _sinclair_typebox.TLiteral<"setVariable">;
|
|
1934
|
+
name: _sinclair_typebox.TString;
|
|
1935
|
+
value: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TBoolean]>;
|
|
1936
|
+
}>]>;
|
|
1937
|
+
}>;
|
|
1938
|
+
|
|
1939
|
+
// Warning: (ae-forgotten-export) The symbol "EventTrackSchema" needs to be exported by the entry point public.d.ts
|
|
1940
|
+
//
|
|
1941
|
+
// @public (undocumented)
|
|
1942
|
+
export type EventTrack = Static<typeof EventTrackSchema>;
|
|
1943
|
+
|
|
1268
1944
|
export { exp }
|
|
1269
1945
|
|
|
1270
1946
|
export { FacingAngle2DEntity }
|
|
@@ -1394,6 +2070,9 @@ export { FractureOptions }
|
|
|
1394
2070
|
|
|
1395
2071
|
export { FractureOptionsInput }
|
|
1396
2072
|
|
|
2073
|
+
// @public (undocumented)
|
|
2074
|
+
export function gainToDb(gain: number): number;
|
|
2075
|
+
|
|
1397
2076
|
// Warning: (ae-forgotten-export) The symbol "IGame" needs to be exported by the entry point public.d.ts
|
|
1398
2077
|
//
|
|
1399
2078
|
// @public (undocumented)
|
|
@@ -1462,6 +2141,8 @@ export class GameBridge {
|
|
|
1462
2141
|
publishCatalog(entities: EntityTypeDescriptor[]): void;
|
|
1463
2142
|
// (undocumented)
|
|
1464
2143
|
publishConfig(config: GameConfigPayload): void;
|
|
2144
|
+
publishCutsceneStatus(status: CutsceneStatusPayload): void;
|
|
2145
|
+
publishCutsceneView(view: CutsceneViewPayload): void;
|
|
1465
2146
|
// (undocumented)
|
|
1466
2147
|
publishLoading(payload: BridgeLoadingPayload): void;
|
|
1467
2148
|
publishNotice(level: GameNoticePayload['level'], message: string): void;
|
|
@@ -1485,8 +2166,20 @@ export class GameBridge {
|
|
|
1485
2166
|
// @public
|
|
1486
2167
|
export interface GameBridgeHost {
|
|
1487
2168
|
applySceneOperation?(op: SceneOperationPayload, direction: 'undo' | 'redo'): void;
|
|
1488
|
-
|
|
2169
|
+
applySwatches?(payload: EntityApplySwatchPayload & {
|
|
2170
|
+
opId: string;
|
|
2171
|
+
}): SwatchApplyOutcome;
|
|
2172
|
+
cameraPose?(): Omit<CameraPosePayload, 'requestId'> | null;
|
|
1489
2173
|
createEntity?(typeId: string, props: Record<string, unknown> | undefined, pose: BridgePose | undefined): void;
|
|
2174
|
+
cutscene?: {
|
|
2175
|
+
load(payload: CutsceneLoadPayload): void;
|
|
2176
|
+
play(from?: number): void;
|
|
2177
|
+
pause(): void;
|
|
2178
|
+
stop(): void;
|
|
2179
|
+
seek(time: number): void;
|
|
2180
|
+
unload(): void;
|
|
2181
|
+
};
|
|
2182
|
+
pickEntity?(ndc: BridgeNdc): EntitySummaryPayload | null;
|
|
1490
2183
|
resolveEntity(uuid: string): GameEntity<any> | null;
|
|
1491
2184
|
setStageVariable?(key: string, value: unknown): void;
|
|
1492
2185
|
}
|
|
@@ -1702,6 +2395,7 @@ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> impleme
|
|
|
1702
2395
|
protected eventDelegate: EventEmitterDelegate<EntityEvents>;
|
|
1703
2396
|
// (undocumented)
|
|
1704
2397
|
finalizeCloneSupport(factory: (options?: Partial<O>) => GameEntity<O>): this;
|
|
2398
|
+
getBehaviorRef<O extends Record<string, any>>(descriptor: BehaviorDescriptor_2<O, any>): BehaviorRef_2<O> | null;
|
|
1705
2399
|
getBehaviorRefs(): BehaviorRef_2[];
|
|
1706
2400
|
// (undocumented)
|
|
1707
2401
|
getCollisionCallbacks(): Array<(params: CollisionContext<this, O>) => void>;
|
|
@@ -1709,6 +2403,7 @@ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> impleme
|
|
|
1709
2403
|
//
|
|
1710
2404
|
// (undocumented)
|
|
1711
2405
|
getCollisionRegistrations(): Array<CollisionRegistration<this, O>>;
|
|
2406
|
+
getMaterials(): Material[];
|
|
1712
2407
|
getPose(): {
|
|
1713
2408
|
position: Vec3;
|
|
1714
2409
|
rotation: {
|
|
@@ -1727,6 +2422,9 @@ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> impleme
|
|
|
1727
2422
|
getVelocity: () => Vector | null;
|
|
1728
2423
|
// (undocumented)
|
|
1729
2424
|
group: Group | undefined;
|
|
2425
|
+
// (undocumented)
|
|
2426
|
+
hasBehavior(descriptor: BehaviorDescriptor_2<any, any>): boolean;
|
|
2427
|
+
hasMaterial(): boolean;
|
|
1730
2428
|
instanceId: number;
|
|
1731
2429
|
isBundled: boolean;
|
|
1732
2430
|
isInstanced: boolean;
|
|
@@ -1762,8 +2460,13 @@ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> impleme
|
|
|
1762
2460
|
// (undocumented)
|
|
1763
2461
|
physicsAttached: boolean;
|
|
1764
2462
|
physicsWorldRef: unknown;
|
|
2463
|
+
removeBehavior(target: BehaviorDescriptor_2<any, any> | BehaviorRef_2<any>): BehaviorRef_2<any> | null;
|
|
2464
|
+
replaceMaterials(materials: Material[], settings?: {
|
|
2465
|
+
disposePrevious?: boolean;
|
|
2466
|
+
}): Material[] | null;
|
|
1765
2467
|
// (undocumented)
|
|
1766
2468
|
resetVelocity: () => void;
|
|
2469
|
+
restoreBehaviorRef(ref: BehaviorRef_2<any>): void;
|
|
1767
2470
|
reveal(): void;
|
|
1768
2471
|
// (undocumented)
|
|
1769
2472
|
rotateEuler: (eulerRotation: Vector3) => void;
|
|
@@ -1780,6 +2483,10 @@ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> impleme
|
|
|
1780
2483
|
runAction<A extends Action>(action: A): A;
|
|
1781
2484
|
runtimeAttached: boolean;
|
|
1782
2485
|
runtimeHandle: number;
|
|
2486
|
+
// Warning: (ae-forgotten-export) The symbol "MaterialOptions" needs to be exported by the entry point public.d.ts
|
|
2487
|
+
setMaterial(options: Partial<MaterialOptions>, settings?: {
|
|
2488
|
+
disposePrevious?: boolean;
|
|
2489
|
+
}): Material[] | null;
|
|
1783
2490
|
setPose(input: {
|
|
1784
2491
|
position?: Vec3Input;
|
|
1785
2492
|
rotation?: {
|
|
@@ -2104,6 +2811,9 @@ export { GameToEditorMessages }
|
|
|
2104
2811
|
|
|
2105
2812
|
export { GameVariablePayload }
|
|
2106
2813
|
|
|
2814
|
+
// @public
|
|
2815
|
+
export function getActiveSongPlayer(): SongPlayer | null;
|
|
2816
|
+
|
|
2107
2817
|
export { getCooldown }
|
|
2108
2818
|
|
|
2109
2819
|
export { getCooldownStore }
|
|
@@ -2278,9 +2988,64 @@ export interface InputProvider {
|
|
|
2278
2988
|
// @public (undocumented)
|
|
2279
2989
|
export type Inputs = Record<InputPlayer, InputGamepad>;
|
|
2280
2990
|
|
|
2991
|
+
// @public
|
|
2992
|
+
export interface Instrument {
|
|
2993
|
+
// (undocumented)
|
|
2994
|
+
readonly definition: InstrumentDefinition;
|
|
2995
|
+
// (undocumented)
|
|
2996
|
+
dispose(): void;
|
|
2997
|
+
readonly output: ToneNs.ToneAudioNode;
|
|
2998
|
+
releaseAll(time?: number): void;
|
|
2999
|
+
trigger(pitch: number, duration: number, time?: number, velocity?: number): void;
|
|
3000
|
+
}
|
|
3001
|
+
|
|
3002
|
+
// @public (undocumented)
|
|
3003
|
+
export type InstrumentDefinition = Static<typeof InstrumentDefinitionSchema>;
|
|
3004
|
+
|
|
3005
|
+
// @public (undocumented)
|
|
3006
|
+
export const InstrumentDefinitionSchema: _sinclair_typebox.TObject<{
|
|
3007
|
+
id: _sinclair_typebox.TString;
|
|
3008
|
+
name: _sinclair_typebox.TString;
|
|
3009
|
+
preset: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"synth">, _sinclair_typebox.TLiteral<"polySynth">, _sinclair_typebox.TLiteral<"fmSynth">, _sinclair_typebox.TLiteral<"amSynth">, _sinclair_typebox.TLiteral<"membraneSynth">, _sinclair_typebox.TLiteral<"metalSynth">, _sinclair_typebox.TLiteral<"noiseSynth">, _sinclair_typebox.TLiteral<"pluckSynth">]>;
|
|
3010
|
+
oscillator: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"sine">, _sinclair_typebox.TLiteral<"square">, _sinclair_typebox.TLiteral<"sawtooth">, _sinclair_typebox.TLiteral<"triangle">]>>;
|
|
3011
|
+
envelope: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
3012
|
+
attack: _sinclair_typebox.TNumber;
|
|
3013
|
+
decay: _sinclair_typebox.TNumber;
|
|
3014
|
+
sustain: _sinclair_typebox.TNumber;
|
|
3015
|
+
release: _sinclair_typebox.TNumber;
|
|
3016
|
+
}>>;
|
|
3017
|
+
volume: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
3018
|
+
effects: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
3019
|
+
id: _sinclair_typebox.TString;
|
|
3020
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"reverb">, _sinclair_typebox.TLiteral<"delay">, _sinclair_typebox.TLiteral<"distortion">, _sinclair_typebox.TLiteral<"filter">]>;
|
|
3021
|
+
wet: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
3022
|
+
options: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean]>>>;
|
|
3023
|
+
}>>>;
|
|
3024
|
+
}>;
|
|
3025
|
+
|
|
3026
|
+
// @public (undocumented)
|
|
3027
|
+
export type InstrumentEffect = Static<typeof InstrumentEffectSchema>;
|
|
3028
|
+
|
|
3029
|
+
// @public (undocumented)
|
|
3030
|
+
export const InstrumentEffectSchema: _sinclair_typebox.TObject<{
|
|
3031
|
+
id: _sinclair_typebox.TString;
|
|
3032
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"reverb">, _sinclair_typebox.TLiteral<"delay">, _sinclair_typebox.TLiteral<"distortion">, _sinclair_typebox.TLiteral<"filter">]>;
|
|
3033
|
+
wet: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
3034
|
+
options: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean]>>>;
|
|
3035
|
+
}>;
|
|
3036
|
+
|
|
3037
|
+
// @public (undocumented)
|
|
3038
|
+
export type InstrumentPreset = Static<typeof InstrumentPresetSchema>;
|
|
3039
|
+
|
|
3040
|
+
// @public
|
|
3041
|
+
export const InstrumentPresetSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"synth">, _sinclair_typebox.TLiteral<"polySynth">, _sinclair_typebox.TLiteral<"fmSynth">, _sinclair_typebox.TLiteral<"amSynth">, _sinclair_typebox.TLiteral<"membraneSynth">, _sinclair_typebox.TLiteral<"metalSynth">, _sinclair_typebox.TLiteral<"noiseSynth">, _sinclair_typebox.TLiteral<"pluckSynth">]>;
|
|
3042
|
+
|
|
2281
3043
|
// @public
|
|
2282
3044
|
export function intersectPlane(ray: GizmoRay, origin: Vector3, normal: Vector3, target: Vector3): Vector3 | null;
|
|
2283
3045
|
|
|
3046
|
+
// @public
|
|
3047
|
+
export function isAudioReady(): boolean;
|
|
3048
|
+
|
|
2284
3049
|
// @public
|
|
2285
3050
|
export function isGLSLShader(shader: ZylemShader): shader is ZylemShaderObject;
|
|
2286
3051
|
|
|
@@ -2302,6 +3067,11 @@ export function isTSLShader(shader: ZylemShader): shader is ZylemTSLShader;
|
|
|
2302
3067
|
// @public
|
|
2303
3068
|
export function isWebGPUSupported(): Promise<boolean>;
|
|
2304
3069
|
|
|
3070
|
+
// @public
|
|
3071
|
+
export function itemsBetween<T extends {
|
|
3072
|
+
time: number;
|
|
3073
|
+
}>(items: readonly T[], from: number, to: number): T[];
|
|
3074
|
+
|
|
2305
3075
|
// @public
|
|
2306
3076
|
export function joystickBaseSvg(theme?: TouchThemeInput): string;
|
|
2307
3077
|
|
|
@@ -2359,6 +3129,12 @@ export const KeyboardMappingSchema: _sinclair_typebox.TRecord<_sinclair_typebox.
|
|
|
2359
3129
|
|
|
2360
3130
|
export { length_2 as length }
|
|
2361
3131
|
|
|
3132
|
+
// @public (undocumented)
|
|
3133
|
+
export function lerpPose(a: EvaluatedPose, b: EvaluatedPose, t: number): EvaluatedPose;
|
|
3134
|
+
|
|
3135
|
+
// @public (undocumented)
|
|
3136
|
+
export function lerpVec3(a: Vec3Def, b: Vec3Def, t: number): Vec3Def;
|
|
3137
|
+
|
|
2362
3138
|
// @public (undocumented)
|
|
2363
3139
|
export const LIGHT_TYPE: unique symbol;
|
|
2364
3140
|
|
|
@@ -2418,11 +3194,23 @@ export type LoadingEvent = {
|
|
|
2418
3194
|
current?: number;
|
|
2419
3195
|
};
|
|
2420
3196
|
|
|
3197
|
+
// @public
|
|
3198
|
+
export function loadTone(): Promise<ToneModule>;
|
|
3199
|
+
|
|
2421
3200
|
export { max }
|
|
2422
3201
|
|
|
3202
|
+
// @public
|
|
3203
|
+
export function measureObjectSelectionBounds(object: Object3D, target: Box3): Box3;
|
|
3204
|
+
|
|
2423
3205
|
// @public
|
|
2424
3206
|
export function mergeInputConfigs(...configs: GameInputConfig[]): GameInputConfig;
|
|
2425
3207
|
|
|
3208
|
+
// @public
|
|
3209
|
+
export function midiToFrequency(pitch: number): number;
|
|
3210
|
+
|
|
3211
|
+
// @public
|
|
3212
|
+
export function midiToNoteName(pitch: number): string;
|
|
3213
|
+
|
|
2426
3214
|
export { min }
|
|
2427
3215
|
|
|
2428
3216
|
export { mix }
|
|
@@ -2507,6 +3295,26 @@ export function normalizeVec2(input?: Vec2Input | null, defaults?: Vec2Input | P
|
|
|
2507
3295
|
// @public (undocumented)
|
|
2508
3296
|
export function normalizeVec3(input?: Vec3Input | null, defaults?: Vec3Input | Partial<Vec3Components>): Vec3Components;
|
|
2509
3297
|
|
|
3298
|
+
// @public (undocumented)
|
|
3299
|
+
export type NoteClip = Static<typeof NoteClipSchema>;
|
|
3300
|
+
|
|
3301
|
+
// @public (undocumented)
|
|
3302
|
+
export const NoteClipSchema: _sinclair_typebox.TObject<{
|
|
3303
|
+
kind: _sinclair_typebox.TLiteral<"notes">;
|
|
3304
|
+
id: _sinclair_typebox.TString;
|
|
3305
|
+
trackId: _sinclair_typebox.TString;
|
|
3306
|
+
name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
3307
|
+
start: _sinclair_typebox.TNumber;
|
|
3308
|
+
length: _sinclair_typebox.TNumber;
|
|
3309
|
+
notes: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
3310
|
+
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
3311
|
+
pitch: _sinclair_typebox.TInteger;
|
|
3312
|
+
start: _sinclair_typebox.TNumber;
|
|
3313
|
+
duration: _sinclair_typebox.TNumber;
|
|
3314
|
+
velocity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
3315
|
+
}>>;
|
|
3316
|
+
}>;
|
|
3317
|
+
|
|
2510
3318
|
// @public (undocumented)
|
|
2511
3319
|
export const objectVertexShader = "\nuniform vec2 uvScale;\nvarying vec2 vUv;\n\nvoid main() {\n\tvUv = uv;\n\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n\tgl_Position = projectionMatrix * mvPosition;\n}\n";
|
|
2512
3320
|
|
|
@@ -2553,9 +3361,18 @@ export type OpacityEntity = {
|
|
|
2553
3361
|
mesh?: Object3D | null;
|
|
2554
3362
|
};
|
|
2555
3363
|
|
|
3364
|
+
// Warning: (ae-forgotten-export) The symbol "OscillatorTypeSchema" needs to be exported by the entry point public.d.ts
|
|
3365
|
+
//
|
|
3366
|
+
// @public (undocumented)
|
|
3367
|
+
type OscillatorType_2 = Static<typeof OscillatorTypeSchema>;
|
|
3368
|
+
export { OscillatorType_2 as OscillatorType }
|
|
3369
|
+
|
|
2556
3370
|
// @public
|
|
2557
3371
|
export function packCollisionGroups(collisionType?: string, collisionFilter?: string[]): number;
|
|
2558
3372
|
|
|
3373
|
+
// @public
|
|
3374
|
+
export function padSelectionBounds(box: Box3): Box3;
|
|
3375
|
+
|
|
2559
3376
|
// @public
|
|
2560
3377
|
export function parallel(...actions: Action[]): Action;
|
|
2561
3378
|
|
|
@@ -2596,6 +3413,18 @@ export { ParticlePresetMaterialOptions }
|
|
|
2596
3413
|
|
|
2597
3414
|
export { particlePresets }
|
|
2598
3415
|
|
|
3416
|
+
// @public
|
|
3417
|
+
export interface PcmSource {
|
|
3418
|
+
// (undocumented)
|
|
3419
|
+
getChannelData(channel: number): Float32Array;
|
|
3420
|
+
// (undocumented)
|
|
3421
|
+
length: number;
|
|
3422
|
+
// (undocumented)
|
|
3423
|
+
numberOfChannels: number;
|
|
3424
|
+
// (undocumented)
|
|
3425
|
+
sampleRate: number;
|
|
3426
|
+
}
|
|
3427
|
+
|
|
2599
3428
|
// @public
|
|
2600
3429
|
export type PerspectiveOptions = ThirdPersonOptions | Fixed2DOptions | FirstPersonOptions;
|
|
2601
3430
|
|
|
@@ -2726,6 +3555,9 @@ export { PrebakeWorkerRequest }
|
|
|
2726
3555
|
|
|
2727
3556
|
export { PrebakeWorkerResponse }
|
|
2728
3557
|
|
|
3558
|
+
// @public
|
|
3559
|
+
export function previousShot(definition: CutsceneDefinition, shot: CameraShot): CameraShot | undefined;
|
|
3560
|
+
|
|
2729
3561
|
// @public (undocumented)
|
|
2730
3562
|
export const PYRAMID_TYPE: unique symbol;
|
|
2731
3563
|
|
|
@@ -2787,6 +3619,19 @@ export class RenderBundleManager {
|
|
|
2787
3619
|
// @public
|
|
2788
3620
|
export type RenderCategory = 'none' | 'environment' | 'pack';
|
|
2789
3621
|
|
|
3622
|
+
// @public
|
|
3623
|
+
export function renderSong(song: SongDefinition, options?: RenderSongOptions): Promise<AudioBuffer>;
|
|
3624
|
+
|
|
3625
|
+
// @public (undocumented)
|
|
3626
|
+
export interface RenderSongOptions {
|
|
3627
|
+
// (undocumented)
|
|
3628
|
+
resolveUrl?: (url: string) => string;
|
|
3629
|
+
// (undocumented)
|
|
3630
|
+
sampleRate?: number;
|
|
3631
|
+
tail?: number;
|
|
3632
|
+
trackIds?: Iterable<string>;
|
|
3633
|
+
}
|
|
3634
|
+
|
|
2790
3635
|
// @public
|
|
2791
3636
|
export class RenderStrategyManager {
|
|
2792
3637
|
// (undocumented)
|
|
@@ -2856,6 +3701,9 @@ export interface ResolveGameConfigRuntime {
|
|
|
2856
3701
|
// @public
|
|
2857
3702
|
export function resolveRenderCategory(options?: RenderCategoryOptions | null): RenderCategory;
|
|
2858
3703
|
|
|
3704
|
+
// @public
|
|
3705
|
+
export function resolveSelectionBounds(entity: unknown, target: Box3): Box3 | null;
|
|
3706
|
+
|
|
2859
3707
|
// @public
|
|
2860
3708
|
export function resolveTouchTheme(input?: TouchTheme | TouchThemeName): TouchTheme;
|
|
2861
3709
|
|
|
@@ -3044,6 +3892,66 @@ export { RuntimeTriggerRegion2DHandle }
|
|
|
3044
3892
|
|
|
3045
3893
|
export { RuntimeTriggerRegion2DOptions }
|
|
3046
3894
|
|
|
3895
|
+
// @public
|
|
3896
|
+
export function sampleDollyPath(path: DollyPath, segments?: number): Vec3Def[];
|
|
3897
|
+
|
|
3898
|
+
// @public
|
|
3899
|
+
export function sceneAt(scenes: readonly CutsceneScene[], time: number): CutsceneScene | undefined;
|
|
3900
|
+
|
|
3901
|
+
// @public (undocumented)
|
|
3902
|
+
export type SceneTransition = Static<typeof SceneTransitionSchema>;
|
|
3903
|
+
|
|
3904
|
+
// @public (undocumented)
|
|
3905
|
+
export const SceneTransitionSchema: _sinclair_typebox.TObject<{
|
|
3906
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"cut">, _sinclair_typebox.TLiteral<"fade">, _sinclair_typebox.TLiteral<"wipe">, _sinclair_typebox.TLiteral<"radial">, _sinclair_typebox.TLiteral<"noise">, _sinclair_typebox.TLiteral<"cells">]>;
|
|
3907
|
+
duration: _sinclair_typebox.TNumber;
|
|
3908
|
+
easing: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"linear">, _sinclair_typebox.TLiteral<"easeIn">, _sinclair_typebox.TLiteral<"easeOut">, _sinclair_typebox.TLiteral<"easeInOut">]>;
|
|
3909
|
+
}>;
|
|
3910
|
+
|
|
3911
|
+
// Warning: (ae-forgotten-export) The symbol "SceneTransitionTypeSchema" needs to be exported by the entry point public.d.ts
|
|
3912
|
+
//
|
|
3913
|
+
// @public (undocumented)
|
|
3914
|
+
export type SceneTransitionType = Static<typeof SceneTransitionTypeSchema>;
|
|
3915
|
+
|
|
3916
|
+
// @public (undocumented)
|
|
3917
|
+
export interface ScheduledAudio {
|
|
3918
|
+
// (undocumented)
|
|
3919
|
+
clipId: string;
|
|
3920
|
+
duration: number;
|
|
3921
|
+
gain: number;
|
|
3922
|
+
offset: number;
|
|
3923
|
+
time: number;
|
|
3924
|
+
// (undocumented)
|
|
3925
|
+
trackId: string;
|
|
3926
|
+
// (undocumented)
|
|
3927
|
+
url: string;
|
|
3928
|
+
}
|
|
3929
|
+
|
|
3930
|
+
// @public (undocumented)
|
|
3931
|
+
export interface ScheduledNote {
|
|
3932
|
+
// (undocumented)
|
|
3933
|
+
clipId: string;
|
|
3934
|
+
duration: number;
|
|
3935
|
+
// (undocumented)
|
|
3936
|
+
instrumentId: string;
|
|
3937
|
+
// (undocumented)
|
|
3938
|
+
pitch: number;
|
|
3939
|
+
time: number;
|
|
3940
|
+
// (undocumented)
|
|
3941
|
+
trackId: string;
|
|
3942
|
+
// (undocumented)
|
|
3943
|
+
velocity: number;
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3946
|
+
// @public (undocumented)
|
|
3947
|
+
export interface ScheduleOptions {
|
|
3948
|
+
ignoreMix?: boolean;
|
|
3949
|
+
trackIds?: Iterable<string>;
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3952
|
+
// @public
|
|
3953
|
+
export function scheduleSong(song: SongDefinition, options?: ScheduleOptions): SongSchedule;
|
|
3954
|
+
|
|
3047
3955
|
// @public
|
|
3048
3956
|
export type ScreenAnchor = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
3049
3957
|
|
|
@@ -3095,6 +4003,27 @@ export { ScreenWrapOptions }
|
|
|
3095
4003
|
|
|
3096
4004
|
export { ScreenWrapState }
|
|
3097
4005
|
|
|
4006
|
+
// @public (undocumented)
|
|
4007
|
+
export function secondsToBeats(seconds: number, bpm: number): number;
|
|
4008
|
+
|
|
4009
|
+
// @public
|
|
4010
|
+
export const SELECTION_BOUNDS_MARGIN = 0.02;
|
|
4011
|
+
|
|
4012
|
+
// @public
|
|
4013
|
+
export const SELECTION_THIN_AXIS_FRACTION = 0.05;
|
|
4014
|
+
|
|
4015
|
+
// @public (undocumented)
|
|
4016
|
+
export const SELECTION_THIN_AXIS_MAX = 1;
|
|
4017
|
+
|
|
4018
|
+
// @public
|
|
4019
|
+
export const SELECTION_THIN_AXIS_MIN = 0.1;
|
|
4020
|
+
|
|
4021
|
+
// @public
|
|
4022
|
+
export interface SelectionBoundsProvider {
|
|
4023
|
+
// (undocumented)
|
|
4024
|
+
getSelectionBounds(target: Box3): Box3 | null;
|
|
4025
|
+
}
|
|
4026
|
+
|
|
3098
4027
|
export { SemanticParticlePresetOptions }
|
|
3099
4028
|
|
|
3100
4029
|
// @public
|
|
@@ -3106,6 +4035,9 @@ export function setAddType(typeId: string | null, props?: Record<string, unknown
|
|
|
3106
4035
|
// @public
|
|
3107
4036
|
export function setCameraFeed(entity: StageEntity, camera: CameraWrapper, options?: CameraFeedOptions): void;
|
|
3108
4037
|
|
|
4038
|
+
// @public
|
|
4039
|
+
export function setCutsceneTransitionShaders(resolver: ((type: SceneTransitionType) => ZylemTransitionShader | undefined) | null): void;
|
|
4040
|
+
|
|
3109
4041
|
// @public (undocumented)
|
|
3110
4042
|
export function setDebugTool(tool: DebugTools): void;
|
|
3111
4043
|
|
|
@@ -3219,6 +4151,14 @@ export { Shooter2DTarget }
|
|
|
3219
4151
|
// @public
|
|
3220
4152
|
export function shortestAngleDelta(from: number, to: number): number;
|
|
3221
4153
|
|
|
4154
|
+
// @public
|
|
4155
|
+
export function shotAt(shots: readonly CameraShot[], time: number): CameraShot | undefined;
|
|
4156
|
+
|
|
4157
|
+
// Warning: (ae-forgotten-export) The symbol "ShotBlendSchema" needs to be exported by the entry point public.d.ts
|
|
4158
|
+
//
|
|
4159
|
+
// @public (undocumented)
|
|
4160
|
+
export type ShotBlend = Static<typeof ShotBlendSchema>;
|
|
4161
|
+
|
|
3222
4162
|
export { Simulation }
|
|
3223
4163
|
|
|
3224
4164
|
// Warning: (ae-forgotten-export) The symbol "PhysicsRenderPoseProvider" needs to be exported by the entry point public.d.ts
|
|
@@ -3324,6 +4264,218 @@ export function snapToIncrement(value: number, increment: number): number;
|
|
|
3324
4264
|
// @public
|
|
3325
4265
|
export function snapVec3(value: Vec3, increment: number): Vec3;
|
|
3326
4266
|
|
|
4267
|
+
// @public (undocumented)
|
|
4268
|
+
export type SongClip = Static<typeof SongClipSchema>;
|
|
4269
|
+
|
|
4270
|
+
// @public (undocumented)
|
|
4271
|
+
export const SongClipSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
4272
|
+
kind: _sinclair_typebox.TLiteral<"notes">;
|
|
4273
|
+
id: _sinclair_typebox.TString;
|
|
4274
|
+
trackId: _sinclair_typebox.TString;
|
|
4275
|
+
name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4276
|
+
start: _sinclair_typebox.TNumber;
|
|
4277
|
+
length: _sinclair_typebox.TNumber;
|
|
4278
|
+
notes: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
4279
|
+
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4280
|
+
pitch: _sinclair_typebox.TInteger;
|
|
4281
|
+
start: _sinclair_typebox.TNumber;
|
|
4282
|
+
duration: _sinclair_typebox.TNumber;
|
|
4283
|
+
velocity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4284
|
+
}>>;
|
|
4285
|
+
}>, _sinclair_typebox.TObject<{
|
|
4286
|
+
kind: _sinclair_typebox.TLiteral<"audio">;
|
|
4287
|
+
id: _sinclair_typebox.TString;
|
|
4288
|
+
trackId: _sinclair_typebox.TString;
|
|
4289
|
+
name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4290
|
+
url: _sinclair_typebox.TString;
|
|
4291
|
+
start: _sinclair_typebox.TNumber;
|
|
4292
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4293
|
+
length: _sinclair_typebox.TNumber;
|
|
4294
|
+
gain: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4295
|
+
}>]>;
|
|
4296
|
+
|
|
4297
|
+
// @public (undocumented)
|
|
4298
|
+
export type SongDefinition = Static<typeof SongDefinitionSchema>;
|
|
4299
|
+
|
|
4300
|
+
// @public (undocumented)
|
|
4301
|
+
export const SongDefinitionSchema: _sinclair_typebox.TObject<{
|
|
4302
|
+
id: _sinclair_typebox.TString;
|
|
4303
|
+
name: _sinclair_typebox.TString;
|
|
4304
|
+
bpm: _sinclair_typebox.TNumber;
|
|
4305
|
+
timeSignature: _sinclair_typebox.TObject<{
|
|
4306
|
+
numerator: _sinclair_typebox.TInteger;
|
|
4307
|
+
denominator: _sinclair_typebox.TInteger;
|
|
4308
|
+
}>;
|
|
4309
|
+
lengthBars: _sinclair_typebox.TInteger;
|
|
4310
|
+
loop: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
4311
|
+
enabled: _sinclair_typebox.TBoolean;
|
|
4312
|
+
start: _sinclair_typebox.TNumber;
|
|
4313
|
+
end: _sinclair_typebox.TNumber;
|
|
4314
|
+
}>>;
|
|
4315
|
+
instruments: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
4316
|
+
id: _sinclair_typebox.TString;
|
|
4317
|
+
name: _sinclair_typebox.TString;
|
|
4318
|
+
preset: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"synth">, _sinclair_typebox.TLiteral<"polySynth">, _sinclair_typebox.TLiteral<"fmSynth">, _sinclair_typebox.TLiteral<"amSynth">, _sinclair_typebox.TLiteral<"membraneSynth">, _sinclair_typebox.TLiteral<"metalSynth">, _sinclair_typebox.TLiteral<"noiseSynth">, _sinclair_typebox.TLiteral<"pluckSynth">]>;
|
|
4319
|
+
oscillator: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"sine">, _sinclair_typebox.TLiteral<"square">, _sinclair_typebox.TLiteral<"sawtooth">, _sinclair_typebox.TLiteral<"triangle">]>>;
|
|
4320
|
+
envelope: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
|
|
4321
|
+
attack: _sinclair_typebox.TNumber;
|
|
4322
|
+
decay: _sinclair_typebox.TNumber;
|
|
4323
|
+
sustain: _sinclair_typebox.TNumber;
|
|
4324
|
+
release: _sinclair_typebox.TNumber;
|
|
4325
|
+
}>>;
|
|
4326
|
+
volume: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4327
|
+
effects: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
4328
|
+
id: _sinclair_typebox.TString;
|
|
4329
|
+
type: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"reverb">, _sinclair_typebox.TLiteral<"delay">, _sinclair_typebox.TLiteral<"distortion">, _sinclair_typebox.TLiteral<"filter">]>;
|
|
4330
|
+
wet: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4331
|
+
options: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString, _sinclair_typebox.TBoolean]>>>;
|
|
4332
|
+
}>>>;
|
|
4333
|
+
}>>;
|
|
4334
|
+
tracks: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
4335
|
+
id: _sinclair_typebox.TString;
|
|
4336
|
+
name: _sinclair_typebox.TString;
|
|
4337
|
+
kind: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"instrument">, _sinclair_typebox.TLiteral<"audio">]>;
|
|
4338
|
+
instrumentId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4339
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4340
|
+
volume: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4341
|
+
pan: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4342
|
+
mute: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
4343
|
+
solo: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
4344
|
+
}>>;
|
|
4345
|
+
clips: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
4346
|
+
kind: _sinclair_typebox.TLiteral<"notes">;
|
|
4347
|
+
id: _sinclair_typebox.TString;
|
|
4348
|
+
trackId: _sinclair_typebox.TString;
|
|
4349
|
+
name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4350
|
+
start: _sinclair_typebox.TNumber;
|
|
4351
|
+
length: _sinclair_typebox.TNumber;
|
|
4352
|
+
notes: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
|
|
4353
|
+
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4354
|
+
pitch: _sinclair_typebox.TInteger;
|
|
4355
|
+
start: _sinclair_typebox.TNumber;
|
|
4356
|
+
duration: _sinclair_typebox.TNumber;
|
|
4357
|
+
velocity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4358
|
+
}>>;
|
|
4359
|
+
}>, _sinclair_typebox.TObject<{
|
|
4360
|
+
kind: _sinclair_typebox.TLiteral<"audio">;
|
|
4361
|
+
id: _sinclair_typebox.TString;
|
|
4362
|
+
trackId: _sinclair_typebox.TString;
|
|
4363
|
+
name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4364
|
+
url: _sinclair_typebox.TString;
|
|
4365
|
+
start: _sinclair_typebox.TNumber;
|
|
4366
|
+
offset: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4367
|
+
length: _sinclair_typebox.TNumber;
|
|
4368
|
+
gain: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4369
|
+
}>]>>;
|
|
4370
|
+
masterVolume: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4371
|
+
}>;
|
|
4372
|
+
|
|
4373
|
+
// @public (undocumented)
|
|
4374
|
+
export function songLengthBeats(song: Pick<SongDefinition, 'lengthBars' | 'timeSignature'>): number;
|
|
4375
|
+
|
|
4376
|
+
// @public (undocumented)
|
|
4377
|
+
export function songLengthSeconds(song: Pick<SongDefinition, 'lengthBars' | 'timeSignature' | 'bpm'>): number;
|
|
4378
|
+
|
|
4379
|
+
// @public (undocumented)
|
|
4380
|
+
export type SongLoop = Static<typeof SongLoopSchema>;
|
|
4381
|
+
|
|
4382
|
+
// @public (undocumented)
|
|
4383
|
+
export const SongLoopSchema: _sinclair_typebox.TObject<{
|
|
4384
|
+
enabled: _sinclair_typebox.TBoolean;
|
|
4385
|
+
start: _sinclair_typebox.TNumber;
|
|
4386
|
+
end: _sinclair_typebox.TNumber;
|
|
4387
|
+
}>;
|
|
4388
|
+
|
|
4389
|
+
// @public (undocumented)
|
|
4390
|
+
export type SongNote = Static<typeof SongNoteSchema>;
|
|
4391
|
+
|
|
4392
|
+
// @public (undocumented)
|
|
4393
|
+
export const SongNoteSchema: _sinclair_typebox.TObject<{
|
|
4394
|
+
id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4395
|
+
pitch: _sinclair_typebox.TInteger;
|
|
4396
|
+
start: _sinclair_typebox.TNumber;
|
|
4397
|
+
duration: _sinclair_typebox.TNumber;
|
|
4398
|
+
velocity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4399
|
+
}>;
|
|
4400
|
+
|
|
4401
|
+
// @public (undocumented)
|
|
4402
|
+
export interface SongPlayer {
|
|
4403
|
+
// (undocumented)
|
|
4404
|
+
readonly definition: SongDefinition;
|
|
4405
|
+
// (undocumented)
|
|
4406
|
+
dispose(): void;
|
|
4407
|
+
// (undocumented)
|
|
4408
|
+
on<K extends keyof SongPlayerEvents>(event: K, handler: SongPlayerEvents[K]): () => void;
|
|
4409
|
+
// (undocumented)
|
|
4410
|
+
pause(): void;
|
|
4411
|
+
play(fromBeat?: number): Promise<void>;
|
|
4412
|
+
position(): number;
|
|
4413
|
+
preview(trackId: string, pitch: number, duration?: number, velocity?: number): Promise<void>;
|
|
4414
|
+
readonly ready: Promise<void>;
|
|
4415
|
+
seconds(): number;
|
|
4416
|
+
// (undocumented)
|
|
4417
|
+
seek(beat: number): void;
|
|
4418
|
+
// (undocumented)
|
|
4419
|
+
setBpm(bpm: number): void;
|
|
4420
|
+
// (undocumented)
|
|
4421
|
+
setLoop(loop: SongLoop | null): void;
|
|
4422
|
+
setMasterVolume(volume: number): void;
|
|
4423
|
+
// (undocumented)
|
|
4424
|
+
setTrackMute(trackId: string, mute: boolean): void;
|
|
4425
|
+
// (undocumented)
|
|
4426
|
+
setTrackPan(trackId: string, pan: number): void;
|
|
4427
|
+
// (undocumented)
|
|
4428
|
+
setTrackSolo(trackId: string, solo: boolean): void;
|
|
4429
|
+
setTrackVolume(trackId: string, volume: number): void;
|
|
4430
|
+
// (undocumented)
|
|
4431
|
+
readonly state: SongPlayerState;
|
|
4432
|
+
stop(): void;
|
|
4433
|
+
update(definition: SongDefinition): Promise<void>;
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
// @public (undocumented)
|
|
4437
|
+
export interface SongPlayerEvents {
|
|
4438
|
+
bar: (bar: number) => void;
|
|
4439
|
+
beat: (beat: number) => void;
|
|
4440
|
+
complete: () => void;
|
|
4441
|
+
// (undocumented)
|
|
4442
|
+
state: (state: SongPlayerState) => void;
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
// @public (undocumented)
|
|
4446
|
+
export interface SongPlayerOptions {
|
|
4447
|
+
destination?: ToneNs.InputNode;
|
|
4448
|
+
resolveUrl?: (url: string) => string;
|
|
4449
|
+
}
|
|
4450
|
+
|
|
4451
|
+
// @public (undocumented)
|
|
4452
|
+
export type SongPlayerState = 'stopped' | 'playing' | 'paused';
|
|
4453
|
+
|
|
4454
|
+
// @public (undocumented)
|
|
4455
|
+
export interface SongSchedule {
|
|
4456
|
+
// (undocumented)
|
|
4457
|
+
audio: ScheduledAudio[];
|
|
4458
|
+
length: number;
|
|
4459
|
+
// (undocumented)
|
|
4460
|
+
notes: ScheduledNote[];
|
|
4461
|
+
}
|
|
4462
|
+
|
|
4463
|
+
// @public (undocumented)
|
|
4464
|
+
export type SongTrack = Static<typeof SongTrackSchema>;
|
|
4465
|
+
|
|
4466
|
+
// @public (undocumented)
|
|
4467
|
+
export const SongTrackSchema: _sinclair_typebox.TObject<{
|
|
4468
|
+
id: _sinclair_typebox.TString;
|
|
4469
|
+
name: _sinclair_typebox.TString;
|
|
4470
|
+
kind: _sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"instrument">, _sinclair_typebox.TLiteral<"audio">]>;
|
|
4471
|
+
instrumentId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4472
|
+
color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
|
|
4473
|
+
volume: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4474
|
+
pan: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
|
|
4475
|
+
mute: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
4476
|
+
solo: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
|
|
4477
|
+
}>;
|
|
4478
|
+
|
|
3327
4479
|
// @public (undocumented)
|
|
3328
4480
|
export const SPHERE_TYPE: unique symbol;
|
|
3329
4481
|
|
|
@@ -3454,6 +4606,13 @@ export type StageConfigLike = Partial<{
|
|
|
3454
4606
|
|
|
3455
4607
|
export { StageConfigPayload }
|
|
3456
4608
|
|
|
4609
|
+
// @public (undocumented)
|
|
4610
|
+
export interface StageCutsceneHostOptions {
|
|
4611
|
+
onEvent?: (name: string, payload: Record<string, unknown>) => void;
|
|
4612
|
+
resolveSong?: (ref: string) => SongDefinition | Promise<SongDefinition | undefined> | undefined;
|
|
4613
|
+
transitionShader?: (type: SceneTransitionType) => ZylemTransitionShader | undefined;
|
|
4614
|
+
}
|
|
4615
|
+
|
|
3457
4616
|
export { StageDebugRender }
|
|
3458
4617
|
|
|
3459
4618
|
// Warning: (ae-forgotten-export) The symbol "Entity" needs to be exported by the entry point public.d.ts
|
|
@@ -3658,6 +4817,25 @@ export const standardShader: {
|
|
|
3658
4817
|
|
|
3659
4818
|
export { step }
|
|
3660
4819
|
|
|
4820
|
+
export { SwatchApplyFailureReason }
|
|
4821
|
+
|
|
4822
|
+
// @public
|
|
4823
|
+
export interface SwatchApplyOutcome {
|
|
4824
|
+
// (undocumented)
|
|
4825
|
+
entries: SceneOperationEntry[];
|
|
4826
|
+
// (undocumented)
|
|
4827
|
+
results: SwatchApplyResult[];
|
|
4828
|
+
}
|
|
4829
|
+
|
|
4830
|
+
export { SwatchApplyResult }
|
|
4831
|
+
|
|
4832
|
+
export { SwatchKind }
|
|
4833
|
+
|
|
4834
|
+
export { SwatchSpec }
|
|
4835
|
+
|
|
4836
|
+
// @public
|
|
4837
|
+
export type TargetLookup = (name: string) => Vec3Def | undefined;
|
|
4838
|
+
|
|
3661
4839
|
// @public
|
|
3662
4840
|
export interface TemplateFactory<E extends GameEntity<O>, O extends GameEntityOptions = GameEntityOptions> {
|
|
3663
4841
|
generate(count: number): E[];
|
|
@@ -3739,6 +4917,18 @@ export { tickCooldowns }
|
|
|
3739
4917
|
|
|
3740
4918
|
export { time }
|
|
3741
4919
|
|
|
4920
|
+
// @public (undocumented)
|
|
4921
|
+
export type TimeSignature = Static<typeof TimeSignatureSchema>;
|
|
4922
|
+
|
|
4923
|
+
// @public (undocumented)
|
|
4924
|
+
export const TimeSignatureSchema: _sinclair_typebox.TObject<{
|
|
4925
|
+
numerator: _sinclair_typebox.TInteger;
|
|
4926
|
+
denominator: _sinclair_typebox.TInteger;
|
|
4927
|
+
}>;
|
|
4928
|
+
|
|
4929
|
+
// @public
|
|
4930
|
+
export type ToneModule = typeof ToneNs;
|
|
4931
|
+
|
|
3742
4932
|
export { TopDownMovementBehavior }
|
|
3743
4933
|
|
|
3744
4934
|
export { TopDownMovementBehaviorOptions }
|
|
@@ -3966,6 +5156,11 @@ export type Vec3Components = {
|
|
|
3966
5156
|
// @public
|
|
3967
5157
|
export const Vec3ComponentsSchema: _sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>;
|
|
3968
5158
|
|
|
5159
|
+
// Warning: (ae-forgotten-export) The symbol "Vec3Schema" needs to be exported by the entry point public.d.ts
|
|
5160
|
+
//
|
|
5161
|
+
// @public (undocumented)
|
|
5162
|
+
export type Vec3Def = Static<typeof Vec3Schema>;
|
|
5163
|
+
|
|
3969
5164
|
// Warning: (ae-forgotten-export) The symbol "Vec3Tuple" needs to be exported by the entry point public.d.ts
|
|
3970
5165
|
//
|
|
3971
5166
|
// @public (undocumented)
|
|
@@ -4600,7 +5795,7 @@ export type ZylemLineOptions = GameEntityOptions & {
|
|
|
4600
5795
|
};
|
|
4601
5796
|
|
|
4602
5797
|
// @public (undocumented)
|
|
4603
|
-
export class ZylemParticleSystem extends GameEntity<ZylemParticleSystemOptions> {
|
|
5798
|
+
export class ZylemParticleSystem extends GameEntity<ZylemParticleSystemOptions> implements SelectionBoundsProvider {
|
|
4604
5799
|
constructor(options?: Partial<ZylemParticleSystemOptions>, initializeBehavior?: boolean);
|
|
4605
5800
|
// (undocumented)
|
|
4606
5801
|
__zylemParticleSystemEntity: true;
|
|
@@ -4608,6 +5803,7 @@ export class ZylemParticleSystem extends GameEntity<ZylemParticleSystemOptions>
|
|
|
4608
5803
|
buildInfo(): Record<string, string>;
|
|
4609
5804
|
// (undocumented)
|
|
4610
5805
|
burst(): void;
|
|
5806
|
+
getSelectionBounds(target: Box3): Box3 | null;
|
|
4611
5807
|
// (undocumented)
|
|
4612
5808
|
getSystem(): ParticleEmitterHandle_2['getSystem'] extends () => infer T ? T : null;
|
|
4613
5809
|
// (undocumented)
|
|
@@ -4794,12 +5990,13 @@ export type ZylemTSLShader = {
|
|
|
4794
5990
|
// Warning: (ae-forgotten-export) The symbol "CollisionHandlerDelegate" needs to be exported by the entry point public.d.ts
|
|
4795
5991
|
//
|
|
4796
5992
|
// @public (undocumented)
|
|
4797
|
-
export class ZylemZone extends GameEntity<ZylemZoneOptions> implements CollisionHandlerDelegate {
|
|
5993
|
+
export class ZylemZone extends GameEntity<ZylemZoneOptions> implements CollisionHandlerDelegate, SelectionBoundsProvider {
|
|
4798
5994
|
constructor(options?: ZylemZoneOptions);
|
|
4799
5995
|
// (undocumented)
|
|
4800
5996
|
entered(other: any): void;
|
|
4801
5997
|
// (undocumented)
|
|
4802
5998
|
exited(delta: number, key: string): void;
|
|
5999
|
+
getSelectionBounds(target: Box3): Box3 | null;
|
|
4803
6000
|
// (undocumented)
|
|
4804
6001
|
handleIntersectionEvent(input: {
|
|
4805
6002
|
other: any;
|
|
@@ -4823,16 +6020,15 @@ export class ZylemZone extends GameEntity<ZylemZoneOptions> implements Collision
|
|
|
4823
6020
|
|
|
4824
6021
|
// Warnings were encountered during analysis:
|
|
4825
6022
|
//
|
|
4826
|
-
// dist/entity-
|
|
4827
|
-
// dist/entity-
|
|
4828
|
-
// dist/entity-
|
|
4829
|
-
// dist/entity-
|
|
4830
|
-
// dist/entity-
|
|
4831
|
-
// dist/entity-
|
|
4832
|
-
// dist/entity-
|
|
4833
|
-
// dist/
|
|
4834
|
-
// dist/
|
|
4835
|
-
// dist/game-BPOr7zTB.d.ts:1735:5 - (ae-forgotten-export) The symbol "StageInterface" needs to be exported by the entry point public.d.ts
|
|
6023
|
+
// dist/entity-XqvuWgPm.d.ts:332:5 - (ae-forgotten-export) The symbol "RenderCategory_2" needs to be exported by the entry point public.d.ts
|
|
6024
|
+
// dist/entity-XqvuWgPm.d.ts:333:5 - (ae-forgotten-export) The symbol "RuntimeEntityOptions" needs to be exported by the entry point public.d.ts
|
|
6025
|
+
// dist/entity-XqvuWgPm.d.ts:334:5 - (ae-forgotten-export) The symbol "CollisionOptions" needs to be exported by the entry point public.d.ts
|
|
6026
|
+
// dist/entity-XqvuWgPm.d.ts:343:9 - (ae-forgotten-export) The symbol "IBuilder" needs to be exported by the entry point public.d.ts
|
|
6027
|
+
// dist/entity-XqvuWgPm.d.ts:343:9 - (ae-forgotten-export) The symbol "EntityMeshBuilder" needs to be exported by the entry point public.d.ts
|
|
6028
|
+
// dist/entity-XqvuWgPm.d.ts:344:9 - (ae-forgotten-export) The symbol "EntityCollisionBuilder" needs to be exported by the entry point public.d.ts
|
|
6029
|
+
// dist/entity-XqvuWgPm.d.ts:345:9 - (ae-forgotten-export) The symbol "MaterialBuilder" needs to be exported by the entry point public.d.ts
|
|
6030
|
+
// dist/game-9PjI5z2p.d.ts:258:5 - (ae-forgotten-export) The symbol "StageInterface" needs to be exported by the entry point public.d.ts
|
|
6031
|
+
// dist/stage-BuGkjZnr.d.ts:997:5 - (ae-forgotten-export) The symbol "StageAssetLoaderConfig" needs to be exported by the entry point public.d.ts
|
|
4836
6032
|
|
|
4837
6033
|
// (No @packageDocumentation comment for this package)
|
|
4838
6034
|
|