@verticopolis/components 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (791) hide show
  1. package/ASSETS-LICENSE.md +49 -0
  2. package/LICENSE +21 -0
  3. package/README.md +121 -2
  4. package/lib/audio/Audio.d.ts +110 -0
  5. package/lib/audio/Audio.js +199 -0
  6. package/lib/audio/Audio.js.map +1 -0
  7. package/lib/audio/ToneAudioEngine.d.ts +125 -0
  8. package/lib/audio/ToneAudioEngine.js +452 -0
  9. package/lib/audio/ToneAudioEngine.js.map +1 -0
  10. package/lib/audio/audioAssets.d.ts +25 -0
  11. package/lib/audio/audioAssets.js +28 -0
  12. package/lib/audio/audioAssets.js.map +1 -0
  13. package/lib/audio/awayWatch.d.ts +17 -0
  14. package/lib/audio/awayWatch.js +33 -0
  15. package/lib/audio/awayWatch.js.map +1 -0
  16. package/lib/audio/firstCueLatch.d.ts +18 -0
  17. package/lib/audio/firstCueLatch.js +34 -0
  18. package/lib/audio/firstCueLatch.js.map +1 -0
  19. package/lib/audio/lightEnvelope.d.ts +64 -0
  20. package/lib/audio/lightEnvelope.js +124 -0
  21. package/lib/audio/lightEnvelope.js.map +1 -0
  22. package/lib/audio/lightSynth.d.ts +125 -0
  23. package/lib/audio/lightSynth.js +203 -0
  24. package/lib/audio/lightSynth.js.map +1 -0
  25. package/lib/audio/toneContext.d.ts +30 -0
  26. package/lib/audio/toneContext.js +79 -0
  27. package/lib/audio/toneContext.js.map +1 -0
  28. package/lib/audio/toneCrowd.d.ts +62 -0
  29. package/lib/audio/toneCrowd.js +429 -0
  30. package/lib/audio/toneCrowd.js.map +1 -0
  31. package/lib/audio/toneCrowdData.d.ts +144 -0
  32. package/lib/audio/toneCrowdData.js +317 -0
  33. package/lib/audio/toneCrowdData.js.map +1 -0
  34. package/lib/audio/toneCrowdPrograms.d.ts +71 -0
  35. package/lib/audio/toneCrowdPrograms.js +273 -0
  36. package/lib/audio/toneCrowdPrograms.js.map +1 -0
  37. package/lib/audio/toneCrowdVoices.d.ts +49 -0
  38. package/lib/audio/toneCrowdVoices.js +212 -0
  39. package/lib/audio/toneCrowdVoices.js.map +1 -0
  40. package/lib/audio/toneMusicVoices.d.ts +11 -0
  41. package/lib/audio/toneMusicVoices.js +31 -0
  42. package/lib/audio/toneMusicVoices.js.map +1 -0
  43. package/lib/audio/tonePercussion.d.ts +45 -0
  44. package/lib/audio/tonePercussion.js +97 -0
  45. package/lib/audio/tonePercussion.js.map +1 -0
  46. package/lib/audio/toneRain.d.ts +23 -0
  47. package/lib/audio/toneRain.js +39 -0
  48. package/lib/audio/toneRain.js.map +1 -0
  49. package/lib/audio/toneRecordingMock.d.ts +89 -0
  50. package/lib/audio/toneRecordingMock.js +145 -0
  51. package/lib/audio/toneRecordingMock.js.map +1 -0
  52. package/lib/audio/toneRoomTone.d.ts +11 -0
  53. package/lib/audio/toneRoomTone.js +27 -0
  54. package/lib/audio/toneRoomTone.js.map +1 -0
  55. package/lib/audio/toneScenes.d.ts +57 -0
  56. package/lib/audio/toneScenes.js +208 -0
  57. package/lib/audio/toneScenes.js.map +1 -0
  58. package/lib/audio/toneTracks.d.ts +50 -0
  59. package/lib/audio/toneTracks.js +356 -0
  60. package/lib/audio/toneTracks.js.map +1 -0
  61. package/lib/audio/toneVoices.d.ts +57 -0
  62. package/lib/audio/toneVoices.js +208 -0
  63. package/lib/audio/toneVoices.js.map +1 -0
  64. package/lib/catalog/catalogTypes.d.ts +428 -0
  65. package/lib/catalog/catalogTypes.js +102 -0
  66. package/lib/catalog/catalogTypes.js.map +1 -0
  67. package/lib/catalog/skyBridgeTypes.d.ts +25 -0
  68. package/lib/catalog/skyBridgeTypes.js +7 -0
  69. package/lib/catalog/skyBridgeTypes.js.map +1 -0
  70. package/lib/catalog/starDutyTypes.d.ts +22 -0
  71. package/lib/catalog/starDutyTypes.js +7 -0
  72. package/lib/catalog/starDutyTypes.js.map +1 -0
  73. package/lib/catalog/towerCatalog.d.ts +32 -0
  74. package/lib/catalog/towerCatalog.js +44 -0
  75. package/lib/catalog/towerCatalog.js.map +1 -0
  76. package/lib/engineBinding/binding.d.ts +36 -0
  77. package/lib/engineBinding/binding.js +90 -0
  78. package/lib/engineBinding/binding.js.map +1 -0
  79. package/lib/engineBinding/catalog.d.ts +24 -0
  80. package/lib/engineBinding/catalog.js +267 -0
  81. package/lib/engineBinding/catalog.js.map +1 -0
  82. package/lib/engineBinding/engine.d.ts +866 -0
  83. package/lib/engineBinding/exportTiers.d.ts +289 -0
  84. package/lib/engineBinding/exportTiers.js +283 -0
  85. package/lib/engineBinding/exportTiers.js.map +1 -0
  86. package/lib/engineBinding/toolingMethods.d.ts +12 -0
  87. package/lib/engineBinding/toolingMethods.js +20 -0
  88. package/lib/engineBinding/toolingMethods.js.map +1 -0
  89. package/lib/events/gameplayCatalog.d.ts +57 -0
  90. package/lib/events/gameplayCatalog.js +214 -0
  91. package/lib/events/gameplayCatalog.js.map +1 -0
  92. package/lib/events/gameplayEventRules.d.ts +4 -0
  93. package/lib/events/gameplayEventRules.js +32 -0
  94. package/lib/events/gameplayEventRules.js.map +1 -0
  95. package/lib/events/gameplayEvents.d.ts +284 -0
  96. package/lib/presentation/clockText.d.ts +28 -0
  97. package/lib/presentation/clockText.js +38 -0
  98. package/lib/presentation/clockText.js.map +1 -0
  99. package/lib/presentation/facilityPresentation.d.ts +20 -0
  100. package/lib/presentation/facilityPresentation.js +164 -0
  101. package/lib/presentation/facilityPresentation.js.map +1 -0
  102. package/lib/presentation/statsCopy.d.ts +20 -0
  103. package/lib/presentation/statsCopy.js +37 -0
  104. package/lib/presentation/statsCopy.js.map +1 -0
  105. package/lib/presentation/traffic.d.ts +75 -0
  106. package/lib/presentation/traffic.js +79 -0
  107. package/lib/presentation/traffic.js.map +1 -0
  108. package/lib/presentation/viewKinds.d.ts +33 -0
  109. package/lib/presentation/viewKinds.js +88 -0
  110. package/lib/presentation/viewKinds.js.map +1 -0
  111. package/lib/presentation/viewWorld.d.ts +29 -0
  112. package/lib/presentation/viewWorld.js +31 -0
  113. package/lib/presentation/viewWorld.js.map +1 -0
  114. package/lib/render/atlas/archive.d.ts +78 -0
  115. package/lib/render/atlas/archive.js +427 -0
  116. package/lib/render/atlas/archive.js.map +1 -0
  117. package/lib/render/atlas/bake.d.ts +132 -0
  118. package/lib/render/atlas/bake.js +331 -0
  119. package/lib/render/atlas/bake.js.map +1 -0
  120. package/lib/render/atlas/bakeAdditions.d.ts +24 -0
  121. package/lib/render/atlas/bakeAdditions.js +46 -0
  122. package/lib/render/atlas/bakeAdditions.js.map +1 -0
  123. package/lib/render/atlas/browserEntry.d.ts +12 -0
  124. package/lib/render/atlas/browserEntry.js +222 -0
  125. package/lib/render/atlas/browserEntry.js.map +1 -0
  126. package/lib/render/atlas/catalog.d.ts +118 -0
  127. package/lib/render/atlas/catalog.js +253 -0
  128. package/lib/render/atlas/catalog.js.map +1 -0
  129. package/lib/render/atlas/catalogExtras.d.ts +45 -0
  130. package/lib/render/atlas/catalogExtras.js +217 -0
  131. package/lib/render/atlas/catalogExtras.js.map +1 -0
  132. package/lib/render/atlas/compose.d.ts +30 -0
  133. package/lib/render/atlas/compose.js +125 -0
  134. package/lib/render/atlas/compose.js.map +1 -0
  135. package/lib/render/atlas/cycles.d.ts +25 -0
  136. package/lib/render/atlas/cycles.js +41 -0
  137. package/lib/render/atlas/cycles.js.map +1 -0
  138. package/lib/render/atlas/lookup.d.ts +65 -0
  139. package/lib/render/atlas/lookup.js +83 -0
  140. package/lib/render/atlas/lookup.js.map +1 -0
  141. package/lib/render/atlas/pack.d.ts +23 -0
  142. package/lib/render/atlas/pack.js +50 -0
  143. package/lib/render/atlas/pack.js.map +1 -0
  144. package/lib/render/atlas/paint.d.ts +120 -0
  145. package/lib/render/atlas/paint.js +154 -0
  146. package/lib/render/atlas/paint.js.map +1 -0
  147. package/lib/render/atlas/pixels.d.ts +46 -0
  148. package/lib/render/atlas/pixels.js +158 -0
  149. package/lib/render/atlas/pixels.js.map +1 -0
  150. package/lib/render/atlas/png.d.ts +3 -0
  151. package/lib/render/atlas/png.js +102 -0
  152. package/lib/render/atlas/png.js.map +1 -0
  153. package/lib/render/atlas/raster.d.ts +34 -0
  154. package/lib/render/atlas/raster.js +114 -0
  155. package/lib/render/atlas/raster.js.map +1 -0
  156. package/lib/render/atlas/recyclingFill.d.ts +5 -0
  157. package/lib/render/atlas/recyclingFill.js +65 -0
  158. package/lib/render/atlas/recyclingFill.js.map +1 -0
  159. package/lib/render/atlas/samples.d.ts +24 -0
  160. package/lib/render/atlas/samples.js +75 -0
  161. package/lib/render/atlas/samples.js.map +1 -0
  162. package/lib/render/atlas/scenery.d.ts +230 -0
  163. package/lib/render/atlas/scenery.js +242 -0
  164. package/lib/render/atlas/scenery.js.map +1 -0
  165. package/lib/render/atlas/schema.d.ts +189 -0
  166. package/lib/render/atlas/schema.js +31 -0
  167. package/lib/render/atlas/schema.js.map +1 -0
  168. package/lib/render/atlas/shellMarks.d.ts +16 -0
  169. package/lib/render/atlas/shellMarks.js +72 -0
  170. package/lib/render/atlas/shellMarks.js.map +1 -0
  171. package/lib/render/atlas/store.d.ts +75 -0
  172. package/lib/render/atlas/store.js +127 -0
  173. package/lib/render/atlas/store.js.map +1 -0
  174. package/lib/render/atlas/verify.d.ts +43 -0
  175. package/lib/render/atlas/verify.js +87 -0
  176. package/lib/render/atlas/verify.js.map +1 -0
  177. package/lib/render/atlas/verifyExtras.d.ts +19 -0
  178. package/lib/render/atlas/verifyExtras.js +310 -0
  179. package/lib/render/atlas/verifyExtras.js.map +1 -0
  180. package/lib/render/cameraBounds.d.ts +71 -0
  181. package/lib/render/cameraBounds.js +107 -0
  182. package/lib/render/cameraBounds.js.map +1 -0
  183. package/lib/render/carIndicator.d.ts +41 -0
  184. package/lib/render/carIndicator.js +45 -0
  185. package/lib/render/carIndicator.js.map +1 -0
  186. package/lib/render/carMotion.d.ts +33 -0
  187. package/lib/render/carMotion.js +42 -0
  188. package/lib/render/carMotion.js.map +1 -0
  189. package/lib/render/catalogScale.d.ts +40 -0
  190. package/lib/render/catalogScale.js +33 -0
  191. package/lib/render/catalogScale.js.map +1 -0
  192. package/lib/render/climbPath.d.ts +59 -0
  193. package/lib/render/climbPath.js +115 -0
  194. package/lib/render/climbPath.js.map +1 -0
  195. package/lib/render/depthPlanes.d.ts +55 -0
  196. package/lib/render/depthPlanes.js +58 -0
  197. package/lib/render/depthPlanes.js.map +1 -0
  198. package/lib/render/excalibur/TowerEngine.d.ts +348 -0
  199. package/lib/render/excalibur/TowerEngine.js +415 -0
  200. package/lib/render/excalibur/TowerEngine.js.map +1 -0
  201. package/lib/render/excalibur/cabGraphics.d.ts +75 -0
  202. package/lib/render/excalibur/cabGraphics.js +108 -0
  203. package/lib/render/excalibur/cabGraphics.js.map +1 -0
  204. package/lib/render/excalibur/cabParts.d.ts +32 -0
  205. package/lib/render/excalibur/cabParts.js +79 -0
  206. package/lib/render/excalibur/cabParts.js.map +1 -0
  207. package/lib/render/excalibur/cabRiders.d.ts +72 -0
  208. package/lib/render/excalibur/cabRiders.js +176 -0
  209. package/lib/render/excalibur/cabRiders.js.map +1 -0
  210. package/lib/render/excalibur/crowdCull.d.ts +34 -0
  211. package/lib/render/excalibur/crowdCull.js +72 -0
  212. package/lib/render/excalibur/crowdCull.js.map +1 -0
  213. package/lib/render/excalibur/crowdFigure.d.ts +42 -0
  214. package/lib/render/excalibur/crowdFigure.js +99 -0
  215. package/lib/render/excalibur/crowdFigure.js.map +1 -0
  216. package/lib/render/excalibur/crowdLook.d.ts +137 -0
  217. package/lib/render/excalibur/crowdLook.js +186 -0
  218. package/lib/render/excalibur/crowdLook.js.map +1 -0
  219. package/lib/render/excalibur/frameHold.d.ts +23 -0
  220. package/lib/render/excalibur/frameHold.js +30 -0
  221. package/lib/render/excalibur/frameHold.js.map +1 -0
  222. package/lib/render/excalibur/guardPosition.d.ts +17 -0
  223. package/lib/render/excalibur/guardPosition.js +37 -0
  224. package/lib/render/excalibur/guardPosition.js.map +1 -0
  225. package/lib/render/excalibur/keyboardHost.d.ts +15 -0
  226. package/lib/render/excalibur/keyboardHost.js +22 -0
  227. package/lib/render/excalibur/keyboardHost.js.map +1 -0
  228. package/lib/render/excalibur/longPress.d.ts +16 -0
  229. package/lib/render/excalibur/longPress.js +71 -0
  230. package/lib/render/excalibur/longPress.js.map +1 -0
  231. package/lib/render/excalibur/peopleGfx.d.ts +16 -0
  232. package/lib/render/excalibur/peopleGfx.js +46 -0
  233. package/lib/render/excalibur/peopleGfx.js.map +1 -0
  234. package/lib/render/excalibur/peopleWindow.d.ts +35 -0
  235. package/lib/render/excalibur/peopleWindow.js +38 -0
  236. package/lib/render/excalibur/peopleWindow.js.map +1 -0
  237. package/lib/render/excalibur/personFocus.d.ts +36 -0
  238. package/lib/render/excalibur/personFocus.js +169 -0
  239. package/lib/render/excalibur/personFocus.js.map +1 -0
  240. package/lib/render/excalibur/pointerButtonGuard.d.ts +35 -0
  241. package/lib/render/excalibur/pointerButtonGuard.js +86 -0
  242. package/lib/render/excalibur/pointerButtonGuard.js.map +1 -0
  243. package/lib/render/excalibur/pressLifecycle.d.ts +26 -0
  244. package/lib/render/excalibur/pressLifecycle.js +66 -0
  245. package/lib/render/excalibur/pressLifecycle.js.map +1 -0
  246. package/lib/render/excalibur/rainShelter.d.ts +16 -0
  247. package/lib/render/excalibur/rainShelter.js +94 -0
  248. package/lib/render/excalibur/rainShelter.js.map +1 -0
  249. package/lib/render/excalibur/roomSignature.d.ts +30 -0
  250. package/lib/render/excalibur/roomSignature.js +49 -0
  251. package/lib/render/excalibur/roomSignature.js.map +1 -0
  252. package/lib/render/excalibur/sceneBake.d.ts +9 -0
  253. package/lib/render/excalibur/sceneBake.js +12 -0
  254. package/lib/render/excalibur/sceneBake.js.map +1 -0
  255. package/lib/render/excalibur/thiefSpan.d.ts +18 -0
  256. package/lib/render/excalibur/thiefSpan.js +51 -0
  257. package/lib/render/excalibur/thiefSpan.js.map +1 -0
  258. package/lib/render/excalibur/towerBridgeTiles.d.ts +30 -0
  259. package/lib/render/excalibur/towerBridgeTiles.js +43 -0
  260. package/lib/render/excalibur/towerBridgeTiles.js.map +1 -0
  261. package/lib/render/excalibur/towerCrowd.d.ts +73 -0
  262. package/lib/render/excalibur/towerCrowd.js +464 -0
  263. package/lib/render/excalibur/towerCrowd.js.map +1 -0
  264. package/lib/render/excalibur/towerCrowdLayout.d.ts +40 -0
  265. package/lib/render/excalibur/towerCrowdLayout.js +77 -0
  266. package/lib/render/excalibur/towerCrowdLayout.js.map +1 -0
  267. package/lib/render/excalibur/towerFireResponse.d.ts +25 -0
  268. package/lib/render/excalibur/towerFireResponse.js +89 -0
  269. package/lib/render/excalibur/towerFireResponse.js.map +1 -0
  270. package/lib/render/excalibur/towerFrame.d.ts +8 -0
  271. package/lib/render/excalibur/towerFrame.js +57 -0
  272. package/lib/render/excalibur/towerFrame.js.map +1 -0
  273. package/lib/render/excalibur/towerGhostLabel.d.ts +9 -0
  274. package/lib/render/excalibur/towerGhostLabel.js +37 -0
  275. package/lib/render/excalibur/towerGhostLabel.js.map +1 -0
  276. package/lib/render/excalibur/towerHallDoors.d.ts +42 -0
  277. package/lib/render/excalibur/towerHallDoors.js +129 -0
  278. package/lib/render/excalibur/towerHallDoors.js.map +1 -0
  279. package/lib/render/excalibur/towerHaloRings.d.ts +34 -0
  280. package/lib/render/excalibur/towerHaloRings.js +45 -0
  281. package/lib/render/excalibur/towerHaloRings.js.map +1 -0
  282. package/lib/render/excalibur/towerInputCamera.d.ts +90 -0
  283. package/lib/render/excalibur/towerInputCamera.js +480 -0
  284. package/lib/render/excalibur/towerInputCamera.js.map +1 -0
  285. package/lib/render/excalibur/towerMetro.d.ts +31 -0
  286. package/lib/render/excalibur/towerMetro.js +115 -0
  287. package/lib/render/excalibur/towerMetro.js.map +1 -0
  288. package/lib/render/excalibur/towerNoiseReach.d.ts +32 -0
  289. package/lib/render/excalibur/towerNoiseReach.js +75 -0
  290. package/lib/render/excalibur/towerNoiseReach.js.map +1 -0
  291. package/lib/render/excalibur/towerOverlay.d.ts +59 -0
  292. package/lib/render/excalibur/towerOverlay.js +453 -0
  293. package/lib/render/excalibur/towerOverlay.js.map +1 -0
  294. package/lib/render/excalibur/towerReconcile.d.ts +17 -0
  295. package/lib/render/excalibur/towerReconcile.js +404 -0
  296. package/lib/render/excalibur/towerReconcile.js.map +1 -0
  297. package/lib/render/excalibur/towerRegions.d.ts +61 -0
  298. package/lib/render/excalibur/towerRegions.js +193 -0
  299. package/lib/render/excalibur/towerRegions.js.map +1 -0
  300. package/lib/render/excalibur/towerScene.d.ts +66 -0
  301. package/lib/render/excalibur/towerScene.js +443 -0
  302. package/lib/render/excalibur/towerScene.js.map +1 -0
  303. package/lib/render/excalibur/towerScenery.d.ts +12 -0
  304. package/lib/render/excalibur/towerScenery.js +299 -0
  305. package/lib/render/excalibur/towerScenery.js.map +1 -0
  306. package/lib/render/excalibur/towerSceneryDraw.d.ts +86 -0
  307. package/lib/render/excalibur/towerSceneryDraw.js +288 -0
  308. package/lib/render/excalibur/towerSceneryDraw.js.map +1 -0
  309. package/lib/render/excalibur/towerShaftNumbers.d.ts +23 -0
  310. package/lib/render/excalibur/towerShaftNumbers.js +90 -0
  311. package/lib/render/excalibur/towerShaftNumbers.js.map +1 -0
  312. package/lib/render/excalibur/towerStructTiles.d.ts +56 -0
  313. package/lib/render/excalibur/towerStructTiles.js +238 -0
  314. package/lib/render/excalibur/towerStructTiles.js.map +1 -0
  315. package/lib/render/excalibur/towerSyncSchedule.d.ts +84 -0
  316. package/lib/render/excalibur/towerSyncSchedule.js +137 -0
  317. package/lib/render/excalibur/towerSyncSchedule.js.map +1 -0
  318. package/lib/render/excalibur/towerWalkerBuild.d.ts +30 -0
  319. package/lib/render/excalibur/towerWalkerBuild.js +126 -0
  320. package/lib/render/excalibur/towerWalkerBuild.js.map +1 -0
  321. package/lib/render/excalibur/trafficSpotlight.d.ts +29 -0
  322. package/lib/render/excalibur/trafficSpotlight.js +64 -0
  323. package/lib/render/excalibur/trafficSpotlight.js.map +1 -0
  324. package/lib/render/facadeGeometry.d.ts +50 -0
  325. package/lib/render/facadeGeometry.js +79 -0
  326. package/lib/render/facadeGeometry.js.map +1 -0
  327. package/lib/render/groundEntrances.d.ts +44 -0
  328. package/lib/render/groundEntrances.js +118 -0
  329. package/lib/render/groundEntrances.js.map +1 -0
  330. package/lib/render/lateNight.d.ts +14 -0
  331. package/lib/render/lateNight.js +18 -0
  332. package/lib/render/lateNight.js.map +1 -0
  333. package/lib/render/lobbyHalls.d.ts +44 -0
  334. package/lib/render/lobbyHalls.js +63 -0
  335. package/lib/render/lobbyHalls.js.map +1 -0
  336. package/lib/render/metroTrainSchedule.d.ts +20 -0
  337. package/lib/render/metroTrainSchedule.js +65 -0
  338. package/lib/render/metroTrainSchedule.js.map +1 -0
  339. package/lib/render/overviewMap/drawList.d.ts +67 -0
  340. package/lib/render/overviewMap/drawList.js +103 -0
  341. package/lib/render/overviewMap/drawList.js.map +1 -0
  342. package/lib/render/overviewMap/extent.d.ts +70 -0
  343. package/lib/render/overviewMap/extent.js +155 -0
  344. package/lib/render/overviewMap/extent.js.map +1 -0
  345. package/lib/render/overviewMap/floorSpans.d.ts +27 -0
  346. package/lib/render/overviewMap/floorSpans.js +32 -0
  347. package/lib/render/overviewMap/floorSpans.js.map +1 -0
  348. package/lib/render/overviewMap/gaps.d.ts +48 -0
  349. package/lib/render/overviewMap/gaps.js +148 -0
  350. package/lib/render/overviewMap/gaps.js.map +1 -0
  351. package/lib/render/overviewMap/geometry.d.ts +139 -0
  352. package/lib/render/overviewMap/geometry.js +245 -0
  353. package/lib/render/overviewMap/geometry.js.map +1 -0
  354. package/lib/render/overviewMap/heatView.d.ts +91 -0
  355. package/lib/render/overviewMap/heatView.js +143 -0
  356. package/lib/render/overviewMap/heatView.js.map +1 -0
  357. package/lib/render/overviewMap/hotelView.d.ts +82 -0
  358. package/lib/render/overviewMap/hotelView.js +136 -0
  359. package/lib/render/overviewMap/hotelView.js.map +1 -0
  360. package/lib/render/overviewMap/model.d.ts +97 -0
  361. package/lib/render/overviewMap/model.js +116 -0
  362. package/lib/render/overviewMap/model.js.map +1 -0
  363. package/lib/render/overviewMap/paint.d.ts +63 -0
  364. package/lib/render/overviewMap/paint.js +168 -0
  365. package/lib/render/overviewMap/paint.js.map +1 -0
  366. package/lib/render/overviewMap/style.d.ts +46 -0
  367. package/lib/render/overviewMap/style.js +117 -0
  368. package/lib/render/overviewMap/style.js.map +1 -0
  369. package/lib/render/overviewMap/tierView.d.ts +103 -0
  370. package/lib/render/overviewMap/tierView.js +209 -0
  371. package/lib/render/overviewMap/tierView.js.map +1 -0
  372. package/lib/render/overviewMap/viewMark.d.ts +69 -0
  373. package/lib/render/overviewMap/viewMark.js +103 -0
  374. package/lib/render/overviewMap/viewMark.js.map +1 -0
  375. package/lib/render/overviewMap/views.d.ts +24 -0
  376. package/lib/render/overviewMap/views.js +29 -0
  377. package/lib/render/overviewMap/views.js.map +1 -0
  378. package/lib/render/pinchTracker.d.ts +91 -0
  379. package/lib/render/pinchTracker.js +145 -0
  380. package/lib/render/pinchTracker.js.map +1 -0
  381. package/lib/render/pixelSprites/amusements.d.ts +32 -0
  382. package/lib/render/pixelSprites/amusements.js +243 -0
  383. package/lib/render/pixelSprites/amusements.js.map +1 -0
  384. package/lib/render/pixelSprites/artScale.d.ts +97 -0
  385. package/lib/render/pixelSprites/artScale.js +151 -0
  386. package/lib/render/pixelSprites/artScale.js.map +1 -0
  387. package/lib/render/pixelSprites/boutique.d.ts +30 -0
  388. package/lib/render/pixelSprites/boutique.js +244 -0
  389. package/lib/render/pixelSprites/boutique.js.map +1 -0
  390. package/lib/render/pixelSprites/clinic.d.ts +30 -0
  391. package/lib/render/pixelSprites/clinic.js +184 -0
  392. package/lib/render/pixelSprites/clinic.js.map +1 -0
  393. package/lib/render/pixelSprites/common.d.ts +185 -0
  394. package/lib/render/pixelSprites/common.js +449 -0
  395. package/lib/render/pixelSprites/common.js.map +1 -0
  396. package/lib/render/pixelSprites/daycare.d.ts +3 -0
  397. package/lib/render/pixelSprites/daycare.js +99 -0
  398. package/lib/render/pixelSprites/daycare.js.map +1 -0
  399. package/lib/render/pixelSprites/dollhouse.d.ts +45 -0
  400. package/lib/render/pixelSprites/dollhouse.js +110 -0
  401. package/lib/render/pixelSprites/dollhouse.js.map +1 -0
  402. package/lib/render/pixelSprites/fitness.d.ts +30 -0
  403. package/lib/render/pixelSprites/fitness.js +176 -0
  404. package/lib/render/pixelSprites/fitness.js.map +1 -0
  405. package/lib/render/pixelSprites/food.d.ts +27 -0
  406. package/lib/render/pixelSprites/food.interiors.d.ts +38 -0
  407. package/lib/render/pixelSprites/food.interiors.js +516 -0
  408. package/lib/render/pixelSprites/food.interiors.js.map +1 -0
  409. package/lib/render/pixelSprites/food.js +36 -0
  410. package/lib/render/pixelSprites/food.js.map +1 -0
  411. package/lib/render/pixelSprites/food.kit.d.ts +50 -0
  412. package/lib/render/pixelSprites/food.kit.js +140 -0
  413. package/lib/render/pixelSprites/food.kit.js.map +1 -0
  414. package/lib/render/pixelSprites/food.looks.d.ts +45 -0
  415. package/lib/render/pixelSprites/food.looks.js +56 -0
  416. package/lib/render/pixelSprites/food.looks.js.map +1 -0
  417. package/lib/render/pixelSprites/layers.d.ts +49 -0
  418. package/lib/render/pixelSprites/layers.js +61 -0
  419. package/lib/render/pixelSprites/layers.js.map +1 -0
  420. package/lib/render/pixelSprites/nightclub.d.ts +3 -0
  421. package/lib/render/pixelSprites/nightclub.js +108 -0
  422. package/lib/render/pixelSprites/nightclub.js.map +1 -0
  423. package/lib/render/pixelSprites/people.d.ts +168 -0
  424. package/lib/render/pixelSprites/people.js +431 -0
  425. package/lib/render/pixelSprites/people.js.map +1 -0
  426. package/lib/render/pixelSprites/residential.d.ts +5 -0
  427. package/lib/render/pixelSprites/residential.js +506 -0
  428. package/lib/render/pixelSprites/residential.js.map +1 -0
  429. package/lib/render/pixelSprites/residential.looks.d.ts +40 -0
  430. package/lib/render/pixelSprites/residential.looks.js +43 -0
  431. package/lib/render/pixelSprites/residential.looks.js.map +1 -0
  432. package/lib/render/pixelSprites/residential.roaches.d.ts +38 -0
  433. package/lib/render/pixelSprites/residential.roaches.js +88 -0
  434. package/lib/render/pixelSprites/residential.roaches.js.map +1 -0
  435. package/lib/render/pixelSprites/residentialRentalSprites.d.ts +11 -0
  436. package/lib/render/pixelSprites/residentialRentalSprites.js +19 -0
  437. package/lib/render/pixelSprites/residentialRentalSprites.js.map +1 -0
  438. package/lib/render/pixelSprites/shop.d.ts +14 -0
  439. package/lib/render/pixelSprites/shop.interiors.d.ts +50 -0
  440. package/lib/render/pixelSprites/shop.interiors.js +382 -0
  441. package/lib/render/pixelSprites/shop.interiors.js.map +1 -0
  442. package/lib/render/pixelSprites/shop.js +72 -0
  443. package/lib/render/pixelSprites/shop.js.map +1 -0
  444. package/lib/render/pixelSprites/shop.looks.d.ts +17 -0
  445. package/lib/render/pixelSprites/shop.looks.js +24 -0
  446. package/lib/render/pixelSprites/shop.looks.js.map +1 -0
  447. package/lib/render/pixelSprites/skyBar.d.ts +11 -0
  448. package/lib/render/pixelSprites/skyBar.js +125 -0
  449. package/lib/render/pixelSprites/skyBar.js.map +1 -0
  450. package/lib/render/pixelSprites/spa.d.ts +3 -0
  451. package/lib/render/pixelSprites/spa.js +88 -0
  452. package/lib/render/pixelSprites/spa.js.map +1 -0
  453. package/lib/render/pixelSprites.d.ts +33 -0
  454. package/lib/render/pixelSprites.js +167 -0
  455. package/lib/render/pixelSprites.js.map +1 -0
  456. package/lib/render/regionGrid.d.ts +49 -0
  457. package/lib/render/regionGrid.js +82 -0
  458. package/lib/render/regionGrid.js.map +1 -0
  459. package/lib/render/regionPaint.d.ts +15 -0
  460. package/lib/render/regionPaint.js +33 -0
  461. package/lib/render/regionPaint.js.map +1 -0
  462. package/lib/render/renderSim.d.ts +104 -0
  463. package/lib/render/renderSim.js +2 -0
  464. package/lib/render/renderSim.js.map +1 -0
  465. package/lib/render/roomPortrait.d.ts +35 -0
  466. package/lib/render/roomPortrait.js +142 -0
  467. package/lib/render/roomPortrait.js.map +1 -0
  468. package/lib/render/roomShading.d.ts +29 -0
  469. package/lib/render/roomShading.js +43 -0
  470. package/lib/render/roomShading.js.map +1 -0
  471. package/lib/render/scale.d.ts +31 -0
  472. package/lib/render/scale.js +34 -0
  473. package/lib/render/scale.js.map +1 -0
  474. package/lib/render/sceneryLayout.d.ts +234 -0
  475. package/lib/render/sceneryLayout.js +199 -0
  476. package/lib/render/sceneryLayout.js.map +1 -0
  477. package/lib/render/sprites/common.d.ts +41 -0
  478. package/lib/render/sprites/common.js +46 -0
  479. package/lib/render/sprites/common.js.map +1 -0
  480. package/lib/render/sprites/escalator.d.ts +27 -0
  481. package/lib/render/sprites/escalator.js +156 -0
  482. package/lib/render/sprites/escalator.js.map +1 -0
  483. package/lib/render/sprites/events.d.ts +56 -0
  484. package/lib/render/sprites/events.js +280 -0
  485. package/lib/render/sprites/events.js.map +1 -0
  486. package/lib/render/sprites/facilities/garage.d.ts +23 -0
  487. package/lib/render/sprites/facilities/garage.js +230 -0
  488. package/lib/render/sprites/facilities/garage.js.map +1 -0
  489. package/lib/render/sprites/facilities/recycling.d.ts +3 -0
  490. package/lib/render/sprites/facilities/recycling.js +210 -0
  491. package/lib/render/sprites/facilities/recycling.js.map +1 -0
  492. package/lib/render/sprites/facilities/recyclingLook.d.ts +49 -0
  493. package/lib/render/sprites/facilities/recyclingLook.js +52 -0
  494. package/lib/render/sprites/facilities/recyclingLook.js.map +1 -0
  495. package/lib/render/sprites/facilities/service.d.ts +14 -0
  496. package/lib/render/sprites/facilities/service.js +437 -0
  497. package/lib/render/sprites/facilities/service.js.map +1 -0
  498. package/lib/render/sprites/facilities/serviceKit.d.ts +61 -0
  499. package/lib/render/sprites/facilities/serviceKit.js +113 -0
  500. package/lib/render/sprites/facilities/serviceKit.js.map +1 -0
  501. package/lib/render/sprites/facilities/vehicles.d.ts +38 -0
  502. package/lib/render/sprites/facilities/vehicles.js +276 -0
  503. package/lib/render/sprites/facilities/vehicles.js.map +1 -0
  504. package/lib/render/sprites/facilities/venue.d.ts +28 -0
  505. package/lib/render/sprites/facilities/venue.js +211 -0
  506. package/lib/render/sprites/facilities/venue.js.map +1 -0
  507. package/lib/render/sprites/facilities/weddingHall.d.ts +9 -0
  508. package/lib/render/sprites/facilities/weddingHall.js +410 -0
  509. package/lib/render/sprites/facilities/weddingHall.js.map +1 -0
  510. package/lib/render/sprites/facilities.d.ts +22 -0
  511. package/lib/render/sprites/facilities.js +24 -0
  512. package/lib/render/sprites/facilities.js.map +1 -0
  513. package/lib/render/sprites/helicopter.d.ts +11 -0
  514. package/lib/render/sprites/helicopter.js +60 -0
  515. package/lib/render/sprites/helicopter.js.map +1 -0
  516. package/lib/render/sprites/sky.d.ts +67 -0
  517. package/lib/render/sprites/sky.js +85 -0
  518. package/lib/render/sprites/sky.js.map +1 -0
  519. package/lib/render/sprites/spiralStair.d.ts +19 -0
  520. package/lib/render/sprites/spiralStair.js +111 -0
  521. package/lib/render/sprites/spiralStair.js.map +1 -0
  522. package/lib/render/sprites/structure/entrance.d.ts +35 -0
  523. package/lib/render/sprites/structure/entrance.js +347 -0
  524. package/lib/render/sprites/structure/entrance.js.map +1 -0
  525. package/lib/render/sprites/structure/lobby.d.ts +88 -0
  526. package/lib/render/sprites/structure/lobby.js +350 -0
  527. package/lib/render/sprites/structure/lobby.js.map +1 -0
  528. package/lib/render/sprites/structure/revolvingDoor.d.ts +53 -0
  529. package/lib/render/sprites/structure/revolvingDoor.js +184 -0
  530. package/lib/render/sprites/structure/revolvingDoor.js.map +1 -0
  531. package/lib/render/sprites/structure/rooftop.d.ts +93 -0
  532. package/lib/render/sprites/structure/rooftop.js +302 -0
  533. package/lib/render/sprites/structure/rooftop.js.map +1 -0
  534. package/lib/render/sprites/structure/shell.d.ts +19 -0
  535. package/lib/render/sprites/structure/shell.js +142 -0
  536. package/lib/render/sprites/structure/shell.js.map +1 -0
  537. package/lib/render/sprites/structure/skyBridge.d.ts +28 -0
  538. package/lib/render/sprites/structure/skyBridge.js +259 -0
  539. package/lib/render/sprites/structure/skyBridge.js.map +1 -0
  540. package/lib/render/sprites/structure/tallLobby.d.ts +8 -0
  541. package/lib/render/sprites/structure/tallLobby.js +166 -0
  542. package/lib/render/sprites/structure/tallLobby.js.map +1 -0
  543. package/lib/render/sprites/structure/tallLobbyPieces.d.ts +18 -0
  544. package/lib/render/sprites/structure/tallLobbyPieces.js +82 -0
  545. package/lib/render/sprites/structure/tallLobbyPieces.js.map +1 -0
  546. package/lib/render/sprites/structure.d.ts +15 -0
  547. package/lib/render/sprites/structure.js +16 -0
  548. package/lib/render/sprites/structure.js.map +1 -0
  549. package/lib/render/sprites/transport.d.ts +30 -0
  550. package/lib/render/sprites/transport.js +376 -0
  551. package/lib/render/sprites/transport.js.map +1 -0
  552. package/lib/render/sprites.d.ts +16 -0
  553. package/lib/render/sprites.js +108 -0
  554. package/lib/render/sprites.js.map +1 -0
  555. package/lib/render/venueFlights.d.ts +61 -0
  556. package/lib/render/venueFlights.js +50 -0
  557. package/lib/render/venueFlights.js.map +1 -0
  558. package/lib/shared/engineTypes.d.ts +256 -0
  559. package/lib/shared/engineTypes.js +8 -0
  560. package/lib/shared/engineTypes.js.map +1 -0
  561. package/lib/shared/floorRuns.d.ts +22 -0
  562. package/lib/shared/floorRuns.js +39 -0
  563. package/lib/shared/floorRuns.js.map +1 -0
  564. package/lib/shared/inputEvents.d.ts +18 -0
  565. package/lib/shared/inputEvents.js +23 -0
  566. package/lib/shared/inputEvents.js.map +1 -0
  567. package/lib/shared/serializedGame.d.ts +142 -0
  568. package/lib/shared/serializedGame.js +2 -0
  569. package/lib/shared/serializedGame.js.map +1 -0
  570. package/lib/shared/types.d.ts +298 -0
  571. package/lib/shared/types.js +47 -0
  572. package/lib/shared/types.js.map +1 -0
  573. package/lib/shared/unitState.d.ts +36 -0
  574. package/lib/shared/unitState.js +42 -0
  575. package/lib/shared/unitState.js.map +1 -0
  576. package/lib/shared/vacateReasonText.d.ts +20 -0
  577. package/lib/shared/vacateReasonText.js +23 -0
  578. package/lib/shared/vacateReasonText.js.map +1 -0
  579. package/lib/shared/viewZoom.d.ts +14 -0
  580. package/lib/shared/viewZoom.js +17 -0
  581. package/lib/shared/viewZoom.js.map +1 -0
  582. package/lib/shared/wellFormed.d.ts +14 -0
  583. package/lib/shared/wellFormed.js +19 -0
  584. package/lib/shared/wellFormed.js.map +1 -0
  585. package/lib/simport/cards.d.ts +26 -0
  586. package/lib/simport/cards.js +138 -0
  587. package/lib/simport/cards.js.map +1 -0
  588. package/lib/simport/clockView.d.ts +24 -0
  589. package/lib/simport/clockView.js +43 -0
  590. package/lib/simport/clockView.js.map +1 -0
  591. package/lib/simport/commands.d.ts +215 -0
  592. package/lib/simport/commands.js +2 -0
  593. package/lib/simport/commands.js.map +1 -0
  594. package/lib/simport/emergencyReads.d.ts +19 -0
  595. package/lib/simport/emergencyReads.js +47 -0
  596. package/lib/simport/emergencyReads.js.map +1 -0
  597. package/lib/simport/enginePort.d.ts +433 -0
  598. package/lib/simport/enginePort.js +11 -0
  599. package/lib/simport/enginePort.js.map +1 -0
  600. package/lib/simport/fixtures/catalog.classic.json +2137 -0
  601. package/lib/simport/fixtures/catalog.modern.json +2515 -0
  602. package/lib/simport/fixtures/viewLayout.json +927 -0
  603. package/lib/simport/headerClock.d.ts +31 -0
  604. package/lib/simport/headerClock.js +29 -0
  605. package/lib/simport/headerClock.js.map +1 -0
  606. package/lib/simport/panels.d.ts +243 -0
  607. package/lib/simport/panels.js +2 -0
  608. package/lib/simport/panels.js.map +1 -0
  609. package/lib/simport/personCards.d.ts +63 -0
  610. package/lib/simport/personCards.js +55 -0
  611. package/lib/simport/personCards.js.map +1 -0
  612. package/lib/simport/portCodes.d.ts +41 -0
  613. package/lib/simport/portCodes.js +49 -0
  614. package/lib/simport/portCodes.js.map +1 -0
  615. package/lib/simport/portEvents.d.ts +39 -0
  616. package/lib/simport/portEvents.js +43 -0
  617. package/lib/simport/portEvents.js.map +1 -0
  618. package/lib/simport/portRenderSim.d.ts +70 -0
  619. package/lib/simport/portRenderSim.js +129 -0
  620. package/lib/simport/portRenderSim.js.map +1 -0
  621. package/lib/simport/queries.d.ts +64 -0
  622. package/lib/simport/queries.js +30 -0
  623. package/lib/simport/queries.js.map +1 -0
  624. package/lib/simport/recyclingPort.d.ts +13 -0
  625. package/lib/simport/recyclingPort.js +2 -0
  626. package/lib/simport/recyclingPort.js.map +1 -0
  627. package/lib/simport/request.d.ts +44 -0
  628. package/lib/simport/request.js +214 -0
  629. package/lib/simport/request.js.map +1 -0
  630. package/lib/simport/roomTiers.d.ts +102 -0
  631. package/lib/simport/roomTiers.js +122 -0
  632. package/lib/simport/roomTiers.js.map +1 -0
  633. package/lib/simport/scheduleSlots.d.ts +19 -0
  634. package/lib/simport/scheduleSlots.js +87 -0
  635. package/lib/simport/scheduleSlots.js.map +1 -0
  636. package/lib/simport/skyBridgePort.d.ts +20 -0
  637. package/lib/simport/skyBridgePort.js +2 -0
  638. package/lib/simport/skyBridgePort.js.map +1 -0
  639. package/lib/simport/skyBridgeView.d.ts +15 -0
  640. package/lib/simport/skyBridgeView.js +42 -0
  641. package/lib/simport/skyBridgeView.js.map +1 -0
  642. package/lib/simport/statsSheet.d.ts +15 -0
  643. package/lib/simport/statsSheet.js +101 -0
  644. package/lib/simport/statsSheet.js.map +1 -0
  645. package/lib/simport/tdtRecords.d.ts +9 -0
  646. package/lib/simport/tdtRecords.js +112 -0
  647. package/lib/simport/tdtRecords.js.map +1 -0
  648. package/lib/simport/tdtReportFacts.d.ts +110 -0
  649. package/lib/simport/tdtReportFacts.js +8 -0
  650. package/lib/simport/tdtReportFacts.js.map +1 -0
  651. package/lib/simport/trafficPort.d.ts +22 -0
  652. package/lib/simport/trafficPort.js +2 -0
  653. package/lib/simport/trafficPort.js.map +1 -0
  654. package/lib/simport/view.d.ts +275 -0
  655. package/lib/simport/view.js +2 -0
  656. package/lib/simport/view.js.map +1 -0
  657. package/lib/simport/viewReader.d.ts +89 -0
  658. package/lib/simport/viewReader.js +426 -0
  659. package/lib/simport/viewReader.js.map +1 -0
  660. package/lib/styles/game/appearance.css +108 -0
  661. package/lib/styles/game/base.css +68 -0
  662. package/lib/styles/game/components.css +69 -0
  663. package/lib/styles/game/desk-title.css +183 -0
  664. package/lib/styles/game/desk.css +487 -0
  665. package/lib/styles/game/dialogs.css +360 -0
  666. package/lib/styles/game/editor-sidebar.css +116 -0
  667. package/lib/styles/game/elevator-schedule.css +217 -0
  668. package/lib/styles/game/file-dialog.css +470 -0
  669. package/lib/styles/game/help.css +141 -0
  670. package/lib/styles/game/launch-fireworks.css +17 -0
  671. package/lib/styles/game/media-landscape.css +333 -0
  672. package/lib/styles/game/media-phone.css +303 -0
  673. package/lib/styles/game/media-tablet-touch.css +177 -0
  674. package/lib/styles/game/menubar.css +158 -0
  675. package/lib/styles/game/new-tower.css +219 -0
  676. package/lib/styles/game/onboarding.css +32 -0
  677. package/lib/styles/game/screen-saver.css +85 -0
  678. package/lib/styles/game/splash.css +413 -0
  679. package/lib/styles/game/stats-saves.css +106 -0
  680. package/lib/styles/game/tools-stage.css +340 -0
  681. package/lib/styles/game/topbar.css +191 -0
  682. package/lib/styles/menu-bar.css +108 -0
  683. package/lib/styles/not-found.css +335 -0
  684. package/lib/styles/overview-map-views.css +88 -0
  685. package/lib/styles/overview-map.css +195 -0
  686. package/lib/styles/retro-components.css +179 -0
  687. package/lib/styles/retro-page.css +254 -0
  688. package/lib/styles/retro-tokens.css +122 -0
  689. package/lib/styles/schemes/high-contrast.css +173 -0
  690. package/lib/styles/schemes/skyline.css +134 -0
  691. package/lib/styles.css +66 -0
  692. package/lib/ui/desk/deskGeometry.d.ts +59 -0
  693. package/lib/ui/desk/deskGeometry.js +106 -0
  694. package/lib/ui/desk/deskGeometry.js.map +1 -0
  695. package/lib/ui/desk/deskWindow.d.ts +90 -0
  696. package/lib/ui/desk/deskWindow.js +253 -0
  697. package/lib/ui/desk/deskWindow.js.map +1 -0
  698. package/lib/ui/desk/deskWindowMenu.d.ts +55 -0
  699. package/lib/ui/desk/deskWindowMenu.js +143 -0
  700. package/lib/ui/desk/deskWindowMenu.js.map +1 -0
  701. package/lib/ui/escape.d.ts +1 -0
  702. package/lib/ui/escape.js +14 -0
  703. package/lib/ui/escape.js.map +1 -0
  704. package/lib/ui/format.d.ts +14 -0
  705. package/lib/ui/format.js +36 -0
  706. package/lib/ui/format.js.map +1 -0
  707. package/lib/ui/iconPaths.generated.d.ts +4 -0
  708. package/lib/ui/iconPaths.generated.js +68 -0
  709. package/lib/ui/iconPaths.generated.js.map +1 -0
  710. package/lib/ui/icons.d.ts +83 -0
  711. package/lib/ui/icons.js +156 -0
  712. package/lib/ui/icons.js.map +1 -0
  713. package/lib/ui/menuBar.d.ts +94 -0
  714. package/lib/ui/menuBar.js +361 -0
  715. package/lib/ui/menuBar.js.map +1 -0
  716. package/lib/ui/modalPrecedence.d.ts +108 -0
  717. package/lib/ui/modalPrecedence.js +165 -0
  718. package/lib/ui/modalPrecedence.js.map +1 -0
  719. package/lib/ui/movableWindow.d.ts +124 -0
  720. package/lib/ui/movableWindow.js +247 -0
  721. package/lib/ui/movableWindow.js.map +1 -0
  722. package/lib/ui/overviewMapInput.d.ts +109 -0
  723. package/lib/ui/overviewMapInput.js +135 -0
  724. package/lib/ui/overviewMapInput.js.map +1 -0
  725. package/lib/ui/uiModal.d.ts +38 -0
  726. package/lib/ui/uiModal.js +70 -0
  727. package/lib/ui/uiModal.js.map +1 -0
  728. package/lib/wasmhost/buildSection.d.ts +54 -0
  729. package/lib/wasmhost/buildSection.js +143 -0
  730. package/lib/wasmhost/buildSection.js.map +1 -0
  731. package/lib/wasmhost/catalogCheck.d.ts +11 -0
  732. package/lib/wasmhost/catalogCheck.js +43 -0
  733. package/lib/wasmhost/catalogCheck.js.map +1 -0
  734. package/lib/wasmhost/engineAssets.d.ts +57 -0
  735. package/lib/wasmhost/engineAssets.js +63 -0
  736. package/lib/wasmhost/engineAssets.js.map +1 -0
  737. package/lib/wasmhost/engineBoot.d.ts +165 -0
  738. package/lib/wasmhost/engineBoot.js +254 -0
  739. package/lib/wasmhost/engineBoot.js.map +1 -0
  740. package/lib/wasmhost/engineChoice.d.ts +6 -0
  741. package/lib/wasmhost/engineChoice.js +2 -0
  742. package/lib/wasmhost/engineChoice.js.map +1 -0
  743. package/lib/wasmhost/engineDiagnostics.d.ts +66 -0
  744. package/lib/wasmhost/engineDiagnostics.js +189 -0
  745. package/lib/wasmhost/engineDiagnostics.js.map +1 -0
  746. package/lib/wasmhost/engineDiagnosticsLive.d.ts +15 -0
  747. package/lib/wasmhost/engineDiagnosticsLive.js +31 -0
  748. package/lib/wasmhost/engineDiagnosticsLive.js.map +1 -0
  749. package/lib/wasmhost/engineIdentity.d.ts +30 -0
  750. package/lib/wasmhost/engineIdentity.js +59 -0
  751. package/lib/wasmhost/engineIdentity.js.map +1 -0
  752. package/lib/wasmhost/engineLabel.d.ts +40 -0
  753. package/lib/wasmhost/engineLabel.js +50 -0
  754. package/lib/wasmhost/engineLabel.js.map +1 -0
  755. package/lib/wasmhost/engineLoad.d.ts +48 -0
  756. package/lib/wasmhost/engineLoad.js +53 -0
  757. package/lib/wasmhost/engineLoad.js.map +1 -0
  758. package/lib/wasmhost/enginePackageCheck.d.ts +77 -0
  759. package/lib/wasmhost/enginePackageCheck.js +274 -0
  760. package/lib/wasmhost/enginePackageCheck.js.map +1 -0
  761. package/lib/wasmhost/enginePackageNames.d.ts +25 -0
  762. package/lib/wasmhost/enginePackageNames.js +28 -0
  763. package/lib/wasmhost/enginePackageNames.js.map +1 -0
  764. package/lib/wasmhost/enginePackageRecord.d.ts +78 -0
  765. package/lib/wasmhost/enginePackageRecord.js +108 -0
  766. package/lib/wasmhost/enginePackageRecord.js.map +1 -0
  767. package/lib/wasmhost/engineRepair.d.ts +55 -0
  768. package/lib/wasmhost/engineRepair.js +183 -0
  769. package/lib/wasmhost/engineRepair.js.map +1 -0
  770. package/lib/wasmhost/frameView.d.ts +87 -0
  771. package/lib/wasmhost/frameView.js +133 -0
  772. package/lib/wasmhost/frameView.js.map +1 -0
  773. package/lib/wasmhost/hostFault.d.ts +40 -0
  774. package/lib/wasmhost/hostFault.js +94 -0
  775. package/lib/wasmhost/hostFault.js.map +1 -0
  776. package/lib/wasmhost/loadEngineModule.d.ts +79 -0
  777. package/lib/wasmhost/loadEngineModule.js +66 -0
  778. package/lib/wasmhost/loadEngineModule.js.map +1 -0
  779. package/lib/wasmhost/packageHash.d.ts +48 -0
  780. package/lib/wasmhost/packageHash.js +436 -0
  781. package/lib/wasmhost/packageHash.js.map +1 -0
  782. package/lib/wasmhost/rustEngine.d.ts +49 -0
  783. package/lib/wasmhost/rustEngine.js +63 -0
  784. package/lib/wasmhost/rustEngine.js.map +1 -0
  785. package/lib/wasmhost/slotPopulation.d.ts +19 -0
  786. package/lib/wasmhost/slotPopulation.js +69 -0
  787. package/lib/wasmhost/slotPopulation.js.map +1 -0
  788. package/lib/wasmhost/telemetry.d.ts +31 -0
  789. package/lib/wasmhost/telemetry.js +13 -0
  790. package/lib/wasmhost/telemetry.js.map +1 -0
  791. package/package.json +80 -4
