@zylem/game-lib 0.7.0 → 0.8.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.
Files changed (95) hide show
  1. package/README.md +15 -1
  2. package/dist/actions.d.ts +71 -8
  3. package/dist/actions.js +1 -1
  4. package/dist/api/game-lib.api.json +54074 -0
  5. package/dist/api/game-lib.api.md +4544 -0
  6. package/dist/api/game-lib.d.ts +8258 -0
  7. package/dist/api/game-lib.typedoc.json +345421 -0
  8. package/dist/audio.js +1 -1
  9. package/dist/{base-node-life-cycle-CnJ-7zX-.d.ts → base-node-life-cycle-D2NuN1VB.d.ts} +12 -4
  10. package/dist/behavior.d.ts +2 -3
  11. package/dist/behavior.js +1 -1
  12. package/dist/blueprints-TbGY-h53.d.ts +162 -0
  13. package/dist/chunk-7FR5JSQ2.js +1 -0
  14. package/dist/chunk-7GYFZKK7.js +1 -0
  15. package/dist/chunk-7WRQ2UAN.js +1 -0
  16. package/dist/chunk-BH53MBAZ.js +1 -0
  17. package/dist/chunk-BIGH6D34.js +0 -0
  18. package/dist/chunk-CM5YRNBJ.js +19 -0
  19. package/dist/chunk-COM6HJ2L.js +1 -0
  20. package/dist/chunk-D2PATZCC.js +1 -0
  21. package/dist/chunk-DFLI7ICU.js +0 -0
  22. package/dist/chunk-E3UBSUPX.js +1 -0
  23. package/dist/chunk-FKIKN7RP.js +24 -0
  24. package/dist/chunk-G4HONLWC.js +1 -0
  25. package/dist/chunk-IKWE2W6L.js +1 -0
  26. package/dist/chunk-IPWUDOV5.js +1 -0
  27. package/dist/chunk-JEHFHUH4.js +0 -0
  28. package/dist/chunk-JNKPTL77.js +1 -0
  29. package/dist/chunk-JQKS42G4.js +1 -0
  30. package/dist/chunk-M3XNO56P.js +1 -0
  31. package/dist/chunk-ORIDWL3T.js +0 -0
  32. package/dist/chunk-QB3NL7VQ.js +1 -0
  33. package/dist/chunk-TAUWDQZF.js +9 -0
  34. package/dist/chunk-VS2D4B3W.js +1 -0
  35. package/dist/chunk-WQ3WMMZD.js +1 -0
  36. package/dist/chunk-XK63E4SX.js +1 -0
  37. package/dist/chunk-XNDS4YFR.js +1 -0
  38. package/dist/chunk-XNHVRFAK.js +1 -0
  39. package/dist/chunk-ZRT3ZQVH.js +1 -0
  40. package/dist/collision-builder-jF-toPIl.d.ts +38 -0
  41. package/dist/core.d.ts +45 -30
  42. package/dist/core.js +1 -24
  43. package/dist/debug-state-BPT6jEog.d.ts +17 -0
  44. package/dist/debug.d.ts +71 -19
  45. package/dist/debug.js +1 -1
  46. package/dist/{default-controls-BGc61yYl.d.ts → default-controls-0-vCnli7.d.ts} +3 -3
  47. package/dist/{entity-DNkYKfdp.d.ts → entity-BdSI8CL3.d.ts} +63 -444
  48. package/dist/entity-DZbFQ1Wg.d.ts +28 -0
  49. package/dist/{entity-type-map-C94h2TDW.d.ts → entity-type-map-Bd69SpAS.d.ts} +153 -6
  50. package/dist/entity.d.ts +11 -8
  51. package/dist/entity.js +1 -1
  52. package/dist/events.d.ts +10 -1
  53. package/dist/events.js +1 -1
  54. package/dist/{game-Cuj5gy7U.d.ts → game-C1FHVqXl.d.ts} +429 -133
  55. package/dist/game-default-QHROHW2O.js +1 -0
  56. package/dist/{game-interfaces-tfpM5NBk.d.ts → game-interfaces-mchNYSZE.d.ts} +2 -2
  57. package/dist/globals.d.ts +12 -1
  58. package/dist/globals.js +1 -1
  59. package/dist/graphics.d.ts +16 -46
  60. package/dist/graphics.js +1 -1
  61. package/dist/input-ui.d.ts +5 -4
  62. package/dist/input-ui.js +1 -1
  63. package/dist/input.d.ts +4 -3
  64. package/dist/input.js +1 -1
  65. package/dist/{material-Wz83vTTp.d.ts → material-9vJ6SZaI.d.ts} +25 -50
  66. package/dist/public.d.ts +38 -0
  67. package/dist/public.js +1 -0
  68. package/dist/runtime.d.ts +7 -381
  69. package/dist/runtime.js +1 -1
  70. package/dist/schema/entity.schema.json +244 -0
  71. package/dist/schema/game-config.schema.json +625 -0
  72. package/dist/schema/input-config.schema.json +499 -0
  73. package/dist/schema/stage-config.schema.json +93 -0
  74. package/dist/schema/stage.schema.json +271 -0
  75. package/dist/schema.d.ts +538 -0
  76. package/dist/schema.js +1 -0
  77. package/dist/stage-transition-CmGpV4tc.d.ts +46 -0
  78. package/dist/vector-CiSHbivc.d.ts +133 -0
  79. package/dist/web-components.d.ts +15 -12
  80. package/dist/web-components.js +1 -9
  81. package/dist/{zylem-stage-runtime-Cs-UDEVU.d.ts → zylem-camera-C3bn6BTI.d.ts} +62 -264
  82. package/package.json +28 -20
  83. package/dist/chunk-73VZQZUL.js +0 -1
  84. package/dist/chunk-A34ZG3L4.js +0 -1
  85. package/dist/chunk-CDPY4VOQ.js +0 -1
  86. package/dist/chunk-DR6XXZE7.js +0 -19
  87. package/dist/chunk-FM5TBEPO.js +0 -1
  88. package/dist/chunk-G2IIMSUH.js +0 -1
  89. package/dist/chunk-NIH5CONO.js +0 -1
  90. package/dist/chunk-ONWXGBWB.js +0 -1
  91. package/dist/chunk-QEDQDR27.js +0 -1
  92. package/dist/chunk-WKHW2QO2.js +0 -1
  93. package/dist/chunk-YHKXQ2ZN.js +0 -1
  94. package/dist/game-default-PZLLHYL7.js +0 -1
  95. package/dist/world-C9zdyl5d.d.ts +0 -103
