@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,40 @@
1
+ import { type Catalog } from "../../catalog/catalogTypes";
2
+ import type { UnitView } from "../../simport/view";
3
+ import type { FacilityKind } from "../../shared/types";
4
+ /**
5
+ * Pure layout math for the decorative passer-by builder in {@link buildWalkers}.
6
+ * These helpers take plain values (no Excalibur canvas bake), so the placement
7
+ * rules are unit-tested here on their own.
8
+ */
9
+ /** The x-spans of the UPPER stories of every multi-floor facility (cinema,
10
+ * party hall, recycling, metro), keyed by floor row. Those rows still carry the
11
+ * facility's floor lots, but an ambient walker placed there would stand on the
12
+ * facility's mid-line and float above its real floor, so `buildWalkers` drops
13
+ * these lots from its runs. */
14
+ export declare function coveredUpperStories(units: readonly UnitView[], catalog: Catalog): Map<number, Array<[number, number]>>;
15
+ /** True if lot `x` on `floor` sits inside a covered upper-story span (the
16
+ * half-open `[a, b)` of a multi-floor facility), so `buildWalkers` skips it. */
17
+ export declare function lotCovered(rows: Map<number, Array<[number, number]>>, floor: number, x: number): boolean;
18
+ /** How many tiles either side of an elevator shaft stay clear of decorative
19
+ * passers-by on every floor it serves: the landing, where the engine's
20
+ * waiting riders queue (#2091). About six riders at the engine's queue
21
+ * spacing. */
22
+ export declare const ELEVATOR_LANDING_TILES = 6;
23
+ /** Tiles either side of a stair or escalator footprint that stay clear. */
24
+ export declare const FLIGHT_LANDING_TILES = 1;
25
+ /** Tiles either side of a shop, restaurant or other commercial room that stay
26
+ * clear: its front, where customers come and go. */
27
+ export declare const SHOP_FRONT_TILES = 2;
28
+ interface TrafficTransport {
29
+ readonly kind: FacilityKind;
30
+ readonly x: number;
31
+ readonly width: number;
32
+ readonly bottom: number;
33
+ readonly top: number;
34
+ }
35
+ /** The lots, keyed by floor, where a player reads real traffic: every elevator
36
+ * landing, stair and escalator landing, and commercial front (#2091). A
37
+ * decorative passer-by must never stand on one, since it would look like a
38
+ * person the engine knows about, waiting where real queues form. */
39
+ export declare function trafficLots(transports: readonly TrafficTransport[], units: readonly UnitView[], catalog: Catalog): Map<number, Set<number>>;
40
+ export {};
@@ -0,0 +1,77 @@
1
+ import { catalogFacility } from '../../catalog/catalogTypes.js';
2
+
3
+ /**
4
+ * Pure layout math for the decorative passer-by builder in {@link buildWalkers}.
5
+ * These helpers take plain values (no Excalibur canvas bake), so the placement
6
+ * rules are unit-tested here on their own.
7
+ */
8
+ /** The x-spans of the UPPER stories of every multi-floor facility (cinema,
9
+ * party hall, recycling, metro), keyed by floor row. Those rows still carry the
10
+ * facility's floor lots, but an ambient walker placed there would stand on the
11
+ * facility's mid-line and float above its real floor, so `buildWalkers` drops
12
+ * these lots from its runs. */
13
+ function coveredUpperStories(units, catalog) {
14
+ const rows = new Map();
15
+ for (const u of units) {
16
+ const span = catalogFacility(catalog, u.kind).floors;
17
+ if (span <= 1)
18
+ continue;
19
+ for (let k = 1; k < span; k++) {
20
+ const row = u.floor + k;
21
+ let spans = rows.get(row);
22
+ if (!spans)
23
+ rows.set(row, (spans = []));
24
+ spans.push([u.x, u.x + u.width]);
25
+ }
26
+ }
27
+ return rows;
28
+ }
29
+ /** True if lot `x` on `floor` sits inside a covered upper-story span (the
30
+ * half-open `[a, b)` of a multi-floor facility), so `buildWalkers` skips it. */
31
+ function lotCovered(rows, floor, x) {
32
+ const spans = rows.get(floor);
33
+ if (!spans)
34
+ return false;
35
+ for (const [a, b] of spans)
36
+ if (x >= a && x < b)
37
+ return true;
38
+ return false;
39
+ }
40
+ /** How many tiles either side of an elevator shaft stay clear of decorative
41
+ * passers-by on every floor it serves: the landing, where the engine's
42
+ * waiting riders queue (#2091). About six riders at the engine's queue
43
+ * spacing. */
44
+ const ELEVATOR_LANDING_TILES = 6;
45
+ /** Tiles either side of a stair or escalator footprint that stay clear. */
46
+ const FLIGHT_LANDING_TILES = 1;
47
+ /** Tiles either side of a shop, restaurant or other commercial room that stay
48
+ * clear: its front, where customers come and go. */
49
+ const SHOP_FRONT_TILES = 2;
50
+ /** The lots, keyed by floor, where a player reads real traffic: every elevator
51
+ * landing, stair and escalator landing, and commercial front (#2091). A
52
+ * decorative passer-by must never stand on one, since it would look like a
53
+ * person the engine knows about, waiting where real queues form. */
54
+ function trafficLots(transports, units, catalog) {
55
+ const lots = new Map();
56
+ const keep = (floor, x0, x1) => {
57
+ let row = lots.get(floor);
58
+ if (!row)
59
+ lots.set(floor, (row = new Set()));
60
+ for (let x = x0; x <= x1; x++)
61
+ row.add(x);
62
+ };
63
+ for (const t of transports) {
64
+ // An elevator is the transport with cars (the same test as isElevatorKind).
65
+ const margin = catalogFacility(catalog, t.kind).maxCars !== null ? ELEVATOR_LANDING_TILES : FLIGHT_LANDING_TILES;
66
+ for (let f = t.bottom; f <= t.top; f++)
67
+ keep(f, t.x - margin, t.x + t.width - 1 + margin);
68
+ }
69
+ for (const u of units) {
70
+ if (catalogFacility(catalog, u.kind).commercial)
71
+ keep(u.floor, u.x - SHOP_FRONT_TILES, u.x + u.width - 1 + SHOP_FRONT_TILES);
72
+ }
73
+ return lots;
74
+ }
75
+
76
+ export { ELEVATOR_LANDING_TILES, FLIGHT_LANDING_TILES, SHOP_FRONT_TILES, coveredUpperStories, lotCovered, trafficLots };
77
+ //# sourceMappingURL=towerCrowdLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"towerCrowdLayout.js","sources":["../../../src/render/excalibur/towerCrowdLayout.ts"],"sourcesContent":["import { catalogFacility, type Catalog } from \"../../catalog/catalogTypes\";\nimport type { UnitView } from \"../../simport/view\";\nimport type { FacilityKind } from \"../../shared/types\";\n\n/**\n * Pure layout math for the decorative passer-by builder in {@link buildWalkers}.\n * These helpers take plain values (no Excalibur canvas bake), so the placement\n * rules are unit-tested here on their own.\n */\n\n/** The x-spans of the UPPER stories of every multi-floor facility (cinema,\n * party hall, recycling, metro), keyed by floor row. Those rows still carry the\n * facility's floor lots, but an ambient walker placed there would stand on the\n * facility's mid-line and float above its real floor, so `buildWalkers` drops\n * these lots from its runs. */\nexport function coveredUpperStories(units: readonly UnitView[], catalog: Catalog): Map<number, Array<[number, number]>> {\n const rows = new Map<number, Array<[number, number]>>();\n for (const u of units) {\n const span = catalogFacility(catalog, u.kind).floors;\n if (span <= 1) continue;\n for (let k = 1; k < span; k++) {\n const row = u.floor + k;\n let spans = rows.get(row);\n if (!spans) rows.set(row, (spans = []));\n spans.push([u.x, u.x + u.width]);\n }\n }\n return rows;\n}\n\n/** True if lot `x` on `floor` sits inside a covered upper-story span (the\n * half-open `[a, b)` of a multi-floor facility), so `buildWalkers` skips it. */\nexport function lotCovered(rows: Map<number, Array<[number, number]>>, floor: number, x: number): boolean {\n const spans = rows.get(floor);\n if (!spans) return false;\n for (const [a, b] of spans) if (x >= a && x < b) return true;\n return false;\n}\n\n/** How many tiles either side of an elevator shaft stay clear of decorative\n * passers-by on every floor it serves: the landing, where the engine's\n * waiting riders queue (#2091). About six riders at the engine's queue\n * spacing. */\nexport const ELEVATOR_LANDING_TILES = 6;\n/** Tiles either side of a stair or escalator footprint that stay clear. */\nexport const FLIGHT_LANDING_TILES = 1;\n/** Tiles either side of a shop, restaurant or other commercial room that stay\n * clear: its front, where customers come and go. */\nexport const SHOP_FRONT_TILES = 2;\n\ninterface TrafficTransport {\n readonly kind: FacilityKind;\n readonly x: number;\n readonly width: number;\n readonly bottom: number;\n readonly top: number;\n}\n\n/** The lots, keyed by floor, where a player reads real traffic: every elevator\n * landing, stair and escalator landing, and commercial front (#2091). A\n * decorative passer-by must never stand on one, since it would look like a\n * person the engine knows about, waiting where real queues form. */\nexport function trafficLots(\n transports: readonly TrafficTransport[],\n units: readonly UnitView[],\n catalog: Catalog,\n): Map<number, Set<number>> {\n const lots = new Map<number, Set<number>>();\n const keep = (floor: number, x0: number, x1: number) => {\n let row = lots.get(floor);\n if (!row) lots.set(floor, (row = new Set()));\n for (let x = x0; x <= x1; x++) row.add(x);\n };\n for (const t of transports) {\n // An elevator is the transport with cars (the same test as isElevatorKind).\n const margin = catalogFacility(catalog, t.kind).maxCars !== null ? ELEVATOR_LANDING_TILES : FLIGHT_LANDING_TILES;\n for (let f = t.bottom; f <= t.top; f++) keep(f, t.x - margin, t.x + t.width - 1 + margin);\n }\n for (const u of units) {\n if (catalogFacility(catalog, u.kind).commercial) keep(u.floor, u.x - SHOP_FRONT_TILES, u.x + u.width - 1 + SHOP_FRONT_TILES);\n }\n return lots;\n}\n"],"names":[],"mappings":";;AAIA;;;;AAIG;AAEH;;;;AAIgC;AAC1B,SAAU,mBAAmB,CAAC,KAA0B,EAAE,OAAgB,EAAA;AAC9E,IAAA,MAAM,IAAI,GAAG,IAAI,GAAG,EAAmC;AACvD,IAAA,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;AACrB,QAAA,MAAM,IAAI,GAAG,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM;QACpD,I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AAA,IAAI,CAAC,GAAG;AAAE,YAAA,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,GAAG,IAAI,GAAG,EAAE,EAAE;QAC5C,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE;AAAE,YAAA,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3C,IAAA,CAAC;AACD,IAAA,KAAK,MAAM,CAAC,IAAI,UAAU,EAAE;;QAE1B,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,IAAI,GAAG,sBAAsB,GAAG,oBAAoB;AAChH,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IAC3F;AACA,IAAA,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;QACrB,IAAI,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU;YAAE,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,gBAAgB,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,GAAG,gBAAgB,CAAC;IAC9H;AACA,IAAA,OAAO,IAAI;AACb;;"}
@@ -0,0 +1,25 @@
1
+ import type { FireResponseView } from "../../simport/view";
2
+ import type { TowerEngine } from "./TowerEngine";
3
+ /** How far from its hover spot the helicopter starts and ends its flight,
4
+ * in tiles across and floors up. */
5
+ export declare const HELICOPTER_APPROACH_TILES = 60;
6
+ export declare const HELICOPTER_APPROACH_FLOORS = 6;
7
+ /** Floors above the burning floor the helicopter hovers while it sprays,
8
+ * and always at least one floor clear of the roof over the room. */
9
+ export declare const HELICOPTER_HOVER_FLOORS = 3;
10
+ /** Where the helicopter is at minute `now`, in tiles and floors: flying in
11
+ * from the right until it lands on the fire, hovering over the room it
12
+ * started in while it sprays, then flying off to the left. Null before it
13
+ * was called and once it is gone. */
14
+ export declare function helicopterPlace(fire: FireResponseView, now: number, roof?: number): {
15
+ x: number;
16
+ floor: number;
17
+ spraying: boolean;
18
+ } | null;
19
+ /** The highest floor built over the middle of the fire's room. */
20
+ export declare function roofOverFire(engine: TowerEngine, fire: FireResponseView): number;
21
+ /** The answer to a fire: Security's guards climbing the emergency stairs
22
+ * and fighting it from the burning room (where the engine's timing puts
23
+ * them), and the rescue helicopter flying in, spraying and flying off.
24
+ * Under reduced motion the rotor and the water hold still. */
25
+ export declare function renderFireResponse(engine: TowerEngine, ctx: CanvasRenderingContext2D): void;
@@ -0,0 +1,89 @@
1
+ import { towerCatalog } from '../../catalog/towerCatalog.js';
2
+ import { FLOOR, TILE } from '../scale.js';
3
+ import { drawSearchGuard } from '../sprites/events.js';
4
+ import { drawWaterSpray, drawHelicopter } from '../sprites/helicopter.js';
5
+ import { beatFrame, strideFrame } from './crowdLook.js';
6
+ import { guardPosition } from './guardPosition.js';
7
+
8
+ /** How far from its hover spot the helicopter starts and ends its flight,
9
+ * in tiles across and floors up. */
10
+ const HELICOPTER_APPROACH_TILES = 60;
11
+ const HELICOPTER_APPROACH_FLOORS = 6;
12
+ /** Floors above the burning floor the helicopter hovers while it sprays,
13
+ * and always at least one floor clear of the roof over the room. */
14
+ const HELICOPTER_HOVER_FLOORS = 3;
15
+ /** Where the helicopter is at minute `now`, in tiles and floors: flying in
16
+ * from the right until it lands on the fire, hovering over the room it
17
+ * started in while it sprays, then flying off to the left. Null before it
18
+ * was called and once it is gone. */
19
+ function helicopterPlace(fire, now, roof = fire.floor) {
20
+ const h = fire.helicopter;
21
+ if (!h || now < h.called || now >= h.leave)
22
+ return null;
23
+ const hx = fire.x + fire.width / 2;
24
+ const hf = Math.max(fire.floor + HELICOPTER_HOVER_FLOORS, roof + 1);
25
+ const along = (a, b) => (b > a ? Math.min(1, Math.max(0, (now - a) / (b - a))) : 1);
26
+ if (now < h.arrive) {
27
+ const p = along(h.called, h.arrive);
28
+ return { x: hx + HELICOPTER_APPROACH_TILES * (1 - p), floor: hf + HELICOPTER_APPROACH_FLOORS * (1 - p), spraying: false };
29
+ }
30
+ if (now < h.sprayEnd)
31
+ return { x: hx, floor: hf, spraying: true };
32
+ const p = along(h.sprayEnd, h.leave);
33
+ return { x: hx - HELICOPTER_APPROACH_TILES * p, floor: hf + HELICOPTER_APPROACH_FLOORS * p, spraying: false };
34
+ }
35
+ /** The roof over the room a fire started in, kept for the answer and the
36
+ * tower it was read from, so the scan of the rooms runs again only when the
37
+ * fire's answer or the building changes. */
38
+ let roofRead = null;
39
+ /** The highest floor built over the middle of the fire's room. */
40
+ function roofOverFire(engine, fire) {
41
+ const tower = engine.sim.tower;
42
+ if (roofRead && roofRead.seq === fire.seq && roofRead.revision === tower.revision)
43
+ return roofRead.roof;
44
+ const x = fire.x + fire.width / 2;
45
+ let roof = fire.floor;
46
+ for (const u of tower.units)
47
+ if (u.floor > roof && u.x <= x && x < u.x + u.width)
48
+ roof = u.floor;
49
+ roofRead = { seq: fire.seq, revision: tower.revision, roof };
50
+ return roof;
51
+ }
52
+ /** The answer to a fire: Security's guards climbing the emergency stairs
53
+ * and fighting it from the burning room (where the engine's timing puts
54
+ * them), and the rescue helicopter flying in, spraying and flying off.
55
+ * Under reduced motion the rotor and the water hold still. */
56
+ function renderFireResponse(engine, ctx) {
57
+ const fire = engine.sim.fireResponse;
58
+ if (!fire)
59
+ return;
60
+ const now = engine.sim.clock.minutes;
61
+ const scale = engine.cam.zoom;
62
+ const lit = towerCatalog(engine.sim).rules.shadedLook;
63
+ const clockMs = engine.d.anim * 1000;
64
+ fire.guards.forEach((g, i) => {
65
+ const at = guardPosition(g, now);
66
+ const x = engine.worldToScreenX(at.x);
67
+ const y = engine.worldToScreenY(at.floor) + FLOOR * engine.cam.zoom;
68
+ // At its spot a guard works the hose in place; on the way it climbs or walks.
69
+ const fighting = now >= g.done;
70
+ const frame = at.climbing || fighting ? beatFrame(clockMs, i) : strideFrame(lit, at.x * TILE, i);
71
+ drawSearchGuard(ctx, x, y, scale, at.climbing, { frame, lit });
72
+ });
73
+ if (!fire.helicopter)
74
+ return;
75
+ const place = helicopterPlace(fire, now, roofOverFire(engine, fire));
76
+ if (!place)
77
+ return;
78
+ const turn = engine.reducedMotion ? 0 : engine.d.anim * 4;
79
+ const x = engine.worldToScreenX(place.x);
80
+ const y = engine.worldToScreenY(place.floor);
81
+ if (place.spraying) {
82
+ const footY = engine.worldToScreenY(fire.floor) + FLOOR * engine.cam.zoom;
83
+ drawWaterSpray(ctx, x, y + 9 * scale, footY, scale, turn % 1);
84
+ }
85
+ drawHelicopter(ctx, x, y, scale, turn % 1);
86
+ }
87
+
88
+ export { HELICOPTER_APPROACH_FLOORS, HELICOPTER_APPROACH_TILES, HELICOPTER_HOVER_FLOORS, helicopterPlace, renderFireResponse, roofOverFire };
89
+ //# sourceMappingURL=towerFireResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"towerFireResponse.js","sources":["../../../src/render/excalibur/towerFireResponse.ts"],"sourcesContent":["import type { FireResponseView } from \"../../simport/view\";\nimport { towerCatalog } from \"../../catalog/towerCatalog\";\nimport { FLOOR, TILE } from \"../scale\";\nimport { drawSearchGuard } from \"../sprites/events\";\nimport { drawHelicopter, drawWaterSpray } from \"../sprites/helicopter\";\nimport { beatFrame, strideFrame } from \"./crowdLook\";\nimport { guardPosition } from \"./guardPosition\";\nimport type { TowerEngine } from \"./TowerEngine\";\n\n/** How far from its hover spot the helicopter starts and ends its flight,\n * in tiles across and floors up. */\nexport const HELICOPTER_APPROACH_TILES = 60;\nexport const HELICOPTER_APPROACH_FLOORS = 6;\n/** Floors above the burning floor the helicopter hovers while it sprays,\n * and always at least one floor clear of the roof over the room. */\nexport const HELICOPTER_HOVER_FLOORS = 3;\n\n/** Where the helicopter is at minute `now`, in tiles and floors: flying in\n * from the right until it lands on the fire, hovering over the room it\n * started in while it sprays, then flying off to the left. Null before it\n * was called and once it is gone. */\nexport function helicopterPlace(fire: FireResponseView, now: number, roof = fire.floor): { x: number; floor: number; spraying: boolean } | null {\n const h = fire.helicopter;\n if (!h || now < h.called || now >= h.leave) return null;\n const hx = fire.x + fire.width / 2;\n const hf = Math.max(fire.floor + HELICOPTER_HOVER_FLOORS, roof + 1);\n const along = (a: number, b: number): number => (b > a ? Math.min(1, Math.max(0, (now - a) / (b - a))) : 1);\n if (now < h.arrive) {\n const p = along(h.called, h.arrive);\n return { x: hx + HELICOPTER_APPROACH_TILES * (1 - p), floor: hf + HELICOPTER_APPROACH_FLOORS * (1 - p), spraying: false };\n }\n if (now < h.sprayEnd) return { x: hx, floor: hf, spraying: true };\n const p = along(h.sprayEnd, h.leave);\n return { x: hx - HELICOPTER_APPROACH_TILES * p, floor: hf + HELICOPTER_APPROACH_FLOORS * p, spraying: false };\n}\n\n/** The roof over the room a fire started in, kept for the answer and the\n * tower it was read from, so the scan of the rooms runs again only when the\n * fire's answer or the building changes. */\nlet roofRead: { seq: number; revision: number; roof: number } | null = null;\n\n/** The highest floor built over the middle of the fire's room. */\nexport function roofOverFire(engine: TowerEngine, fire: FireResponseView): number {\n const tower = engine.sim.tower;\n if (roofRead && roofRead.seq === fire.seq && roofRead.revision === tower.revision) return roofRead.roof;\n const x = fire.x + fire.width / 2;\n let roof = fire.floor;\n for (const u of tower.units) if (u.floor > roof && u.x <= x && x < u.x + u.width) roof = u.floor;\n roofRead = { seq: fire.seq, revision: tower.revision, roof };\n return roof;\n}\n\n/** The answer to a fire: Security's guards climbing the emergency stairs\n * and fighting it from the burning room (where the engine's timing puts\n * them), and the rescue helicopter flying in, spraying and flying off.\n * Under reduced motion the rotor and the water hold still. */\nexport function renderFireResponse(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n const fire = engine.sim.fireResponse;\n if (!fire) return;\n const now = engine.sim.clock.minutes;\n const scale = engine.cam.zoom;\n const lit = towerCatalog(engine.sim).rules.shadedLook;\n const clockMs = engine.d.anim * 1000;\n fire.guards.forEach((g, i) => {\n const at = guardPosition(g, now);\n const x = engine.worldToScreenX(at.x);\n const y = engine.worldToScreenY(at.floor) + FLOOR * engine.cam.zoom;\n // At its spot a guard works the hose in place; on the way it climbs or walks.\n const fighting = now >= g.done;\n const frame = at.climbing || fighting ? beatFrame(clockMs, i) : strideFrame(lit, at.x * TILE, i);\n drawSearchGuard(ctx, x, y, scale, at.climbing, { frame, lit });\n });\n if (!fire.helicopter) return;\n const place = helicopterPlace(fire, now, roofOverFire(engine, fire));\n if (!place) return;\n const turn = engine.reducedMotion ? 0 : engine.d.anim * 4;\n const x = engine.worldToScreenX(place.x);\n const y = engine.worldToScreenY(place.floor);\n if (place.spraying) {\n const footY = engine.worldToScreenY(fire.floor) + FLOOR * engine.cam.zoom;\n drawWaterSpray(ctx, x, y + 9 * scale, footY, scale, turn % 1);\n }\n drawHelicopter(ctx, x, y, scale, turn % 1);\n}\n"],"names":[],"mappings":";;;;;;;AASA;AACqC;AAC9B,MAAM,yBAAyB,GAAG;AAClC,MAAM,0BAA0B,GAAG;AAC1C;AACqE;AAC9D,MAAM,uBAAuB,GAAG;AAEvC;;;AAGsC;AAChC,SAAU,eAAe,CAAC,IAAsB,EAAE,GAAW,EAAE,IAAI,GAAG,IAAI,CAAC,KAAK,EAAA;AACpF,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,UAAU;AACzB,IAAA,IAAI,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,KAAK;AAAE,QAAA,OAAO,IAAI;IACvD,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,GAAG,CAAC;AAClC,IAAA,MAAM,EAAE,GAAG,IAA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GAAG,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,CAAC;IAC/D;AACA,IAAA,cAAc,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,CAAC;AAC5C;;"}
@@ -0,0 +1,8 @@
1
+ import type { TowerEngine } from "./TowerEngine";
2
+ /**
3
+ * The per-frame work that runs before the host's `onUpdate` hook: the
4
+ * decorative clock, the event visuals, the lighting state and the sky. Split
5
+ * from `TowerEngine.tick` to keep that file under the line ceiling; the order
6
+ * of these steps is the frame's contract.
7
+ */
8
+ export declare function beginFrame(engine: TowerEngine, elapsedMs: number): void;
@@ -0,0 +1,57 @@
1
+ import * as ex from 'excalibur';
2
+ import { skyColor } from '../sprites/sky.js';
3
+ import { syncEventFx } from './towerOverlay.js';
4
+ import { displayLit, drainSceneSync } from './towerSyncSchedule.js';
5
+
6
+ /**
7
+ * The per-frame work that runs before the host's `onUpdate` hook: the
8
+ * decorative clock, the event visuals, the lighting state and the sky. Split
9
+ * from `TowerEngine.tick` to keep that file under the line ceiling; the order
10
+ * of these steps is the frame's contract.
11
+ */
12
+ function beginFrame(engine, elapsedMs) {
13
+ const c = engine.sim.clock;
14
+ // Advance the decorative animation clock by the frame's elapsed time, but
15
+ // only while the game is running: paused (speed 0) freezes the walkers,
16
+ // train and street just like the simulated crowd and elevators. `elapsedMs`
17
+ // comes from the engine clock, not wall time, so a manually stepped clock
18
+ // (the screenshot generator swaps in Excalibur's TestClock) advances the
19
+ // decorations deterministically; under the standard clock it is the real
20
+ // per-frame delta, so live play is effectively unchanged. The one visible
21
+ // difference from the old performance.now() delta: Excalibur clamps a frame
22
+ // longer than 200ms (a tab switch or stall) to 1ms, so the decorations
23
+ // resume from where they froze instead of jumping ahead. That is a slight
24
+ // improvement, and it never affects a screenshot (the clock is stepped).
25
+ // Freeze the decorative clock when paused OR reduced-motion is on; functional
26
+ // motion (cars, routed crowd) advances from sim state, not this clock.
27
+ const animating = !engine.paused && !engine.reducedMotion;
28
+ if (animating)
29
+ engine.animClock += elapsedMs / 1000;
30
+ engine.d.anim = engine.animClock;
31
+ syncEventFx(engine, animating);
32
+ engine.d.hour = c.hour;
33
+ engine.d.lit = displayLit(c);
34
+ // Deferred-reconcile drain: before the crane check and the sim advance
35
+ // in onUpdate (re-stack rationale: drainSceneSync's doc).
36
+ drainSceneSync(engine);
37
+ // Garage/waste display fractions (engine.d.parkingUse / recycleFill) are
38
+ // refreshed inside syncScene, the same moment the sprites that read them
39
+ // re-bake, so they're never staler than the sprite, and the flood-fill /
40
+ // scans stay off this per-frame path.
41
+ // The crane repaints while the decorative clock moves (trolley, hook,
42
+ // beacon); the lighting flip (cab window) rides the scene sync instead,
43
+ // so it lands once, aligned with the room repaint (towerSyncSchedule).
44
+ if (engine.craneGfx && animating)
45
+ engine.craneGfx.flagDirty();
46
+ // Read-only queue + car-fill projection for the transport render path.
47
+ // Memoized on the (step, revision) key in the engine, so this per-frame read
48
+ // returns the cached snapshot without re-scanning the crowd, except on the
49
+ // first call after the sim steps or the tower structure changes (for example
50
+ // a paused structural edit), which rebuilds once. The queue render that draws
51
+ // from it is a follow-up story.
52
+ engine.d.elevatorQueue = engine.sim.crowd.queueView(engine.sim.tower);
53
+ engine.engine.backgroundColor = ex.Color.fromHex(skyColor(c.hour));
54
+ }
55
+
56
+ export { beginFrame };
57
+ //# sourceMappingURL=towerFrame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"towerFrame.js","sources":["../../../src/render/excalibur/towerFrame.ts"],"sourcesContent":["import * as ex from \"excalibur\";\nimport type { TowerEngine } from \"./TowerEngine\";\nimport { skyColor } from \"../sprites/sky\";\nimport * as overlayFx from \"./towerOverlay\";\nimport { displayLit, drainSceneSync } from \"./towerSyncSchedule\";\n\n/**\n * The per-frame work that runs before the host's `onUpdate` hook: the\n * decorative clock, the event visuals, the lighting state and the sky. Split\n * from `TowerEngine.tick` to keep that file under the line ceiling; the order\n * of these steps is the frame's contract.\n */\nexport function beginFrame(engine: TowerEngine, elapsedMs: number): void {\n const c = engine.sim.clock;\n // Advance the decorative animation clock by the frame's elapsed time, but\n // only while the game is running: paused (speed 0) freezes the walkers,\n // train and street just like the simulated crowd and elevators. `elapsedMs`\n // comes from the engine clock, not wall time, so a manually stepped clock\n // (the screenshot generator swaps in Excalibur's TestClock) advances the\n // decorations deterministically; under the standard clock it is the real\n // per-frame delta, so live play is effectively unchanged. The one visible\n // difference from the old performance.now() delta: Excalibur clamps a frame\n // longer than 200ms (a tab switch or stall) to 1ms, so the decorations\n // resume from where they froze instead of jumping ahead. That is a slight\n // improvement, and it never affects a screenshot (the clock is stepped).\n // Freeze the decorative clock when paused OR reduced-motion is on; functional\n // motion (cars, routed crowd) advances from sim state, not this clock.\n const animating = !engine.paused && !engine.reducedMotion;\n if (animating) engine.animClock += elapsedMs / 1000;\n engine.d.anim = engine.animClock;\n overlayFx.syncEventFx(engine, animating);\n engine.d.hour = c.hour;\n engine.d.lit = displayLit(c);\n // Deferred-reconcile drain: before the crane check and the sim advance\n // in onUpdate (re-stack rationale: drainSceneSync's doc).\n drainSceneSync(engine);\n // Garage/waste display fractions (engine.d.parkingUse / recycleFill) are\n // refreshed inside syncScene, the same moment the sprites that read them\n // re-bake, so they're never staler than the sprite, and the flood-fill /\n // scans stay off this per-frame path.\n // The crane repaints while the decorative clock moves (trolley, hook,\n // beacon); the lighting flip (cab window) rides the scene sync instead,\n // so it lands once, aligned with the room repaint (towerSyncSchedule).\n if (engine.craneGfx && animating) engine.craneGfx.flagDirty();\n // Read-only queue + car-fill projection for the transport render path.\n // Memoized on the (step, revision) key in the engine, so this per-frame read\n // returns the cached snapshot without re-scanning the crowd, except on the\n // first call after the sim steps or the tower structure changes (for example\n // a paused structural edit), which rebuilds once. The queue render that draws\n // from it is a follow-up story.\n engine.d.elevatorQueue = engine.sim.crowd.queueView(engine.sim.tower);\n engine.engine.backgroundColor = ex.Color.fromHex(skyColor(c.hour));\n}\n"],"names":["overlayFx.syncEventFx"],"mappings":";;;;;AAMA;;;;;AAKG;AACG,SAAU,UAAU,CAAC,MAAmB,EAAE,SAAiB,EAAA;AAC/D,IAAA,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK;;;;;;;;;;;;;;IAc1B,MAAM,SAAS,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa;AACzD,IAAA,IAAI,SAAS;AAAE,QAAA,MAAM,CAAC,SAAS,IAAI,SAAS,GAAG,IAAI;IACnD,MAAM,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS;AAChC,IAAAA,WAAqB,CAAC,MAAM,EAAE,SAAS,CAAC;IACxC,MAAM,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI;IACtB,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC;;;IAG5B,cAAc,CAAC,MAAM,CAAC;;;;;;;;AAQtB,IAAA,IAAI,MAAM,CAAC,QAAQ,IAAI,SAAS;AAAE,QAAA,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE;;;;;;;AAO7D,IAAA,MAAM,CAAC,CAAC,CAAC,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;AACrE,IAAA,MAAM,CAAC,MAAM,CAAC,eAAe,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACpE;;"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A placement ghost's price tag: a small plate centered over the ghost that
3
+ * names what a click costs, so a whole sky bridge (Modern) shows its price
4
+ * before the click. Drawn in screen pixels at a fixed size, so it reads at any
5
+ * zoom; gold-edged when the click would build, red-edged when it would not.
6
+ */
7
+ /** Draw `text` on a plate centered at `cx`, just above a ghost whose top is at
8
+ * `top` (screen pixels). */
9
+ export declare function drawGhostLabel(ctx: CanvasRenderingContext2D, cx: number, top: number, text: string, valid: boolean): void;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * A placement ghost's price tag: a small plate centered over the ghost that
3
+ * names what a click costs, so a whole sky bridge (Modern) shows its price
4
+ * before the click. Drawn in screen pixels at a fixed size, so it reads at any
5
+ * zoom; gold-edged when the click would build, red-edged when it would not.
6
+ */
7
+ /** The tag's text size and padding, in screen pixels. */
8
+ const FONT_PX = 12;
9
+ const PAD_X = 6;
10
+ const PAD_Y = 3;
11
+ /** How far above the ghost's top edge the tag's bottom sits. */
12
+ const GAP_PX = 4;
13
+ /** Draw `text` on a plate centered at `cx`, just above a ghost whose top is at
14
+ * `top` (screen pixels). */
15
+ function drawGhostLabel(ctx, cx, top, text, valid) {
16
+ ctx.save();
17
+ ctx.font = `bold ${FONT_PX}px "MS Sans Serif", Tahoma, sans-serif`;
18
+ ctx.textBaseline = "middle";
19
+ ctx.textAlign = "center";
20
+ const w = ctx.measureText(text).width + PAD_X * 2;
21
+ const h = FONT_PX + PAD_Y * 2;
22
+ const x = Math.round(cx - w / 2);
23
+ const y = Math.round(top - GAP_PX - h);
24
+ ctx.globalAlpha = 0.92;
25
+ ctx.fillStyle = "#1b1f2a";
26
+ ctx.fillRect(x, y, w, h);
27
+ ctx.globalAlpha = 1;
28
+ ctx.strokeStyle = valid ? "#ffd24a" : "#ff5555";
29
+ ctx.lineWidth = 1;
30
+ ctx.strokeRect(x + 0.5, y + 0.5, w - 1, h - 1);
31
+ ctx.fillStyle = "#fff";
32
+ ctx.fillText(text, x + w / 2, y + h / 2 + 0.5);
33
+ ctx.restore();
34
+ }
35
+
36
+ export { drawGhostLabel };
37
+ //# sourceMappingURL=towerGhostLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"towerGhostLabel.js","sources":["../../../src/render/excalibur/towerGhostLabel.ts"],"sourcesContent":["/**\n * A placement ghost's price tag: a small plate centered over the ghost that\n * names what a click costs, so a whole sky bridge (Modern) shows its price\n * before the click. Drawn in screen pixels at a fixed size, so it reads at any\n * zoom; gold-edged when the click would build, red-edged when it would not.\n */\n\n/** The tag's text size and padding, in screen pixels. */\nconst FONT_PX = 12;\nconst PAD_X = 6;\nconst PAD_Y = 3;\n/** How far above the ghost's top edge the tag's bottom sits. */\nconst GAP_PX = 4;\n\n/** Draw `text` on a plate centered at `cx`, just above a ghost whose top is at\n * `top` (screen pixels). */\nexport function drawGhostLabel(ctx: CanvasRenderingContext2D, cx: number, top: number, text: string, valid: boolean): void {\n ctx.save();\n ctx.font = `bold ${FONT_PX}px \"MS Sans Serif\", Tahoma, sans-serif`;\n ctx.textBaseline = \"middle\";\n ctx.textAlign = \"center\";\n const w = ctx.measureText(text).width + PAD_X * 2;\n const h = FONT_PX + PAD_Y * 2;\n const x = Math.round(cx - w / 2);\n const y = Math.round(top - GAP_PX - h);\n ctx.globalAlpha = 0.92;\n ctx.fillStyle = \"#1b1f2a\";\n ctx.fillRect(x, y, w, h);\n ctx.globalAlpha = 1;\n ctx.strokeStyle = valid ? \"#ffd24a\" : \"#ff5555\";\n ctx.lineWidth = 1;\n ctx.strokeRect(x + 0.5, y + 0.5, w - 1, h - 1);\n ctx.fillStyle = \"#fff\";\n ctx.fillText(text, x + w / 2, y + h / 2 + 0.5);\n ctx.restore();\n}\n"],"names":[],"mappings":"AAAA;;;;;AAKG;AAEH;AACA,MAAM,OAAO,GAAG,EAAE;AAClB,MAAM,KAAK,GAAG,CAAC;AACf,MAAM,KAAK,GAAG,CAAC;AACf;AACA,MAAM,MAAM,GAAG,CAAC;AAEhB;AAC6B;AACvB,SAAU,cAAc,CAAC,GAA6B,EAAE,EAAU,EAAE,GAAW,EAAE,IAAY,EAAE,KAAc,EAAA;IACjH,GAAG,CAAC,IAAI,EAAE;AACV,IAAA,GAAG,CAAC,IAAI,GAAG,CAAA,KAAA,EAAQ,OAAO,wCAAwC;AAClE,IAAA,GAAG,CAAC,YAAY,GAAG,QAAQ;AAC3B,IAAA,GAAG,CAAC,SAAS,GAAG,QAAQ;AACxB,IAAA,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,KAAK,GAAG,CAAC;AACjD,IAAA,MAAM,CAAC,GAAG,OAAO,GAAG,KAAK,GAAG,CAAC;AAC7B,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;AAChC,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,MAAM,GAAG,CAAC,CAAC;AACtC,IAAA,GAAG,CAAC,WAAW,GAAG,IAAI;AACtB,IAAA,GAAG,CAAC,SAAS,GAAG,SAAS;IACzB,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACxB,IAAA,GAAG,CAAC,WAAW,GAAG,CAAC;AACnB,IAAA,GAAG,CAAC,WAAW,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS;AAC/C,IAAA,GAAG,CAAC,SAAS,GAAG,CAAC;AACjB,IAAA,GAAG,CAAC,UAAU,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAC9C,IAAA,GAAG,CAAC,SAAS,GAAG,MAAM;AACtB,IAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IAC9C,GAAG,CAAC,OAAO,EAAE;AACf;;"}
@@ -0,0 +1,42 @@
1
+ import * as ex from "excalibur";
2
+ import type { HallDoor } from "../lobbyHalls";
3
+ import type { TowerEngine } from "./TowerEngine";
4
+ interface DoorRec {
5
+ door: HallDoor;
6
+ /** The wall's world x: the left edge of the right-hand hall's first tile. */
7
+ wx: number;
8
+ angle: number;
9
+ lit: boolean;
10
+ /** The farthest one person inside walked since the door last turned. */
11
+ push: number;
12
+ actors: [ex.Actor, ex.Actor, ex.Actor];
13
+ canvases: [ex.Canvas, ex.Canvas, ex.Canvas];
14
+ }
15
+ /** The doors on screen, by floor for the crowd pass and by key for the
16
+ * structure pass. */
17
+ export declare class HallDoorLayer {
18
+ readonly byFloor: Map<number, DoorRec[]>;
19
+ readonly byKey: Map<string, DoorRec>;
20
+ }
21
+ /** Puts up the doors the structure pass found and takes down the ones it no
22
+ * longer does; a door that stays keeps its actors and its angle. */
23
+ export declare function syncHallDoors(engine: TowerEngine, doors: readonly HallDoor[]): void;
24
+ /** Repaints every door whose lighting no longer matches the tower's. */
25
+ export declare function relightHallDoors(engine: TowerEngine): void;
26
+ /** Takes every door down, as a scene swap does. */
27
+ export declare function clearHallDoors(engine: TowerEngine): void;
28
+ /** What the crowd pass keeps per person to push a door. */
29
+ export interface Pusher {
30
+ lastX?: number;
31
+ /** -1 walking left, 1 walking right, 0 not yet seen moving. */
32
+ dir?: number;
33
+ }
34
+ /** Where a person standing on `floor` at world x `wx` is against the doors
35
+ * there: `undefined` outside every drum, else the way they walk through it
36
+ * (-1 left, 1 right). Notes how far they walked for the door to turn by.
37
+ * A floor with no door costs one map lookup. */
38
+ export declare function pushThroughDoors(engine: TowerEngine, who: Pusher, floor: number, wx: number): -1 | 1 | undefined;
39
+ /** Turns each door by the walk noted since the last pass, always the same
40
+ * way, and repaints the parts that turn. A door nobody pushed stays put. */
41
+ export declare function turnHallDoors(engine: TowerEngine): void;
42
+ export {};
@@ -0,0 +1,129 @@
1
+ import * as ex from 'excalibur';
2
+ import { Z } from '../depthPlanes.js';
3
+ import { FLOOR } from '../scale.js';
4
+ import { DOOR_RADIUS, QUARTER_TURN, drawRevolvingDoorBack, drawRevolvingDoorMiddle, drawRevolvingDoorFront, turnDoor } from '../sprites/structure/revolvingDoor.js';
5
+
6
+ /**
7
+ * The revolving doors between lobby halls of different heights (#2068). The
8
+ * structure pass hands over the doors it finds (`syncHallDoors`), each drawn
9
+ * as three actors around the crowd's plane: the wall and the back of the
10
+ * drum, the post and near wings, then the drum's front. The crowd pass turns
11
+ * each door by how far the people inside it walked since the last pass
12
+ * (`pushThroughDoors`, then `turnHallDoors`), so a door turns only while a
13
+ * real person walks through it, at their pace, and stands still otherwise.
14
+ */
15
+ /** How wide each door actor is: the drum and its posts, with room to spare. */
16
+ const DOOR_W = 2 * DOOR_RADIUS + 7;
17
+ /** The doors on screen, by floor for the crowd pass and by key for the
18
+ * structure pass. */
19
+ class HallDoorLayer {
20
+ constructor() {
21
+ this.byFloor = new Map();
22
+ this.byKey = new Map();
23
+ }
24
+ }
25
+ const keyOf = (d) => `${d.floor}:${d.x}:${d.tall}:${d.short}:${d.tallOnLeft}`;
26
+ function makeDoor(engine, door) {
27
+ const h = door.tall * FLOOR;
28
+ const cx = Math.floor(DOOR_W / 2);
29
+ const foot = h - 3;
30
+ const wx = engine.worldX(door.x);
31
+ const rec = { door, wx, angle: QUARTER_TURN / 2, lit: engine.litState, push: 0 };
32
+ const step = { y: (door.tall - door.short) * FLOOR, side: door.tallOnLeft ? -1 : 1 };
33
+ const canvas = (draw) => new ex.Canvas({ width: DOOR_W, height: h, cache: true, draw });
34
+ rec.canvases = [
35
+ canvas((ctx) => drawRevolvingDoorBack(ctx, cx, foot, 0, rec.angle, rec.lit, step)),
36
+ canvas((ctx) => drawRevolvingDoorMiddle(ctx, cx, foot, rec.angle, rec.lit)),
37
+ canvas((ctx) => drawRevolvingDoorFront(ctx, cx, foot, rec.lit)),
38
+ ];
39
+ const pos = ex.vec(wx - cx, engine.worldYTop(door.floor + door.tall - 1));
40
+ const planes = [Z.hallDoorBack, Z.hallDoorMiddle, Z.hallDoorFront];
41
+ rec.actors = rec.canvases.map((c, i) => {
42
+ const a = new ex.Actor({ pos, anchor: ex.vec(0, 0), width: DOOR_W, height: h, z: planes[i] });
43
+ a.graphics.use(c);
44
+ engine.engine.add(a);
45
+ return a;
46
+ });
47
+ return rec;
48
+ }
49
+ /** Puts up the doors the structure pass found and takes down the ones it no
50
+ * longer does; a door that stays keeps its actors and its angle. */
51
+ function syncHallDoors(engine, doors) {
52
+ const layer = engine.hallDoors;
53
+ const keep = new Set();
54
+ for (const d of doors) {
55
+ const key = keyOf(d);
56
+ keep.add(key);
57
+ if (!layer.byKey.has(key))
58
+ layer.byKey.set(key, makeDoor(engine, d));
59
+ }
60
+ for (const [key, rec] of layer.byKey) {
61
+ if (keep.has(key))
62
+ continue;
63
+ for (const a of rec.actors)
64
+ a.kill();
65
+ layer.byKey.delete(key);
66
+ }
67
+ layer.byFloor.clear();
68
+ for (const rec of layer.byKey.values()) {
69
+ const list = layer.byFloor.get(rec.door.floor);
70
+ if (list)
71
+ list.push(rec);
72
+ else
73
+ layer.byFloor.set(rec.door.floor, [rec]);
74
+ }
75
+ relightHallDoors(engine);
76
+ }
77
+ /** Repaints every door whose lighting no longer matches the tower's. */
78
+ function relightHallDoors(engine) {
79
+ for (const rec of engine.hallDoors.byKey.values()) {
80
+ if (rec.lit === engine.litState)
81
+ continue;
82
+ rec.lit = engine.litState;
83
+ for (const c of rec.canvases)
84
+ c.flagDirty();
85
+ }
86
+ }
87
+ /** Takes every door down, as a scene swap does. */
88
+ function clearHallDoors(engine) {
89
+ for (const rec of engine.hallDoors.byKey.values())
90
+ for (const a of rec.actors)
91
+ a.kill();
92
+ engine.hallDoors.byKey.clear();
93
+ engine.hallDoors.byFloor.clear();
94
+ }
95
+ /** Where a person standing on `floor` at world x `wx` is against the doors
96
+ * there: `undefined` outside every drum, else the way they walk through it
97
+ * (-1 left, 1 right). Notes how far they walked for the door to turn by.
98
+ * A floor with no door costs one map lookup. */
99
+ function pushThroughDoors(engine, who, floor, wx) {
100
+ const step = who.lastX === undefined ? 0 : wx - who.lastX;
101
+ who.lastX = wx;
102
+ if (step !== 0)
103
+ who.dir = Math.sign(step);
104
+ const doors = engine.hallDoors.byFloor.get(floor);
105
+ if (!doors)
106
+ return undefined;
107
+ for (const rec of doors) {
108
+ if (Math.abs(wx - rec.wx) > DOOR_RADIUS)
109
+ continue;
110
+ rec.push = Math.max(rec.push, Math.abs(step));
111
+ return (who.dir ?? 1) < 0 ? -1 : 1;
112
+ }
113
+ return undefined;
114
+ }
115
+ /** Turns each door by the walk noted since the last pass, always the same
116
+ * way, and repaints the parts that turn. A door nobody pushed stays put. */
117
+ function turnHallDoors(engine) {
118
+ for (const rec of engine.hallDoors.byKey.values()) {
119
+ if (rec.push === 0)
120
+ continue;
121
+ rec.angle = turnDoor(rec.angle, true, rec.push, 1);
122
+ rec.push = 0;
123
+ rec.canvases[0].flagDirty();
124
+ rec.canvases[1].flagDirty();
125
+ }
126
+ }
127
+
128
+ export { HallDoorLayer, clearHallDoors, pushThroughDoors, relightHallDoors, syncHallDoors, turnHallDoors };
129
+ //# sourceMappingURL=towerHallDoors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"towerHallDoors.js","sources":["../../../src/render/excalibur/towerHallDoors.ts"],"sourcesContent":["import * as ex from \"excalibur\";\nimport { Z } from \"../depthPlanes\";\nimport type { HallDoor } from \"../lobbyHalls\";\nimport { FLOOR } from \"../scale\";\nimport {\n DOOR_RADIUS,\n drawRevolvingDoorBack,\n drawRevolvingDoorFront,\n drawRevolvingDoorMiddle,\n QUARTER_TURN,\n turnDoor,\n} from \"../sprites/structure/revolvingDoor\";\nimport type { TowerEngine } from \"./TowerEngine\";\n\n/**\n * The revolving doors between lobby halls of different heights (#2068). The\n * structure pass hands over the doors it finds (`syncHallDoors`), each drawn\n * as three actors around the crowd's plane: the wall and the back of the\n * drum, the post and near wings, then the drum's front. The crowd pass turns\n * each door by how far the people inside it walked since the last pass\n * (`pushThroughDoors`, then `turnHallDoors`), so a door turns only while a\n * real person walks through it, at their pace, and stands still otherwise.\n */\n\n/** How wide each door actor is: the drum and its posts, with room to spare. */\nconst DOOR_W = 2 * DOOR_RADIUS + 7;\n\ninterface DoorRec {\n door: HallDoor;\n /** The wall's world x: the left edge of the right-hand hall's first tile. */\n wx: number;\n angle: number;\n lit: boolean;\n /** The farthest one person inside walked since the door last turned. */\n push: number;\n actors: [ex.Actor, ex.Actor, ex.Actor];\n canvases: [ex.Canvas, ex.Canvas, ex.Canvas];\n}\n\n/** The doors on screen, by floor for the crowd pass and by key for the\n * structure pass. */\nexport class HallDoorLayer {\n readonly byFloor = new Map<number, DoorRec[]>();\n readonly byKey = new Map<string, DoorRec>();\n}\n\nconst keyOf = (d: HallDoor) => `${d.floor}:${d.x}:${d.tall}:${d.short}:${d.tallOnLeft}`;\n\nfunction makeDoor(engine: TowerEngine, door: HallDoor): DoorRec {\n const h = door.tall * FLOOR;\n const cx = Math.floor(DOOR_W / 2);\n const foot = h - 3;\n const wx = engine.worldX(door.x);\n const rec = { door, wx, angle: QUARTER_TURN / 2, lit: engine.litState, push: 0 } as DoorRec;\n const step = { y: (door.tall - door.short) * FLOOR, side: door.tallOnLeft ? -1 : 1 } as const;\n const canvas = (draw: (ctx: CanvasRenderingContext2D) => void) => new ex.Canvas({ width: DOOR_W, height: h, cache: true, draw });\n rec.canvases = [\n canvas((ctx) => drawRevolvingDoorBack(ctx, cx, foot, 0, rec.angle, rec.lit, step)),\n canvas((ctx) => drawRevolvingDoorMiddle(ctx, cx, foot, rec.angle, rec.lit)),\n canvas((ctx) => drawRevolvingDoorFront(ctx, cx, foot, rec.lit)),\n ];\n const pos = ex.vec(wx - cx, engine.worldYTop(door.floor + door.tall - 1));\n const planes = [Z.hallDoorBack, Z.hallDoorMiddle, Z.hallDoorFront];\n rec.actors = rec.canvases.map((c, i) => {\n const a = new ex.Actor({ pos, anchor: ex.vec(0, 0), width: DOOR_W, height: h, z: planes[i] });\n a.graphics.use(c);\n engine.engine.add(a);\n return a;\n }) as DoorRec[\"actors\"];\n return rec;\n}\n\n/** Puts up the doors the structure pass found and takes down the ones it no\n * longer does; a door that stays keeps its actors and its angle. */\nexport function syncHallDoors(engine: TowerEngine, doors: readonly HallDoor[]): void {\n const layer = engine.hallDoors;\n const keep = new Set<string>();\n for (const d of doors) {\n const key = keyOf(d);\n keep.add(key);\n if (!layer.byKey.has(key)) layer.byKey.set(key, makeDoor(engine, d));\n }\n for (const [key, rec] of layer.byKey) {\n if (keep.has(key)) continue;\n for (const a of rec.actors) a.kill();\n layer.byKey.delete(key);\n }\n layer.byFloor.clear();\n for (const rec of layer.byKey.values()) {\n const list = layer.byFloor.get(rec.door.floor);\n if (list) list.push(rec);\n else layer.byFloor.set(rec.door.floor, [rec]);\n }\n relightHallDoors(engine);\n}\n\n/** Repaints every door whose lighting no longer matches the tower's. */\nexport function relightHallDoors(engine: TowerEngine): void {\n for (const rec of engine.hallDoors.byKey.values()) {\n if (rec.lit === engine.litState) continue;\n rec.lit = engine.litState;\n for (const c of rec.canvases) c.flagDirty();\n }\n}\n\n/** Takes every door down, as a scene swap does. */\nexport function clearHallDoors(engine: TowerEngine): void {\n for (const rec of engine.hallDoors.byKey.values()) for (const a of rec.actors) a.kill();\n engine.hallDoors.byKey.clear();\n engine.hallDoors.byFloor.clear();\n}\n\n/** What the crowd pass keeps per person to push a door. */\nexport interface Pusher {\n lastX?: number;\n /** -1 walking left, 1 walking right, 0 not yet seen moving. */\n dir?: number;\n}\n\n/** Where a person standing on `floor` at world x `wx` is against the doors\n * there: `undefined` outside every drum, else the way they walk through it\n * (-1 left, 1 right). Notes how far they walked for the door to turn by.\n * A floor with no door costs one map lookup. */\nexport function pushThroughDoors(engine: TowerEngine, who: Pusher, floor: number, wx: number): -1 | 1 | undefined {\n const step = who.lastX === undefined ? 0 : wx - who.lastX;\n who.lastX = wx;\n if (step !== 0) who.dir = Math.sign(step);\n const doors = engine.hallDoors.byFloor.get(floor);\n if (!doors) return undefined;\n for (const rec of doors) {\n if (Math.abs(wx - rec.wx) > DOOR_RADIUS) continue;\n rec.push = Math.max(rec.push, Math.abs(step));\n return (who.dir ?? 1) < 0 ? -1 : 1;\n }\n return undefined;\n}\n\n/** Turns each door by the walk noted since the last pass, always the same\n * way, and repaints the parts that turn. A door nobody pushed stays put. */\nexport function turnHallDoors(engine: TowerEngine): void {\n for (const rec of engine.hallDoors.byKey.values()) {\n if (rec.push === 0) continue;\n rec.angle = turnDoor(rec.angle, true, rec.push, 1);\n rec.push = 0;\n rec.canvases[0].flagDirty();\n rec.canvases[1].flagDirty();\n }\n}\n"],"names":[],"mappings":";;;;;AAcA;;;;;;;;AAQG;AAEH;AACA,MAAM,MAAM,GAAG,CAAC,GAAG,WAAW,GAAG,CAAC;AAclC;AACsB;MACT,aAAa,CAAA;AAA1B,IAAA,WAAA,GAAA;AACW,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,GAAG,EAAqB;AACtC,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,GAAG,EAAmB;IAC7C;AAAC;AAED,MAAM,KAAK,GAAG,CAAC,CAAW,KAAK,CAAA,EAAG,CAAC,CAAC,KAAK,CAAA,CAAA,EAAI,CAAC,CAAC,CAAC,CAAA,CAAA,EAAI,CAAC,CAAC,IAAI,CAAA,CAAA,EAAI,CAAC,CAAC,KAAK,CAAA,CAAA,EAAI,CAAC,CAAC,UAAU,CAAA,CAAE;AAEvF,SAAS,QAAQ,CAAC,MAAmB,EAAE,IAAc,EAAA;AACnD,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,GAAG,KAAK;IAC3B,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;AACjC,IAAA,MAAM,IAAI,GAAG,CAAC,GAAG,CAAC;IAClB,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IAChC,MAAM,GAAG,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,YAAY,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAa;AAC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
@@ -0,0 +1,34 @@
1
+ import type { CatalogHalo } from "../../catalog/catalogTypes";
2
+ /**
3
+ * The range rings a venue paints while it is being placed (#1980): one band
4
+ * across the lot for every floor its halo reaches, the venue's own stories
5
+ * included, as strong as the engine makes it there (`max * (1 - d / floors)`,
6
+ * from the catalog's halo, with `d` counted from the venue's nearer story),
7
+ * then a dashed outline around the whole reach. A
8
+ * lift paints green, a drain violet. Classic venues have no halo, so nothing
9
+ * is painted there.
10
+ */
11
+ /** The overlay's world-to-screen mapping, as `TowerEngine` gives it. */
12
+ export interface RingView {
13
+ worldToScreenX(x: number): number;
14
+ /** The screen y of the top edge of `floor`. */
15
+ worldToScreenY(floor: number): number;
16
+ readonly cam: {
17
+ readonly zoom: number;
18
+ };
19
+ }
20
+ /** The lot the bands span and the floors they may cover. */
21
+ export interface RingWorld {
22
+ readonly lotWidth: number;
23
+ readonly minFloor: number;
24
+ readonly maxFloor: number;
25
+ }
26
+ /** How strong `halo` is `d` floors from its venue, from 1 on its own floor
27
+ * to 0 at its reach, as the engine fades it. */
28
+ export declare function haloStrength(halo: CatalogHalo, d: number): number;
29
+ /** How many floors `f` is from a venue whose lowest story is `floor` and
30
+ * that fills `stories`: 0 on any story it fills, as the engine counts it. */
31
+ export declare function storyDistance(f: number, floor: number, stories: number): number;
32
+ /** Paint `halo`'s rings around a venue placed with its lowest story on
33
+ * `floor`, filling `stories`. */
34
+ export declare function drawHaloRings(ctx: CanvasRenderingContext2D, halo: CatalogHalo, floor: number, stories: number, world: RingWorld, view: RingView): void;