@@ -0,0 +1,45 @@
1
+ import { TILE, FLOOR } from '../scale.js';
2
+
3
+ const LIFT_COLOR = "#4fcf86";
4
+ const DRAIN_COLOR = "#a46ad8";
5
+ /** A band's opacity on the venue's own floor; the others fade with it. */
6
+ const BAND_ALPHA = 0.3;
7
+ /** How strong `halo` is `d` floors from its venue, from 1 on its own floor
8
+ * to 0 at its reach, as the engine fades it. */
9
+ function haloStrength(halo, d) {
10
+ return d < 0 || d >= halo.floors ? 0 : 1 - d / halo.floors;
11
+ }
12
+ /** How many floors `f` is from a venue whose lowest story is `floor` and
13
+ * that fills `stories`: 0 on any story it fills, as the engine counts it. */
14
+ function storyDistance(f, floor, stories) {
15
+ return Math.max(floor - f, f - (floor + stories - 1), 0);
16
+ }
17
+ /** Paint `halo`'s rings around a venue placed with its lowest story on
18
+ * `floor`, filling `stories`. */
19
+ function drawHaloRings(ctx, halo, floor, stories, world, view) {
20
+ const color = halo.effect === "lift" ? LIFT_COLOR : DRAIN_COLOR;
21
+ const left = view.worldToScreenX(0);
22
+ const width = world.lotWidth * TILE * view.cam.zoom;
23
+ const height = FLOOR * view.cam.zoom;
24
+ const reach = Math.ceil(halo.floors) - 1;
25
+ const top = Math.min(world.maxFloor, floor + stories - 1 + reach);
26
+ const bottom = Math.max(world.minFloor, floor - reach);
27
+ ctx.fillStyle = color;
28
+ for (let f = bottom; f <= top; f++) {
29
+ const strength = haloStrength(halo, storyDistance(f, floor, stories));
30
+ if (strength <= 0)
31
+ continue;
32
+ ctx.globalAlpha = BAND_ALPHA * strength;
33
+ ctx.fillRect(left, view.worldToScreenY(f), width, height);
34
+ }
35
+ ctx.globalAlpha = 1;
36
+ ctx.strokeStyle = color;
37
+ ctx.lineWidth = 1.5;
38
+ ctx.setLineDash([6, 4]);
39
+ const y = view.worldToScreenY(top);
40
+ ctx.strokeRect(left + 0.5, y + 0.5, width - 1, (top - bottom + 1) * height - 1);
41
+ ctx.setLineDash([]);
42
+ }
43
+
44
+ export { drawHaloRings, haloStrength, storyDistance };
45
+ //# sourceMappingURL=towerHaloRings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"towerHaloRings.js","sources":["../../../src/render/excalibur/towerHaloRings.ts"],"sourcesContent":["import type { CatalogHalo } from \"../../catalog/catalogTypes\";\nimport { FLOOR, TILE } from \"../scale\";\n\n/**\n * The range rings a venue paints while it is being placed (#1980): one band\n * across the lot for every floor its halo reaches, the venue's own stories\n * included, as strong as the engine makes it there (`max * (1 - d / floors)`,\n * from the catalog's halo, with `d` counted from the venue's nearer story),\n * then a dashed outline around the whole reach. A\n * lift paints green, a drain violet. Classic venues have no halo, so nothing\n * is painted there.\n */\n\n/** The overlay's world-to-screen mapping, as `TowerEngine` gives it. */\nexport interface RingView {\n worldToScreenX(x: number): number;\n /** The screen y of the top edge of `floor`. */\n worldToScreenY(floor: number): number;\n readonly cam: { readonly zoom: number };\n}\n\n/** The lot the bands span and the floors they may cover. */\nexport interface RingWorld {\n readonly lotWidth: number;\n readonly minFloor: number;\n readonly maxFloor: number;\n}\n\nconst LIFT_COLOR = \"#4fcf86\";\nconst DRAIN_COLOR = \"#a46ad8\";\n/** A band's opacity on the venue's own floor; the others fade with it. */\nconst BAND_ALPHA = 0.3;\n\n/** How strong `halo` is `d` floors from its venue, from 1 on its own floor\n * to 0 at its reach, as the engine fades it. */\nexport function haloStrength(halo: CatalogHalo, d: number): number {\n return d < 0 || d >= halo.floors ? 0 : 1 - d / halo.floors;\n}\n\n/** How many floors `f` is from a venue whose lowest story is `floor` and\n * that fills `stories`: 0 on any story it fills, as the engine counts it. */\nexport function storyDistance(f: number, floor: number, stories: number): number {\n return Math.max(floor - f, f - (floor + stories - 1), 0);\n}\n\n/** Paint `halo`'s rings around a venue placed with its lowest story on\n * `floor`, filling `stories`. */\nexport function drawHaloRings(\n ctx: CanvasRenderingContext2D,\n halo: CatalogHalo,\n floor: number,\n stories: number,\n world: RingWorld,\n view: RingView,\n): void {\n const color = halo.effect === \"lift\" ? LIFT_COLOR : DRAIN_COLOR;\n const left = view.worldToScreenX(0);\n const width = world.lotWidth * TILE * view.cam.zoom;\n const height = FLOOR * view.cam.zoom;\n const reach = Math.ceil(halo.floors) - 1;\n const top = Math.min(world.maxFloor, floor + stories - 1 + reach);\n const bottom = Math.max(world.minFloor, floor - reach);\n ctx.fillStyle = color;\n for (let f = bottom; f <= top; f++) {\n const strength = haloStrength(halo, storyDistance(f, floor, stories));\n if (strength <= 0) continue;\n ctx.globalAlpha = BAND_ALPHA * strength;\n ctx.fillRect(left, view.worldToScreenY(f), width, height);\n }\n ctx.globalAlpha = 1;\n ctx.strokeStyle = color;\n ctx.lineWidth = 1.5;\n ctx.setLineDash([6, 4]);\n const y = view.worldToScreenY(top);\n ctx.strokeRect(left + 0.5, y + 0.5, width - 1, (top - bottom + 1) * height - 1);\n ctx.setLineDash([]);\n}\n"],"names":[],"mappings":";;AA4BA,MAAM,UAAU,GAAG,SAAS;AAC5B,MAAM,WAAW,GAAG,SAAS;AAC7B;AACA,MAAM,UAAU,GAAG,GAAG;AAEtB;AACiD;AAC3C,SAAU,YAAY,CAAC,IAAiB,EAAE,CAAS,EAAA;IACvD,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM;AAC5D;AAEA;AAC8E;SAC9D,aAAa,CAAC,CAAS,EAAE,KAAa,EAAE,OAAe,EAAA;IACrE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,IAAI,KAAK,GAAG,OAAO,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAC1D;AAEA;AACkC;AAC5B,SAAU,aAAa,CAC3B,GAA6B,EAC7B,IAAiB,EACjB,KAAa,EACb,OAAe,EACf,KAAgB,EAChB,IAAc,EAAA;AAEd,IAAA,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,KAAK,MAAM,GAAG,UAAU,GAAG,WAAW;IAC/D,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;AACnC,IAAA,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI;IACnD,MAAM,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI;AACpC,IAAA,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;AACxC,IAAA,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,GAAG,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC;AACjE,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,CAAC;AACtD,IAAA,GAAG,CAAC,SAAS,GAAG,KAAK;AACrB,IAAA,KAAK,IAAI,CAAC,GAAG,MAAM,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,EAAE;AAClC,QAAA,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;QACrE,IAAI,QAAQ,IAAI,CAAC;YAAE;AACnB,QAAA,GAAG,CAAC,WAAW,GAAG,UAAU,GAAG,QAAQ;AACvC,QAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC;IAC3D;AACA,IAAA,GAAG,CAAC,WAAW,GAAG,CAAC;AACnB,IAAA,GAAG,CAAC,WAAW,GAAG,KAAK;AACvB,IAAA,GAAG,CAAC,SAAS,GAAG,GAAG;IACnB,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACvB,MAAM,CAAC,GAAG,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC;IAClC,GAAG,CAAC,UAAU,CAAC,IAAI,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC;AAC/E,IAAA,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACrB;;"}
@@ -0,0 +1,90 @@
1
+ import * as ex from "excalibur";
2
+ import type { FacilityKind, SerializedView, WeatherKind } from "../../shared/types";
3
+ import type { TowerEngine } from "./TowerEngine";
4
+ /** Pointer input, entity picking, camera control and the audio view-focus for
5
+ * {@link TowerEngine}, as friend functions taking the engine instance
6
+ * (extracted from `TowerEngine.ts`; the class keeps thin delegations and the
7
+ * coordinate transforms these read). */
8
+ /** Camera zoom range (screen px per world px). Lives in shared/viewZoom
9
+ * (VIEW_ZOOM_MIN/MAX: the save schema clamps a restored zoom at the
10
+ * deserialize trust boundary); re-exported under the familiar names. */
11
+ export declare const MIN_ZOOM = 0.06;
12
+ export declare const MAX_ZOOM = 3;
13
+ export interface ViewFocus {
14
+ centerFloor: number;
15
+ dominant: FacilityKind | "outside" | "lobby" | "empty";
16
+ night: boolean;
17
+ /** Camera zoom (world px multiplier): ~0.15 fits a tall tower in frame, 3 is
18
+ * a tight close-up. Audio widens to the "tower overview" bed zoomed out and
19
+ * fades in area detail (crowd, kitchen clatter, elevator dings) up close. */
20
+ zoom: number;
21
+ /** Today's sky weather; drives an outdoor rain layer in the ambient bed. */
22
+ weather: WeatherKind;
23
+ /** Sim clock hour as a float in [0, 24); the ambience layer's workday and
24
+ * evening gates read it (offices type at 10:00, sleep at 03:00). */
25
+ hour: number;
26
+ /** 0..1 live fill of the dominant kind's units in view (occupants vs capacity),
27
+ * falling back to visible crowd density for kinds that track no occupants
28
+ * (lobbies, the street). Drives ambience loudness: empty is near-silent. */
29
+ crowd: number;
30
+ }
31
+ /** What the pointer is over (see pickEntityAt), with its cell: a floor or
32
+ * lobby tile has no id in the view (#1417). */
33
+ export interface Picked {
34
+ type: "unit" | "transport";
35
+ id: number;
36
+ kind: FacilityKind;
37
+ cell?: {
38
+ floor: number;
39
+ x: number;
40
+ };
41
+ }
42
+ export interface ScreenRect {
43
+ x: number;
44
+ y: number;
45
+ w: number;
46
+ h: number;
47
+ }
48
+ export declare function bindInput(engine: TowerEngine): void;
49
+ /** Top-most entity under the point: transports by collider (they overlay units), units by grid. */
50
+ export declare function pickEntityAt(engine: TowerEngine, world: ex.Vector): Picked | null;
51
+ /** Camera policy for a swapped-in (or boot-loaded) tower. A tooling restore
52
+ * keeps the camera (keepCamera), a genuine swap restores the save's own view
53
+ * or else centers, and an undo or redo step keeps the scene and skips this. */
54
+ export declare function adoptCamera(engine: TowerEngine, view: SerializedView | null, keepCamera?: boolean): void;
55
+ export declare function pan(engine: TowerEngine, dxScreen: number, dyScreen: number): void;
56
+ export declare function zoomAt(engine: TowerEngine, factor: number, sx: number, sy: number): void;
57
+ /** The tower-aware zoom-out floor for the CURRENT tower and viewport: a pinch
58
+ * or wheel can pull back until the whole built tower plus a breath of sky fits,
59
+ * then stops, rather than drifting into empty void. Recomputed per gesture as
60
+ * the tower grows and the viewport resizes. Basements count (highest floor to
61
+ * lowest), so a deep tower frames its cellars too. See {@link fitZoom}. */
62
+ export declare function dynamicMinZoom(engine: TowerEngine): number;
63
+ /** Clamp a gesture-driven zoom to `[effectiveMin, MAX_ZOOM]`. The static
64
+ * {@link clampZoom} (trust-boundary floor) still guards the save-restore path
65
+ * in {@link setCamera}; the tighter tower-aware floor applies only to live
66
+ * pinch/wheel/keyboard zoom so the player can't zoom out past their tower.
67
+ *
68
+ * The floor only ever stops further zoom-OUT; it must never FORCE a zoom-in.
69
+ * The camera can legitimately sit below the current floor after a rotation or a
70
+ * cross-device save set on another viewport, and snapping it inward on the next
71
+ * pinch reads as the camera fighting the player. So the effective floor drops to
72
+ * the current zoom when the camera is already below `lo`: no further zoom-out,
73
+ * free zoom-in, and the tower-aware floor re-engages once back above it. */
74
+ export declare function clampGestureZoom(engine: TowerEngine, z: number): number;
75
+ export declare function center(engine: TowerEngine): void;
76
+ /** The live camera as save-file cargo: center in grid units plus zoom (the exact
77
+ * inverse of {@link applyView}, so a same-device round trip is lossless).
78
+ * Stamped onto the sim by the UI layer right before a save. */
79
+ export declare function viewState(engine: TowerEngine): SerializedView;
80
+ /** Restore a saved view. Zoom is optional (a TDT import has none): absent, the
81
+ * session's current zoom stays. Everything funnels through setCamera's clampZoom
82
+ * and clamp() so a view from another device (or forged) is re-bounded here. */
83
+ export declare function applyView(engine: TowerEngine, v: SerializedView): void;
84
+ /** Zoom by a factor about the current center (keyboard +/- zoom). */
85
+ export declare function zoomBy(engine: TowerEngine, factor: number): void;
86
+ /** Pan the camera the minimum amount so tile/floor sits within the viewport
87
+ * (with a margin), used to follow the keyboard build cursor. */
88
+ export declare function ensureVisible(engine: TowerEngine, tile: number, floor: number): void;
89
+ export declare function setCamera(engine: TowerEngine, tileX: number, floor: number, zoom: number): void;
90
+ export declare function focus(engine: TowerEngine): ViewFocus;
@@ -0,0 +1,480 @@
1
+ import * as ex from 'excalibur';
2
+ import { viewWorld } from '../../presentation/viewWorld.js';
3
+ import { findCatalogFacility } from '../../catalog/catalogTypes.js';
4
+ import { VIEW_ZOOM_MIN, VIEW_ZOOM_MAX } from '../../shared/viewZoom.js';
5
+ import { wheelZoomDelta } from '../../shared/inputEvents.js';
6
+ import { fitZoom, clampCameraY } from '../cameraBounds.js';
7
+ import { stablePointerId } from '../pinchTracker.js';
8
+ import { FLOOR, TILE } from '../scale.js';
9
+ import { crowdCullNext } from './crowdCull.js';
10
+ import { finishLongPress, armLongPress, cancelLongPressOnMove } from './longPress.js';
11
+ import { isUnusedMouseButton, isFirstContact, cancelPress, endPress, movesWithButtonUp } from './pressLifecycle.js';
12
+ import { towerCatalog } from '../../catalog/towerCatalog.js';
13
+
14
+ /** Pointer input, entity picking, camera control and the audio view-focus for
15
+ * {@link TowerEngine}, as friend functions taking the engine instance
16
+ * (extracted from `TowerEngine.ts`; the class keeps thin delegations and the
17
+ * coordinate transforms these read). */
18
+ /** Camera zoom range (screen px per world px). Lives in shared/viewZoom
19
+ * (VIEW_ZOOM_MIN/MAX: the save schema clamps a restored zoom at the
20
+ * deserialize trust boundary); re-exported under the familiar names. */
21
+ const MIN_ZOOM = VIEW_ZOOM_MIN;
22
+ const MAX_ZOOM = VIEW_ZOOM_MAX;
23
+ const clampZoom = (z) => (Number.isFinite(z) ? Math.max(MIN_ZOOM, Math.min(MAX_ZOOM, z)) : MIN_ZOOM);
24
+ /** Movement value far above every tap-slop threshold. Assigned to `moved` when
25
+ * a pinch hands off to one surviving finger, so its release can't tap-place. */
26
+ const TAP_SLOP_POISON = 1e6;
27
+ function buttonNum(ev) {
28
+ if (ev.button === ex.PointerButton.Middle)
29
+ return 1;
30
+ if (ev.button === ex.PointerButton.Right)
31
+ return 2;
32
+ return 0;
33
+ }
34
+ // ---- Input (Excalibur pointer system) ----------------------------------
35
+ function tf(ev) {
36
+ return worldToCell(ev.worldPos);
37
+ }
38
+ /** World point → grid cell, the single inverse of worldX/worldYTop, shared by
39
+ * pointer handling and the pick fallback so the two can't drift. */
40
+ function worldToCell(world) {
41
+ return { tile: Math.floor(world.x / TILE), floor: Math.ceil(-world.y / FLOOR) };
42
+ }
43
+ function bindInput(engine) {
44
+ const ptr = engine.engine.input.pointers;
45
+ ptr.on("down", (ev) => pointerDown(engine, ev));
46
+ ptr.on("move", (ev) => pointerMove(engine, ev));
47
+ ptr.on("up", (ev) => pointerUp(engine, ev, "release"));
48
+ // A canceled pointer (the OS took the touch) ends its gesture without acting.
49
+ ptr.on("cancel", (ev) => pointerUp(engine, ev, "cancel"));
50
+ ptr.on("wheel", (ev) => {
51
+ const w = ev;
52
+ // The native deltas, as Excalibur's own deltaY zooms on a sideways swipe; under Shift, deltaX zooms.
53
+ const n = (w.ev ?? {});
54
+ const d = wheelZoomDelta({ deltaX: n.deltaX ?? w.deltaX, deltaY: n.deltaY ?? w.deltaY, shiftKey: n.shiftKey });
55
+ if (d === 0)
56
+ return;
57
+ zoomAt(engine, d < 0 ? 1.12 : 0.89, w.x, w.y);
58
+ });
59
+ }
60
+ /** Top-most entity under the point: transports by collider (they overlay units), units by grid. */
61
+ function pickEntityAt(engine, world) {
62
+ let best = null;
63
+ let bestZ = -Infinity;
64
+ for (const [id, a] of engine.transportActors) {
65
+ if (a.z >= bestZ && a.contains(world.x, world.y)) {
66
+ const t = engine.sim.tower.getTransport(id);
67
+ if (t) {
68
+ best = { type: "transport", id, kind: t.kind };
69
+ bestZ = a.z;
70
+ }
71
+ }
72
+ }
73
+ // Every unit kind resolves by grid lookup: the tile index is
74
+ // footprint-complete and rooms sit below transports, so one O(1) unitAt
75
+ // matches the old O(rooms) actor scan, free of the render's actor model.
76
+ if (!best) {
77
+ const { tile, floor } = worldToCell(world);
78
+ const u = engine.sim.tower.unitAt(floor, tile);
79
+ if (u)
80
+ best = { type: "unit", id: u.id, kind: u.kind, cell: { floor, x: tile } };
81
+ }
82
+ return best;
83
+ }
84
+ function pointerDown(engine, ev) {
85
+ if (isUnusedMouseButton(ev))
86
+ return; // a side button is no press (#2073)
87
+ // A primary press while a press is still open: that one lost its release (#1014).
88
+ if (isFirstContact(ev.nativeEvent))
89
+ cancelPress(engine);
90
+ const contact = engine.tracker.down(stablePointerId(ev.pointerId, ev.nativeEvent), ev.screenPos.x, ev.screenPos.y);
91
+ if (contact === "pinch-start") {
92
+ // A second finger is a camera gesture: end the press it interrupts (an
93
+ // extend drag pointerMove would resume with a jump, a pending or showing
94
+ // peek, a tool press that never releases), so the pinch takes over and the
95
+ // survivor's release seeds a pan, never a swallowed tap.
96
+ endPress(engine);
97
+ engine.preview = null;
98
+ engine.transportPreview = null;
99
+ return;
100
+ }
101
+ if (contact === "pinch-extra")
102
+ return;
103
+ // lastSx/lastSy advance with a pan; downSx/downSy stay at the press origin.
104
+ engine.lastSx = engine.downSx = ev.screenPos.x;
105
+ engine.lastSy = engine.downSy = ev.screenPos.y;
106
+ engine.moved = 0;
107
+ finishLongPress(engine); // an orphaned peek (lost release) dismisses its card, not just the latch
108
+ const touch = ev.pointerType === "Touch";
109
+ engine.downTouch = touch;
110
+ // Pan key: the game's Space hold (spacePanKey) as this press went down, or Shift alone (Ctrl+Shift
111
+ // or Cmd+Shift is the three-story lobby, #308). Down-only: releasing it mid-drag keeps the pan.
112
+ const native = ev.nativeEvent;
113
+ const panKey = engine.spacePanKey?.(native) === true || (native?.shiftKey === true && !native.ctrlKey && !native.metaKey);
114
+ // Left-click on a selected elevator's extend arrow grows the shaft. A held
115
+ // pan key skips the arrow: the modifier promises the drag only pans.
116
+ if (buttonNum(ev) === 0 && !panKey && engine.onExtendTo) {
117
+ const ps = ev.screenPos;
118
+ const inRect = (r) => !!r && ps.x >= r.x && ps.x <= r.x + r.w && ps.y >= r.y && ps.y <= r.y + r.h;
119
+ let end = null;
120
+ if (inRect(engine.arrowHit.up))
121
+ end = "up";
122
+ else if (inRect(engine.arrowHit.down))
123
+ end = "down";
124
+ if (end) {
125
+ // A plain click extends one floor (on pointer-up); a drag goes floor-by-floor.
126
+ engine.arrowDrag = { end, shaft: engine.selectedId };
127
+ engine.gesture = null;
128
+ return;
129
+ }
130
+ }
131
+ // Right-click always inspects under the cursor; it never pans or builds.
132
+ if (buttonNum(ev) === 2 && engine.onSecondary) {
133
+ engine.onSecondary(pickEntityAt(engine, ev.worldPos));
134
+ engine.gesture = null;
135
+ return;
136
+ }
137
+ engine.gesture = engine.classifyDown ? engine.classifyDown(buttonNum(ev), touch, panKey) : "pan";
138
+ const { tile, floor } = tf(ev);
139
+ const picked = pickEntityAt(engine, ev.worldPos);
140
+ if (engine.gesture === "action")
141
+ engine.onActionDown?.(tile, floor, touch, picked);
142
+ // A held touch peeks the facility under the finger with any tool armed: the
143
+ // hold fires only in the pre-movement window no tool's one-finger drag uses,
144
+ // so the first move past slop hands the gesture back to the tool.
145
+ armLongPress(engine, tile, floor, picked, touch);
146
+ }
147
+ function pointerMove(engine, ev) {
148
+ const pid = stablePointerId(ev.pointerId, ev.nativeEvent);
149
+ // The pressing mouse back with its button up let go off the canvas (#1014).
150
+ if (engine.tracker.tracks(pid) && movesWithButtonUp(ev.nativeEvent))
151
+ cancelPress(engine);
152
+ const mv = engine.tracker.move(pid, ev.screenPos.x, ev.screenPos.y);
153
+ if (engine.tracker.pinching) {
154
+ if (mv) {
155
+ // Two fingers translate the camera by their midpoint delta (pan) AND
156
+ // scale by their distance ratio (zoom): the standard map gesture.
157
+ pan(engine, mv.panDx, mv.panDy);
158
+ if (mv.zoom !== 1)
159
+ zoomAt(engine, mv.zoom, mv.cx, mv.cy);
160
+ }
161
+ return;
162
+ }
163
+ // Only the pointer that pressed drives from here on: a hovering mouse
164
+ // (hybrid hardware) moves without pressing, and letting it through would
165
+ // cancel a touch's pending peek or drive its gesture at the mouse position.
166
+ if (engine.tracker.size > 0 && !engine.tracker.tracks(pid))
167
+ return;
168
+ // A drag lives as long as its shaft's selection: another pick ends it (#1014).
169
+ if (engine.arrowDrag && engine.arrowDrag.shaft !== engine.selectedId)
170
+ cancelPress(engine);
171
+ if (engine.arrowDrag) {
172
+ engine.moved += Math.abs(ev.screenPos.y - engine.lastSy);
173
+ engine.lastSy = ev.screenPos.y;
174
+ engine.onExtendTo?.(engine.arrowDrag.end, engine.screenToFloor(ev.screenPos.y));
175
+ return;
176
+ }
177
+ // A fired peek is an absorbing state: it owns the gesture to release, so a
178
+ // move neither pans nor re-drives the tool (that would strand a re-armed ghost
179
+ // or paint tiles with no undo capture open).
180
+ if (engine.longPressFired)
181
+ return;
182
+ // While a peek is still PENDING, a within-slop jitter must not drive the tool
183
+ // (TILE 11 < slop 14, so a jitter can cross a tile and a paint tool would seed
184
+ // a stray strip). A past-slop move clears the timer first, then drives normally.
185
+ cancelLongPressOnMove(engine, ev.screenPos.x, ev.screenPos.y);
186
+ if (engine.longPressTimer !== null)
187
+ return;
188
+ const { tile, floor } = tf(ev);
189
+ if (engine.gesture === "pan") {
190
+ const dx = ev.screenPos.x - engine.lastSx;
191
+ const dy = ev.screenPos.y - engine.lastSy;
192
+ engine.moved += Math.abs(dx) + Math.abs(dy);
193
+ pan(engine, dx, dy);
194
+ engine.lastSx = ev.screenPos.x;
195
+ engine.lastSy = ev.screenPos.y;
196
+ }
197
+ else if (engine.gesture === "action") {
198
+ engine.onActionMove?.(tile, floor, pickEntityAt(engine, ev.worldPos));
199
+ }
200
+ else if (ev.pointerType !== "Touch") {
201
+ // Hover is a mouse/pen concept. A touch move reaches here only in odd
202
+ // gestureless states; letting it hover would strand a build-preview ghost
203
+ // that no later touch event clears.
204
+ engine.onHover?.(tile, floor, pickEntityAt(engine, ev.worldPos));
205
+ }
206
+ }
207
+ function pointerUp(engine, ev, how) {
208
+ if (isUnusedMouseButton(ev))
209
+ return; // nor its release (#2073)
210
+ const pid = stablePointerId(ev.pointerId, ev.nativeEvent);
211
+ // Same ownership rule as pointerMove: a release from a pointer that never
212
+ // pressed here (a mouse press begun off-canvas) must not end the tracked
213
+ // contact's peek or fire its gesture at the mouse position.
214
+ if (engine.tracker.size > 0 && !engine.tracker.tracks(pid))
215
+ return;
216
+ const r = engine.tracker.up(pid);
217
+ // A release that ends a fired peek dismisses it and swallows the tap/action.
218
+ if (finishLongPress(engine))
219
+ return;
220
+ if (r.pinch === "continues") {
221
+ engine.gesture = null;
222
+ return;
223
+ }
224
+ if (r.pinch === "ended") {
225
+ if (r.survivor) {
226
+ // Hand the survivor a pan continuation: seed from its tracked position
227
+ // and poison the tap slop so its release can't tap-place.
228
+ engine.gesture = "pan";
229
+ engine.lastSx = r.survivor.x;
230
+ engine.lastSy = r.survivor.y;
231
+ engine.moved = TAP_SLOP_POISON;
232
+ }
233
+ else {
234
+ engine.gesture = null;
235
+ }
236
+ return;
237
+ }
238
+ if (engine.arrowDrag) {
239
+ // A press without a drag extends a single floor.
240
+ if (engine.moved < 5 && how === "release") {
241
+ const t = engine.selectedId == null ? undefined : engine.sim.tower.getTransport(engine.selectedId);
242
+ if (t) {
243
+ const target = engine.arrowDrag.end === "up" ? t.top + 1 : t.bottom - 1;
244
+ engine.onExtendTo?.(engine.arrowDrag.end, target);
245
+ }
246
+ }
247
+ engine.onExtendEnd?.();
248
+ engine.arrowDrag = null;
249
+ engine.gesture = null;
250
+ return;
251
+ }
252
+ const { tile, floor } = tf(ev);
253
+ if (engine.gesture === "pan") {
254
+ // Touch taps jitter more than mouse clicks, so allow a larger slop.
255
+ if (engine.moved < (engine.downTouch ? 14 : 5) && how === "release") {
256
+ engine.onTap?.(tile, floor, ev.pointerType === "Touch", pickEntityAt(engine, ev.worldPos), ev.worldPos);
257
+ }
258
+ }
259
+ else if (engine.gesture === "action") {
260
+ if (how === "cancel")
261
+ engine.onActionCancel?.();
262
+ else
263
+ engine.onActionUp?.(tile, floor, pickEntityAt(engine, ev.worldPos));
264
+ }
265
+ engine.gesture = null;
266
+ }
267
+ /** Camera policy for a swapped-in (or boot-loaded) tower. A tooling restore
268
+ * keeps the camera (keepCamera), a genuine swap restores the save's own view
269
+ * or else centers, and an undo or redo step keeps the scene and skips this. */
270
+ function adoptCamera(engine, view, keepCamera) {
271
+ if (keepCamera)
272
+ return;
273
+ if (view)
274
+ engine.applyView(view);
275
+ else
276
+ engine.center();
277
+ }
278
+ // ---- Camera control (Excalibur camera) ----------------------------------
279
+ function pan(engine, dxScreen, dyScreen) {
280
+ engine.cam.pos = ex.vec(engine.cam.pos.x - dxScreen / engine.cam.zoom, engine.cam.pos.y - dyScreen / engine.cam.zoom);
281
+ clamp(engine);
282
+ }
283
+ function zoomAt(engine, factor, sx, sy) {
284
+ const before = engine.screenToWorld(sx, sy);
285
+ engine.cam.zoom = clampGestureZoom(engine, engine.cam.zoom * factor);
286
+ const after = engine.screenToWorld(sx, sy);
287
+ engine.cam.pos = ex.vec(engine.cam.pos.x + (before.x - after.x), engine.cam.pos.y + (before.y - after.y));
288
+ clamp(engine);
289
+ }
290
+ /** The tower-aware zoom-out floor for the CURRENT tower and viewport: a pinch
291
+ * or wheel can pull back until the whole built tower plus a breath of sky fits,
292
+ * then stops, rather than drifting into empty void. Recomputed per gesture as
293
+ * the tower grows and the viewport resizes. Basements count (highest floor to
294
+ * lowest), so a deep tower frames its cellars too. See {@link fitZoom}. */
295
+ function dynamicMinZoom(engine) {
296
+ const span = engine.sim.tower.highestFloor - engine.sim.tower.lowestFloor + 1;
297
+ return fitZoom(engine.viewHeight, span, FLOOR, MIN_ZOOM);
298
+ }
299
+ /** Clamp a gesture-driven zoom to `[effectiveMin, MAX_ZOOM]`. The static
300
+ * {@link clampZoom} (trust-boundary floor) still guards the save-restore path
301
+ * in {@link setCamera}; the tighter tower-aware floor applies only to live
302
+ * pinch/wheel/keyboard zoom so the player can't zoom out past their tower.
303
+ *
304
+ * The floor only ever stops further zoom-OUT; it must never FORCE a zoom-in.
305
+ * The camera can legitimately sit below the current floor after a rotation or a
306
+ * cross-device save set on another viewport, and snapping it inward on the next
307
+ * pinch reads as the camera fighting the player. So the effective floor drops to
308
+ * the current zoom when the camera is already below `lo`: no further zoom-out,
309
+ * free zoom-in, and the tower-aware floor re-engages once back above it. */
310
+ function clampGestureZoom(engine, z) {
311
+ const lo = dynamicMinZoom(engine);
312
+ const cur = engine.cam.zoom;
313
+ const effectiveLo = Number.isFinite(cur) && cur < lo ? cur : lo;
314
+ return Number.isFinite(z) ? Math.max(effectiveLo, Math.min(MAX_ZOOM, z)) : effectiveLo;
315
+ }
316
+ function clamp(engine) {
317
+ const x = Math.max(0, Math.min(viewWorld().lotWidth * TILE, engine.cam.pos.x));
318
+ // Zoom-aware vertical clamp on the visible top/bottom edges, so zooming out
319
+ // never shows void below the deepest basement. See {@link clampCameraY}.
320
+ const y = clampCameraY(engine.cam.pos.y, engine.viewHeight, engine.cam.zoom, FLOOR, viewWorld().minFloor, viewWorld().maxFloor);
321
+ engine.cam.pos = ex.vec(x, y);
322
+ }
323
+ function center(engine) {
324
+ const hi = engine.sim.tower.highestFloor;
325
+ engine.cam.pos = ex.vec((viewWorld().lotWidth / 2) * TILE, -(Math.max(6, hi) / 2) * FLOOR);
326
+ }
327
+ /** The live camera as save-file cargo: center in grid units plus zoom (the exact
328
+ * inverse of {@link applyView}, so a same-device round trip is lossless).
329
+ * Stamped onto the sim by the UI layer right before a save. */
330
+ function viewState(engine) {
331
+ return { tile: engine.cam.pos.x / TILE, floor: -engine.cam.pos.y / FLOOR, zoom: engine.cam.zoom };
332
+ }
333
+ /** Restore a saved view. Zoom is optional (a TDT import has none): absent, the
334
+ * session's current zoom stays. Everything funnels through setCamera's clampZoom
335
+ * and clamp() so a view from another device (or forged) is re-bounded here. */
336
+ function applyView(engine, v) {
337
+ engine.setCamera(v.tile, v.floor, v.zoom ?? engine.cam.zoom);
338
+ clamp(engine);
339
+ }
340
+ /** Zoom by a factor about the current center (keyboard +/- zoom). */
341
+ function zoomBy(engine, factor) {
342
+ engine.cam.zoom = clampGestureZoom(engine, engine.cam.zoom * factor);
343
+ clamp(engine); // bound both axes, same as pointer zoom
344
+ }
345
+ /** Pan the camera the minimum amount so tile/floor sits within the viewport
346
+ * (with a margin), used to follow the keyboard build cursor. */
347
+ function ensureVisible(engine, tile, floor) {
348
+ const wx = tile * TILE;
349
+ const wy = -floor * FLOOR;
350
+ const halfW = engine.viewWidth / 2 / engine.cam.zoom;
351
+ const halfH = engine.viewHeight / 2 / engine.cam.zoom;
352
+ const mx = TILE * 3;
353
+ const my = FLOOR * 1.5;
354
+ let px = engine.cam.pos.x;
355
+ let py = engine.cam.pos.y;
356
+ if (wx < px - halfW + mx)
357
+ px = wx + halfW - mx;
358
+ else if (wx > px + halfW - mx)
359
+ px = wx - halfW + mx;
360
+ if (wy < py - halfH + my)
361
+ py = wy + halfH - my;
362
+ else if (wy > py + halfH - my)
363
+ py = wy - halfH + my;
364
+ engine.cam.pos = ex.vec(px, py);
365
+ clamp(engine); // bound both axes, same as pointer pan
366
+ }
367
+ function setCamera(engine, tileX, floor, zoom) {
368
+ // Validate zoom: the vertical clamp divides by zoom, so a zero/negative/NaN
369
+ // here would poison later pan/zoom math.
370
+ engine.cam.zoom = clampZoom(zoom);
371
+ engine.cam.pos = ex.vec(tileX * TILE, -floor * FLOOR);
372
+ }
373
+ // ---- Audio focus --------------------------------------------------------
374
+ /** Census cache per engine: the occupancy tally refreshes at most once per second
375
+ * (the GDD's cap), while the cheap dominant/zoom/clock reads stay per call. Keyed
376
+ * weakly so a torn-down engine drops its entry. */
377
+ const censusCache = new WeakMap();
378
+ const CENSUS_REFRESH_MS = 1000;
379
+ function censusCrowd(engine, dominant, bounds, seen) {
380
+ let occ = 0;
381
+ let cap = 0;
382
+ if (dominant !== "empty" && dominant !== "outside") {
383
+ for (const u of engine.sim.tower.units) {
384
+ if (u.kind !== dominant)
385
+ continue;
386
+ if (u.floor < bounds.f0 || u.floor > bounds.f1)
387
+ continue;
388
+ if (u.x + u.width < bounds.t0 || u.x > bounds.t1)
389
+ continue;
390
+ const def = findCatalogFacility(towerCatalog(engine.sim), u.kind);
391
+ if (!def)
392
+ continue; // a kind the catalog no longer knows: skip, never throw
393
+ const unitCap = def.population > 0 ? def.population : (def.attendance ?? 0);
394
+ if (unitCap > 0) {
395
+ // Population>0 commercial venues read `customersIn` (the routed-
396
+ // customer tally; a shop still draws its full population while open).
397
+ // Attendance venues (cinema, party hall) mirror `customersIn` into
398
+ // `occupants`, and every other kind owns `occupants` via
399
+ // updatePresence, so both read it.
400
+ // (`customersIn` is not persisted: just after a save load a busy venue
401
+ // reads empty for the seconds the crowd system takes to re-route diners
402
+ // in. That is honest and self-heals, so nothing tracks it.)
403
+ occ += def.commercial && def.population > 0 ? (u.customersIn ?? 0) : (u.occupants ?? 0);
404
+ cap += unitCap;
405
+ }
406
+ }
407
+ }
408
+ if (cap > 0)
409
+ return { crowd: Math.min(1, Math.max(0, occ / cap)), seen };
410
+ // Judged as the frame's people window is (`frameWindow`), from this frame's zoom.
411
+ if (crowdCullNext(engine.cam.zoom, engine.crowdCulled))
412
+ return { crowd: seen, seen };
413
+ let visible = 0;
414
+ for (const p of engine.sim.crowd.people) {
415
+ if (p.floor < bounds.f0 || p.floor > bounds.f1)
416
+ continue;
417
+ if (p.x < bounds.t0 || p.x > bounds.t1)
418
+ continue;
419
+ visible++;
420
+ }
421
+ return { crowd: Math.min(1, visible / 24), seen: Math.min(1, visible / 24) };
422
+ }
423
+ function focus(engine) {
424
+ const centerFloor = engine.screenToFloor(engine.viewHeight / 2);
425
+ const night = engine.sim.clock.isNight();
426
+ const t0 = engine.screenToTile(engine.viewWidth * 0.3);
427
+ const t1 = engine.screenToTile(engine.viewWidth * 0.7);
428
+ const f0 = engine.screenToFloor(engine.viewHeight * 0.7);
429
+ const f1 = engine.screenToFloor(engine.viewHeight * 0.3);
430
+ const tally = new Map();
431
+ for (const u of engine.sim.tower.units) {
432
+ if (u.floor < f0 || u.floor > f1)
433
+ continue;
434
+ if (u.x + u.width < t0 || u.x > t1)
435
+ continue;
436
+ tally.set(u.kind, (tally.get(u.kind) ?? 0) + u.width);
437
+ }
438
+ let dominant = "empty";
439
+ let best = 0;
440
+ for (const [k, v] of tally) {
441
+ if (k === "floor")
442
+ continue;
443
+ if (v > best) {
444
+ best = v;
445
+ dominant = k === "lobby" ? "lobby" : k;
446
+ }
447
+ }
448
+ if (dominant === "empty" && centerFloor <= 0)
449
+ dominant = "outside";
450
+ // The occupancy walk refreshes at most once per second (or when the dominant
451
+ // kind changes, so a pan onto a new venue reads immediately); ambience ramps
452
+ // slowly, so a 1 s census is plenty. Use a monotonic clock (`performance.now()`,
453
+ // else `Date.now()`): a constant 0 would freeze `now - cached.at` forever.
454
+ const now = typeof performance !== "undefined" && typeof performance.now === "function"
455
+ ? performance.now()
456
+ : Date.now();
457
+ const cached = censusCache.get(engine);
458
+ let crowd;
459
+ if (cached && cached.dominant === dominant && now - cached.at < CENSUS_REFRESH_MS) {
460
+ crowd = cached.crowd;
461
+ }
462
+ else {
463
+ const census = censusCrowd(engine, dominant, { t0, t1, f0, f1 }, cached?.seen ?? 0);
464
+ crowd = census.crowd;
465
+ censusCache.set(engine, { at: now, dominant, crowd, seen: census.seen });
466
+ }
467
+ const hour = engine.sim.clock.minuteOfDay / 60;
468
+ return {
469
+ centerFloor,
470
+ dominant,
471
+ night,
472
+ zoom: engine.cam.zoom,
473
+ weather: engine.sim.weather,
474
+ hour,
475
+ crowd,
476
+ };
477
+ }
478
+
479
+ export { MAX_ZOOM, MIN_ZOOM, adoptCamera, applyView, bindInput, center, clampGestureZoom, dynamicMinZoom, ensureVisible, focus, pan, pickEntityAt, setCamera, viewState, zoomAt, zoomBy };
480
+ //# sourceMappingURL=towerInputCamera.js.map