@@ -0,0 +1,4544 @@
1
+ ## API Report File for "@zylem/game-lib"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { abs } from 'three/tsl';
8
+ import { asin } from 'three/tsl';
9
+ import { atan } from 'three/tsl';
10
+ import { BehaviorDescriptor } from '@zylem/behaviors';
11
+ import { BehaviorDescriptor as BehaviorDescriptor_2 } from '@zylem/behaviors/core';
12
+ import { BehaviorEntityLink } from '@zylem/behaviors/core';
13
+ import { BehaviorHandle } from '@zylem/behaviors';
14
+ import { BehaviorHandle as BehaviorHandle_2 } from '@zylem/behaviors/core';
15
+ import { BehaviorRef } from '@zylem/behaviors';
16
+ import { BehaviorRef as BehaviorRef_2 } from '@zylem/behaviors/core';
17
+ import { BehaviorRuntime } from '@zylem/behaviors/core';
18
+ import { BehaviorSystem } from '@zylem/behaviors';
19
+ import { BehaviorSystem as BehaviorSystem_2 } from '@zylem/behaviors/core';
20
+ import { BehaviorSystemFactory } from '@zylem/behaviors';
21
+ import { BehaviorSystemFactory as BehaviorSystemFactory_2 } from '@zylem/behaviors/core';
22
+ import { bindRuntimeDynamicCircleBody2DHandle } from '@zylem/behaviors/runtime-2d';
23
+ import { Blending } from 'three';
24
+ import { BoundaryRicochet3DCoordinator } from '@zylem/behaviors';
25
+ import { BoundaryRicochet3DEntity } from '@zylem/behaviors';
26
+ import { BoundaryRicochetCoordinator } from '@zylem/behaviors';
27
+ import { BoundaryRicochetEntity } from '@zylem/behaviors';
28
+ import { BoundaryRicochetUpdate } from '@zylem/behaviors';
29
+ import { BufferGeometry } from 'three';
30
+ import { BurstParticlePresetOptions } from '@zylem/behaviors';
31
+ import { Camera } from 'three';
32
+ import { clamp } from 'three/tsl';
33
+ import { Color } from 'three';
34
+ import { ColorRepresentation } from 'three';
35
+ import { computeWorldBoundary2DHits } from '@zylem/behaviors';
36
+ import { computeWorldBoundary3DHits } from '@zylem/behaviors';
37
+ import { CooldownBehavior } from '@zylem/behaviors';
38
+ import { CooldownConfig } from '@zylem/behaviors';
39
+ import { CooldownEntry } from '@zylem/behaviors';
40
+ import { CooldownHandle } from '@zylem/behaviors';
41
+ import { CooldownOptions } from '@zylem/behaviors';
42
+ import { cos } from 'three/tsl';
43
+ import { createFirstPersonInputComponent } from '@zylem/behaviors';
44
+ import { createFirstPersonMovementComponent } from '@zylem/behaviors';
45
+ import { createFirstPersonStateComponent } from '@zylem/behaviors';
46
+ import { createJumpConfig2D } from '@zylem/behaviors';
47
+ import { createJumpConfig3D } from '@zylem/behaviors';
48
+ import { createJumpInput2D } from '@zylem/behaviors';
49
+ import { createJumpInput3D } from '@zylem/behaviors';
50
+ import { createJumpState2D } from '@zylem/behaviors';
51
+ import { createJumpState3D } from '@zylem/behaviors';
52
+ import { createPhysicsBodyComponent } from '@zylem/behaviors';
53
+ import { createPlatformer2DInputComponent } from '@zylem/behaviors';
54
+ import { createPlatformer2DMovementComponent } from '@zylem/behaviors';
55
+ import { createPlatformer2DStateComponent } from '@zylem/behaviors';
56
+ import { createPlatformer3DInputComponent } from '@zylem/behaviors';
57
+ import { createPlatformer3DMovementComponent } from '@zylem/behaviors';
58
+ import { createPlatformer3DStateComponent } from '@zylem/behaviors';
59
+ import { createShooter2DStateComponent } from '@zylem/behaviors';
60
+ import { createSimulation } from '@zylem/behaviors/core';
61
+ import { createThrusterInputComponent } from '@zylem/behaviors';
62
+ import { createThrusterMovementComponent } from '@zylem/behaviors';
63
+ import { createThrusterStateComponent } from '@zylem/behaviors';
64
+ import { createTopDownMovementComponent } from '@zylem/behaviors';
65
+ import { createTopDownMovementInputComponent } from '@zylem/behaviors';
66
+ import { createTopDownMovementStateComponent } from '@zylem/behaviors';
67
+ import { createTransformComponent } from '@zylem/behaviors';
68
+ import { createTransformStore } from '@zylem/behaviors/core';
69
+ import { defineBehavior } from '@zylem/behaviors';
70
+ import { DefineBehaviorConfig } from '@zylem/behaviors';
71
+ import { Destructible3DBehavior } from '@zylem/behaviors';
72
+ import { Destructible3DBehaviorOptions } from '@zylem/behaviors';
73
+ import { Destructible3DColliderOptions } from '@zylem/behaviors';
74
+ import { Destructible3DFragmentColliderShape } from '@zylem/behaviors';
75
+ import { Destructible3DFragmentPhysicsOptions } from '@zylem/behaviors';
76
+ import { Destructible3DHandle } from '@zylem/behaviors';
77
+ import { DestructibleMesh } from '@zylem/behaviors';
78
+ import { DestructiblePrebakeWorkerAPI } from '@zylem/behaviors';
79
+ import { dot } from 'three/tsl';
80
+ import { emitRuntimeGoal } from '@zylem/behaviors/runtime-2d';
81
+ import { emitRuntimeRicochet } from '@zylem/behaviors/runtime-2d';
82
+ import { emitRuntimeTriggerRegionEnter } from '@zylem/behaviors/runtime-2d';
83
+ import { EntityDefinition } from '@zylem/behaviors/core';
84
+ import { EntityHandle } from '@zylem/behaviors/core';
85
+ import { exp } from 'three/tsl';
86
+ import { FacingAngle2DEntity } from '@zylem/behaviors';
87
+ import { fireCooldown } from '@zylem/behaviors';
88
+ import { fireShooter2DIfRequested } from '@zylem/behaviors';
89
+ import { FirstPersonBehavior } from '@zylem/behaviors';
90
+ import { FirstPersonBehaviorOptions } from '@zylem/behaviors';
91
+ import { FirstPersonContext } from '@zylem/behaviors';
92
+ import { FirstPersonEntity } from '@zylem/behaviors';
93
+ import { FirstPersonEvent } from '@zylem/behaviors';
94
+ import { FirstPersonFSM } from '@zylem/behaviors';
95
+ import { FirstPersonInputComponent } from '@zylem/behaviors';
96
+ import { FirstPersonMovementComponent } from '@zylem/behaviors';
97
+ import { FirstPersonPresentation } from '@zylem/behaviors';
98
+ import { FirstPersonShooterCoordinator } from '@zylem/behaviors';
99
+ import { FirstPersonShooterEntity } from '@zylem/behaviors';
100
+ import { FirstPersonShooterInput } from '@zylem/behaviors';
101
+ import { FirstPersonState } from '@zylem/behaviors';
102
+ import { FirstPersonStateComponent } from '@zylem/behaviors';
103
+ import { float } from 'three/tsl';
104
+ import { floor } from 'three/tsl';
105
+ import { Fn } from 'three/tsl';
106
+ import { Fog } from 'three';
107
+ import { FogExp2 } from 'three';
108
+ import { fract } from 'three/tsl';
109
+ import { FractureOptions } from '@zylem/behaviors';
110
+ import { FractureOptionsInput } from '@zylem/behaviors';
111
+ import { getCooldown } from '@zylem/behaviors';
112
+ import { getCooldownStore } from '@zylem/behaviors';
113
+ import { getEntityFacingAngle2D } from '@zylem/behaviors';
114
+ import { getPosition } from '@zylem/behaviors/core';
115
+ import { getVelocity } from '@zylem/behaviors/core';
116
+ import { Group } from 'three';
117
+ import { hasAnyWorldBoundary2DHit } from '@zylem/behaviors';
118
+ import { hasAnyWorldBoundary3DHit } from '@zylem/behaviors';
119
+ import { Howl as Howl_2 } from 'howler';
120
+ import { JumpConfig2D } from '@zylem/behaviors';
121
+ import { JumpConfig3D } from '@zylem/behaviors';
122
+ import { JumpContext2D } from '@zylem/behaviors';
123
+ import { JumpContext3D } from '@zylem/behaviors';
124
+ import { Jumper2DBehavior } from '@zylem/behaviors';
125
+ import { Jumper2DBehaviorOptions } from '@zylem/behaviors';
126
+ import { Jumper2DEntity } from '@zylem/behaviors';
127
+ import { Jumper2DEvent } from '@zylem/behaviors';
128
+ import { Jumper2DFSM } from '@zylem/behaviors';
129
+ import { Jumper2DState } from '@zylem/behaviors';
130
+ import { Jumper3DBehavior } from '@zylem/behaviors';
131
+ import { Jumper3DBehaviorOptions } from '@zylem/behaviors';
132
+ import { Jumper3DEntity } from '@zylem/behaviors';
133
+ import { Jumper3DEvent } from '@zylem/behaviors';
134
+ import { Jumper3DFSM } from '@zylem/behaviors';
135
+ import { Jumper3DState } from '@zylem/behaviors';
136
+ import { JumpInput2D } from '@zylem/behaviors';
137
+ import { JumpInput3D } from '@zylem/behaviors';
138
+ import { JumpState2D } from '@zylem/behaviors';
139
+ import { JumpState3D } from '@zylem/behaviors';
140
+ import { length as length_2 } from 'three/tsl';
141
+ import { Light } from 'three';
142
+ import { Line2 } from 'three/addons/lines/webgpu/Line2.js';
143
+ import { Material } from 'three';
144
+ import { max } from 'three/tsl';
145
+ import { Mesh } from 'three';
146
+ import { MeshBasicNodeMaterial } from 'three/webgpu';
147
+ import { min } from 'three/tsl';
148
+ import * as mitt from 'mitt';
149
+ import { mix } from 'three/tsl';
150
+ import { mod } from 'three/tsl';
151
+ import { move } from '@zylem/behaviors/core';
152
+ import { MoveableEntity } from '@zylem/behaviors/core';
153
+ import { moveForwardXY } from '@zylem/behaviors/core';
154
+ import { moveX } from '@zylem/behaviors/core';
155
+ import { moveXY } from '@zylem/behaviors/core';
156
+ import { moveXZ } from '@zylem/behaviors/core';
157
+ import { moveY } from '@zylem/behaviors/core';
158
+ import { moveZ } from '@zylem/behaviors/core';
159
+ import { MultidirectionalSpaceShooterCoordinator } from '@zylem/behaviors';
160
+ import { MultidirectionalSpaceShooterEntity } from '@zylem/behaviors';
161
+ import { MultidirectionalSpaceShooterInput } from '@zylem/behaviors';
162
+ import { normalize } from 'three/tsl';
163
+ import { Object3D } from 'three';
164
+ import { particleEffect } from '@zylem/behaviors';
165
+ import { ParticleEffectDefinition } from '@zylem/behaviors';
166
+ import { ParticleEffectDefinition as ParticleEffectDefinition_2 } from '@zylem/behaviors/particle-emitter';
167
+ import { ParticleEmitterBehavior } from '@zylem/behaviors';
168
+ import { ParticleEmitterBehaviorOptions } from '@zylem/behaviors';
169
+ import { ParticleEmitterBehaviorOptions as ParticleEmitterBehaviorOptions_2 } from '@zylem/behaviors/particle-emitter';
170
+ import { ParticleEmitterHandle } from '@zylem/behaviors';
171
+ import { ParticleEmitterHandle as ParticleEmitterHandle_2 } from '@zylem/behaviors/particle-emitter';
172
+ import { ParticleMagicAgency } from '@zylem/behaviors';
173
+ import { ParticleMagicAlignment } from '@zylem/behaviors';
174
+ import { ParticleMagicModifierInput } from '@zylem/behaviors';
175
+ import { ParticleMagicModifierOptions } from '@zylem/behaviors';
176
+ import { ParticleMagicOrder } from '@zylem/behaviors';
177
+ import { ParticleMagicRealityEffect } from '@zylem/behaviors';
178
+ import { ParticleMagicTemperament } from '@zylem/behaviors';
179
+ import { ParticlePresetMaterialOptions } from '@zylem/behaviors';
180
+ import { particlePresets } from '@zylem/behaviors';
181
+ import { PhysicsBodyComponent } from '@zylem/behaviors';
182
+ import { PlainBufferGeometryPayload } from '@zylem/behaviors';
183
+ import { PlainFractureOptions } from '@zylem/behaviors';
184
+ import { Platformer2DBehavior } from '@zylem/behaviors';
185
+ import { Platformer2DBehaviorOptions } from '@zylem/behaviors';
186
+ import { Platformer2DCollisionContext } from '@zylem/behaviors';
187
+ import { Platformer2DContext } from '@zylem/behaviors';
188
+ import { Platformer2DEntity } from '@zylem/behaviors';
189
+ import { Platformer2DEvent } from '@zylem/behaviors';
190
+ import { Platformer2DFSM } from '@zylem/behaviors';
191
+ import { Platformer2DInputComponent } from '@zylem/behaviors';
192
+ import { Platformer2DMovementComponent } from '@zylem/behaviors';
193
+ import { Platformer2DState } from '@zylem/behaviors';
194
+ import { Platformer2DStateComponent } from '@zylem/behaviors';
195
+ import { Platformer3DBehavior } from '@zylem/behaviors';
196
+ import { Platformer3DBehaviorOptions } from '@zylem/behaviors';
197
+ import { Platformer3DContext } from '@zylem/behaviors';
198
+ import { Platformer3DEntity } from '@zylem/behaviors';
199
+ import { Platformer3DEvent } from '@zylem/behaviors';
200
+ import { Platformer3DFSM } from '@zylem/behaviors';
201
+ import { Platformer3DInputComponent } from '@zylem/behaviors';
202
+ import { Platformer3DMovementComponent } from '@zylem/behaviors';
203
+ import { Platformer3DState } from '@zylem/behaviors';
204
+ import { Platformer3DStateComponent } from '@zylem/behaviors';
205
+ import { PlatformerCollisionContext } from '@zylem/behaviors';
206
+ import { PlayerInput } from '@zylem/behaviors';
207
+ import { positionWorld } from 'three/tsl';
208
+ import { positionWorldDirection } from 'three/tsl';
209
+ import { pow } from 'three/tsl';
210
+ import { PrebakeWorkerRequest } from '@zylem/behaviors';
211
+ import { PrebakeWorkerResponse } from '@zylem/behaviors';
212
+ import { Quaternion } from 'three';
213
+ import { Raycaster } from 'three';
214
+ import { registerCooldown } from '@zylem/behaviors';
215
+ import { RenderPipeline } from 'three/webgpu';
216
+ import { RenderTarget } from 'three';
217
+ import { resetCooldown } from '@zylem/behaviors';
218
+ import { resetVelocity } from '@zylem/behaviors/core';
219
+ import { resolveAim2D } from '@zylem/behaviors';
220
+ import { ResolvedAim2D } from '@zylem/behaviors';
221
+ import { Ricochet2DBehavior } from '@zylem/behaviors';
222
+ import { Ricochet2DCollisionContext } from '@zylem/behaviors';
223
+ import { Ricochet2DEvent } from '@zylem/behaviors';
224
+ import { Ricochet2DFSM } from '@zylem/behaviors';
225
+ import { Ricochet2DHandle } from '@zylem/behaviors';
226
+ import { Ricochet2DOptions } from '@zylem/behaviors';
227
+ import { Ricochet2DResult } from '@zylem/behaviors';
228
+ import { Ricochet2DState } from '@zylem/behaviors';
229
+ import { Ricochet3DBehavior } from '@zylem/behaviors';
230
+ import { Ricochet3DCallback } from '@zylem/behaviors';
231
+ import { Ricochet3DCollisionContext } from '@zylem/behaviors';
232
+ import { Ricochet3DEvent } from '@zylem/behaviors';
233
+ import { Ricochet3DFSM } from '@zylem/behaviors';
234
+ import { Ricochet3DHandle } from '@zylem/behaviors';
235
+ import { Ricochet3DOptions } from '@zylem/behaviors';
236
+ import { Ricochet3DResult } from '@zylem/behaviors';
237
+ import { Ricochet3DState } from '@zylem/behaviors';
238
+ import { RicochetCallback } from '@zylem/behaviors';
239
+ import { RUNTIME_BOUNDARY_2D_BEHAVIOR_KEY } from '@zylem/behaviors/runtime-2d';
240
+ import { RUNTIME_DYNAMIC_CIRCLE_BODY_2D_BEHAVIOR_KEY } from '@zylem/behaviors/runtime-2d';
241
+ import { RUNTIME_GOAL_ZONE_2D_BEHAVIOR_KEY } from '@zylem/behaviors/runtime-2d';
242
+ import { RUNTIME_PLAYER_INPUT_2D_BEHAVIOR_KEY } from '@zylem/behaviors/runtime-2d';
243
+ import { RUNTIME_RICOCHET_2D_BEHAVIOR_KEY } from '@zylem/behaviors/runtime-2d';
244
+ import { RUNTIME_TRIGGER_REGION_2D_BEHAVIOR_KEY } from '@zylem/behaviors/runtime-2d';
245
+ import { RuntimeBoundary2DBehavior } from '@zylem/behaviors/runtime-2d';
246
+ import { RuntimeBoundary2DOptions } from '@zylem/behaviors/runtime-2d';
247
+ import { RuntimeDynamicCircleBody2DBehavior } from '@zylem/behaviors/runtime-2d';
248
+ import { RuntimeDynamicCircleBody2DHandle } from '@zylem/behaviors/runtime-2d';
249
+ import { RuntimeDynamicCircleBody2DOptions } from '@zylem/behaviors/runtime-2d';
250
+ import { RuntimeGoalZone2DBehavior } from '@zylem/behaviors/runtime-2d';
251
+ import { RuntimeGoalZone2DEvent } from '@zylem/behaviors/runtime-2d';
252
+ import { RuntimeGoalZone2DHandle } from '@zylem/behaviors/runtime-2d';
253
+ import { RuntimeGoalZone2DOptions } from '@zylem/behaviors/runtime-2d';
254
+ import { RuntimePlayerInput2DBehavior } from '@zylem/behaviors/runtime-2d';
255
+ import { RuntimePlayerInput2DOptions } from '@zylem/behaviors/runtime-2d';
256
+ import { RuntimeRicochet2DBehavior } from '@zylem/behaviors/runtime-2d';
257
+ import { RuntimeRicochet2DEvent } from '@zylem/behaviors/runtime-2d';
258
+ import { RuntimeRicochet2DHandle } from '@zylem/behaviors/runtime-2d';
259
+ import { RuntimeRicochet2DOptions } from '@zylem/behaviors/runtime-2d';
260
+ import { RuntimeTriggerRegion2DBehavior } from '@zylem/behaviors/runtime-2d';
261
+ import { RuntimeTriggerRegion2DEvent } from '@zylem/behaviors/runtime-2d';
262
+ import { RuntimeTriggerRegion2DHandle } from '@zylem/behaviors/runtime-2d';
263
+ import { RuntimeTriggerRegion2DOptions } from '@zylem/behaviors/runtime-2d';
264
+ import { Scene } from 'three';
265
+ import { ScreenVisibilityBehavior } from '@zylem/behaviors';
266
+ import { ScreenVisibilityChangeContext } from '@zylem/behaviors';
267
+ import { ScreenVisibilityFSM } from '@zylem/behaviors';
268
+ import { ScreenVisibilityHandle } from '@zylem/behaviors';
269
+ import { ScreenVisibilityOptions } from '@zylem/behaviors';
270
+ import { ScreenVisibilitySize } from '@zylem/behaviors';
271
+ import { ScreenVisibilitySnapshot } from '@zylem/behaviors';
272
+ import { ScreenWrapBehavior } from '@zylem/behaviors';
273
+ import { ScreenWrapEvent } from '@zylem/behaviors';
274
+ import { ScreenWrapFSM } from '@zylem/behaviors';
275
+ import { ScreenWrapOptions } from '@zylem/behaviors';
276
+ import { ScreenWrapState } from '@zylem/behaviors';
277
+ import { SemanticParticlePresetOptions } from '@zylem/behaviors';
278
+ import { setPosition } from '@zylem/behaviors/core';
279
+ import { setPositionX } from '@zylem/behaviors/core';
280
+ import { setPositionY } from '@zylem/behaviors/core';
281
+ import { setPositionZ } from '@zylem/behaviors/core';
282
+ import { ShaderMaterial } from 'three';
283
+ import { Shooter2DAimFireInput } from '@zylem/behaviors';
284
+ import { Shooter2DBehavior } from '@zylem/behaviors';
285
+ import { Shooter2DBehaviorOptions } from '@zylem/behaviors';
286
+ import { Shooter2DFireArgs } from '@zylem/behaviors';
287
+ import { Shooter2DHandle } from '@zylem/behaviors';
288
+ import { Shooter2DProjectileFactory } from '@zylem/behaviors';
289
+ import { Shooter2DSourceEntity } from '@zylem/behaviors';
290
+ import { Shooter2DStageLike } from '@zylem/behaviors';
291
+ import { Shooter2DStateComponent } from '@zylem/behaviors';
292
+ import { Shooter2DTarget } from '@zylem/behaviors';
293
+ import { Side } from 'three';
294
+ import { Simulation } from '@zylem/behaviors/core';
295
+ import { SimulationBodyDefinition } from '@zylem/behaviors/core';
296
+ import { SimulationColliderDefinition } from '@zylem/behaviors/core';
297
+ import { SimulationEvent } from '@zylem/behaviors/core';
298
+ import { SimulationFrame } from '@zylem/behaviors/core';
299
+ import { SimulationOptions } from '@zylem/behaviors/core';
300
+ import { sin } from 'three/tsl';
301
+ import * as _sinclair_typebox from '@sinclair/typebox';
302
+ import { smoothstep } from 'three/tsl';
303
+ import { Sprite } from 'three';
304
+ import { StageBodyConfig } from '@zylem/behaviors/core';
305
+ import { StageBodyInfo } from '@zylem/behaviors/core';
306
+ import { StageBodyKind } from '@zylem/behaviors/core';
307
+ import { StageBodyKindValue } from '@zylem/behaviors/core';
308
+ import { StageBoundaryDim } from '@zylem/behaviors/core';
309
+ import { StageColliderConfig } from '@zylem/behaviors/core';
310
+ import { StageColliderShape } from '@zylem/behaviors/core';
311
+ import { StageDebugRender } from '@zylem/behaviors/core';
312
+ import { StageEvent } from '@zylem/behaviors/core';
313
+ import { StageEventType } from '@zylem/behaviors/core';
314
+ import { StagePose } from '@zylem/behaviors/core';
315
+ import { StageRaycastHit } from '@zylem/behaviors/core';
316
+ import { StageRenderSlot } from '@zylem/behaviors/core';
317
+ import { StageRicochetDim } from '@zylem/behaviors/core';
318
+ import { StageRicochetReflection } from '@zylem/behaviors/core';
319
+ import { StageTopDownPlane } from '@zylem/behaviors/core';
320
+ import { Static } from '@sinclair/typebox';
321
+ import { step } from 'three/tsl';
322
+ import { Texture } from 'three';
323
+ import { ThrusterBehavior } from '@zylem/behaviors';
324
+ import { ThrusterBehaviorOptions } from '@zylem/behaviors';
325
+ import { ThrusterEntity } from '@zylem/behaviors';
326
+ import { ThrusterEvent } from '@zylem/behaviors';
327
+ import { ThrusterFSM } from '@zylem/behaviors';
328
+ import { ThrusterFSMContext } from '@zylem/behaviors';
329
+ import { ThrusterInputComponent } from '@zylem/behaviors';
330
+ import { ThrusterMovementComponent } from '@zylem/behaviors';
331
+ import { ThrusterState } from '@zylem/behaviors';
332
+ import { ThrusterStateComponent } from '@zylem/behaviors';
333
+ import { tickCooldowns } from '@zylem/behaviors';
334
+ import { time } from 'three/tsl';
335
+ import { TopDownMovementBehavior } from '@zylem/behaviors';
336
+ import { TopDownMovementBehaviorOptions } from '@zylem/behaviors';
337
+ import { TopDownMovementComponent } from '@zylem/behaviors';
338
+ import { TopDownMovementEntity } from '@zylem/behaviors';
339
+ import { TopDownMovementHandle } from '@zylem/behaviors';
340
+ import { TopDownMovementInputComponent } from '@zylem/behaviors';
341
+ import { TopDownMovementStateComponent } from '@zylem/behaviors';
342
+ import { TopDownShooterCoordinator } from '@zylem/behaviors';
343
+ import { TopDownShooterEntity } from '@zylem/behaviors';
344
+ import { TopDownShooterInput } from '@zylem/behaviors';
345
+ import { TransformComponent } from '@zylem/behaviors';
346
+ import { TransformState } from '@zylem/behaviors/core';
347
+ import { uniform } from 'three/tsl';
348
+ import { updateBoundaryRicochet } from '@zylem/behaviors';
349
+ import { useBehavior } from '@zylem/behaviors';
350
+ import { uv } from 'three/tsl';
351
+ import { vec2 } from 'three/tsl';
352
+ import { vec3 } from 'three/tsl';
353
+ import { Vec3Like } from '@zylem/behaviors';
354
+ import { vec4 } from 'three/tsl';
355
+ import { Vector } from '@zylem/behaviors/core';
356
+ import { Vector2 } from 'three';
357
+ import { Vector3 } from 'three';
358
+ import { ViewmodelConfig } from '@zylem/behaviors';
359
+ import { VoronoiOptions } from '@zylem/behaviors';
360
+ import { WebGPURenderer } from 'three/webgpu';
361
+ import { WorldBoundary2DBehavior } from '@zylem/behaviors';
362
+ import { WorldBoundary2DBounds } from '@zylem/behaviors';
363
+ import { WorldBoundary2DEvent } from '@zylem/behaviors';
364
+ import { WorldBoundary2DFSM } from '@zylem/behaviors';
365
+ import { WorldBoundary2DHandle } from '@zylem/behaviors';
366
+ import { WorldBoundary2DHit } from '@zylem/behaviors';
367
+ import { WorldBoundary2DHits } from '@zylem/behaviors';
368
+ import { WorldBoundary2DOptions } from '@zylem/behaviors';
369
+ import { WorldBoundary2DPosition } from '@zylem/behaviors';
370
+ import { WorldBoundary2DState } from '@zylem/behaviors';
371
+ import { WorldBoundary3DBehavior } from '@zylem/behaviors';
372
+ import { WorldBoundary3DBounds } from '@zylem/behaviors';
373
+ import { WorldBoundary3DEvent } from '@zylem/behaviors';
374
+ import { WorldBoundary3DFSM } from '@zylem/behaviors';
375
+ import { WorldBoundary3DHandle } from '@zylem/behaviors';
376
+ import { WorldBoundary3DHit } from '@zylem/behaviors';
377
+ import { WorldBoundary3DHits } from '@zylem/behaviors';
378
+ import { WorldBoundary3DOptions } from '@zylem/behaviors';
379
+ import { WorldBoundary3DPosition } from '@zylem/behaviors';
380
+ import { WorldBoundary3DState } from '@zylem/behaviors';
381
+ import { wrapAround3D } from '@zylem/behaviors/core';
382
+ import { wrapAroundXY } from '@zylem/behaviors/core';
383
+
384
+ export { abs }
385
+
386
+ // @public
387
+ export interface Action {
388
+ readonly done: boolean;
389
+ readonly duration: number;
390
+ persistent: boolean;
391
+ reset(): void;
392
+ tick(entity: GameEntity<any>, delta: number): void;
393
+ }
394
+
395
+ // @public (undocumented)
396
+ export const ACTOR_TYPE: unique symbol;
397
+
398
+ // Warning: (ae-forgotten-export) The symbol "BaseLightOptions" needs to be exported by the entry point public.d.ts
399
+ //
400
+ // @public (undocumented)
401
+ export interface AmbientLightOptions extends BaseLightOptions {
402
+ // (undocumented)
403
+ type: 'ambient';
404
+ }
405
+
406
+ // @public (undocumented)
407
+ export interface AnalogState {
408
+ // (undocumented)
409
+ held: number;
410
+ // (undocumented)
411
+ value: number;
412
+ }
413
+
414
+ // Warning: (ae-forgotten-export) The symbol "TransformableEntity" needs to be exported by the entry point public.d.ts
415
+ //
416
+ // @public
417
+ export function applyTransformChanges(entity: TransformableEntity, store: TransformState): void;
418
+
419
+ export { asin }
420
+
421
+ // @public (undocumented)
422
+ export const AspectRatio: {
423
+ readonly FourByThree: number;
424
+ readonly SixteenByNine: number;
425
+ readonly NineBySixteen: number;
426
+ readonly TwentyOneByNine: number;
427
+ readonly OneByOne: number;
428
+ };
429
+
430
+ // @public (undocumented)
431
+ export type AspectRatioValue = (typeof AspectRatio)[keyof typeof AspectRatio] | number;
432
+
433
+ export { atan }
434
+
435
+ export { BehaviorDescriptor }
436
+
437
+ export { BehaviorHandle }
438
+
439
+ export { BehaviorRef }
440
+
441
+ export { BehaviorRuntime }
442
+
443
+ export { BehaviorSystem }
444
+
445
+ export { BehaviorSystemFactory }
446
+
447
+ export { bindRuntimeDynamicCircleBody2DHandle }
448
+
449
+ export { BoundaryRicochet3DCoordinator }
450
+
451
+ export { BoundaryRicochet3DEntity }
452
+
453
+ export { BoundaryRicochetCoordinator }
454
+
455
+ export { BoundaryRicochetEntity }
456
+
457
+ export { BoundaryRicochetUpdate }
458
+
459
+ // @public (undocumented)
460
+ export const BOX_TYPE: unique symbol;
461
+
462
+ // Warning: (ae-forgotten-export) The symbol "BoxCollisionOptions" needs to be exported by the entry point public.d.ts
463
+ //
464
+ // @public
465
+ export function boxCollision(opts?: BoxCollisionOptions): CollisionComponent;
466
+
467
+ // Warning: (ae-forgotten-export) The symbol "BoxMeshOptions" needs to be exported by the entry point public.d.ts
468
+ //
469
+ // @public
470
+ export function boxMesh(opts?: BoxMeshOptions): Mesh;
471
+
472
+ // @public
473
+ export function buildBoxCollider(size: Vec3Input, options?: RuntimeColliderOptions): StageColliderConfig;
474
+
475
+ // @public (undocumented)
476
+ export function buildCapsuleCollider(halfHeight: number, radius: number, options?: RuntimeColliderOptions): StageColliderConfig;
477
+
478
+ // @public (undocumented)
479
+ export function buildConvexHullCollider(vertices: Float32Array, options?: RuntimeColliderOptions): StageColliderConfig;
480
+
481
+ // @public (undocumented)
482
+ export function buildCylinderCollider(halfHeight: number, radius: number, options?: RuntimeColliderOptions): StageColliderConfig;
483
+
484
+ // @public (undocumented)
485
+ export function buildHeightfieldCollider(rows: number, cols: number, heights: Float32Array, scale: readonly [number, number, number], options?: RuntimeColliderOptions): StageColliderConfig;
486
+
487
+ // @public (undocumented)
488
+ export function buildRuntimeBody(options?: RuntimeBodyOptions): StageBodyConfig;
489
+
490
+ // @public (undocumented)
491
+ export function buildSphereCollider(radius: number, options?: RuntimeColliderOptions): StageColliderConfig;
492
+
493
+ // @public (undocumented)
494
+ export function buildTrimeshCollider(vertices: Float32Array, indices: Uint32Array, options?: RuntimeColliderOptions): StageColliderConfig;
495
+
496
+ // @public (undocumented)
497
+ export function bundleRuntimeCollision(body: StageBodyConfig, colliders: StageColliderConfig[]): RuntimeCollisionBundle;
498
+
499
+ export { BurstParticlePresetOptions }
500
+
501
+ // @public (undocumented)
502
+ export type ButtonName = keyof InputGamepad['buttons'];
503
+
504
+ // @public (undocumented)
505
+ export interface ButtonState {
506
+ // (undocumented)
507
+ held: number;
508
+ // (undocumented)
509
+ pressed: boolean;
510
+ // (undocumented)
511
+ released: boolean;
512
+ }
513
+
514
+ // @public
515
+ export function callFunc(fn: () => void): Action;
516
+
517
+ // @public
518
+ export interface CameraAction {
519
+ isDone(ctx: CameraContext): boolean;
520
+ priority?: number;
521
+ update(ctx: CameraContext): PoseDelta;
522
+ }
523
+
524
+ // @public
525
+ export interface CameraBehavior {
526
+ enabled?: boolean;
527
+ onAttach?(ctx: CameraContext): void;
528
+ onDetach?(ctx: CameraContext): void;
529
+ priority?: number;
530
+ update(ctx: CameraContext, pose: CameraPose): CameraPose;
531
+ }
532
+
533
+ // @public
534
+ export interface CameraContext {
535
+ dt: number;
536
+ targets: Record<string, TransformLike>;
537
+ time: number;
538
+ viewport: {
539
+ width: number;
540
+ height: number;
541
+ aspect: number;
542
+ };
543
+ }
544
+
545
+ // @public
546
+ export interface CameraFeedOptions {
547
+ height?: number;
548
+ width?: number;
549
+ }
550
+
551
+ // @public
552
+ export class CameraManager {
553
+ constructor();
554
+ // Warning: (ae-forgotten-export) The symbol "ZylemCamera" needs to be exported by the entry point public.d.ts
555
+ get activeCameras(): ReadonlyArray<ZylemCamera>;
556
+ addActiveCamera(nameOrRef: string | ZylemCamera): boolean;
557
+ addCamera(camera: ZylemCamera, name?: string): string;
558
+ get allCameras(): ReadonlyArray<ZylemCamera>;
559
+ deactivateCamera(nameOrRef: string | ZylemCamera): boolean;
560
+ get debugCamera(): ZylemCamera | null;
561
+ dispose(): void;
562
+ ensureDefaultCamera(): ZylemCamera;
563
+ getCamera(name: string): ZylemCamera | null;
564
+ get primaryCamera(): ZylemCamera | null;
565
+ removeCamera(nameOrRef: string | ZylemCamera): boolean;
566
+ render(scene: Scene): void;
567
+ setActiveCamera(nameOrRef: string | ZylemCamera): boolean;
568
+ // Warning: (ae-forgotten-export) The symbol "RendererManager" needs to be exported by the entry point public.d.ts
569
+ setup(scene: Scene, rendererManager: RendererManager): Promise<void>;
570
+ update(delta: number): void;
571
+ }
572
+
573
+ // @public (undocumented)
574
+ export interface CameraOptions {
575
+ behaviors?: Record<string, CameraBehavior>;
576
+ damping?: number;
577
+ name?: string;
578
+ // (undocumented)
579
+ perspective?: PerspectiveType;
580
+ // (undocumented)
581
+ position?: Vec3Input;
582
+ renderToTexture?: {
583
+ width?: number;
584
+ height?: number;
585
+ };
586
+ // (undocumented)
587
+ screenResolution?: Vec2Input;
588
+ skipDebugOrbit?: boolean;
589
+ // (undocumented)
590
+ target?: Vec3Input;
591
+ useOrbitalControls?: boolean;
592
+ viewport?: Viewport;
593
+ // (undocumented)
594
+ zoom?: number;
595
+ }
596
+
597
+ // @public
598
+ export interface CameraPerspective {
599
+ defaults?: {
600
+ damping?: number;
601
+ };
602
+ getBasePose(ctx: CameraContext): CameraPose;
603
+ // (undocumented)
604
+ id: string;
605
+ }
606
+
607
+ // @public
608
+ export class CameraPipeline {
609
+ constructor(perspective?: CameraPerspective);
610
+ addAction(action: CameraAction): void;
611
+ addBehavior(key: string, behavior: CameraBehavior, ctx?: CameraContext): void;
612
+ damping: number;
613
+ getState(): CameraPipelineState;
614
+ hasBehavior(key: string): boolean;
615
+ perspective: CameraPerspective | null;
616
+ removeBehavior(key: string, ctx?: CameraContext): boolean;
617
+ run(ctx: CameraContext): CameraPose;
618
+ setPerspective(perspective: CameraPerspective): void;
619
+ }
620
+
621
+ // @public
622
+ export interface CameraPipelineState {
623
+ // (undocumented)
624
+ activeActionCount: number;
625
+ // (undocumented)
626
+ activeBehaviors: string[];
627
+ // (undocumented)
628
+ desiredPose: CameraPose | null;
629
+ // (undocumented)
630
+ finalPose: CameraPose | null;
631
+ // (undocumented)
632
+ perspectiveId: string | null;
633
+ }
634
+
635
+ // @public
636
+ export interface CameraPose {
637
+ // (undocumented)
638
+ far?: number;
639
+ // (undocumented)
640
+ fov?: number;
641
+ lookAt?: Vector3;
642
+ // (undocumented)
643
+ near?: number;
644
+ // (undocumented)
645
+ position: Vector3;
646
+ // (undocumented)
647
+ rotation: Quaternion;
648
+ // (undocumented)
649
+ zoom?: number;
650
+ }
651
+
652
+ // @public
653
+ export class CameraWrapper {
654
+ constructor(camera: ZylemCamera);
655
+ addAction(action: CameraAction): void;
656
+ addBehavior(key: string, behavior: CameraBehavior): void;
657
+ addTarget(entity: StageEntity): void;
658
+ // (undocumented)
659
+ cameraRef: ZylemCamera;
660
+ clearTargets(): void;
661
+ disableOrbitalControls(): void;
662
+ enableOrbitalControls(): void;
663
+ getPerspective<T extends CameraPerspective = CameraPerspective>(): T;
664
+ getRenderTexture(): Texture | null;
665
+ getState(): CameraPipelineState;
666
+ removeBehavior(key: string): boolean;
667
+ removeTarget(entity: StageEntity): void;
668
+ setPerspective(type: PerspectiveType, options?: PerspectiveOptions): void;
669
+ setViewport(x: number, y: number, width: number, height: number): void;
670
+ }
671
+
672
+ export { clamp }
673
+
674
+ // @public
675
+ export function clearGlobalSubscriptions(): void;
676
+
677
+ // @public
678
+ export interface CollisionComponent {
679
+ // (undocumented)
680
+ __kind: 'collision';
681
+ // (undocumented)
682
+ bodyDesc: SimulationBodyDefinition;
683
+ // (undocumented)
684
+ cloneComponent: () => CollisionComponent;
685
+ // (undocumented)
686
+ colliderDesc: SimulationColliderDefinition;
687
+ }
688
+
689
+ // @public (undocumented)
690
+ export type CollisionShapeType = 'capsule' | 'bounds' | 'trimesh' | 'model';
691
+
692
+ // @public
693
+ export const ColorJsonSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>;
694
+
695
+ export { computeWorldBoundary2DHits }
696
+
697
+ export { computeWorldBoundary3DHits }
698
+
699
+ // @public (undocumented)
700
+ export const CONE_TYPE: unique symbol;
701
+
702
+ // Warning: (ae-forgotten-export) The symbol "ConeCollisionOptions" needs to be exported by the entry point public.d.ts
703
+ //
704
+ // @public
705
+ export function coneCollision(opts?: ConeCollisionOptions): CollisionComponent;
706
+
707
+ // Warning: (ae-forgotten-export) The symbol "ConeMeshOptions" needs to be exported by the entry point public.d.ts
708
+ //
709
+ // @public
710
+ export function coneMesh(opts?: ConeMeshOptions): Mesh;
711
+
712
+ export { CooldownBehavior }
713
+
714
+ export { CooldownConfig }
715
+
716
+ export { CooldownEntry }
717
+
718
+ export { CooldownHandle }
719
+
720
+ export { CooldownOptions }
721
+
722
+ export { cos }
723
+
724
+ // @public
725
+ export function create(options?: Partial<GameEntityOptions>): GameEntity<GameEntityOptions>;
726
+
727
+ // Warning: (ae-forgotten-export) The symbol "ActorOptions" needs to be exported by the entry point public.d.ts
728
+ //
729
+ // @public (undocumented)
730
+ export function createActor(...args: Array<ActorOptions>): ZylemActor;
731
+
732
+ // @public
733
+ export function createBackgroundShader(colorNode: any, transparent?: boolean): ZylemTSLShader;
734
+
735
+ // Warning: (ae-forgotten-export) The symbol "BoxOptions" needs to be exported by the entry point public.d.ts
736
+ //
737
+ // @public (undocumented)
738
+ export function createBox(...args: Array<BoxOptions>): ZylemBox;
739
+
740
+ // @public
741
+ export function createCamera(options: CameraOptions): CameraWrapper;
742
+
743
+ // Warning: (ae-forgotten-export) The symbol "ConeOptions" needs to be exported by the entry point public.d.ts
744
+ //
745
+ // @public
746
+ export function createCone(...args: Array<ConeOptions>): ZylemCone;
747
+
748
+ // Warning: (ae-forgotten-export) The symbol "CooldownIconOptions" needs to be exported by the entry point public.d.ts
749
+ // Warning: (ae-forgotten-export) The symbol "ZylemCooldownIcon" needs to be exported by the entry point public.d.ts
750
+ //
751
+ // @public
752
+ export function createCooldownIcon(...args: Array<CooldownIconOptions>): ZylemCooldownIcon;
753
+
754
+ // Warning: (ae-forgotten-export) The symbol "CylinderOptions" needs to be exported by the entry point public.d.ts
755
+ //
756
+ // @public
757
+ export function createCylinder(...args: Array<CylinderOptions>): ZylemCylinder;
758
+
759
+ // Warning: (ae-forgotten-export) The symbol "DiskOptions" needs to be exported by the entry point public.d.ts
760
+ //
761
+ // @public (undocumented)
762
+ export function createDisk(...args: Array<DiskOptions>): ZylemDisk;
763
+
764
+ // Warning: (ae-forgotten-export) The symbol "CreateGameEntityOptions" needs to be exported by the entry point public.d.ts
765
+ //
766
+ // @public (undocumented)
767
+ export function createEntity<T extends GameEntity<any>, CreateOptions extends GameEntityOptions>(params: CreateGameEntityOptions<T, CreateOptions>): T;
768
+
769
+ // @public
770
+ export function createEntityFactory<E extends GameEntity<O>, O extends GameEntityOptions = GameEntityOptions>(template: E): TemplateFactory<E, O>;
771
+
772
+ export { createFirstPersonInputComponent }
773
+
774
+ export { createFirstPersonMovementComponent }
775
+
776
+ export { createFirstPersonStateComponent }
777
+
778
+ // @public
779
+ export function createFog(options?: ZylemFogOptions): ZylemFog;
780
+
781
+ // @public
782
+ export function createFollowTarget(options?: FollowTargetOptions): CameraBehavior;
783
+
784
+ // Warning: (ae-forgotten-export) The symbol "BaseGlobals" needs to be exported by the entry point public.d.ts
785
+ // Warning: (ae-forgotten-export) The symbol "GameOptions" needs to be exported by the entry point public.d.ts
786
+ //
787
+ // @public
788
+ export function createGame<TGlobals extends BaseGlobals>(...options: GameOptions<TGlobals>): Game<TGlobals>;
789
+
790
+ // @public
791
+ export function createGlobal<T>(path: string, defaultValue: T): T;
792
+
793
+ export { createJumpConfig2D }
794
+
795
+ export { createJumpConfig3D }
796
+
797
+ export { createJumpInput2D }
798
+
799
+ export { createJumpInput3D }
800
+
801
+ export { createJumpState2D }
802
+
803
+ export { createJumpState3D }
804
+
805
+ // @public
806
+ export function createLight(options: ZylemLightOptions): ZylemLight;
807
+
808
+ // Warning: (ae-forgotten-export) The symbol "LineOptions" needs to be exported by the entry point public.d.ts
809
+ //
810
+ // @public (undocumented)
811
+ export function createLine(...args: Array<LineOptions>): ZylemLine;
812
+
813
+ // @public
814
+ export function createNodeMaterialFromTSL(tslShader: ZylemTSLShader, opacity?: number): MeshBasicNodeMaterial;
815
+
816
+ // @public (undocumented)
817
+ export function createParticleSystem(options?: Partial<ZylemParticleSystemOptions>): ZylemParticleSystem;
818
+
819
+ // @public
820
+ export function createPerspective(type: PerspectiveType, options?: PerspectiveOptions): CameraPerspective;
821
+
822
+ export { createPhysicsBodyComponent }
823
+
824
+ // Warning: (ae-forgotten-export) The symbol "PillOptions" needs to be exported by the entry point public.d.ts
825
+ //
826
+ // @public
827
+ export function createPill(...args: Array<PillOptions>): ZylemPill;
828
+
829
+ // Warning: (ae-forgotten-export) The symbol "PlaneOptions" needs to be exported by the entry point public.d.ts
830
+ //
831
+ // @public (undocumented)
832
+ export function createPlane(...args: Array<PlaneOptions>): ZylemPlane;
833
+
834
+ export { createPlatformer2DInputComponent }
835
+
836
+ export { createPlatformer2DMovementComponent }
837
+
838
+ export { createPlatformer2DStateComponent }
839
+
840
+ export { createPlatformer3DInputComponent }
841
+
842
+ export { createPlatformer3DMovementComponent }
843
+
844
+ export { createPlatformer3DStateComponent }
845
+
846
+ // Warning: (ae-forgotten-export) The symbol "PyramidOptions" needs to be exported by the entry point public.d.ts
847
+ //
848
+ // @public
849
+ export function createPyramid(...args: Array<PyramidOptions>): ZylemPyramid;
850
+
851
+ // Warning: (ae-forgotten-export) The symbol "RectOptions" needs to be exported by the entry point public.d.ts
852
+ //
853
+ // @public (undocumented)
854
+ export function createRect(...args: Array<RectOptions>): ZylemRect;
855
+
856
+ export { createShooter2DStateComponent }
857
+
858
+ export { createSimulation }
859
+
860
+ // Warning: (ae-forgotten-export) The symbol "SphereOptions" needs to be exported by the entry point public.d.ts
861
+ //
862
+ // @public (undocumented)
863
+ export function createSphere(...args: Array<SphereOptions>): ZylemSphere;
864
+
865
+ // Warning: (ae-forgotten-export) The symbol "SpriteOptions" needs to be exported by the entry point public.d.ts
866
+ //
867
+ // @public (undocumented)
868
+ export function createSprite(...args: Array<SpriteOptions>): ZylemSprite;
869
+
870
+ // Warning: (ae-forgotten-export) The symbol "Stage" needs to be exported by the entry point public.d.ts
871
+ //
872
+ // @public
873
+ export function createStage(...options: StageOptions): Stage;
874
+
875
+ // Warning: (ae-forgotten-export) The symbol "TextOptions" needs to be exported by the entry point public.d.ts
876
+ //
877
+ // @public (undocumented)
878
+ export function createText(...args: Array<TextOptions>): ZylemText;
879
+
880
+ export { createThrusterInputComponent }
881
+
882
+ export { createThrusterMovementComponent }
883
+
884
+ export { createThrusterStateComponent }
885
+
886
+ export { createTopDownMovementComponent }
887
+
888
+ export { createTopDownMovementInputComponent }
889
+
890
+ export { createTopDownMovementStateComponent }
891
+
892
+ export { createTransformComponent }
893
+
894
+ export { createTransformStore }
895
+
896
+ // @public
897
+ export function createVariable<T>(target: object, path: string, defaultValue: T): T;
898
+
899
+ // Warning: (ae-forgotten-export) The symbol "ZoneOptions" needs to be exported by the entry point public.d.ts
900
+ //
901
+ // @public (undocumented)
902
+ export function createZone(...args: Array<ZoneOptions>): ZylemZone;
903
+
904
+ // @public
905
+ export const crossfadeTransitionShader: ZylemTransitionShader;
906
+
907
+ // @public (undocumented)
908
+ export const CYLINDER_TYPE: unique symbol;
909
+
910
+ // Warning: (ae-forgotten-export) The symbol "CylinderCollisionOptions" needs to be exported by the entry point public.d.ts
911
+ //
912
+ // @public
913
+ export function cylinderCollision(opts?: CylinderCollisionOptions): CollisionComponent;
914
+
915
+ // Warning: (ae-forgotten-export) The symbol "CylinderMeshOptions" needs to be exported by the entry point public.d.ts
916
+ //
917
+ // @public
918
+ export function cylinderMesh(opts?: CylinderMeshOptions): Mesh;
919
+
920
+ // Warning: (ae-forgotten-export) The symbol "DebugState" needs to be exported by the entry point public.d.ts
921
+ //
922
+ // @public (undocumented)
923
+ export const debugState: DebugState;
924
+
925
+ // @public (undocumented)
926
+ export type DebugTools = 'select' | 'translate' | 'rotate' | 'scale' | 'delete' | 'none';
927
+
928
+ // @public
929
+ export function defaultTouchControls(player?: InputPlayer, options?: DefaultTouchControlsOptions): GameInputConfig;
930
+
931
+ // @public (undocumented)
932
+ export interface DefaultTouchControlsOptions {
933
+ buttonAccents?: Partial<Record<VirtualTouchButtonSlot, string>>;
934
+ buttonLabels?: Partial<Record<VirtualTouchButtonSlot, string>>;
935
+ buttons?: VirtualTouchButtonSlot[];
936
+ enabled?: boolean | 'auto';
937
+ joysticks?: JoystickSelection;
938
+ override?: VirtualTouchConfig;
939
+ theme?: TouchTheme | TouchThemeName;
940
+ }
941
+
942
+ export { defineBehavior }
943
+
944
+ export { DefineBehaviorConfig }
945
+
946
+ // @public
947
+ export function delay(ms: number): Action;
948
+
949
+ // @public (undocumented)
950
+ export function destroy(entity: any, globals?: any): void;
951
+
952
+ export { Destructible3DBehavior }
953
+
954
+ export { Destructible3DBehaviorOptions }
955
+
956
+ export { Destructible3DColliderOptions }
957
+
958
+ export { Destructible3DFragmentColliderShape }
959
+
960
+ export { Destructible3DFragmentPhysicsOptions }
961
+
962
+ export { Destructible3DHandle }
963
+
964
+ export { DestructibleMesh }
965
+
966
+ export { DestructiblePrebakeWorkerAPI }
967
+
968
+ // @public (undocumented)
969
+ export type DeviceProfile = 'auto' | 'desktop' | 'mobile';
970
+
971
+ // @public (undocumented)
972
+ export interface DirectionalLightOptions extends BaseLightOptions {
973
+ castShadow?: boolean;
974
+ shadow?: LightShadowOptions;
975
+ // Warning: (ae-forgotten-export) The symbol "Vec3_2" needs to be exported by the entry point public.d.ts
976
+ target?: Vec3_2;
977
+ // (undocumented)
978
+ type: 'directional';
979
+ }
980
+
981
+ // @public (undocumented)
982
+ export const DISK_TYPE: unique symbol;
983
+
984
+ // @public
985
+ export function dispatchStageState(): void;
986
+
987
+ export { dot }
988
+
989
+ export { emitRuntimeGoal }
990
+
991
+ export { emitRuntimeRicochet }
992
+
993
+ export { emitRuntimeTriggerRegionEnter }
994
+
995
+ // @public (undocumented)
996
+ export type EntityBlueprint = Static<typeof EntitySchema>;
997
+
998
+ // @public
999
+ export interface EntityConfigPayload {
1000
+ bounds?: {
1001
+ width: number;
1002
+ height: number;
1003
+ depth: number;
1004
+ };
1005
+ // (undocumented)
1006
+ name: string;
1007
+ // (undocumented)
1008
+ position: {
1009
+ x: number;
1010
+ y: number;
1011
+ z: number;
1012
+ };
1013
+ // (undocumented)
1014
+ rotation: {
1015
+ x: number;
1016
+ y: number;
1017
+ z: number;
1018
+ };
1019
+ // (undocumented)
1020
+ scale: {
1021
+ x: number;
1022
+ y: number;
1023
+ z: number;
1024
+ };
1025
+ thumbnail?: string | null;
1026
+ // (undocumented)
1027
+ type: string;
1028
+ // (undocumented)
1029
+ uuid: string;
1030
+ }
1031
+
1032
+ export { EntityDefinition }
1033
+
1034
+ // @public (undocumented)
1035
+ export type EntityEvents = {
1036
+ 'entity:spawned': {
1037
+ entityId: string;
1038
+ name: string;
1039
+ };
1040
+ 'entity:destroyed': {
1041
+ entityId: string;
1042
+ };
1043
+ 'entity:collision': {
1044
+ entityId: string;
1045
+ otherId: string;
1046
+ };
1047
+ 'entity:model:loading': {
1048
+ entityId: string;
1049
+ files: string[];
1050
+ };
1051
+ 'entity:model:loaded': {
1052
+ entityId: string;
1053
+ success: boolean;
1054
+ meshCount?: number;
1055
+ errorMessage?: string;
1056
+ };
1057
+ 'entity:animation:loaded': {
1058
+ entityId: string;
1059
+ animationCount: number;
1060
+ };
1061
+ };
1062
+
1063
+ // @public
1064
+ export interface EntityFocusContext {
1065
+ ensureDebugReady?(): void;
1066
+ frameObject(object: Object3D): void;
1067
+ resolveEntity(uuid: string): GameEntity<any> | null;
1068
+ }
1069
+
1070
+ // Warning: (ae-forgotten-export) The symbol "BaseNode" needs to be exported by the entry point public.d.ts
1071
+ //
1072
+ // @public
1073
+ export type EntityForType<T> = T extends keyof EntityTypeMap ? EntityTypeMap[T] : BaseNode;
1074
+
1075
+ export { EntityHandle }
1076
+
1077
+ // @public (undocumented)
1078
+ export type EntityJson = Static<typeof EntityJsonSchema>;
1079
+
1080
+ // @public
1081
+ export const EntityJsonSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1082
+ id: _sinclair_typebox.TString;
1083
+ type: _sinclair_typebox.TLiteral<"text">;
1084
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
1085
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1086
+ value: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1087
+ color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1088
+ fontSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1089
+ fontFamily: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1090
+ }>>;
1091
+ }>, _sinclair_typebox.TObject<{
1092
+ id: _sinclair_typebox.TString;
1093
+ type: _sinclair_typebox.TLiteral<"sprite">;
1094
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
1095
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1096
+ imagePath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1097
+ width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1098
+ height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1099
+ }>>;
1100
+ }>, _sinclair_typebox.TObject<{
1101
+ id: _sinclair_typebox.TString;
1102
+ type: _sinclair_typebox.TLiteral<"line">;
1103
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
1104
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1105
+ points: _sinclair_typebox.TArray<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
1106
+ color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1107
+ colors: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
1108
+ linewidth: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1109
+ worldUnits: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1110
+ alphaToCoverage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1111
+ opacity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1112
+ transparent: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1113
+ dashed: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1114
+ dashSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1115
+ gapSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1116
+ pickThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1117
+ }>>;
1118
+ }>, _sinclair_typebox.TObject<{
1119
+ id: _sinclair_typebox.TString;
1120
+ type: _sinclair_typebox.TString;
1121
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
1122
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
1123
+ }>]>;
1124
+
1125
+ // @public
1126
+ export const EntitySchema: _sinclair_typebox.TObject<{
1127
+ id: _sinclair_typebox.TString;
1128
+ type: _sinclair_typebox.TString;
1129
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
1130
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TAny>>;
1131
+ }>;
1132
+
1133
+ // Warning: (ae-forgotten-export) The symbol "EntitySpawner" needs to be exported by the entry point public.d.ts
1134
+ //
1135
+ // @public (undocumented)
1136
+ export function entitySpawner(factory: (x: number, y: number) => Promise<any> | GameEntity<any>): EntitySpawner;
1137
+
1138
+ // @public
1139
+ export class EntityThumbnailCache {
1140
+ constructor(size?: number);
1141
+ // (undocumented)
1142
+ clear(): void;
1143
+ ensure(uuid: string, object: Object3D | null | undefined): Promise<EntityThumbnailCacheEntry | null>;
1144
+ // (undocumented)
1145
+ get(uuid: string): EntityThumbnailCacheEntry | null;
1146
+ // (undocumented)
1147
+ invalidate(uuid: string): void;
1148
+ // (undocumented)
1149
+ setRenderer(renderer: WebGPURenderer | null): void;
1150
+ }
1151
+
1152
+ // @public
1153
+ export const entityThumbnailCache: EntityThumbnailCache;
1154
+
1155
+ // @public (undocumented)
1156
+ export interface EntityThumbnailCacheEntry extends EntityThumbnailResult {
1157
+ // (undocumented)
1158
+ uuid: string;
1159
+ }
1160
+
1161
+ // @public (undocumented)
1162
+ export interface EntityThumbnailResult {
1163
+ // Warning: (ae-forgotten-export) The symbol "ObjectBounds" needs to be exported by the entry point public.d.ts
1164
+ //
1165
+ // (undocumented)
1166
+ bounds: Pick<ObjectBounds, 'width' | 'height' | 'depth'>;
1167
+ // (undocumented)
1168
+ dataUrl: string;
1169
+ }
1170
+
1171
+ // @public
1172
+ export interface EntityTypeMap {
1173
+ // (undocumented)
1174
+ [ACTOR_TYPE]: ZylemActor;
1175
+ // (undocumented)
1176
+ [BOX_TYPE]: ZylemBox;
1177
+ // (undocumented)
1178
+ [CONE_TYPE]: ZylemCone;
1179
+ // (undocumented)
1180
+ [CYLINDER_TYPE]: ZylemCylinder;
1181
+ // (undocumented)
1182
+ [DISK_TYPE]: ZylemDisk;
1183
+ // (undocumented)
1184
+ [FOG_TYPE]: ZylemFog;
1185
+ // (undocumented)
1186
+ [LIGHT_TYPE]: ZylemLight;
1187
+ // (undocumented)
1188
+ [LINE_TYPE]: ZylemLine;
1189
+ // (undocumented)
1190
+ [PARTICLE_SYSTEM_TYPE]: ZylemParticleSystem;
1191
+ // (undocumented)
1192
+ [PILL_TYPE]: ZylemPill;
1193
+ // (undocumented)
1194
+ [PLANE_TYPE]: ZylemPlane;
1195
+ // (undocumented)
1196
+ [PYRAMID_TYPE]: ZylemPyramid;
1197
+ // (undocumented)
1198
+ [RECT_TYPE]: ZylemRect;
1199
+ // (undocumented)
1200
+ [SPHERE_TYPE]: ZylemSphere;
1201
+ // (undocumented)
1202
+ [SPRITE_TYPE]: ZylemSprite;
1203
+ // (undocumented)
1204
+ [TEXT_TYPE]: ZylemText;
1205
+ // (undocumented)
1206
+ [ZONE_TYPE]: ZylemZone;
1207
+ }
1208
+
1209
+ // @public
1210
+ export class EventEmitterDelegate<TEvents extends Record<string, unknown>> {
1211
+ constructor();
1212
+ dispatch<K extends keyof TEvents>(event: K, payload: TEvents[K]): void;
1213
+ dispose(): void;
1214
+ listen<K extends keyof TEvents>(event: K, handler: (payload: TEvents[K]) => void): () => void;
1215
+ listenAll(handler: (type: keyof TEvents, payload: TEvents[keyof TEvents]) => void): () => void;
1216
+ }
1217
+
1218
+ export { exp }
1219
+
1220
+ export { FacingAngle2DEntity }
1221
+
1222
+ // @public
1223
+ export function fadeOpacity(opts: FadeOpacityOptions): Action;
1224
+
1225
+ // @public (undocumented)
1226
+ export interface FadeOpacityOptions {
1227
+ duration: number;
1228
+ from?: number;
1229
+ restoreOpaque?: boolean;
1230
+ targets?: Object3D[];
1231
+ to?: number;
1232
+ }
1233
+
1234
+ export { fireCooldown }
1235
+
1236
+ export { fireShooter2DIfRequested }
1237
+
1238
+ export { FirstPersonBehavior }
1239
+
1240
+ export { FirstPersonBehaviorOptions }
1241
+
1242
+ export { FirstPersonContext }
1243
+
1244
+ export { FirstPersonEntity }
1245
+
1246
+ export { FirstPersonEvent }
1247
+
1248
+ export { FirstPersonFSM }
1249
+
1250
+ export { FirstPersonInputComponent }
1251
+
1252
+ export { FirstPersonMovementComponent }
1253
+
1254
+ // @public
1255
+ export interface FirstPersonOptions {
1256
+ defaultFov?: number;
1257
+ eyeHeight?: number;
1258
+ fovLerpSpeed?: number;
1259
+ initialLookAt?: Vec3Input;
1260
+ initialPosition?: Vec3Input;
1261
+ lookAtLerpSpeed?: number;
1262
+ pitchLimit?: number;
1263
+ targetKey?: string;
1264
+ verticalSmoothing?: number;
1265
+ }
1266
+
1267
+ // @public
1268
+ export class FirstPersonPerspective implements CameraPerspective {
1269
+ constructor(options?: FirstPersonOptions);
1270
+ clearLookAt(): void;
1271
+ get currentFov(): number;
1272
+ // (undocumented)
1273
+ readonly defaults: {
1274
+ damping: number;
1275
+ };
1276
+ // (undocumented)
1277
+ getBasePose(ctx: CameraContext): CameraPose;
1278
+ // (undocumented)
1279
+ readonly id = "first-person";
1280
+ initialPosition?: Vector3;
1281
+ look(deltaYaw: number, deltaPitch: number): void;
1282
+ lookAt(target: Vector3, lerpSpeed?: number): void;
1283
+ get pitch(): number;
1284
+ resetZoom(): void;
1285
+ setLook(yaw: number, pitch: number): void;
1286
+ get yaw(): number;
1287
+ zoom(fov: number): void;
1288
+ }
1289
+
1290
+ export { FirstPersonPresentation }
1291
+
1292
+ export { FirstPersonShooterCoordinator }
1293
+
1294
+ export { FirstPersonShooterEntity }
1295
+
1296
+ export { FirstPersonShooterInput }
1297
+
1298
+ export { FirstPersonState }
1299
+
1300
+ export { FirstPersonStateComponent }
1301
+
1302
+ // @public
1303
+ export interface Fixed2DOptions {
1304
+ position?: Vec3Input;
1305
+ zoom?: number;
1306
+ }
1307
+
1308
+ // @public
1309
+ export class Fixed2DPerspective implements CameraPerspective {
1310
+ constructor(options?: Fixed2DOptions);
1311
+ // (undocumented)
1312
+ readonly defaults: {
1313
+ damping: number;
1314
+ };
1315
+ // (undocumented)
1316
+ getBasePose(_ctx: CameraContext): CameraPose;
1317
+ // (undocumented)
1318
+ readonly id = "fixed-2d";
1319
+ }
1320
+
1321
+ export { float }
1322
+
1323
+ export { floor }
1324
+
1325
+ export { Fn }
1326
+
1327
+ // @public
1328
+ export function focusEntity(uuid: string): boolean;
1329
+
1330
+ // @public (undocumented)
1331
+ export const FOG_TYPE: unique symbol;
1332
+
1333
+ // @public
1334
+ export interface FollowTargetOptions {
1335
+ lerpFactor?: number;
1336
+ offset?: Vec3Input;
1337
+ targetKey?: string;
1338
+ }
1339
+
1340
+ export { fract }
1341
+
1342
+ export { FractureOptions }
1343
+
1344
+ export { FractureOptionsInput }
1345
+
1346
+ // Warning: (ae-forgotten-export) The symbol "IGame" needs to be exported by the entry point public.d.ts
1347
+ //
1348
+ // @public (undocumented)
1349
+ export class Game<TGlobals extends BaseGlobals> implements IGame<TGlobals> {
1350
+ constructor(options: GameOptions<TGlobals>);
1351
+ dispatch<K extends keyof GameEvents>(event: K, payload: GameEvents[K]): void;
1352
+ // (undocumented)
1353
+ dispose(): void;
1354
+ // (undocumented)
1355
+ end(): Promise<void>;
1356
+ readonly experimental: {
1357
+ getRuntime: () => Simulation | null;
1358
+ };
1359
+ getCurrentStage(): Stage | null;
1360
+ // (undocumented)
1361
+ goToStage(): Promise<void>;
1362
+ listen<K extends keyof GameEvents>(event: K, handler: (payload: GameEvents[K]) => void): () => void;
1363
+ // (undocumented)
1364
+ loadStageFromId(stageId: string): Promise<void>;
1365
+ nextStage(options?: StageNavigationOptions): void;
1366
+ // Warning: (ae-forgotten-export) The symbol "DestroyFunction" needs to be exported by the entry point public.d.ts
1367
+ //
1368
+ // (undocumented)
1369
+ onDestroy(...callbacks: Array<DestroyFunction<ZylemGame<TGlobals>, TGlobals>>): this;
1370
+ onGlobalChange<T = unknown>(path: string, callback: (value: T, stage: Stage | null) => void): this;
1371
+ onGlobalChanges<T extends unknown[] = unknown[]>(paths: string[], callback: (values: T, stage: Stage | null) => void): this;
1372
+ onLoading(callback: (event: GameLoadingEvent) => void): () => void;
1373
+ // Warning: (ae-forgotten-export) The symbol "SetupFunction" needs to be exported by the entry point public.d.ts
1374
+ // Warning: (ae-forgotten-export) The symbol "ZylemGame" needs to be exported by the entry point public.d.ts
1375
+ //
1376
+ // (undocumented)
1377
+ onSetup(...callbacks: Array<SetupFunction<ZylemGame<TGlobals>, TGlobals>>): this;
1378
+ // Warning: (ae-forgotten-export) The symbol "UpdateFunction" needs to be exported by the entry point public.d.ts
1379
+ //
1380
+ // (undocumented)
1381
+ onUpdate(...callbacks: Array<UpdateFunction<ZylemGame<TGlobals>, TGlobals>>): this;
1382
+ // (undocumented)
1383
+ options: GameOptions<TGlobals>;
1384
+ // (undocumented)
1385
+ pause(): Promise<void>;
1386
+ previousStage(options?: StageNavigationOptions): void;
1387
+ // (undocumented)
1388
+ refErrorMessage: string;
1389
+ reset(options?: StageNavigationOptions): Promise<void>;
1390
+ // (undocumented)
1391
+ resume(): Promise<void>;
1392
+ // (undocumented)
1393
+ setDeviceProfile(profile: DeviceProfile): this;
1394
+ // (undocumented)
1395
+ setDisplayRuntime(runtime: Partial<ResolveGameConfigRuntime>): this;
1396
+ setInputConfiguration(...configs: GameInputConfig[]): this;
1397
+ // (undocumented)
1398
+ setViewportSize(width: number, height: number): this;
1399
+ // (undocumented)
1400
+ start(): Promise<this>;
1401
+ step(deltaTime?: number): void;
1402
+ }
1403
+
1404
+ // @public
1405
+ export function gameConfig(config: GameConfigLike): GameConfigLike;
1406
+
1407
+ // @public (undocumented)
1408
+ export type GameConfigJson = Static<typeof GameConfigJsonSchema>;
1409
+
1410
+ // @public
1411
+ export const GameConfigJsonSchema: _sinclair_typebox.TObject<{
1412
+ id: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1413
+ globals: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
1414
+ debug: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1415
+ time: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1416
+ input: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TObject<{
1417
+ key: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>>;
1418
+ mouse: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1419
+ mapping: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>>;
1420
+ pointerLock: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1421
+ sensitivity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1422
+ }>>;
1423
+ touch: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1424
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TLiteral<"auto">]>>;
1425
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1426
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1427
+ joysticks: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1428
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1429
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1430
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1431
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1432
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1433
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1434
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1435
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1436
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1437
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1438
+ }>>;
1439
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1440
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1441
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1442
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1443
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1444
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
1445
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
1446
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1447
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1448
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1449
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1450
+ }>>;
1451
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1452
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1453
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1454
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1455
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1456
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1457
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1458
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1459
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1460
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1461
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1462
+ }>>;
1463
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1464
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1465
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1466
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1467
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1468
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
1469
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
1470
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1471
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1472
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1473
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1474
+ }>>;
1475
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1476
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1477
+ buttons: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1478
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1479
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1480
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1481
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1482
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1483
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1484
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1485
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1486
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1487
+ }>>;
1488
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1489
+ label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1490
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1491
+ }>, _sinclair_typebox.TLiteral<false>]>>, _sinclair_typebox.TLiteral<false>]>>;
1492
+ }>>;
1493
+ includeDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1494
+ }>>>;
1495
+ aspectRatio: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
1496
+ preset: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1497
+ resolution: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
1498
+ width: _sinclair_typebox.TNumber;
1499
+ height: _sinclair_typebox.TNumber;
1500
+ }>, _sinclair_typebox.TLiteral<"native">]>>;
1501
+ mobile: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1502
+ aspectRatio: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
1503
+ preset: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1504
+ resolution: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
1505
+ width: _sinclair_typebox.TNumber;
1506
+ height: _sinclair_typebox.TNumber;
1507
+ }>, _sinclair_typebox.TLiteral<"native">]>>;
1508
+ controls: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1509
+ }>>;
1510
+ fullscreen: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1511
+ bodyBackground: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1512
+ containerId: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1513
+ }>;
1514
+
1515
+ // @public (undocumented)
1516
+ export type GameConfigLike = Partial<{
1517
+ id: string;
1518
+ globals: Record<string, any>;
1519
+ stages: StageInterface[];
1520
+ debug: boolean;
1521
+ time: number;
1522
+ input: GameInputConfig;
1523
+ aspectRatio: AspectRatioValue | keyof typeof AspectRatio;
1524
+ preset: RetroPresetKey;
1525
+ resolution: ResolutionInput;
1526
+ mobile: GameDeviceConfig;
1527
+ fullscreen: boolean;
1528
+ bodyBackground: string;
1529
+ container: HTMLElement;
1530
+ containerId: string;
1531
+ canvas: HTMLCanvasElement;
1532
+ }>;
1533
+
1534
+ // @public (undocumented)
1535
+ export type GameDeviceConfig = Partial<{
1536
+ aspectRatio: AspectRatioValue | keyof typeof AspectRatio;
1537
+ preset: RetroPresetKey;
1538
+ resolution: ResolutionInput;
1539
+ controls: boolean | DefaultTouchControlsOptions;
1540
+ }>;
1541
+
1542
+ // @public (undocumented)
1543
+ export type GameDeviceConfigJson = Static<typeof GameDeviceConfigJsonSchema>;
1544
+
1545
+ // @public
1546
+ export const GameDeviceConfigJsonSchema: _sinclair_typebox.TObject<{
1547
+ aspectRatio: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TNumber, _sinclair_typebox.TString]>>;
1548
+ preset: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1549
+ resolution: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
1550
+ width: _sinclair_typebox.TNumber;
1551
+ height: _sinclair_typebox.TNumber;
1552
+ }>, _sinclair_typebox.TLiteral<"native">]>>;
1553
+ controls: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1554
+ }>;
1555
+
1556
+ // Warning: (ae-forgotten-export) The symbol "GameEntityLifeCycle" needs to be exported by the entry point public.d.ts
1557
+ // Warning: (ae-forgotten-export) The symbol "EntityDebugInfo" needs to be exported by the entry point public.d.ts
1558
+ // Warning: (ae-forgotten-export) The symbol "RotatableEntityAPI" needs to be exported by the entry point public.d.ts
1559
+ //
1560
+ // @public (undocumented)
1561
+ export class GameEntity<O extends GameEntityOptions> extends BaseNode<O> implements GameEntityLifeCycle, EntityDebugInfo, MoveableEntity, RotatableEntityAPI {
1562
+ constructor();
1563
+ action<A extends Action>(action: A): A;
1564
+ // Warning: (ae-forgotten-export) The symbol "NodeInterface" needs to be exported by the entry point public.d.ts
1565
+ add(...components: Array<NodeInterface | Mesh | CollisionComponent>): this;
1566
+ // (undocumented)
1567
+ body: SimulationBody | null;
1568
+ // (undocumented)
1569
+ bodyDesc: SimulationBodyDefinition | null;
1570
+ // (undocumented)
1571
+ buildInfo(): Record<string, string>;
1572
+ bundleKey: string | null;
1573
+ // Warning: (ae-forgotten-export) The symbol "CleanupContext" needs to be exported by the entry point public.d.ts
1574
+ protected _cleanup(_params: CleanupContext<this>): void;
1575
+ clearActions(): void;
1576
+ // (undocumented)
1577
+ clone(overrides?: Partial<O>): this;
1578
+ // (undocumented)
1579
+ colliderDesc: SimulationColliderDefinition | undefined;
1580
+ colliderDescs: SimulationColliderDefinition[];
1581
+ // Warning: (ae-forgotten-export) The symbol "CollisionDispatchMetadata" needs to be exported by the entry point public.d.ts
1582
+ //
1583
+ // (undocumented)
1584
+ _collision(other: GameEntity<O>, globals?: any, dispatch?: CollisionDispatchMetadata): void;
1585
+ // Warning: (ae-forgotten-export) The symbol "CollisionDelegate" needs to be exported by the entry point public.d.ts
1586
+ //
1587
+ // (undocumented)
1588
+ collisionDelegate: CollisionDelegate<this, O>;
1589
+ // (undocumented)
1590
+ collisionType?: string;
1591
+ compoundMeshes: Mesh[];
1592
+ // (undocumented)
1593
+ create(): this;
1594
+ // (undocumented)
1595
+ custom: Record<string, any>;
1596
+ // (undocumented)
1597
+ debugInfo: Record<string, any>;
1598
+ // (undocumented)
1599
+ debugMaterial: ShaderMaterial | undefined;
1600
+ // Warning: (ae-forgotten-export) The symbol "DestroyContext" needs to be exported by the entry point public.d.ts
1601
+ _destroy(params: DestroyContext<this>): void;
1602
+ dispatch<K extends keyof EntityEvents>(event: K, payload: EntityEvents[K]): void;
1603
+ disposeEvents(): void;
1604
+ // (undocumented)
1605
+ protected eventDelegate: EventEmitterDelegate<EntityEvents>;
1606
+ // (undocumented)
1607
+ finalizeCloneSupport(factory: (options?: Partial<O>) => GameEntity<O>): this;
1608
+ getBehaviorRefs(): BehaviorRef_2[];
1609
+ // (undocumented)
1610
+ getCollisionCallbacks(): Array<(params: CollisionContext<this, O>) => void>;
1611
+ // Warning: (ae-forgotten-export) The symbol "CollisionRegistration" needs to be exported by the entry point public.d.ts
1612
+ //
1613
+ // (undocumented)
1614
+ getCollisionRegistrations(): Array<CollisionRegistration<this, O>>;
1615
+ getPose(): {
1616
+ position: Vec3;
1617
+ rotation: {
1618
+ x: number;
1619
+ y: number;
1620
+ z: number;
1621
+ w: number;
1622
+ };
1623
+ } | null;
1624
+ // (undocumented)
1625
+ getPosition: () => Vector | null;
1626
+ // (undocumented)
1627
+ getRotation: () => any;
1628
+ // (undocumented)
1629
+ getVelocity: () => Vector | null;
1630
+ // (undocumented)
1631
+ group: Group | undefined;
1632
+ instanceId: number;
1633
+ isBundled: boolean;
1634
+ isInstanced: boolean;
1635
+ listen<K extends keyof EntityEvents>(event: K, handler: (payload: EntityEvents[K]) => void): () => void;
1636
+ // Warning: (ae-forgotten-export) The symbol "LoadedContext" needs to be exported by the entry point public.d.ts
1637
+ //
1638
+ // (undocumented)
1639
+ protected _loaded(_params: LoadedContext<this>): Promise<void>;
1640
+ // (undocumented)
1641
+ materials: Material[] | undefined;
1642
+ // (undocumented)
1643
+ mesh: Mesh | undefined;
1644
+ // (undocumented)
1645
+ move: (vector: Vector3) => void;
1646
+ // (undocumented)
1647
+ moveForwardXY: (delta: number, rotation2DAngle: number) => void;
1648
+ // (undocumented)
1649
+ moveX: (delta: number) => void;
1650
+ // (undocumented)
1651
+ moveXY: (deltaX: number, deltaY: number) => void;
1652
+ // (undocumented)
1653
+ moveXZ: (deltaX: number, deltaZ: number) => void;
1654
+ // (undocumented)
1655
+ moveY: (delta: number) => void;
1656
+ // (undocumented)
1657
+ moveZ: (delta: number) => void;
1658
+ // Warning: (ae-forgotten-export) The symbol "CollisionContext" needs to be exported by the entry point public.d.ts
1659
+ // Warning: (ae-forgotten-export) The symbol "CollisionRegistrationOptions" needs to be exported by the entry point public.d.ts
1660
+ onCollision(callback: (params: CollisionContext<this, O>) => void, options?: CollisionRegistrationOptions): this;
1661
+ // (undocumented)
1662
+ onCollision(...callbacks: ((params: CollisionContext<this, O>) => void)[]): this;
1663
+ packKey: string | null;
1664
+ // (undocumented)
1665
+ physicsAttached: boolean;
1666
+ physicsWorldRef: unknown;
1667
+ // (undocumented)
1668
+ resetVelocity: () => void;
1669
+ // (undocumented)
1670
+ rotateEuler: (eulerRotation: Vector3) => void;
1671
+ // (undocumented)
1672
+ rotateInDirection: (moveVector: Vector3) => void;
1673
+ // (undocumented)
1674
+ rotateX: (delta: number) => void;
1675
+ // (undocumented)
1676
+ rotateY: (delta: number) => void;
1677
+ // (undocumented)
1678
+ rotateYEuler: (amount: number) => void;
1679
+ // (undocumented)
1680
+ rotateZ: (delta: number) => void;
1681
+ runAction<A extends Action>(action: A): A;
1682
+ runtimeAttached: boolean;
1683
+ runtimeHandle: number;
1684
+ setPose(input: {
1685
+ position?: Vec3Input;
1686
+ rotation?: {
1687
+ x: number;
1688
+ y: number;
1689
+ z: number;
1690
+ w: number;
1691
+ };
1692
+ }): boolean;
1693
+ // (undocumented)
1694
+ setPosition: (x: number, y: number, z: number) => void;
1695
+ // (undocumented)
1696
+ setPositionX: (x: number) => void;
1697
+ // (undocumented)
1698
+ setPositionY: (y: number) => void;
1699
+ // (undocumented)
1700
+ setPositionZ: (z: number) => void;
1701
+ // (undocumented)
1702
+ setRotation: (x: number, y: number, z: number) => void;
1703
+ // (undocumented)
1704
+ setRotationDegrees: (x: number, y: number, z: number) => void;
1705
+ // (undocumented)
1706
+ setRotationDegreesX: (x: number) => void;
1707
+ // (undocumented)
1708
+ setRotationDegreesY: (y: number) => void;
1709
+ // (undocumented)
1710
+ setRotationDegreesZ: (z: number) => void;
1711
+ // (undocumented)
1712
+ setRotationX: (x: number) => void;
1713
+ // (undocumented)
1714
+ setRotationY: (y: number) => void;
1715
+ // (undocumented)
1716
+ setRotationZ: (z: number) => void;
1717
+ _setup(params: SetupContext<this>): void;
1718
+ _tickActions(delta: number): void;
1719
+ // (undocumented)
1720
+ transformStore: TransformState;
1721
+ _update(params: UpdateContext<this>): void;
1722
+ // (undocumented)
1723
+ protected updateMaterials(params: any): void;
1724
+ use<O extends Record<string, any>, H extends Record<string, any> = Record<string, never>>(descriptor: BehaviorDescriptor_2<O, H>, options?: Partial<O>): BehaviorHandle_2<O, H>;
1725
+ wasmStageRef: BehaviorRuntime | null;
1726
+ // (undocumented)
1727
+ wrapAround3D: (boundsX: number, boundsY: number, boundsZ: number) => void;
1728
+ // (undocumented)
1729
+ wrapAroundXY: (boundsX: number, boundsY: number) => void;
1730
+ }
1731
+
1732
+ // @public (undocumented)
1733
+ export type GameEntityOptions = {
1734
+ name?: string;
1735
+ color?: Color;
1736
+ size?: Vec3Input;
1737
+ position?: Vec3Input;
1738
+ category?: RenderCategory_2;
1739
+ runtime?: RuntimeEntityOptions;
1740
+ collision?: Partial<CollisionOptions>;
1741
+ material?: Partial<MaterialOptions>;
1742
+ custom?: {
1743
+ [key: string]: any;
1744
+ };
1745
+ collisionType?: string;
1746
+ collisionGroup?: string;
1747
+ collisionFilter?: string[];
1748
+ _builders?: {
1749
+ meshBuilder?: IBuilder | EntityMeshBuilder | null;
1750
+ collisionBuilder?: IBuilder | EntityCollisionBuilder | null;
1751
+ materialBuilder?: MaterialBuilder | null;
1752
+ };
1753
+ };
1754
+
1755
+ // @public (undocumented)
1756
+ export type GameEvents = {
1757
+ 'loading:start': GameLoadingPayload;
1758
+ 'loading:progress': GameLoadingPayload;
1759
+ 'loading:complete': GameLoadingPayload;
1760
+ 'paused': {
1761
+ paused: boolean;
1762
+ };
1763
+ 'debug': {
1764
+ enabled: boolean;
1765
+ };
1766
+ 'state:dispatch': StateDispatchPayload;
1767
+ };
1768
+
1769
+ // @public (undocumented)
1770
+ export interface GameInputConfig {
1771
+ // (undocumented)
1772
+ p1?: GameInputPlayerConfig;
1773
+ // (undocumented)
1774
+ p2?: GameInputPlayerConfig;
1775
+ // (undocumented)
1776
+ p3?: GameInputPlayerConfig;
1777
+ // (undocumented)
1778
+ p4?: GameInputPlayerConfig;
1779
+ // (undocumented)
1780
+ p5?: GameInputPlayerConfig;
1781
+ // (undocumented)
1782
+ p6?: GameInputPlayerConfig;
1783
+ // (undocumented)
1784
+ p7?: GameInputPlayerConfig;
1785
+ // (undocumented)
1786
+ p8?: GameInputPlayerConfig;
1787
+ }
1788
+
1789
+ // @public (undocumented)
1790
+ export type GameInputConfigJson = Static<typeof GameInputConfigSchema>;
1791
+
1792
+ // @public
1793
+ export const GameInputConfigSchema: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TObject<{
1794
+ key: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>>;
1795
+ mouse: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1796
+ mapping: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>>;
1797
+ pointerLock: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1798
+ sensitivity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1799
+ }>>;
1800
+ touch: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1801
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TLiteral<"auto">]>>;
1802
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1803
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1804
+ joysticks: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1805
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1806
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1807
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1808
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1809
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1810
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1811
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1812
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1813
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1814
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1815
+ }>>;
1816
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1817
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1818
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1819
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1820
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1821
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
1822
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
1823
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1824
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1825
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1826
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1827
+ }>>;
1828
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1829
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1830
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1831
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1832
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1833
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1834
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1835
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1836
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1837
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1838
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1839
+ }>>;
1840
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1841
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1842
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1843
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1844
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1845
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
1846
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
1847
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1848
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1849
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1850
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1851
+ }>>;
1852
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1853
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1854
+ buttons: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1855
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1856
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1857
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1858
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1859
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1860
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1861
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1862
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1863
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1864
+ }>>;
1865
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1866
+ label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1867
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1868
+ }>, _sinclair_typebox.TLiteral<false>]>>, _sinclair_typebox.TLiteral<false>]>>;
1869
+ }>>;
1870
+ includeDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1871
+ }>>;
1872
+
1873
+ // @public (undocumented)
1874
+ export interface GameInputPlayerConfig {
1875
+ // (undocumented)
1876
+ includeDefaults?: boolean;
1877
+ // (undocumented)
1878
+ key?: KeyboardMapping;
1879
+ // (undocumented)
1880
+ mouse?: MouseConfig;
1881
+ // (undocumented)
1882
+ touch?: VirtualTouchConfig;
1883
+ }
1884
+
1885
+ // @public
1886
+ export const GameInputPlayerConfigSchema: _sinclair_typebox.TObject<{
1887
+ key: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>>;
1888
+ mouse: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1889
+ mapping: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>>;
1890
+ pointerLock: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1891
+ sensitivity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1892
+ }>>;
1893
+ touch: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1894
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TLiteral<"auto">]>>;
1895
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1896
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1897
+ joysticks: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1898
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1899
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1900
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1901
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1902
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1903
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1904
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1905
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1906
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1907
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1908
+ }>>;
1909
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1910
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1911
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1912
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1913
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1914
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
1915
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
1916
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1917
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1918
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1919
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1920
+ }>>;
1921
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1922
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1923
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1924
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1925
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1926
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1927
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1928
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1929
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1930
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1931
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1932
+ }>>;
1933
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1934
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1935
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1936
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1937
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1938
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
1939
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
1940
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1941
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1942
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1943
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1944
+ }>>;
1945
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1946
+ }>, _sinclair_typebox.TLiteral<false>]>>;
1947
+ buttons: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
1948
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1949
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1950
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
1951
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
1952
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1953
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1954
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1955
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
1956
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1957
+ }>>;
1958
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
1959
+ label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1960
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
1961
+ }>, _sinclair_typebox.TLiteral<false>]>>, _sinclair_typebox.TLiteral<false>]>>;
1962
+ }>>;
1963
+ includeDefaults: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
1964
+ }>;
1965
+
1966
+ // @public
1967
+ export interface GameLoadingEvent {
1968
+ // (undocumented)
1969
+ current?: number;
1970
+ // (undocumented)
1971
+ message: string;
1972
+ // (undocumented)
1973
+ progress: number;
1974
+ // (undocumented)
1975
+ stageIndex?: number;
1976
+ // (undocumented)
1977
+ stageName?: string;
1978
+ // (undocumented)
1979
+ total?: number;
1980
+ // (undocumented)
1981
+ type: 'start' | 'progress' | 'complete';
1982
+ }
1983
+
1984
+ // @public
1985
+ export interface GameLoadingPayload extends LoadingEvent {
1986
+ // (undocumented)
1987
+ stageIndex?: number;
1988
+ // (undocumented)
1989
+ stageName?: string;
1990
+ }
1991
+
1992
+ export { getCooldown }
1993
+
1994
+ export { getCooldownStore }
1995
+
1996
+ // @public (undocumented)
1997
+ export function getDisplayAspect(preset: RetroPresetKey): number;
1998
+
1999
+ export { getEntityFacingAngle2D }
2000
+
2001
+ // @public
2002
+ export function getGlobal<T = unknown>(path: string): T | undefined;
2003
+
2004
+ // @public
2005
+ export function getGlobals<T = Record<string, unknown>>(): T;
2006
+
2007
+ export { getPosition }
2008
+
2009
+ // @public (undocumented)
2010
+ export function getPresetResolution(preset: RetroPresetKey, key?: string): RetroResolution | undefined;
2011
+
2012
+ // Warning: (ae-forgotten-export) The symbol "RotatableEntity" needs to be exported by the entry point public.d.ts
2013
+ //
2014
+ // @public
2015
+ export function getRotation(entity: RotatableEntity): any;
2016
+
2017
+ // @public
2018
+ export function getVariable<T = unknown>(target: object, path: string): T | undefined;
2019
+
2020
+ export { getVelocity }
2021
+
2022
+ // @public
2023
+ export function globalChange<T = any>(key: string, callback: (value: T, ctx: UpdateContext<any>) => void): (ctx: UpdateContext<any>) => void;
2024
+
2025
+ // @public
2026
+ export function globalChanges<T = any>(keys: string[], callback: (values: T[], ctx: UpdateContext<any>) => void): (ctx: UpdateContext<any>) => void;
2027
+
2028
+ export { hasAnyWorldBoundary2DHit }
2029
+
2030
+ export { hasAnyWorldBoundary3DHit }
2031
+
2032
+ // @public (undocumented)
2033
+ export interface HemisphereLightOptions extends BaseLightOptions {
2034
+ groundColor?: ColorRepresentation;
2035
+ skyColor?: ColorRepresentation;
2036
+ // (undocumented)
2037
+ type: 'hemisphere';
2038
+ }
2039
+
2040
+ export { Howl_2 as Howl }
2041
+
2042
+ // @public
2043
+ export type IconSize = IconSizePreset | number | {
2044
+ width: number;
2045
+ height: number;
2046
+ };
2047
+
2048
+ // Warning: (ae-forgotten-export) The symbol "ICON_SIZE_PRESETS" needs to be exported by the entry point public.d.ts
2049
+ //
2050
+ // @public
2051
+ export type IconSizePreset = keyof typeof ICON_SIZE_PRESETS;
2052
+
2053
+ // @public
2054
+ export function initStageStateDispatcher(): () => void;
2055
+
2056
+ // @public (undocumented)
2057
+ export interface InputGamepad {
2058
+ // (undocumented)
2059
+ axes: {
2060
+ Horizontal: AnalogState;
2061
+ Vertical: AnalogState;
2062
+ SecondaryHorizontal: AnalogState;
2063
+ SecondaryVertical: AnalogState;
2064
+ };
2065
+ // (undocumented)
2066
+ buttons: {
2067
+ A: ButtonState;
2068
+ B: ButtonState;
2069
+ X: ButtonState;
2070
+ Y: ButtonState;
2071
+ Start: ButtonState;
2072
+ Select: ButtonState;
2073
+ L: ButtonState;
2074
+ R: ButtonState;
2075
+ };
2076
+ // (undocumented)
2077
+ directions: {
2078
+ Up: ButtonState;
2079
+ Down: ButtonState;
2080
+ Left: ButtonState;
2081
+ Right: ButtonState;
2082
+ };
2083
+ // (undocumented)
2084
+ playerNumber: InputPlayerNumber;
2085
+ pointer?: {
2086
+ x: number;
2087
+ y: number;
2088
+ };
2089
+ // (undocumented)
2090
+ shoulders: {
2091
+ LTrigger: ButtonState;
2092
+ RTrigger: ButtonState;
2093
+ };
2094
+ }
2095
+
2096
+ // @public (undocumented)
2097
+ export type InputPlayer = `p${InputPlayerNumber}`;
2098
+
2099
+ // @public
2100
+ export type InputPlayerNumber = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
2101
+
2102
+ // @public (undocumented)
2103
+ export interface InputProvider {
2104
+ // (undocumented)
2105
+ dispose?(): void;
2106
+ // (undocumented)
2107
+ getInput(delta: number): Partial<InputGamepad>;
2108
+ // (undocumented)
2109
+ getName(): string;
2110
+ // (undocumented)
2111
+ isConnected(): boolean;
2112
+ }
2113
+
2114
+ // @public (undocumented)
2115
+ export type Inputs = Record<InputPlayer, InputGamepad>;
2116
+
2117
+ // @public
2118
+ export function isGLSLShader(shader: ZylemShader): shader is ZylemShaderObject;
2119
+
2120
+ // @public
2121
+ export function isManagedRenderEntity(entity: {
2122
+ isInstanced?: boolean;
2123
+ isBundled?: boolean;
2124
+ }): boolean;
2125
+
2126
+ // @public
2127
+ export function isTSLShader(shader: ZylemShader): shader is ZylemTSLShader;
2128
+
2129
+ // @public
2130
+ export function isWebGPUSupported(): Promise<boolean>;
2131
+
2132
+ // @public
2133
+ export function joystickBaseSvg(theme?: TouchThemeInput): string;
2134
+
2135
+ // @public (undocumented)
2136
+ export type JoystickSelection = 'left' | 'right' | 'both' | 'none';
2137
+
2138
+ // @public
2139
+ export function joystickThumbSvg(theme?: TouchThemeInput): string;
2140
+
2141
+ export { JumpConfig2D }
2142
+
2143
+ export { JumpConfig3D }
2144
+
2145
+ export { JumpContext2D }
2146
+
2147
+ export { JumpContext3D }
2148
+
2149
+ export { Jumper2DBehavior }
2150
+
2151
+ export { Jumper2DBehaviorOptions }
2152
+
2153
+ export { Jumper2DEntity }
2154
+
2155
+ export { Jumper2DEvent }
2156
+
2157
+ export { Jumper2DFSM }
2158
+
2159
+ export { Jumper2DState }
2160
+
2161
+ export { Jumper3DBehavior }
2162
+
2163
+ export { Jumper3DBehaviorOptions }
2164
+
2165
+ export { Jumper3DEntity }
2166
+
2167
+ export { Jumper3DEvent }
2168
+
2169
+ export { Jumper3DFSM }
2170
+
2171
+ export { Jumper3DState }
2172
+
2173
+ export { JumpInput2D }
2174
+
2175
+ export { JumpInput3D }
2176
+
2177
+ export { JumpState2D }
2178
+
2179
+ export { JumpState3D }
2180
+
2181
+ // @public (undocumented)
2182
+ export type KeyboardMapping = Record<string, string[]>;
2183
+
2184
+ // @public
2185
+ export const KeyboardMappingSchema: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>;
2186
+
2187
+ export { length_2 as length }
2188
+
2189
+ // @public (undocumented)
2190
+ export const LIGHT_TYPE: unique symbol;
2191
+
2192
+ // @public
2193
+ export interface LightShadowOptions {
2194
+ bias?: number;
2195
+ bottom?: number;
2196
+ far?: number;
2197
+ left?: number;
2198
+ mapSize?: number;
2199
+ near?: number;
2200
+ radius?: number;
2201
+ right?: number;
2202
+ top?: number;
2203
+ }
2204
+
2205
+ // @public (undocumented)
2206
+ export const LINE_TYPE: unique symbol;
2207
+
2208
+ // @public (undocumented)
2209
+ export type LineEntityData = Static<typeof LineEntityDataSchema>;
2210
+
2211
+ // @public
2212
+ export const LineEntityDataSchema: _sinclair_typebox.TObject<{
2213
+ points: _sinclair_typebox.TArray<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
2214
+ color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
2215
+ colors: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
2216
+ linewidth: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
2217
+ worldUnits: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2218
+ alphaToCoverage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2219
+ opacity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
2220
+ transparent: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2221
+ dashed: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2222
+ dashSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
2223
+ gapSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
2224
+ pickThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
2225
+ }>;
2226
+
2227
+ // @public (undocumented)
2228
+ export interface LinePickResult {
2229
+ // (undocumented)
2230
+ distance: number;
2231
+ // (undocumented)
2232
+ faceIndex: number;
2233
+ // (undocumented)
2234
+ point: Vector3;
2235
+ // (undocumented)
2236
+ pointOnLine: Vector3;
2237
+ }
2238
+
2239
+ // @public (undocumented)
2240
+ export type LoadingEvent = {
2241
+ type: 'start' | 'progress' | 'complete';
2242
+ message?: string;
2243
+ progress?: number;
2244
+ total?: number;
2245
+ current?: number;
2246
+ };
2247
+
2248
+ export { max }
2249
+
2250
+ // @public
2251
+ export function mergeInputConfigs(...configs: GameInputConfig[]): GameInputConfig;
2252
+
2253
+ export { min }
2254
+
2255
+ export { mix }
2256
+
2257
+ export { mod }
2258
+
2259
+ // @public (undocumented)
2260
+ export interface MouseConfig {
2261
+ mapping?: MouseMapping;
2262
+ pointerLock?: boolean;
2263
+ sensitivity?: number;
2264
+ }
2265
+
2266
+ // @public
2267
+ export const MouseConfigSchema: _sinclair_typebox.TObject<{
2268
+ mapping: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>>;
2269
+ pointerLock: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
2270
+ sensitivity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
2271
+ }>;
2272
+
2273
+ // @public (undocumented)
2274
+ export type MouseMapping = Record<string, string[]>;
2275
+
2276
+ // @public
2277
+ export const MouseMappingSchema: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>;
2278
+
2279
+ export { move }
2280
+
2281
+ // @public
2282
+ function moveBy_2(opts: MoveByOptions): Action;
2283
+ export { moveBy_2 as moveBy }
2284
+
2285
+ // @public (undocumented)
2286
+ export interface MoveByOptions {
2287
+ duration: number;
2288
+ x?: number;
2289
+ y?: number;
2290
+ z?: number;
2291
+ }
2292
+
2293
+ export { moveForwardXY }
2294
+
2295
+ // @public
2296
+ function moveTo_2(opts: MoveToOptions): Action;
2297
+ export { moveTo_2 as moveTo }
2298
+
2299
+ // @public (undocumented)
2300
+ export interface MoveToOptions {
2301
+ duration: number;
2302
+ x: number;
2303
+ y: number;
2304
+ z: number;
2305
+ }
2306
+
2307
+ export { moveX }
2308
+
2309
+ export { moveXY }
2310
+
2311
+ export { moveXZ }
2312
+
2313
+ export { moveY }
2314
+
2315
+ export { moveZ }
2316
+
2317
+ export { MultidirectionalSpaceShooterCoordinator }
2318
+
2319
+ export { MultidirectionalSpaceShooterEntity }
2320
+
2321
+ export { MultidirectionalSpaceShooterInput }
2322
+
2323
+ export { normalize }
2324
+
2325
+ // @public (undocumented)
2326
+ export function normalizeVec2(input?: Vec2Input | null, defaults?: Vec2Input | Partial<Vec2Components>): Vec2Components;
2327
+
2328
+ // @public (undocumented)
2329
+ export function normalizeVec3(input?: Vec3Input | null, defaults?: Vec3Input | Partial<Vec3Components>): Vec3Components;
2330
+
2331
+ // @public (undocumented)
2332
+ 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";
2333
+
2334
+ // @public (undocumented)
2335
+ export type OnEnterParams = Pick<OnHeldParams, 'self' | 'visitor' | 'globals'>;
2336
+
2337
+ // @public (undocumented)
2338
+ export type OnExitParams = Pick<OnHeldParams, 'self' | 'visitor' | 'globals'>;
2339
+
2340
+ // @public
2341
+ export function onGlobalChange<T = unknown>(path: string, callback: (value: T) => void): () => void;
2342
+
2343
+ // @public
2344
+ export function onGlobalChanges<T extends unknown[] = unknown[]>(paths: string[], callback: (values: T) => void): () => void;
2345
+
2346
+ // @public (undocumented)
2347
+ export type OnHeldParams = {
2348
+ delta: number;
2349
+ self: ZylemZone;
2350
+ visitor: GameEntity<any>;
2351
+ heldTime: number;
2352
+ globals: any;
2353
+ };
2354
+
2355
+ // Warning: (ae-forgotten-export) The symbol "OnPressAction" needs to be exported by the entry point public.d.ts
2356
+ //
2357
+ // @public
2358
+ export function onPress(): OnPressAction;
2359
+
2360
+ // Warning: (ae-forgotten-export) The symbol "OnReleaseAction" needs to be exported by the entry point public.d.ts
2361
+ //
2362
+ // @public
2363
+ export function onRelease(): OnReleaseAction;
2364
+
2365
+ // @public
2366
+ export function onVariableChange<T = unknown>(target: object, path: string, callback: (value: T) => void): () => void;
2367
+
2368
+ // @public
2369
+ export function onVariableChanges<T extends unknown[] = unknown[]>(target: object, paths: string[], callback: (values: T) => void): () => void;
2370
+
2371
+ // @public
2372
+ export type OpacityEntity = {
2373
+ group?: Object3D | null;
2374
+ mesh?: Object3D | null;
2375
+ };
2376
+
2377
+ // @public
2378
+ export function packCollisionGroups(collisionType?: string, collisionFilter?: string[]): number;
2379
+
2380
+ // @public
2381
+ export function parallel(...actions: Action[]): Action;
2382
+
2383
+ // @public (undocumented)
2384
+ export function parseResolution(text: string): {
2385
+ width: number;
2386
+ height: number;
2387
+ } | null;
2388
+
2389
+ // @public (undocumented)
2390
+ export const PARTICLE_SYSTEM_TYPE: unique symbol;
2391
+
2392
+ export { particleEffect }
2393
+
2394
+ export { ParticleEffectDefinition }
2395
+
2396
+ export { ParticleEmitterBehavior }
2397
+
2398
+ export { ParticleEmitterBehaviorOptions }
2399
+
2400
+ export { ParticleEmitterHandle }
2401
+
2402
+ export { ParticleMagicAgency }
2403
+
2404
+ export { ParticleMagicAlignment }
2405
+
2406
+ export { ParticleMagicModifierInput }
2407
+
2408
+ export { ParticleMagicModifierOptions }
2409
+
2410
+ export { ParticleMagicOrder }
2411
+
2412
+ export { ParticleMagicRealityEffect }
2413
+
2414
+ export { ParticleMagicTemperament }
2415
+
2416
+ export { ParticlePresetMaterialOptions }
2417
+
2418
+ export { particlePresets }
2419
+
2420
+ // @public
2421
+ export type PerspectiveOptions = ThirdPersonOptions | Fixed2DOptions | FirstPersonOptions;
2422
+
2423
+ // @public (undocumented)
2424
+ export const Perspectives: {
2425
+ readonly FirstPerson: "first-person";
2426
+ readonly ThirdPerson: "third-person";
2427
+ readonly Isometric: "isometric";
2428
+ readonly Flat2D: "flat-2d";
2429
+ readonly Fixed2D: "fixed-2d";
2430
+ readonly TopDown: "top-down";
2431
+ };
2432
+
2433
+ // @public (undocumented)
2434
+ export type PerspectiveType = (typeof Perspectives)[keyof typeof Perspectives];
2435
+
2436
+ export { PhysicsBodyComponent }
2437
+
2438
+ // @public
2439
+ export function pickZylemLine(raycaster: Raycaster, line: ZylemLine, options?: {
2440
+ threshold?: number;
2441
+ }): LinePickResult | null;
2442
+
2443
+ // @public (undocumented)
2444
+ export const PILL_TYPE: unique symbol;
2445
+
2446
+ // Warning: (ae-forgotten-export) The symbol "PillCollisionOptions" needs to be exported by the entry point public.d.ts
2447
+ //
2448
+ // @public
2449
+ export function pillCollision(opts?: PillCollisionOptions): CollisionComponent;
2450
+
2451
+ // Warning: (ae-forgotten-export) The symbol "PillMeshOptions" needs to be exported by the entry point public.d.ts
2452
+ //
2453
+ // @public
2454
+ export function pillMesh(opts?: PillMeshOptions): Mesh;
2455
+
2456
+ // @public
2457
+ export function pingPongBeep(frequency?: number, duration?: number): void;
2458
+
2459
+ export { PlainBufferGeometryPayload }
2460
+
2461
+ export { PlainFractureOptions }
2462
+
2463
+ // @public (undocumented)
2464
+ export const PLANE_TYPE: unique symbol;
2465
+
2466
+ // Warning: (ae-forgotten-export) The symbol "PlaneCollisionOptions" needs to be exported by the entry point public.d.ts
2467
+ //
2468
+ // @public
2469
+ export function planeCollision(opts?: PlaneCollisionOptions): CollisionComponent;
2470
+
2471
+ export { Platformer2DBehavior }
2472
+
2473
+ export { Platformer2DBehaviorOptions }
2474
+
2475
+ export { Platformer2DCollisionContext }
2476
+
2477
+ export { Platformer2DContext }
2478
+
2479
+ export { Platformer2DEntity }
2480
+
2481
+ export { Platformer2DEvent }
2482
+
2483
+ export { Platformer2DFSM }
2484
+
2485
+ export { Platformer2DInputComponent }
2486
+
2487
+ export { Platformer2DMovementComponent }
2488
+
2489
+ export { Platformer2DState }
2490
+
2491
+ export { Platformer2DStateComponent }
2492
+
2493
+ export { Platformer3DBehavior }
2494
+
2495
+ export { Platformer3DBehaviorOptions }
2496
+
2497
+ export { Platformer3DContext }
2498
+
2499
+ export { Platformer3DEntity }
2500
+
2501
+ export { Platformer3DEvent }
2502
+
2503
+ export { Platformer3DFSM }
2504
+
2505
+ export { Platformer3DInputComponent }
2506
+
2507
+ export { Platformer3DMovementComponent }
2508
+
2509
+ export { Platformer3DState }
2510
+
2511
+ export { Platformer3DStateComponent }
2512
+
2513
+ export { PlatformerCollisionContext }
2514
+
2515
+ export { PlayerInput }
2516
+
2517
+ // @public (undocumented)
2518
+ export interface PointLightOptions extends BaseLightOptions {
2519
+ // (undocumented)
2520
+ castShadow?: boolean;
2521
+ decay?: number;
2522
+ distance?: number;
2523
+ shadow?: Omit<LightShadowOptions, 'left' | 'right' | 'top' | 'bottom'>;
2524
+ // (undocumented)
2525
+ type: 'point';
2526
+ }
2527
+
2528
+ // @public
2529
+ export interface PoseDelta {
2530
+ // (undocumented)
2531
+ fov?: number;
2532
+ // (undocumented)
2533
+ position?: Vector3;
2534
+ // (undocumented)
2535
+ rotation?: Quaternion;
2536
+ // (undocumented)
2537
+ zoom?: number;
2538
+ }
2539
+
2540
+ export { positionWorld }
2541
+
2542
+ export { positionWorldDirection }
2543
+
2544
+ export { pow }
2545
+
2546
+ export { PrebakeWorkerRequest }
2547
+
2548
+ export { PrebakeWorkerResponse }
2549
+
2550
+ // @public (undocumented)
2551
+ export const PYRAMID_TYPE: unique symbol;
2552
+
2553
+ // Warning: (ae-forgotten-export) The symbol "PyramidCollisionOptions" needs to be exported by the entry point public.d.ts
2554
+ //
2555
+ // @public
2556
+ export function pyramidCollision(opts?: PyramidCollisionOptions): CollisionComponent;
2557
+
2558
+ // Warning: (ae-forgotten-export) The symbol "PyramidMeshOptions" needs to be exported by the entry point public.d.ts
2559
+ //
2560
+ // @public
2561
+ export function pyramidMesh(opts?: PyramidMeshOptions): Mesh;
2562
+
2563
+ // @public (undocumented)
2564
+ export const RECT_TYPE: unique symbol;
2565
+
2566
+ export { registerCooldown }
2567
+
2568
+ // @public
2569
+ export function registerEntityFocusContext(context: EntityFocusContext): () => void;
2570
+
2571
+ // @public
2572
+ export class RenderBundleManager {
2573
+ // (undocumented)
2574
+ dispose(): void;
2575
+ // (undocumented)
2576
+ getStats(): {
2577
+ bundleCount: number;
2578
+ entityCount: number;
2579
+ };
2580
+ register(entity: GameEntity<any>, _geometry: BufferGeometry, _material: Material, bundleKey: string): boolean;
2581
+ // (undocumented)
2582
+ setScene(scene: Object3D): void;
2583
+ // (undocumented)
2584
+ unregister(entity: GameEntity<any>): void;
2585
+ }
2586
+
2587
+ // @public
2588
+ export type RenderCategory = 'none' | 'environment' | 'pack';
2589
+
2590
+ // @public
2591
+ export class RenderStrategyManager {
2592
+ // (undocumented)
2593
+ readonly bundles: RenderBundleManager;
2594
+ // (undocumented)
2595
+ dispose(): void;
2596
+ // Warning: (ae-forgotten-export) The symbol "InstanceManager" needs to be exported by the entry point public.d.ts
2597
+ //
2598
+ // (undocumented)
2599
+ readonly instances: InstanceManager;
2600
+ register(entity: GameEntity<any>): boolean;
2601
+ // (undocumented)
2602
+ setScene(scene: Object3D): void;
2603
+ // (undocumented)
2604
+ unregister(entity: GameEntity<any>): void;
2605
+ // (undocumented)
2606
+ update(interpolationAlpha?: number): void;
2607
+ }
2608
+
2609
+ // @public
2610
+ export function repeat(action: Action, times: number): Action;
2611
+
2612
+ // @public
2613
+ export function repeatForever(action: Action): Action;
2614
+
2615
+ export { resetCooldown }
2616
+
2617
+ // @public
2618
+ export function resetEntityOpacity(entity: OpacityEntity, opacity?: number, transparent?: boolean): void;
2619
+
2620
+ export { resetVelocity }
2621
+
2622
+ // @public
2623
+ export type ResolutionInput = string | {
2624
+ width: number;
2625
+ height: number;
2626
+ } | 'native';
2627
+
2628
+ // @public
2629
+ export const ResolutionInputSchema: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TObject<{
2630
+ width: _sinclair_typebox.TNumber;
2631
+ height: _sinclair_typebox.TNumber;
2632
+ }>, _sinclair_typebox.TLiteral<"native">]>;
2633
+
2634
+ export { resolveAim2D }
2635
+
2636
+ // @public
2637
+ export function resolveButtonAccent(theme: TouchTheme, slot: VirtualTouchButtonSlot, accentOverride?: string): string;
2638
+
2639
+ export { ResolvedAim2D }
2640
+
2641
+ // @public (undocumented)
2642
+ export interface ResolveGameConfigRuntime {
2643
+ // (undocumented)
2644
+ deviceProfile?: DeviceProfile;
2645
+ // Warning: (ae-forgotten-export) The symbol "ViewportSize" needs to be exported by the entry point public.d.ts
2646
+ //
2647
+ // (undocumented)
2648
+ viewportSize?: ViewportSize;
2649
+ }
2650
+
2651
+ // Warning: (ae-forgotten-export) The symbol "RenderCategoryOptions" needs to be exported by the entry point public.d.ts
2652
+ //
2653
+ // @public
2654
+ export function resolveRenderCategory(options?: RenderCategoryOptions | null): RenderCategory;
2655
+
2656
+ // @public
2657
+ export function resolveTouchTheme(input?: TouchTheme | TouchThemeName): TouchTheme;
2658
+
2659
+ // @public (undocumented)
2660
+ export type RetroPreset = {
2661
+ displayAspect: number;
2662
+ resolutions: RetroResolution[];
2663
+ };
2664
+
2665
+ // Warning: (ae-forgotten-export) The symbol "RetroPresets" needs to be exported by the entry point public.d.ts
2666
+ //
2667
+ // @public (undocumented)
2668
+ export type RetroPresetKey = keyof typeof RetroPresets;
2669
+
2670
+ // @public (undocumented)
2671
+ export type RetroResolution = {
2672
+ key: string;
2673
+ width: number;
2674
+ height: number;
2675
+ notes?: string;
2676
+ };
2677
+
2678
+ export { Ricochet2DBehavior }
2679
+
2680
+ export { Ricochet2DCollisionContext }
2681
+
2682
+ export { Ricochet2DEvent }
2683
+
2684
+ export { Ricochet2DFSM }
2685
+
2686
+ export { Ricochet2DHandle }
2687
+
2688
+ export { Ricochet2DOptions }
2689
+
2690
+ export { Ricochet2DResult }
2691
+
2692
+ export { Ricochet2DState }
2693
+
2694
+ export { Ricochet3DBehavior }
2695
+
2696
+ export { Ricochet3DCallback }
2697
+
2698
+ export { Ricochet3DCollisionContext }
2699
+
2700
+ export { Ricochet3DEvent }
2701
+
2702
+ export { Ricochet3DFSM }
2703
+
2704
+ export { Ricochet3DHandle }
2705
+
2706
+ export { Ricochet3DOptions }
2707
+
2708
+ export { Ricochet3DResult }
2709
+
2710
+ export { Ricochet3DState }
2711
+
2712
+ export { RicochetCallback }
2713
+
2714
+ // @public
2715
+ export function ricochetSound(frequency?: number, duration?: number): void;
2716
+
2717
+ // @public
2718
+ export function rotateBy(opts: RotateByOptions): Action;
2719
+
2720
+ // @public (undocumented)
2721
+ export interface RotateByOptions {
2722
+ duration: number;
2723
+ x?: number;
2724
+ y?: number;
2725
+ z?: number;
2726
+ }
2727
+
2728
+ // @public
2729
+ export function rotateEuler(entity: RotatableEntity, rotation: Vector3): void;
2730
+
2731
+ // @public
2732
+ export function rotateInDirection(entity: RotatableEntity, moveVector: Vector3): void;
2733
+
2734
+ // @public
2735
+ export function rotateX(entity: RotatableEntity, delta: number): void;
2736
+
2737
+ // @public
2738
+ export function rotateY(entity: RotatableEntity, delta: number): void;
2739
+
2740
+ // @public
2741
+ export function rotateYEuler(entity: RotatableEntity, amount: number): void;
2742
+
2743
+ // @public
2744
+ export function rotateZ(entity: RotatableEntity, delta: number): void;
2745
+
2746
+ export { RUNTIME_BOUNDARY_2D_BEHAVIOR_KEY }
2747
+
2748
+ export { RUNTIME_DYNAMIC_CIRCLE_BODY_2D_BEHAVIOR_KEY }
2749
+
2750
+ export { RUNTIME_GOAL_ZONE_2D_BEHAVIOR_KEY }
2751
+
2752
+ export { RUNTIME_PLAYER_INPUT_2D_BEHAVIOR_KEY }
2753
+
2754
+ export { RUNTIME_RICOCHET_2D_BEHAVIOR_KEY }
2755
+
2756
+ export { RUNTIME_TRIGGER_REGION_2D_BEHAVIOR_KEY }
2757
+
2758
+ // @public
2759
+ export interface RuntimeBodyOptions {
2760
+ // (undocumented)
2761
+ angularDamping?: number;
2762
+ // (undocumented)
2763
+ canSleep?: boolean;
2764
+ // (undocumented)
2765
+ ccdEnabled?: boolean;
2766
+ // (undocumented)
2767
+ gravityScale?: number;
2768
+ // (undocumented)
2769
+ kind?: StageBodyKindValue;
2770
+ // (undocumented)
2771
+ linearDamping?: number;
2772
+ // (undocumented)
2773
+ lockRotation?: readonly [boolean, boolean, boolean];
2774
+ // (undocumented)
2775
+ lockTranslation?: readonly [boolean, boolean, boolean];
2776
+ // (undocumented)
2777
+ position?: Vec3Input;
2778
+ // (undocumented)
2779
+ rotation?: readonly [number, number, number, number];
2780
+ }
2781
+
2782
+ export { RuntimeBoundary2DBehavior }
2783
+
2784
+ export { RuntimeBoundary2DOptions }
2785
+
2786
+ // @public
2787
+ export interface RuntimeColliderOptions {
2788
+ // (undocumented)
2789
+ collisionFilter?: string[];
2790
+ // (undocumented)
2791
+ collisionType?: string;
2792
+ // (undocumented)
2793
+ friction?: number;
2794
+ // (undocumented)
2795
+ offset?: Vec3Input;
2796
+ // (undocumented)
2797
+ restitution?: number;
2798
+ // (undocumented)
2799
+ sensor?: boolean;
2800
+ }
2801
+
2802
+ // @public
2803
+ export interface RuntimeCollisionBundle {
2804
+ // (undocumented)
2805
+ body: StageBodyConfig;
2806
+ // (undocumented)
2807
+ colliders: StageColliderConfig[];
2808
+ }
2809
+
2810
+ export { RuntimeDynamicCircleBody2DBehavior }
2811
+
2812
+ export { RuntimeDynamicCircleBody2DHandle }
2813
+
2814
+ export { RuntimeDynamicCircleBody2DOptions }
2815
+
2816
+ export { RuntimeGoalZone2DBehavior }
2817
+
2818
+ export { RuntimeGoalZone2DEvent }
2819
+
2820
+ export { RuntimeGoalZone2DHandle }
2821
+
2822
+ export { RuntimeGoalZone2DOptions }
2823
+
2824
+ export { RuntimePlayerInput2DBehavior }
2825
+
2826
+ export { RuntimePlayerInput2DOptions }
2827
+
2828
+ export { RuntimeRicochet2DBehavior }
2829
+
2830
+ export { RuntimeRicochet2DEvent }
2831
+
2832
+ export { RuntimeRicochet2DHandle }
2833
+
2834
+ export { RuntimeRicochet2DOptions }
2835
+
2836
+ export { RuntimeTriggerRegion2DBehavior }
2837
+
2838
+ export { RuntimeTriggerRegion2DEvent }
2839
+
2840
+ export { RuntimeTriggerRegion2DHandle }
2841
+
2842
+ export { RuntimeTriggerRegion2DOptions }
2843
+
2844
+ // @public
2845
+ export type ScreenAnchor = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2846
+
2847
+ export { ScreenVisibilityBehavior }
2848
+
2849
+ export { ScreenVisibilityChangeContext }
2850
+
2851
+ export { ScreenVisibilityFSM }
2852
+
2853
+ export { ScreenVisibilityHandle }
2854
+
2855
+ export { ScreenVisibilityOptions }
2856
+
2857
+ export { ScreenVisibilitySize }
2858
+
2859
+ export { ScreenVisibilitySnapshot }
2860
+
2861
+ export { ScreenWrapBehavior }
2862
+
2863
+ export { ScreenWrapEvent }
2864
+
2865
+ export { ScreenWrapFSM }
2866
+
2867
+ export { ScreenWrapOptions }
2868
+
2869
+ export { ScreenWrapState }
2870
+
2871
+ export { SemanticParticlePresetOptions }
2872
+
2873
+ // @public
2874
+ export function sequence(...actions: Action[]): Action;
2875
+
2876
+ // @public
2877
+ export function setCameraFeed(entity: StageEntity, camera: CameraWrapper, options?: CameraFeedOptions): void;
2878
+
2879
+ // @public (undocumented)
2880
+ export function setDebugTool(tool: DebugTools): void;
2881
+
2882
+ // @public
2883
+ export function setGlobal(path: string, value: unknown): void;
2884
+
2885
+ // @public (undocumented)
2886
+ export function setPaused(paused: boolean): void;
2887
+
2888
+ export { setPosition }
2889
+
2890
+ export { setPositionX }
2891
+
2892
+ export { setPositionY }
2893
+
2894
+ export { setPositionZ }
2895
+
2896
+ // @public
2897
+ export function setRotation(entity: RotatableEntity, x: number, y: number, z: number): void;
2898
+
2899
+ // @public
2900
+ export function setRotationDegrees(entity: RotatableEntity, x: number, y: number, z: number): void;
2901
+
2902
+ // @public
2903
+ export function setRotationDegreesX(entity: RotatableEntity, x: number): void;
2904
+
2905
+ // @public
2906
+ export function setRotationDegreesY(entity: RotatableEntity, y: number): void;
2907
+
2908
+ // @public
2909
+ export function setRotationDegreesZ(entity: RotatableEntity, z: number): void;
2910
+
2911
+ // @public
2912
+ export function setRotationX(entity: RotatableEntity, x: number): void;
2913
+
2914
+ // @public
2915
+ export function setRotationY(entity: RotatableEntity, y: number): void;
2916
+
2917
+ // @public
2918
+ export function setRotationZ(entity: RotatableEntity, z: number): void;
2919
+
2920
+ // @public (undocumented)
2921
+ export function setSelectedEntity(entity: GameEntity<any> | null): void;
2922
+
2923
+ // @public (undocumented)
2924
+ export function setStageFrameProfilerEnabled(value: boolean): void;
2925
+
2926
+ // Warning: (ae-forgotten-export) The symbol "GlobalRecord" needs to be exported by the entry point public.d.ts
2927
+ //
2928
+ // @public
2929
+ export interface SetupContext<T, TGlobals extends GlobalRecord = any> {
2930
+ // Warning: (ae-forgotten-export) The symbol "ICamera" needs to be exported by the entry point public.d.ts
2931
+ //
2932
+ // (undocumented)
2933
+ camera?: ICamera;
2934
+ // (undocumented)
2935
+ game?: IGame<TGlobals>;
2936
+ // (undocumented)
2937
+ globals: TGlobals;
2938
+ // (undocumented)
2939
+ inputs?: Inputs;
2940
+ // (undocumented)
2941
+ me: T;
2942
+ // Warning: (ae-forgotten-export) The symbol "IStage" needs to be exported by the entry point public.d.ts
2943
+ //
2944
+ // (undocumented)
2945
+ stage?: IStage;
2946
+ }
2947
+
2948
+ // @public
2949
+ export function setVariable(target: object, path: string, value: unknown): void;
2950
+
2951
+ export { Shooter2DAimFireInput }
2952
+
2953
+ export { Shooter2DBehavior }
2954
+
2955
+ export { Shooter2DBehaviorOptions }
2956
+
2957
+ export { Shooter2DFireArgs }
2958
+
2959
+ export { Shooter2DHandle }
2960
+
2961
+ export { Shooter2DProjectileFactory }
2962
+
2963
+ export { Shooter2DSourceEntity }
2964
+
2965
+ export { Shooter2DStageLike }
2966
+
2967
+ export { Shooter2DStateComponent }
2968
+
2969
+ export { Shooter2DTarget }
2970
+
2971
+ export { Simulation }
2972
+
2973
+ // Warning: (ae-forgotten-export) The symbol "PhysicsRenderPoseProvider" needs to be exported by the entry point public.d.ts
2974
+ //
2975
+ // @public (undocumented)
2976
+ export class SimulationBody implements PhysicsRenderPoseProvider {
2977
+ constructor(simulation: Simulation, handle: EntityHandle, clock: SimulationStepClock);
2978
+ // (undocumented)
2979
+ angvel(): PhysicsVector3;
2980
+ // (undocumented)
2981
+ applyImpulse(impulse: PhysicsVector3, _wakeUp?: boolean): void;
2982
+ // (undocumented)
2983
+ bodyType(): number;
2984
+ // Warning: (ae-forgotten-export) The symbol "PhysicsPoseHistory" needs to be exported by the entry point public.d.ts
2985
+ //
2986
+ // (undocumented)
2987
+ getPoseHistory(): PhysicsPoseHistory;
2988
+ // Warning: (ae-forgotten-export) The symbol "PhysicsPose" needs to be exported by the entry point public.d.ts
2989
+ //
2990
+ // (undocumented)
2991
+ getRenderPose(alpha: number): PhysicsPose;
2992
+ // (undocumented)
2993
+ readonly handle: EntityHandle;
2994
+ // (undocumented)
2995
+ isEnabled(): boolean;
2996
+ isRenderSleeping(): boolean;
2997
+ // (undocumented)
2998
+ isSleeping(): boolean;
2999
+ // (undocumented)
3000
+ linvel(): PhysicsVector3;
3001
+ // (undocumented)
3002
+ mass(): number;
3003
+ // Warning: (ae-forgotten-export) The symbol "PhysicsQuaternion" needs to be exported by the entry point public.d.ts
3004
+ //
3005
+ // (undocumented)
3006
+ rotation(): PhysicsQuaternion;
3007
+ // (undocumented)
3008
+ setAngvel(velocity: PhysicsVector3, _wakeUp?: boolean): void;
3009
+ setGravityScale(_scale: number, _wakeUp?: boolean): void;
3010
+ setLinearDamping(_damping: number): void;
3011
+ // (undocumented)
3012
+ setLinvel(velocity: PhysicsVector3, _wakeUp?: boolean): void;
3013
+ // (undocumented)
3014
+ setRotation(rotation: PhysicsQuaternion, _wakeUp?: boolean): void;
3015
+ // (undocumented)
3016
+ setTranslation(translation: PhysicsVector3, _wakeUp?: boolean): void;
3017
+ // Warning: (ae-forgotten-export) The symbol "PhysicsVector3" needs to be exported by the entry point public.d.ts
3018
+ //
3019
+ // (undocumented)
3020
+ translation(): PhysicsVector3;
3021
+ writeRenderPose(alpha: number, outPosition: {
3022
+ x: number;
3023
+ y: number;
3024
+ z: number;
3025
+ }, outRotation: {
3026
+ x: number;
3027
+ y: number;
3028
+ z: number;
3029
+ w: number;
3030
+ }): void;
3031
+ }
3032
+
3033
+ export { SimulationBodyDefinition }
3034
+
3035
+ export { SimulationColliderDefinition }
3036
+
3037
+ export { SimulationEvent }
3038
+
3039
+ export { SimulationFrame }
3040
+
3041
+ export { SimulationOptions }
3042
+
3043
+ // @public
3044
+ export interface SimulationStepClock {
3045
+ // (undocumented)
3046
+ steps: number;
3047
+ }
3048
+
3049
+ export { sin }
3050
+
3051
+ export { smoothstep }
3052
+
3053
+ // @public (undocumented)
3054
+ export const SPHERE_TYPE: unique symbol;
3055
+
3056
+ // Warning: (ae-forgotten-export) The symbol "SphereCollisionOptions" needs to be exported by the entry point public.d.ts
3057
+ //
3058
+ // @public
3059
+ export function sphereCollision(opts?: SphereCollisionOptions): CollisionComponent;
3060
+
3061
+ // Warning: (ae-forgotten-export) The symbol "SphereMeshOptions" needs to be exported by the entry point public.d.ts
3062
+ //
3063
+ // @public
3064
+ export function sphereMesh(opts?: SphereMeshOptions): Mesh;
3065
+
3066
+ // @public (undocumented)
3067
+ export interface SpotLightOptions extends BaseLightOptions {
3068
+ angle?: number;
3069
+ // (undocumented)
3070
+ castShadow?: boolean;
3071
+ decay?: number;
3072
+ distance?: number;
3073
+ penumbra?: number;
3074
+ shadow?: Omit<LightShadowOptions, 'left' | 'right' | 'top' | 'bottom'>;
3075
+ target?: Vec3_2;
3076
+ // (undocumented)
3077
+ type: 'spot';
3078
+ }
3079
+
3080
+ // @public (undocumented)
3081
+ export const SPRITE_TYPE: unique symbol;
3082
+
3083
+ // @public (undocumented)
3084
+ export type SpriteAnimation = {
3085
+ name: string;
3086
+ frames: string[];
3087
+ speed: number | number[];
3088
+ loop: boolean;
3089
+ };
3090
+
3091
+ // @public (undocumented)
3092
+ export type SpriteEntityData = Static<typeof SpriteEntityDataSchema>;
3093
+
3094
+ // @public
3095
+ export const SpriteEntityDataSchema: _sinclair_typebox.TObject<{
3096
+ imagePath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3097
+ width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3098
+ height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3099
+ }>;
3100
+
3101
+ // @public (undocumented)
3102
+ export type SpriteImage = {
3103
+ name: string;
3104
+ file: string;
3105
+ };
3106
+
3107
+ // @public
3108
+ export const STAGE_STATE_CHANGE = "STAGE_STATE_CHANGE";
3109
+
3110
+ // @public
3111
+ export const StageAssetLoaderConfigSchema: _sinclair_typebox.TObject<{
3112
+ gltf: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3113
+ meshopt: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3114
+ ktx2TranscoderPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3115
+ }>>;
3116
+ }>;
3117
+
3118
+ // @public (undocumented)
3119
+ export type StageBlueprint = Static<typeof StageSchema>;
3120
+
3121
+ export { StageBodyConfig }
3122
+
3123
+ export { StageBodyInfo }
3124
+
3125
+ export { StageBodyKind }
3126
+
3127
+ export { StageBodyKindValue }
3128
+
3129
+ export { StageBoundaryDim }
3130
+
3131
+ export { StageColliderConfig }
3132
+
3133
+ export { StageColliderShape }
3134
+
3135
+ // @public
3136
+ export function stageConfig(config: StageConfigLike): StageConfigLike;
3137
+
3138
+ // @public (undocumented)
3139
+ export type StageConfigJson = Static<typeof StageConfigJsonSchema>;
3140
+
3141
+ // @public
3142
+ export const StageConfigJsonSchema: _sinclair_typebox.TObject<{
3143
+ inputs: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TArray<_sinclair_typebox.TString>>>;
3144
+ backgroundColor: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3145
+ backgroundImage: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNull]>>;
3146
+ gravity: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
3147
+ variables: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
3148
+ physicsRate: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3149
+ assetLoaders: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3150
+ gltf: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3151
+ meshopt: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3152
+ ktx2TranscoderPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3153
+ }>>;
3154
+ }>>;
3155
+ defaultLighting: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3156
+ }>;
3157
+
3158
+ // @public
3159
+ export type StageConfigLike = Partial<{
3160
+ inputs: Record<string, string[]>;
3161
+ backgroundColor: Color | string;
3162
+ backgroundImage: string | null;
3163
+ backgroundShader: ZylemShader;
3164
+ gravity: Vector3 | Vec3Components;
3165
+ variables: Record<string, any>;
3166
+ physicsRate: number;
3167
+ assetLoaders: StageAssetLoaderConfig;
3168
+ defaultLighting: boolean;
3169
+ postProcessingEffects: ZylemPostEffect[];
3170
+ }>;
3171
+
3172
+ // @public
3173
+ export interface StageConfigPayload {
3174
+ // (undocumented)
3175
+ backgroundColor: string;
3176
+ // (undocumented)
3177
+ backgroundImage: string | null;
3178
+ // (undocumented)
3179
+ gravity: {
3180
+ x: number;
3181
+ y: number;
3182
+ z: number;
3183
+ };
3184
+ // (undocumented)
3185
+ id: string;
3186
+ // (undocumented)
3187
+ inputs: Record<string, string[]>;
3188
+ // (undocumented)
3189
+ variables: Record<string, unknown>;
3190
+ }
3191
+
3192
+ export { StageDebugRender }
3193
+
3194
+ // Warning: (ae-forgotten-export) The symbol "Entity" needs to be exported by the entry point public.d.ts
3195
+ //
3196
+ // @public (undocumented)
3197
+ export interface StageEntity extends Entity {
3198
+ // (undocumented)
3199
+ body: SimulationBody;
3200
+ // (undocumented)
3201
+ controlledRotation: boolean;
3202
+ // (undocumented)
3203
+ group: Group;
3204
+ // (undocumented)
3205
+ instanceId: number;
3206
+ // (undocumented)
3207
+ isBundled?: boolean;
3208
+ // (undocumented)
3209
+ isInstanced?: boolean;
3210
+ // (undocumented)
3211
+ markedForRemoval: boolean;
3212
+ // (undocumented)
3213
+ mesh: Mesh;
3214
+ // (undocumented)
3215
+ name: string;
3216
+ // (undocumented)
3217
+ uuid: string;
3218
+ }
3219
+
3220
+ export { StageEvent }
3221
+
3222
+ // @public (undocumented)
3223
+ export type StageEvents = {
3224
+ 'stage:loaded': {
3225
+ stageId: string;
3226
+ };
3227
+ 'stage:unloaded': {
3228
+ stageId: string;
3229
+ };
3230
+ 'stage:variable:changed': {
3231
+ key: string;
3232
+ value: unknown;
3233
+ };
3234
+ };
3235
+
3236
+ export { StageEventType }
3237
+
3238
+ // @public
3239
+ export const StageGLTFAssetLoaderConfigSchema: _sinclair_typebox.TObject<{
3240
+ meshopt: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3241
+ ktx2TranscoderPath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3242
+ }>;
3243
+
3244
+ // @public (undocumented)
3245
+ export type StageJson = Static<typeof StageJsonSchema>;
3246
+
3247
+ // @public
3248
+ export const StageJsonSchema: _sinclair_typebox.TObject<{
3249
+ id: _sinclair_typebox.TString;
3250
+ name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3251
+ entities: _sinclair_typebox.TArray<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
3252
+ id: _sinclair_typebox.TString;
3253
+ type: _sinclair_typebox.TLiteral<"text">;
3254
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
3255
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3256
+ value: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3257
+ color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3258
+ fontSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3259
+ fontFamily: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3260
+ }>>;
3261
+ }>, _sinclair_typebox.TObject<{
3262
+ id: _sinclair_typebox.TString;
3263
+ type: _sinclair_typebox.TLiteral<"sprite">;
3264
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
3265
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3266
+ imagePath: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3267
+ width: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3268
+ height: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3269
+ }>>;
3270
+ }>, _sinclair_typebox.TObject<{
3271
+ id: _sinclair_typebox.TString;
3272
+ type: _sinclair_typebox.TLiteral<"line">;
3273
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
3274
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3275
+ points: _sinclair_typebox.TArray<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
3276
+ color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3277
+ colors: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
3278
+ linewidth: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3279
+ worldUnits: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3280
+ alphaToCoverage: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3281
+ opacity: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3282
+ transparent: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3283
+ dashed: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3284
+ dashSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3285
+ gapSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3286
+ pickThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3287
+ }>>;
3288
+ }>, _sinclair_typebox.TObject<{
3289
+ id: _sinclair_typebox.TString;
3290
+ type: _sinclair_typebox.TString;
3291
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
3292
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>>;
3293
+ }>]>>;
3294
+ assets: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
3295
+ }>;
3296
+
3297
+ // @public (undocumented)
3298
+ export const StageManager: {
3299
+ staticRegistry: Map<string, {
3300
+ name?: string | undefined;
3301
+ assets?: string[] | undefined;
3302
+ id: string;
3303
+ entities: {
3304
+ position?: [number, number] | undefined;
3305
+ data?: {
3306
+ [x: string]: any;
3307
+ } | undefined;
3308
+ id: string;
3309
+ type: string;
3310
+ }[];
3311
+ }>;
3312
+ registerStaticStage(id: string, blueprint: StageBlueprint): void;
3313
+ loadStageData(stageId: string): Promise<StageBlueprint>;
3314
+ transitionForward(nextStageId: string, loadStaticStage?: (id: string) => Promise<StageBlueprint>): Promise<void>;
3315
+ preloadNext(stageId: string, loadStaticStage?: (id: string) => Promise<StageBlueprint>): Promise<void>;
3316
+ };
3317
+
3318
+ // @public
3319
+ export interface StageNavigationOptions {
3320
+ transition?: StageTransitionConfig;
3321
+ }
3322
+
3323
+ // Warning: (ae-forgotten-export) The symbol "ZylemStageConfig" needs to be exported by the entry point public.d.ts
3324
+ // Warning: (ae-forgotten-export) The symbol "StageOptionItem" needs to be exported by the entry point public.d.ts
3325
+ //
3326
+ // @public (undocumented)
3327
+ export type StageOptions = [] | [Partial<ZylemStageConfig>, ...StageOptionItem[]];
3328
+
3329
+ export { StagePose }
3330
+
3331
+ export { StageRaycastHit }
3332
+
3333
+ export { StageRenderSlot }
3334
+
3335
+ export { StageRicochetDim }
3336
+
3337
+ export { StageRicochetReflection }
3338
+
3339
+ // @public
3340
+ export const StageSchema: _sinclair_typebox.TObject<{
3341
+ id: _sinclair_typebox.TString;
3342
+ name: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3343
+ entities: _sinclair_typebox.TArray<_sinclair_typebox.TObject<{
3344
+ id: _sinclair_typebox.TString;
3345
+ type: _sinclair_typebox.TString;
3346
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>>;
3347
+ data: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TAny>>;
3348
+ }>>;
3349
+ assets: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
3350
+ }>;
3351
+
3352
+ // @public (undocumented)
3353
+ export const stageState: {
3354
+ previous: StageBlueprint | null;
3355
+ current: StageBlueprint | null;
3356
+ next: StageBlueprint | null;
3357
+ isLoading: boolean;
3358
+ };
3359
+
3360
+ // @public
3361
+ export interface StageStateChangeEvent {
3362
+ // Warning: (ae-forgotten-export) The symbol "StageStateInterface" needs to be exported by the entry point public.d.ts
3363
+ //
3364
+ // (undocumented)
3365
+ entities: StageStateInterface['entities'];
3366
+ // (undocumented)
3367
+ variables: StageStateInterface['variables'];
3368
+ }
3369
+
3370
+ export { StageTopDownPlane }
3371
+
3372
+ // @public
3373
+ export interface StageTransitionConfig {
3374
+ duration?: number;
3375
+ easing?: StageTransitionEasing | ((t: number) => number);
3376
+ onComplete?: () => void;
3377
+ shader?: ZylemTransitionShader | {
3378
+ shader: ZylemTransitionShader;
3379
+ };
3380
+ }
3381
+
3382
+ // @public
3383
+ export type StageTransitionEasing = 'linear' | 'easeInOut';
3384
+
3385
+ // @public (undocumented)
3386
+ export const standardShader: {
3387
+ vertex: string;
3388
+ fragment: string;
3389
+ };
3390
+
3391
+ // @public
3392
+ export interface StateDispatchPayload {
3393
+ // (undocumented)
3394
+ config?: {
3395
+ id: string;
3396
+ aspectRatio: number;
3397
+ fullscreen: boolean;
3398
+ bodyBackground: string | undefined;
3399
+ internalResolution: {
3400
+ width: number;
3401
+ height: number;
3402
+ } | undefined;
3403
+ debug: boolean;
3404
+ } | null;
3405
+ // (undocumented)
3406
+ entities?: EntityConfigPayload[] | null;
3407
+ // (undocumented)
3408
+ path: string;
3409
+ // (undocumented)
3410
+ previousValue?: unknown;
3411
+ // (undocumented)
3412
+ scope: 'game' | 'stage' | 'entity';
3413
+ // (undocumented)
3414
+ stageConfig?: StageConfigPayload | null;
3415
+ // (undocumented)
3416
+ value: unknown;
3417
+ }
3418
+
3419
+ export { step }
3420
+
3421
+ // @public
3422
+ export interface TemplateFactory<E extends GameEntity<O>, O extends GameEntityOptions = GameEntityOptions> {
3423
+ generate(count: number): E[];
3424
+ readonly template: E;
3425
+ }
3426
+
3427
+ // @public (undocumented)
3428
+ export const TEXT_TYPE: unique symbol;
3429
+
3430
+ // @public (undocumented)
3431
+ export type TextEntityData = Static<typeof TextEntityDataSchema>;
3432
+
3433
+ // @public
3434
+ export const TextEntityDataSchema: _sinclair_typebox.TObject<{
3435
+ value: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3436
+ color: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3437
+ fontSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3438
+ fontFamily: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3439
+ }>;
3440
+
3441
+ // @public
3442
+ export interface ThirdPersonOptions {
3443
+ distance?: number;
3444
+ fov?: number;
3445
+ height?: number;
3446
+ initialLookAt?: Vec3Input;
3447
+ initialPosition?: Vec3Input;
3448
+ minDistance?: number;
3449
+ paddingFactor?: number;
3450
+ shoulderOffset?: number;
3451
+ targetKey?: string;
3452
+ trailBufferSize?: number;
3453
+ trailDelay?: number;
3454
+ }
3455
+
3456
+ // @public
3457
+ export class ThirdPersonPerspective implements CameraPerspective {
3458
+ constructor(options?: ThirdPersonOptions);
3459
+ readonly defaults: {
3460
+ damping: number;
3461
+ };
3462
+ // (undocumented)
3463
+ getBasePose(ctx: CameraContext): CameraPose;
3464
+ // (undocumented)
3465
+ readonly id = "third-person";
3466
+ }
3467
+
3468
+ // Warning: (ae-forgotten-export) The symbol "ThrottleAction" needs to be exported by the entry point public.d.ts
3469
+ //
3470
+ // @public
3471
+ export function throttle(opts: ThrottleOptions): ThrottleAction;
3472
+
3473
+ // @public (undocumented)
3474
+ export interface ThrottleOptions {
3475
+ duration: number;
3476
+ }
3477
+
3478
+ export { ThrusterBehavior }
3479
+
3480
+ export { ThrusterBehaviorOptions }
3481
+
3482
+ export { ThrusterEntity }
3483
+
3484
+ export { ThrusterEvent }
3485
+
3486
+ export { ThrusterFSM }
3487
+
3488
+ export { ThrusterFSMContext }
3489
+
3490
+ export { ThrusterInputComponent }
3491
+
3492
+ export { ThrusterMovementComponent }
3493
+
3494
+ export { ThrusterState }
3495
+
3496
+ export { ThrusterStateComponent }
3497
+
3498
+ export { tickCooldowns }
3499
+
3500
+ export { time }
3501
+
3502
+ export { TopDownMovementBehavior }
3503
+
3504
+ export { TopDownMovementBehaviorOptions }
3505
+
3506
+ export { TopDownMovementComponent }
3507
+
3508
+ export { TopDownMovementEntity }
3509
+
3510
+ export { TopDownMovementHandle }
3511
+
3512
+ export { TopDownMovementInputComponent }
3513
+
3514
+ export { TopDownMovementStateComponent }
3515
+
3516
+ export { TopDownShooterCoordinator }
3517
+
3518
+ export { TopDownShooterEntity }
3519
+
3520
+ export { TopDownShooterInput }
3521
+
3522
+ // @public (undocumented)
3523
+ export function toThreeVector2(input?: Vec2Input | null, defaults?: Vec2Input | Partial<Vec2Components>): Vector2;
3524
+
3525
+ // @public (undocumented)
3526
+ export function toThreeVector3(input?: Vec3Input | null, defaults?: Vec3Input | Partial<Vec3Components>): Vector3;
3527
+
3528
+ // @public
3529
+ export function touchButtonSvg(label: string, options?: TouchButtonSvgOptions): string;
3530
+
3531
+ // @public (undocumented)
3532
+ export interface TouchButtonSvgOptions {
3533
+ accent?: string;
3534
+ theme?: TouchThemeInput;
3535
+ }
3536
+
3537
+ // @public
3538
+ export interface TouchTheme {
3539
+ baseFill: string;
3540
+ buttonAccents?: Partial<Record<VirtualTouchButtonSlot, string>>;
3541
+ defaultButtonAccent: string;
3542
+ joystickAccentFill: string;
3543
+ joystickInnerStroke: string;
3544
+ joystickStroke: string;
3545
+ joystickTabFill: string;
3546
+ thumbFill: string;
3547
+ thumbInnerFill: string;
3548
+ thumbStroke: string;
3549
+ }
3550
+
3551
+ // @public (undocumented)
3552
+ export type TouchThemeInput = TouchTheme | TouchThemeName;
3553
+
3554
+ // @public (undocumented)
3555
+ export type TouchThemeName = keyof typeof touchThemes;
3556
+
3557
+ // @public
3558
+ export const touchThemes: {
3559
+ readonly default: TouchTheme;
3560
+ readonly lagoon: TouchTheme;
3561
+ };
3562
+
3563
+ export { TransformComponent }
3564
+
3565
+ // @public
3566
+ export interface TransformLike {
3567
+ // (undocumented)
3568
+ position: Vector3;
3569
+ // (undocumented)
3570
+ rotation?: Quaternion;
3571
+ }
3572
+
3573
+ export { TransformState }
3574
+
3575
+ export { uniform }
3576
+
3577
+ export { updateBoundaryRicochet }
3578
+
3579
+ // @public
3580
+ export type UpdateContext<T, TGlobals extends GlobalRecord = any> = {
3581
+ me: T;
3582
+ delta: number;
3583
+ inputs: Inputs;
3584
+ globals: TGlobals;
3585
+ camera: ICamera;
3586
+ stage?: IStage;
3587
+ game?: IGame<TGlobals>;
3588
+ };
3589
+
3590
+ // @public
3591
+ export function useArrowsForAxes(player: InputPlayer): GameInputConfig;
3592
+
3593
+ // @public
3594
+ export function useArrowsForDirections(player: InputPlayer): GameInputConfig;
3595
+
3596
+ // @public
3597
+ export function useArrowsForSecondaryAxes(player: InputPlayer): GameInputConfig;
3598
+
3599
+ export { useBehavior }
3600
+
3601
+ // @public
3602
+ export function useIJKLForAxes(player: InputPlayer): GameInputConfig;
3603
+
3604
+ // @public
3605
+ export function useIJKLForDirections(player: InputPlayer): GameInputConfig;
3606
+
3607
+ // @public
3608
+ export function useMouse(player: InputPlayer, options?: {
3609
+ sensitivity?: number;
3610
+ }): GameInputConfig;
3611
+
3612
+ // @public
3613
+ export function useMouseLook(player: InputPlayer, options?: {
3614
+ sensitivity?: number;
3615
+ }): GameInputConfig;
3616
+
3617
+ // @public
3618
+ export function usesManagedRenderPath(options?: RenderCategoryOptions | null): boolean;
3619
+
3620
+ // @public
3621
+ export function useVirtualControls(player: InputPlayer, options?: VirtualTouchConfig): GameInputConfig;
3622
+
3623
+ // @public
3624
+ export function useWASDForAxes(player: InputPlayer): GameInputConfig;
3625
+
3626
+ // @public
3627
+ export function useWASDForDirections(player: InputPlayer): GameInputConfig;
3628
+
3629
+ export { uv }
3630
+
3631
+ // @public
3632
+ export function variableChange<T = any>(key: string, callback: (value: T, ctx: UpdateContext<any>) => void): (ctx: UpdateContext<any>) => void;
3633
+
3634
+ // @public
3635
+ export function variableChanges<T = any>(keys: string[], callback: (values: T[], ctx: UpdateContext<any>) => void): (ctx: UpdateContext<any>) => void;
3636
+
3637
+ // @public (undocumented)
3638
+ export type Vec2 = Vector2;
3639
+
3640
+ export { vec2 }
3641
+
3642
+ // @public (undocumented)
3643
+ export const VEC2_ONE: Readonly<Vec2Components>;
3644
+
3645
+ // @public (undocumented)
3646
+ export const VEC2_ZERO: Readonly<Vec2Components>;
3647
+
3648
+ // @public (undocumented)
3649
+ export type Vec2Components = {
3650
+ x: number;
3651
+ y: number;
3652
+ };
3653
+
3654
+ // Warning: (ae-forgotten-export) The symbol "Vec2Tuple" needs to be exported by the entry point public.d.ts
3655
+ //
3656
+ // @public (undocumented)
3657
+ export type Vec2Input = Vec2 | {
3658
+ x?: number;
3659
+ y?: number;
3660
+ } | Vec2Tuple;
3661
+
3662
+ // @public (undocumented)
3663
+ export type Vec3 = Vector3 | Vec3Components;
3664
+
3665
+ export { vec3 }
3666
+
3667
+ // @public (undocumented)
3668
+ export const VEC3_ONE: Readonly<Vec3Components>;
3669
+
3670
+ // @public (undocumented)
3671
+ export const VEC3_ZERO: Readonly<Vec3Components>;
3672
+
3673
+ // @public (undocumented)
3674
+ export type Vec3Components = {
3675
+ x: number;
3676
+ y: number;
3677
+ z: number;
3678
+ };
3679
+
3680
+ // @public
3681
+ export const Vec3ComponentsSchema: _sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>;
3682
+
3683
+ // Warning: (ae-forgotten-export) The symbol "Vec3Tuple" needs to be exported by the entry point public.d.ts
3684
+ //
3685
+ // @public (undocumented)
3686
+ export type Vec3Input = Vec3 | {
3687
+ x?: number;
3688
+ y?: number;
3689
+ z?: number;
3690
+ } | Vec3Tuple;
3691
+
3692
+ export { Vec3Like }
3693
+
3694
+ export { vec4 }
3695
+
3696
+ // @public @deprecated (undocumented)
3697
+ export type Vect3 = Vec3;
3698
+
3699
+ // @public
3700
+ export const Vector2Schema: _sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>;
3701
+
3702
+ // @public
3703
+ export const Vector3TupleSchema: _sinclair_typebox.TTuple<[_sinclair_typebox.TNumber, _sinclair_typebox.TNumber, _sinclair_typebox.TNumber]>;
3704
+
3705
+ // Warning: (ae-forgotten-export) The symbol "Vessel" needs to be exported by the entry point public.d.ts
3706
+ //
3707
+ // @public
3708
+ export function vessel(...args: Array<BaseNode>): Vessel;
3709
+
3710
+ export { ViewmodelConfig }
3711
+
3712
+ // @public
3713
+ export interface Viewport {
3714
+ // (undocumented)
3715
+ height: number;
3716
+ // (undocumented)
3717
+ width: number;
3718
+ // (undocumented)
3719
+ x: number;
3720
+ // (undocumented)
3721
+ y: number;
3722
+ }
3723
+
3724
+ // @public (undocumented)
3725
+ export interface VirtualTouchButtonConfig {
3726
+ // (undocumented)
3727
+ className?: string;
3728
+ // (undocumented)
3729
+ enabled?: boolean;
3730
+ // (undocumented)
3731
+ label?: string;
3732
+ // (undocumented)
3733
+ position?: VirtualTouchPosition;
3734
+ // (undocumented)
3735
+ size?: number;
3736
+ // (undocumented)
3737
+ style?: VirtualTouchStyle;
3738
+ svg?: string;
3739
+ }
3740
+
3741
+ // @public
3742
+ export const VirtualTouchButtonConfigSchema: _sinclair_typebox.TObject<{
3743
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3744
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3745
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3746
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3747
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3748
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3749
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3750
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3751
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3752
+ }>>;
3753
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3754
+ label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3755
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3756
+ }>;
3757
+
3758
+ // @public (undocumented)
3759
+ export type VirtualTouchButtonsConfig = Partial<Record<VirtualTouchButtonSlot, VirtualTouchButtonConfig | false>>;
3760
+
3761
+ // @public
3762
+ export const VirtualTouchButtonsConfigSchema: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
3763
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3764
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3765
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3766
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3767
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3768
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3769
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3770
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3771
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3772
+ }>>;
3773
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3774
+ label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3775
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3776
+ }>, _sinclair_typebox.TLiteral<false>]>>;
3777
+
3778
+ // @public (undocumented)
3779
+ export type VirtualTouchButtonSlot = 'A' | 'B' | 'X' | 'Y' | 'Start' | 'Select' | 'L' | 'R' | 'LTrigger' | 'RTrigger' | 'Up' | 'Down' | 'Left' | 'Right';
3780
+
3781
+ // @public (undocumented)
3782
+ export interface VirtualTouchConfig {
3783
+ // (undocumented)
3784
+ buttons?: VirtualTouchButtonsConfig | false;
3785
+ // (undocumented)
3786
+ className?: string;
3787
+ // (undocumented)
3788
+ enabled?: boolean | 'auto';
3789
+ // (undocumented)
3790
+ joysticks?: VirtualTouchJoysticksConfig | false;
3791
+ // (undocumented)
3792
+ style?: VirtualTouchStyle;
3793
+ }
3794
+
3795
+ // @public
3796
+ export const VirtualTouchConfigSchema: _sinclair_typebox.TObject<{
3797
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TLiteral<"auto">]>>;
3798
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3799
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3800
+ joysticks: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
3801
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
3802
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3803
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3804
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3805
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3806
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3807
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3808
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3809
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3810
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3811
+ }>>;
3812
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3813
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3814
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3815
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3816
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3817
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
3818
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
3819
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3820
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3821
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3822
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3823
+ }>>;
3824
+ }>, _sinclair_typebox.TLiteral<false>]>>;
3825
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
3826
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3827
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3828
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3829
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3830
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3831
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3832
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3833
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3834
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3835
+ }>>;
3836
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3837
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3838
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3839
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3840
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3841
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
3842
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
3843
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3844
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3845
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3846
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3847
+ }>>;
3848
+ }>, _sinclair_typebox.TLiteral<false>]>>;
3849
+ }>, _sinclair_typebox.TLiteral<false>]>>;
3850
+ buttons: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
3851
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3852
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3853
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3854
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3855
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3856
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3857
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3858
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3859
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3860
+ }>>;
3861
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3862
+ label: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3863
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3864
+ }>, _sinclair_typebox.TLiteral<false>]>>, _sinclair_typebox.TLiteral<false>]>>;
3865
+ }>;
3866
+
3867
+ // @public (undocumented)
3868
+ export interface VirtualTouchJoystickConfig {
3869
+ // (undocumented)
3870
+ className?: string;
3871
+ // (undocumented)
3872
+ deadzone?: number;
3873
+ // (undocumented)
3874
+ directionThreshold?: number;
3875
+ // (undocumented)
3876
+ emitDirections?: boolean;
3877
+ // (undocumented)
3878
+ enabled?: boolean;
3879
+ // (undocumented)
3880
+ horizontalAxis?: 'Horizontal' | 'SecondaryHorizontal';
3881
+ // (undocumented)
3882
+ maxDistance?: number;
3883
+ // (undocumented)
3884
+ position?: VirtualTouchPosition;
3885
+ // (undocumented)
3886
+ size?: number;
3887
+ // (undocumented)
3888
+ style?: VirtualTouchStyle;
3889
+ // (undocumented)
3890
+ svg?: {
3891
+ base?: string;
3892
+ thumb?: string;
3893
+ };
3894
+ // (undocumented)
3895
+ thumbSize?: number;
3896
+ // (undocumented)
3897
+ verticalAxis?: 'Vertical' | 'SecondaryVertical';
3898
+ }
3899
+
3900
+ // @public
3901
+ export const VirtualTouchJoystickConfigSchema: _sinclair_typebox.TObject<{
3902
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3903
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3904
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3905
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3906
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3907
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3908
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3909
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3910
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3911
+ }>>;
3912
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3913
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3914
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3915
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3916
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3917
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
3918
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
3919
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3920
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3921
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3922
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3923
+ }>>;
3924
+ }>;
3925
+
3926
+ // @public (undocumented)
3927
+ export interface VirtualTouchJoysticksConfig {
3928
+ // (undocumented)
3929
+ left?: VirtualTouchJoystickConfig | false;
3930
+ // (undocumented)
3931
+ right?: VirtualTouchJoystickConfig | false;
3932
+ }
3933
+
3934
+ // @public
3935
+ export const VirtualTouchJoysticksConfigSchema: _sinclair_typebox.TObject<{
3936
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
3937
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3938
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3939
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3940
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3941
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3942
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3943
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3944
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3945
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3946
+ }>>;
3947
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3948
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3949
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3950
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3951
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3952
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
3953
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
3954
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3955
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3956
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3957
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3958
+ }>>;
3959
+ }>, _sinclair_typebox.TLiteral<false>]>>;
3960
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
3961
+ enabled: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3962
+ className: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3963
+ style: _sinclair_typebox.TOptional<_sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>>;
3964
+ position: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3965
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3966
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3967
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3968
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
3969
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3970
+ }>>;
3971
+ size: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3972
+ thumbSize: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3973
+ maxDistance: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3974
+ deadzone: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3975
+ directionThreshold: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
3976
+ horizontalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Horizontal">, _sinclair_typebox.TLiteral<"SecondaryHorizontal">]>>;
3977
+ verticalAxis: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TLiteral<"Vertical">, _sinclair_typebox.TLiteral<"SecondaryVertical">]>>;
3978
+ emitDirections: _sinclair_typebox.TOptional<_sinclair_typebox.TBoolean>;
3979
+ svg: _sinclair_typebox.TOptional<_sinclair_typebox.TObject<{
3980
+ base: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3981
+ thumb: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
3982
+ }>>;
3983
+ }>, _sinclair_typebox.TLiteral<false>]>>;
3984
+ }>;
3985
+
3986
+ // @public (undocumented)
3987
+ export interface VirtualTouchPosition {
3988
+ // (undocumented)
3989
+ bottom?: string | number;
3990
+ // (undocumented)
3991
+ left?: string | number;
3992
+ // (undocumented)
3993
+ right?: string | number;
3994
+ // (undocumented)
3995
+ top?: string | number;
3996
+ // (undocumented)
3997
+ transform?: string;
3998
+ }
3999
+
4000
+ // @public
4001
+ export const VirtualTouchPositionSchema: _sinclair_typebox.TObject<{
4002
+ top: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
4003
+ right: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
4004
+ bottom: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
4005
+ left: _sinclair_typebox.TOptional<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
4006
+ transform: _sinclair_typebox.TOptional<_sinclair_typebox.TString>;
4007
+ }>;
4008
+
4009
+ // @public (undocumented)
4010
+ export type VirtualTouchStyle = Partial<Record<string, string | number>>;
4011
+
4012
+ // @public
4013
+ export const VirtualTouchStyleSchema: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber]>>;
4014
+
4015
+ export { VoronoiOptions }
4016
+
4017
+ export { WorldBoundary2DBehavior }
4018
+
4019
+ export { WorldBoundary2DBounds }
4020
+
4021
+ export { WorldBoundary2DEvent }
4022
+
4023
+ export { WorldBoundary2DFSM }
4024
+
4025
+ export { WorldBoundary2DHandle }
4026
+
4027
+ export { WorldBoundary2DHit }
4028
+
4029
+ export { WorldBoundary2DHits }
4030
+
4031
+ export { WorldBoundary2DOptions }
4032
+
4033
+ export { WorldBoundary2DPosition }
4034
+
4035
+ export { WorldBoundary2DState }
4036
+
4037
+ export { WorldBoundary3DBehavior }
4038
+
4039
+ export { WorldBoundary3DBounds }
4040
+
4041
+ export { WorldBoundary3DEvent }
4042
+
4043
+ export { WorldBoundary3DFSM }
4044
+
4045
+ export { WorldBoundary3DHandle }
4046
+
4047
+ export { WorldBoundary3DHit }
4048
+
4049
+ export { WorldBoundary3DHits }
4050
+
4051
+ export { WorldBoundary3DOptions }
4052
+
4053
+ export { WorldBoundary3DPosition }
4054
+
4055
+ export { WorldBoundary3DState }
4056
+
4057
+ export { wrapAround3D }
4058
+
4059
+ export { wrapAroundXY }
4060
+
4061
+ // @public (undocumented)
4062
+ export const ZONE_TYPE: unique symbol;
4063
+
4064
+ // Warning: (ae-forgotten-export) The symbol "ZoneCollisionOptions" needs to be exported by the entry point public.d.ts
4065
+ //
4066
+ // @public
4067
+ export function zoneCollision(opts?: ZoneCollisionOptions): CollisionComponent;
4068
+
4069
+ // Warning: (ae-forgotten-export) The symbol "ZylemActorOptions" needs to be exported by the entry point public.d.ts
4070
+ // Warning: (ae-forgotten-export) The symbol "EntityLoaderDelegate" needs to be exported by the entry point public.d.ts
4071
+ // Warning: (ae-forgotten-export) The symbol "DebugInfoProvider" needs to be exported by the entry point public.d.ts
4072
+ //
4073
+ // @public (undocumented)
4074
+ export class ZylemActor extends GameEntity<ZylemActorOptions> implements EntityLoaderDelegate, DebugInfoProvider {
4075
+ constructor(options?: ZylemActorOptions);
4076
+ // (undocumented)
4077
+ actorDestroy(): void;
4078
+ // (undocumented)
4079
+ actorUpdate(params: UpdateContext<ZylemActorOptions>): void;
4080
+ // (undocumented)
4081
+ _cleanup(params: CleanupContext<this>): void;
4082
+ // (undocumented)
4083
+ get collisionSource(): Object3D | null;
4084
+ // (undocumented)
4085
+ controlledRotation: boolean;
4086
+ // (undocumented)
4087
+ create(): this;
4088
+ // (undocumented)
4089
+ data(): any;
4090
+ // (undocumented)
4091
+ getDebugInfo(): Record<string, any>;
4092
+ // (undocumented)
4093
+ hasWarnedDynamicTrimesh: boolean;
4094
+ // (undocumented)
4095
+ load(): void;
4096
+ // (undocumented)
4097
+ needsDeferredModelCollision(): boolean;
4098
+ // (undocumented)
4099
+ get object(): Object3D | null;
4100
+ // Warning: (ae-forgotten-export) The symbol "AnimationOptions" needs to be exported by the entry point public.d.ts
4101
+ //
4102
+ // (undocumented)
4103
+ playAnimation(animationOptions: AnimationOptions): void;
4104
+ // (undocumented)
4105
+ synchronizeRuntimeCollider(): void;
4106
+ // (undocumented)
4107
+ static type: symbol;
4108
+ }
4109
+
4110
+ // Warning: (ae-forgotten-export) The symbol "ZylemBoxOptions" needs to be exported by the entry point public.d.ts
4111
+ //
4112
+ // @public (undocumented)
4113
+ export class ZylemBox extends GameEntity<ZylemBoxOptions> {
4114
+ constructor(options?: ZylemBoxOptions);
4115
+ // (undocumented)
4116
+ buildInfo(): Record<string, any>;
4117
+ // (undocumented)
4118
+ static type: symbol;
4119
+ }
4120
+
4121
+ // Warning: (ae-forgotten-export) The symbol "ZylemConeOptions" needs to be exported by the entry point public.d.ts
4122
+ //
4123
+ // @public
4124
+ export class ZylemCone extends GameEntity<ZylemConeOptions> {
4125
+ constructor(options?: ZylemConeOptions);
4126
+ // (undocumented)
4127
+ buildInfo(): Record<string, any>;
4128
+ // (undocumented)
4129
+ static type: symbol;
4130
+ }
4131
+
4132
+ // Warning: (ae-forgotten-export) The symbol "ZylemCylinderOptions" needs to be exported by the entry point public.d.ts
4133
+ //
4134
+ // @public
4135
+ export class ZylemCylinder extends GameEntity<ZylemCylinderOptions> {
4136
+ constructor(options?: ZylemCylinderOptions);
4137
+ // (undocumented)
4138
+ buildInfo(): Record<string, any>;
4139
+ // (undocumented)
4140
+ static type: symbol;
4141
+ }
4142
+
4143
+ // Warning: (ae-forgotten-export) The symbol "ZylemDiskOptions" needs to be exported by the entry point public.d.ts
4144
+ //
4145
+ // @public (undocumented)
4146
+ export class ZylemDisk extends GameEntity<ZylemDiskOptions> {
4147
+ constructor(options?: ZylemDiskOptions);
4148
+ // (undocumented)
4149
+ buildInfo(): Record<string, any>;
4150
+ // (undocumented)
4151
+ static type: symbol;
4152
+ }
4153
+
4154
+ // @public
4155
+ export const zylemEventBus: mitt.Emitter<ZylemEvents>;
4156
+
4157
+ // @public (undocumented)
4158
+ export type ZylemEvents = GameEvents & StageEvents & EntityEvents;
4159
+
4160
+ // Warning: (ae-forgotten-export) The symbol "ZylemFogGameOptions" needs to be exported by the entry point public.d.ts
4161
+ //
4162
+ // @public
4163
+ export class ZylemFog extends GameEntity<ZylemFogGameOptions> {
4164
+ constructor(options?: ZylemFogOptions);
4165
+ attachToScene(scene: Scene): void;
4166
+ // (undocumented)
4167
+ protected _cleanup(params: CleanupContext<this>): void;
4168
+ // (undocumented)
4169
+ create(): this;
4170
+ threeFog: Fog | FogExp2 | null;
4171
+ // (undocumented)
4172
+ static type: symbol;
4173
+ _update(params: UpdateContext<this>): void;
4174
+ }
4175
+
4176
+ // @public
4177
+ export interface ZylemFogHeightOptions {
4178
+ enabled?: boolean;
4179
+ falloff?: number;
4180
+ level?: number;
4181
+ }
4182
+
4183
+ // @public
4184
+ export interface ZylemFogNoiseOptions {
4185
+ scale?: number;
4186
+ speed?: number;
4187
+ strength?: number;
4188
+ }
4189
+
4190
+ // @public (undocumented)
4191
+ export interface ZylemFogOptions {
4192
+ color?: ColorRepresentation;
4193
+ density?: number;
4194
+ end?: number;
4195
+ height?: ZylemFogHeightOptions;
4196
+ name?: string;
4197
+ noise?: ZylemFogNoiseOptions;
4198
+ start?: number;
4199
+ type?: ZylemFogType;
4200
+ }
4201
+
4202
+ // @public
4203
+ export type ZylemFogType = 'linear' | 'exp2';
4204
+
4205
+ // @public (undocumented)
4206
+ export interface ZylemGameConfig<StageInterface, GameInterface, TGlobals extends BaseGlobals> {
4207
+ // (undocumented)
4208
+ debug?: boolean;
4209
+ // (undocumented)
4210
+ globals?: TGlobals;
4211
+ // (undocumented)
4212
+ id: string;
4213
+ // (undocumented)
4214
+ input?: GameInputConfig;
4215
+ // (undocumented)
4216
+ stages?: StageInterface[];
4217
+ // (undocumented)
4218
+ time?: number;
4219
+ // (undocumented)
4220
+ update?: UpdateFunction<GameInterface>;
4221
+ }
4222
+
4223
+ // @public (undocumented)
4224
+ export class ZylemGameElement extends HTMLElement {
4225
+ constructor();
4226
+ // (undocumented)
4227
+ attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
4228
+ // (undocumented)
4229
+ connectedCallback(): void;
4230
+ // (undocumented)
4231
+ disconnectedCallback(): void;
4232
+ focus(): void;
4233
+ set game(game: Game<any>);
4234
+ // (undocumented)
4235
+ get game(): Game<any> | null;
4236
+ // (undocumented)
4237
+ static get observedAttributes(): string[];
4238
+ set state(value: ZylemGameState);
4239
+ // (undocumented)
4240
+ get state(): ZylemGameState;
4241
+ set viewportProfile(value: DeviceProfile);
4242
+ // (undocumented)
4243
+ get viewportProfile(): DeviceProfile;
4244
+ }
4245
+
4246
+ // @public
4247
+ export interface ZylemGameState {
4248
+ // (undocumented)
4249
+ [key: string]: unknown;
4250
+ // (undocumented)
4251
+ gameState?: {
4252
+ debugFlag?: boolean;
4253
+ [key: string]: unknown;
4254
+ };
4255
+ // (undocumented)
4256
+ toolbarState?: {
4257
+ tool?: DebugTools;
4258
+ paused?: boolean;
4259
+ };
4260
+ }
4261
+
4262
+ // Warning: (ae-forgotten-export) The symbol "ZylemLightGameOptions" needs to be exported by the entry point public.d.ts
4263
+ //
4264
+ // @public
4265
+ export class ZylemLight extends GameEntity<ZylemLightGameOptions> {
4266
+ constructor(options: ZylemLightOptions);
4267
+ protected _cleanup(params: CleanupContext<this>): void;
4268
+ // (undocumented)
4269
+ create(): this;
4270
+ light: Light | null;
4271
+ lightTarget: Object3D | null;
4272
+ // (undocumented)
4273
+ static type: symbol;
4274
+ }
4275
+
4276
+ // @public (undocumented)
4277
+ export type ZylemLightOptions = AmbientLightOptions | HemisphereLightOptions | DirectionalLightOptions | PointLightOptions | SpotLightOptions;
4278
+
4279
+ // @public (undocumented)
4280
+ export class ZylemLine extends GameEntity<ZylemLineOptions> {
4281
+ constructor(options?: Partial<ZylemLineOptions>);
4282
+ // (undocumented)
4283
+ buildInfo(): Record<string, any>;
4284
+ // (undocumented)
4285
+ protected _cleanup(_params: CleanupContext<this>): void;
4286
+ // (undocumented)
4287
+ create(): this;
4288
+ // (undocumented)
4289
+ getLineObject(): Line2 | null;
4290
+ // (undocumented)
4291
+ pickFromRaycaster(raycaster: Raycaster, options?: {
4292
+ threshold?: number;
4293
+ }): LinePickResult | null;
4294
+ setPoints(points: Vec3Input[], colors?: ColorRepresentation[]): this;
4295
+ // (undocumented)
4296
+ static type: symbol;
4297
+ }
4298
+
4299
+ // @public (undocumented)
4300
+ export type ZylemLineOptions = GameEntityOptions & {
4301
+ points: Vec3Input[];
4302
+ colors?: ColorRepresentation[];
4303
+ linewidth?: number;
4304
+ worldUnits?: boolean;
4305
+ alphaToCoverage?: boolean;
4306
+ opacity?: number;
4307
+ transparent?: boolean;
4308
+ dashed?: boolean;
4309
+ dashSize?: number;
4310
+ gapSize?: number;
4311
+ pickThreshold?: number;
4312
+ };
4313
+
4314
+ // @public (undocumented)
4315
+ export class ZylemParticleSystem extends GameEntity<ZylemParticleSystemOptions> {
4316
+ constructor(options?: Partial<ZylemParticleSystemOptions>, initializeBehavior?: boolean);
4317
+ // (undocumented)
4318
+ __zylemParticleSystemEntity: true;
4319
+ // (undocumented)
4320
+ buildInfo(): Record<string, string>;
4321
+ // (undocumented)
4322
+ burst(): void;
4323
+ // (undocumented)
4324
+ getSystem(): ParticleEmitterHandle_2['getSystem'] extends () => infer T ? T : null;
4325
+ // (undocumented)
4326
+ isPlaying(): boolean;
4327
+ // (undocumented)
4328
+ pause(): void;
4329
+ // (undocumented)
4330
+ play(): void;
4331
+ // (undocumented)
4332
+ restart(): void;
4333
+ // (undocumented)
4334
+ stop(): void;
4335
+ // (undocumented)
4336
+ static type: symbol;
4337
+ }
4338
+
4339
+ // @public (undocumented)
4340
+ export type ZylemParticleSystemOptions = GameEntityOptions & ParticleEmitterBehaviorOptions_2 & {
4341
+ preset?: ParticleEffectDefinition_2;
4342
+ };
4343
+
4344
+ // Warning: (ae-forgotten-export) The symbol "ZylemPillOptions" needs to be exported by the entry point public.d.ts
4345
+ //
4346
+ // @public
4347
+ export class ZylemPill extends GameEntity<ZylemPillOptions> {
4348
+ constructor(options?: ZylemPillOptions);
4349
+ // (undocumented)
4350
+ buildInfo(): Record<string, any>;
4351
+ // (undocumented)
4352
+ static type: symbol;
4353
+ }
4354
+
4355
+ // Warning: (ae-forgotten-export) The symbol "ZylemPlaneOptions" needs to be exported by the entry point public.d.ts
4356
+ //
4357
+ // @public (undocumented)
4358
+ export class ZylemPlane extends GameEntity<ZylemPlaneOptions> {
4359
+ constructor(options?: ZylemPlaneOptions);
4360
+ // (undocumented)
4361
+ static type: symbol;
4362
+ }
4363
+
4364
+ // @public
4365
+ export type ZylemPostEffect = (inputNode: any, ctx: {
4366
+ scenePass: any;
4367
+ scene: any;
4368
+ camera: any;
4369
+ }) => any;
4370
+
4371
+ // Warning: (ae-forgotten-export) The symbol "ZylemPyramidOptions" needs to be exported by the entry point public.d.ts
4372
+ //
4373
+ // @public
4374
+ export class ZylemPyramid extends GameEntity<ZylemPyramidOptions> {
4375
+ constructor(options?: ZylemPyramidOptions);
4376
+ // (undocumented)
4377
+ buildInfo(): Record<string, any>;
4378
+ // (undocumented)
4379
+ static type: symbol;
4380
+ }
4381
+
4382
+ // Warning: (ae-forgotten-export) The symbol "ZylemRectOptions" needs to be exported by the entry point public.d.ts
4383
+ //
4384
+ // @public (undocumented)
4385
+ export class ZylemRect extends GameEntity<ZylemRectOptions> {
4386
+ constructor(options?: ZylemRectOptions);
4387
+ // (undocumented)
4388
+ buildInfo(): Record<string, any>;
4389
+ // (undocumented)
4390
+ getHeight(): number;
4391
+ // (undocumented)
4392
+ getWidth(): number;
4393
+ // (undocumented)
4394
+ static type: symbol;
4395
+ // (undocumented)
4396
+ updateRect(options?: Partial<Pick<ZylemRectOptions, 'width' | 'height' | 'fillColor' | 'strokeColor' | 'strokeWidth' | 'radius'>>): void;
4397
+ }
4398
+
4399
+ // @public
4400
+ export type ZylemRenderer = WebGPURenderer;
4401
+
4402
+ // @public
4403
+ export type ZylemShader = ZylemShaderObject | ZylemTSLShader;
4404
+
4405
+ // @public @deprecated
4406
+ export type ZylemShaderObject = {
4407
+ fragment: string;
4408
+ vertex: string;
4409
+ };
4410
+
4411
+ // Warning: (ae-forgotten-export) The symbol "ZylemSphereOptions" needs to be exported by the entry point public.d.ts
4412
+ //
4413
+ // @public (undocumented)
4414
+ export class ZylemSphere extends GameEntity<ZylemSphereOptions> {
4415
+ constructor(options?: ZylemSphereOptions);
4416
+ // (undocumented)
4417
+ buildInfo(): Record<string, any>;
4418
+ // (undocumented)
4419
+ static type: symbol;
4420
+ }
4421
+
4422
+ // Warning: (ae-forgotten-export) The symbol "ZylemSpriteOptions" needs to be exported by the entry point public.d.ts
4423
+ //
4424
+ // @public (undocumented)
4425
+ export class ZylemSprite extends GameEntity<ZylemSpriteOptions> {
4426
+ constructor(options?: ZylemSpriteOptions);
4427
+ // (undocumented)
4428
+ protected animations: Map<string, any>;
4429
+ // (undocumented)
4430
+ buildInfo(): Record<string, any>;
4431
+ // (undocumented)
4432
+ create(): this;
4433
+ // (undocumented)
4434
+ protected createAnimations(animations: SpriteAnimation[]): void;
4435
+ // (undocumented)
4436
+ protected createSpritesFromImages(images: SpriteImage[]): void;
4437
+ // (undocumented)
4438
+ protected currentAnimation: any;
4439
+ // (undocumented)
4440
+ protected currentAnimationFrame: string;
4441
+ // (undocumented)
4442
+ protected currentAnimationIndex: number;
4443
+ // (undocumented)
4444
+ protected currentAnimationTime: number;
4445
+ // (undocumented)
4446
+ protected currentSpriteIndex: number;
4447
+ // (undocumented)
4448
+ setAnimation(name: string, delta: number): void;
4449
+ // (undocumented)
4450
+ setSprite(key: string): void;
4451
+ // (undocumented)
4452
+ spriteDestroy(params: DestroyContext<ZylemSpriteOptions>): void;
4453
+ // (undocumented)
4454
+ protected spriteMap: Map<string, number>;
4455
+ // (undocumented)
4456
+ protected sprites: Sprite[];
4457
+ // (undocumented)
4458
+ spriteSetup(_params: SetupContext<ZylemSpriteOptions>): void;
4459
+ // (undocumented)
4460
+ spriteUpdate(params: UpdateContext<ZylemSpriteOptions>): void;
4461
+ // (undocumented)
4462
+ static type: symbol;
4463
+ }
4464
+
4465
+ // Warning: (ae-forgotten-export) The symbol "ZylemTextOptions" needs to be exported by the entry point public.d.ts
4466
+ //
4467
+ // @public (undocumented)
4468
+ export class ZylemText extends GameEntity<ZylemTextOptions> {
4469
+ constructor(options?: ZylemTextOptions);
4470
+ // (undocumented)
4471
+ buildInfo(): Record<string, any>;
4472
+ // (undocumented)
4473
+ create(): this;
4474
+ // (undocumented)
4475
+ static type: symbol;
4476
+ // (undocumented)
4477
+ updateText(_text: string): void;
4478
+ }
4479
+
4480
+ // @public
4481
+ export type ZylemTransitionShader = (ctx: {
4482
+ fromNode: any;
4483
+ toNode: any;
4484
+ progress: any;
4485
+ }) => any;
4486
+
4487
+ // @public
4488
+ export type ZylemTSLShader = {
4489
+ colorNode: any;
4490
+ positionNode?: any;
4491
+ normalNode?: any;
4492
+ transparent?: boolean;
4493
+ blending?: Blending;
4494
+ side?: Side;
4495
+ depthTest?: boolean;
4496
+ };
4497
+
4498
+ // Warning: (ae-forgotten-export) The symbol "ZylemZoneOptions" needs to be exported by the entry point public.d.ts
4499
+ // Warning: (ae-forgotten-export) The symbol "CollisionHandlerDelegate" needs to be exported by the entry point public.d.ts
4500
+ //
4501
+ // @public (undocumented)
4502
+ export class ZylemZone extends GameEntity<ZylemZoneOptions> implements CollisionHandlerDelegate {
4503
+ constructor(options?: ZylemZoneOptions);
4504
+ // (undocumented)
4505
+ entered(other: any): void;
4506
+ // (undocumented)
4507
+ exited(delta: number, key: string): void;
4508
+ // (undocumented)
4509
+ handleIntersectionEvent(input: {
4510
+ other: any;
4511
+ delta: number;
4512
+ }): void;
4513
+ // (undocumented)
4514
+ handlePostCollision(input: {
4515
+ delta: number;
4516
+ }): boolean;
4517
+ // (undocumented)
4518
+ held(delta: number, other: any): void;
4519
+ // (undocumented)
4520
+ onEnter(callback: (params: OnEnterParams) => void): this;
4521
+ // (undocumented)
4522
+ onExit(callback: (params: OnExitParams) => void): this;
4523
+ // (undocumented)
4524
+ onHeld(callback: (params: OnHeldParams) => void): this;
4525
+ // (undocumented)
4526
+ static type: symbol;
4527
+ }
4528
+
4529
+ // Warnings were encountered during analysis:
4530
+ //
4531
+ // dist/entity-BdSI8CL3.d.ts:406:5 - (ae-forgotten-export) The symbol "RenderCategory_2" needs to be exported by the entry point public.d.ts
4532
+ // dist/entity-BdSI8CL3.d.ts:407:5 - (ae-forgotten-export) The symbol "RuntimeEntityOptions" needs to be exported by the entry point public.d.ts
4533
+ // dist/entity-BdSI8CL3.d.ts:408:5 - (ae-forgotten-export) The symbol "CollisionOptions" needs to be exported by the entry point public.d.ts
4534
+ // dist/entity-BdSI8CL3.d.ts:409:5 - (ae-forgotten-export) The symbol "MaterialOptions" needs to be exported by the entry point public.d.ts
4535
+ // dist/entity-BdSI8CL3.d.ts:417:9 - (ae-forgotten-export) The symbol "IBuilder" needs to be exported by the entry point public.d.ts
4536
+ // dist/entity-BdSI8CL3.d.ts:417:9 - (ae-forgotten-export) The symbol "EntityMeshBuilder" needs to be exported by the entry point public.d.ts
4537
+ // dist/entity-BdSI8CL3.d.ts:418:9 - (ae-forgotten-export) The symbol "EntityCollisionBuilder" needs to be exported by the entry point public.d.ts
4538
+ // dist/entity-BdSI8CL3.d.ts:419:9 - (ae-forgotten-export) The symbol "MaterialBuilder" needs to be exported by the entry point public.d.ts
4539
+ // dist/game-C1FHVqXl.d.ts:908:5 - (ae-forgotten-export) The symbol "StageAssetLoaderConfig" needs to be exported by the entry point public.d.ts
4540
+ // dist/game-C1FHVqXl.d.ts:1520:5 - (ae-forgotten-export) The symbol "StageInterface" needs to be exported by the entry point public.d.ts
4541
+
4542
+ // (No @packageDocumentation comment for this package)
4543
+
4544
+ ```