@zylem/game-lib 0.7.0 → 0.8.2

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