@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,73 @@
1
+ import * as ex from "excalibur";
2
+ import type { TowerEngine } from "./TowerEngine";
3
+ import { type Climber } from "../climbPath";
4
+ import { type Glide } from "./crowdLook";
5
+ import { type Pusher } from "./towerHallDoors";
6
+ /**
7
+ * Engine-driven crowd and motion for {@link TowerEngine}: the routed commuter
8
+ * actors, elevator cars, metro train, garbage trucks, garage cars and the
9
+ * decorative passers-by. Friend functions taking the engine instance. Extracted from
10
+ * `TowerEngine.ts`; the class keeps thin delegations. Pure code move: the
11
+ * positioning, cadence and Excalibur calls are unchanged.
12
+ */
13
+ /** Retained-actor reconciliation tail: kill and forget every entry the
14
+ * current pass didn't mark as seen. Each reconciler supplies its own
15
+ * disposal (kill one actor, kill a pair, drop a parallel sig entry). Shared
16
+ * by `towerCrowd` and `towerReconcile`. */
17
+ export declare function reap<K, V>(map: Map<K, V>, seen: ReadonlySet<K>, dispose: (v: V, k: K) => void): void;
18
+ /** A decorative passer-by: a corridor figure that is not a person the engine
19
+ * knows about (#2091; built by `buildWalkers`, Modern only). */
20
+ export interface Walker {
21
+ actor: ex.Actor;
22
+ /** Its cast look (an index into `LOOKS`). */
23
+ look: number;
24
+ /** The bake it shows now (`figureKey`), so the graphic swaps only on a change. */
25
+ key: number;
26
+ x0w: number;
27
+ x1w: number;
28
+ /** The world y its feet stand on. */
29
+ yw: number;
30
+ speed: number;
31
+ dir: number;
32
+ phase: number;
33
+ /** 0..1 position in its floor's crowd; shown only when the floor is busy enough. */
34
+ rank: number;
35
+ /** Floor this figure belongs to (for per-floor occupancy gating). */
36
+ floor: number;
37
+ }
38
+ /** One drawn person: the actor, its glide between the engine's positions, and
39
+ * the bake it shows (`figureKey`), so the graphic swaps only on a change. */
40
+ export interface CrowdActor extends Pusher, Climber {
41
+ actor: ex.Actor;
42
+ glide: Glide;
43
+ key: number;
44
+ /** Whether the figure is drawn as inside a car (hidden). It follows the
45
+ * engine's riding state once the drawn car gets there. */
46
+ inCar: boolean;
47
+ /** The step on which this person got in or out of a car, while the drawn
48
+ * car is still on its way (see `positionPerson`). */
49
+ boardStep?: number;
50
+ /** The middle of the shaft this person waits at (`waitShaftMid`), found
51
+ * once per wait; `undefined` while not waiting. */
52
+ shaftMid?: number | null;
53
+ /** The floor `shaftMid` was found on: a wait on another floor finds its
54
+ * own shaft, even when the zoom cull hid the ride between them. */
55
+ shaftFloor?: number;
56
+ }
57
+ /** Advance the step clock the cars and the people glide on by one frame of
58
+ * `elapsedMs`, before either is drawn (`updateMotion` calls it first). A
59
+ * paused game passes no time. */
60
+ export declare function tickCrowdClock(engine: TowerEngine, elapsedMs: number): void;
61
+ /** Draw the engine-owned commuters: add/remove/position one actor per live
62
+ * person, by stable id. Read-only, the engine advances the crowd in tick().
63
+ * The step clock (`tickCrowdClock`) paces the glide and the beats. */
64
+ export declare function reconcileCrowd(engine: TowerEngine): void;
65
+ export declare function clearCrowd(engine: TowerEngine): void;
66
+ export declare function clearMotion(engine: TowerEngine): void;
67
+ export declare function syncMotion(engine: TowerEngine): void;
68
+ /** Repositions every moving actor each frame (the engine then draws them).
69
+ * `elapsedMs` is the engine update's frame delta (stepped by the screenshot
70
+ * TestClock, so the glide below stays deterministic); it advances the step
71
+ * clock the cars and the people share, and the default keeps legacy callers
72
+ * and tests on a plain 60fps frame. */
73
+ export declare function updateMotion(engine: TowerEngine, elapsedMs?: number): void;
@@ -0,0 +1,464 @@
1
+ import * as ex from 'excalibur';
2
+ import { Z } from '../depthPlanes.js';
3
+ import { isElevatorKind } from '../../presentation/viewKinds.js';
4
+ import { catalogFacility } from '../../catalog/catalogTypes.js';
5
+ import { towerCatalog } from '../../catalog/towerCatalog.js';
6
+ import { isOperational } from '../../shared/unitState.js';
7
+ import '../sprites.js';
8
+ import { drawGarbageTruck, GARBAGE_TRUCK_H, drawStreetCar } from '../sprites/facilities/vehicles.js';
9
+ import { metroTrainAt } from '../metroTrainSchedule.js';
10
+ import { addMetros } from './towerMetro.js';
11
+ import { buildWalkers } from './towerWalkerBuild.js';
12
+ import { cabRidersOf, cabLoad } from './cabRiders.js';
13
+ import { CabGraphic, IDLE_CAR, carKey, cabWant } from './cabGraphics.js';
14
+ import { newCarDraw, glideCar } from '../carMotion.js';
15
+ import { FLOOR, TILE } from '../scale.js';
16
+ import { leaveFlight, climbDrawX } from '../climbPath.js';
17
+ import { applyCrowdCull, reassertCrowdCull } from './crowdCull.js';
18
+ import { FIGURE_ANCHOR, FIGURE_H, FIGURE_W } from './peopleGfx.js';
19
+ import { newStepClock, tickStepClock, stepProgress, newGlide, advanceGlide, figureKey, strideFrame } from './crowdLook.js';
20
+ import { ridingHidden, doorPlane, walkingPlane, waitShaftMid, personFigure } from './crowdFigure.js';
21
+ import { turnHallDoors, pushThroughDoors } from './towerHallDoors.js';
22
+
23
+ /**
24
+ * Engine-driven crowd and motion for {@link TowerEngine}: the routed commuter
25
+ * actors, elevator cars, metro train, garbage trucks, garage cars and the
26
+ * decorative passers-by. Friend functions taking the engine instance. Extracted from
27
+ * `TowerEngine.ts`; the class keeps thin delegations. Pure code move: the
28
+ * positioning, cadence and Excalibur calls are unchanged.
29
+ */
30
+ /** Retained-actor reconciliation tail: kill and forget every entry the
31
+ * current pass didn't mark as seen. Each reconciler supplies its own
32
+ * disposal (kill one actor, kill a pair, drop a parallel sig entry). Shared
33
+ * by `towerCrowd` and `towerReconcile`. */
34
+ function reap(map, seen, dispose) {
35
+ for (const [k, v] of map) {
36
+ if (seen.has(k))
37
+ continue;
38
+ dispose(v, k);
39
+ map.delete(k);
40
+ }
41
+ }
42
+ const stepClocks = new WeakMap();
43
+ /** The renderer's step clock, advanced once per frame by `tickCrowdClock`. */
44
+ function stepClockOf(engine) {
45
+ let c = stepClocks.get(engine);
46
+ if (!c) {
47
+ c = newStepClock(engine.sim.clock.minutes);
48
+ stepClocks.set(engine, c);
49
+ }
50
+ return c;
51
+ }
52
+ /** Advance the step clock the cars and the people glide on by one frame of
53
+ * `elapsedMs`, before either is drawn (`updateMotion` calls it first). A
54
+ * paused game passes no time. */
55
+ function tickCrowdClock(engine, elapsedMs) {
56
+ tickStepClock(stepClockOf(engine), engine.sim.clock.minutes, engine.paused ? 0 : elapsedMs);
57
+ }
58
+ /** Draw the engine-owned commuters: add/remove/position one actor per live
59
+ * person, by stable id. Read-only, the engine advances the crowd in tick().
60
+ * The step clock (`tickCrowdClock`) paces the glide and the beats. */
61
+ function reconcileCrowd(engine) {
62
+ const clock = stepClockOf(engine);
63
+ // Zoom cull (CAP-1): while the moving layer is sub-legible, skip the whole
64
+ // add/remove/position pass. People who spawn or leave meanwhile are settled
65
+ // by the first reconcile after the camera zooms back in. Runs the same
66
+ // idempotent hysteresis step as updateMotion rather than reading the raw
67
+ // latch, so correctness never rests on which pass the frame loop calls
68
+ // first: whichever runs first this frame advances the latch, and an un-cull
69
+ // frame always reconciles (rider hiding, despawn reaping) before rendering.
70
+ if (applyCrowdCull(engine))
71
+ return;
72
+ const rules = towerCatalog(engine.sim).rules;
73
+ const look = { lit: rules.shadedLook, fedUpWait: rules.fedUpWait, progress: stepProgress(clock), clock };
74
+ const seen = new Set();
75
+ for (const p of engine.sim.crowd.people) {
76
+ seen.add(p.id);
77
+ let rec = engine.crowdActors.get(p.id);
78
+ if (!rec) {
79
+ const a = new ex.Actor({ pos: ex.vec(0, 0), width: FIGURE_W, height: FIGURE_H, anchor: FIGURE_ANCHOR, z: Z.crowd });
80
+ engine.engine.add(a);
81
+ rec = { actor: a, glide: newGlide(p.x, p.fy, (p.seed & 1) === 1), key: -1, inCar: ridingHidden(p) };
82
+ engine.crowdActors.set(p.id, rec);
83
+ }
84
+ positionPerson(engine, p, rec, look);
85
+ }
86
+ turnHallDoors(engine);
87
+ reap(engine.crowdActors, seen, (rec) => rec.actor.kill());
88
+ }
89
+ function positionPerson(engine, p, rec, look) {
90
+ const inCar = ridingHidden(p);
91
+ // A rider walking into the car keeps the shaft found while they waited.
92
+ const boarding = inCar && !rec.inCar;
93
+ if ((p.state !== "waiting" && !boarding) || p.floor !== rec.shaftFloor)
94
+ rec.shaftMid = undefined;
95
+ const wasShown = rec.actor.graphics.isVisible;
96
+ let doorX;
97
+ // Getting in or out shows when the drawn car gets there: the cars glide
98
+ // over the same step, so the change waits for the step's glide to end (or
99
+ // the next step to land) instead of happening while the car is drawn a
100
+ // floor away.
101
+ if (rec.inCar !== inCar) {
102
+ rec.boardStep ?? (rec.boardStep = look.clock.steps);
103
+ if (look.progress < 1 && look.clock.steps === rec.boardStep) {
104
+ // Getting on: walk from the line into the car's door, reaching it as
105
+ // the step's glide ends and the figure is hidden.
106
+ if (!rec.inCar)
107
+ doorX = rec.shaftMid ?? p.x;
108
+ else {
109
+ // Still in the drawn car: stay hidden, and follow the engine.
110
+ if (wasShown)
111
+ rec.actor.graphics.isVisible = false;
112
+ advanceGlide(rec.glide, p.x, p.fy, look.clock.stepped, look.progress, false);
113
+ return;
114
+ }
115
+ }
116
+ else
117
+ rec.inCar = inCar;
118
+ }
119
+ if (doorX === undefined)
120
+ rec.boardStep = undefined;
121
+ const hidden = rec.inCar;
122
+ if (wasShown !== !hidden)
123
+ rec.actor.graphics.isVisible = !hidden;
124
+ // Off a stairway or escalator, the walk starts from the landing.
125
+ if (p.state !== "climbing") {
126
+ const landing = leaveFlight(rec);
127
+ if (landing !== undefined)
128
+ rec.glide.x = landing;
129
+ }
130
+ // A hidden rider still follows the engine, so it reappears where it gets
131
+ // out instead of gliding there from the floor it boarded on.
132
+ advanceGlide(rec.glide, doorX ?? p.x, p.fy, look.clock.stepped, look.progress, wasShown && !hidden, p.state === "riding");
133
+ // A rider leaves no trail for the doors: their next step on foot is
134
+ // measured from where they get out, not where they got in.
135
+ if (hidden) {
136
+ rec.lastX = undefined;
137
+ return;
138
+ }
139
+ const g = rec.glide;
140
+ // Use the continuous floor (fy) so a stair/escalator climber animates
141
+ // smoothly between floors; for every other state fy equals the floor.
142
+ // A climber is drawn along the flight's run, not up its middle.
143
+ const climbX = p.state === "climbing" ? climbDrawX(rec, engine.sim.tower.transports, p.x, p.floor, g.fy, g.toFy < g.fromFy, engine.flightPass.winding) : undefined;
144
+ if (climbX !== undefined)
145
+ g.left = rec.climbLeft === true;
146
+ rec.actor.pos = ex.vec(engine.worldX(climbX ?? g.x), engine.worldYTop(g.fy) + FLOOR - 3);
147
+ // Inside a revolving door between lobby halls (#2068) a walker pushes it:
148
+ // walking left they pass behind its center post, walking right in front.
149
+ const onFloor = g.fy === p.floor;
150
+ if (!onFloor)
151
+ rec.lastX = undefined;
152
+ const through = onFloor ? pushThroughDoors(engine, rec, p.floor, rec.actor.pos.x) : undefined;
153
+ // Elsewhere, walking along a floor, a person passes behind the shafts and
154
+ // cabs. The waiting line, a climber and a rider stay in front: the line's
155
+ // mood colors are the traffic gauge, and the others are on the transport.
156
+ const z = through !== undefined ? doorPlane(through) : walkingPlane(p);
157
+ if (rec.actor.z !== z)
158
+ rec.actor.z = z;
159
+ if (p.state === "waiting" && rec.shaftMid === undefined) {
160
+ rec.shaftMid = waitShaftMid(engine.sim.tower.elevators ?? engine.sim.tower.transports, p);
161
+ rec.shaftFloor = p.floor;
162
+ }
163
+ const key = personFigure(p, g, look, through, rec.shaftMid);
164
+ if (key !== rec.key) {
165
+ rec.key = key;
166
+ rec.actor.graphics.use(engine.people.get(key));
167
+ }
168
+ }
169
+ function clearCrowd(engine) {
170
+ // Only the drawn actors are ours; the crowd model belongs to the sim.
171
+ for (const rec of engine.crowdActors.values())
172
+ rec.actor.kill();
173
+ engine.crowdActors.clear();
174
+ }
175
+ // ---- Engine-driven motion (cars, train, walkers) ------------------------
176
+ function clearMotion(engine) {
177
+ for (const c of engine.carActors)
178
+ c.actor.kill();
179
+ for (const t of engine.trainActors)
180
+ t.actor.kill();
181
+ for (const t of engine.tunnelActors)
182
+ t.kill();
183
+ for (const t of engine.truckActors)
184
+ t.actor.kill();
185
+ for (const g of engine.garageCars)
186
+ g.actor.kill();
187
+ for (const w of engine.walkers)
188
+ w.actor.kill();
189
+ engine.carActors = [];
190
+ engine.trainActors = [];
191
+ engine.tunnelActors = [];
192
+ engine.truckActors = [];
193
+ engine.garageCars = [];
194
+ engine.walkers = [];
195
+ }
196
+ function syncMotion(engine) {
197
+ // Carry each car's glide state across the rebuild, keyed by shaft id +
198
+ // car index: structural edits run syncMotion on every revision bump, and
199
+ // without the carry-over an unrelated place/demolish would snap every
200
+ // mid-travel car to its sim position (GH #688). A shaft that vanished simply
201
+ // has no new entry to claim its old state; a genuinely new car seeds lazily
202
+ // at its sim position in updateMotion (the CAP-3 rebuild snap).
203
+ const carried = new Map();
204
+ for (const c of engine.carActors) {
205
+ const s = carDrawStates.get(c);
206
+ if (s)
207
+ carried.set(`${c.t.id}:${c.i}`, s);
208
+ }
209
+ clearMotion(engine);
210
+ for (const t of engine.sim.tower.transports) {
211
+ if (!isElevatorKind(t.kind))
212
+ continue;
213
+ const w = t.width * TILE;
214
+ for (let i = 0; i < t.cars; i++) {
215
+ // One graphic per car, drawn from the tower's shared cab parts; a new
216
+ // state only points it at other parts (`cabGraphics.ts`).
217
+ const cab = new CabGraphic({ w, kind: t.kind }, IDLE_CAR);
218
+ const a = new ex.Actor({ pos: ex.vec(engine.worldX(t.x), -t.carPositions[i] * FLOOR), width: w, height: FLOOR, anchor: ex.vec(0, 0), z: Z.cab });
219
+ a.graphics.use(cab);
220
+ engine.engine.add(a);
221
+ const entry = { actor: a, t, i, w, kind: t.kind, cab, shown: carKey(IDLE_CAR) };
222
+ const prev = carried.get(`${t.id}:${i}`);
223
+ if (prev)
224
+ carDrawStates.set(entry, prev);
225
+ freshCabs.add(entry);
226
+ engine.carActors.push(entry);
227
+ }
228
+ }
229
+ addMetros(engine, engine.sim.tower.units.filter((u) => u.kind === "metro"));
230
+ // Garbage trucks: one per recycling center, parked off-screen until the
231
+ // collection hour (updateMotion drives them in and out along the bottom
232
+ // story, exactly the metro-train pattern).
233
+ for (const u of engine.sim.tower.units) {
234
+ if (u.kind !== "recycling")
235
+ continue;
236
+ const w = 68;
237
+ const cv = new ex.Canvas({ width: w, height: GARBAGE_TRUCK_H, cache: true, draw: (ctx) => drawGarbageTruck(ctx, w) });
238
+ const a = new ex.Actor({
239
+ pos: ex.vec(engine.worldX(u.x), engine.worldYTop(u.floor) + FLOOR - GARBAGE_TRUCK_H),
240
+ width: w,
241
+ height: GARBAGE_TRUCK_H,
242
+ anchor: ex.vec(0, 0),
243
+ z: Z.vehicle,
244
+ });
245
+ a.graphics.use(cv);
246
+ a.graphics.isVisible = false;
247
+ engine.engine.add(a);
248
+ engine.truckActors.push({ actor: a, u, w });
249
+ }
250
+ // Commute cars: one per floor that carries parking structure, cruising the
251
+ // extent of that floor's parking/ramp run at rush hours.
252
+ const runs = new Map();
253
+ for (const u of engine.sim.tower.units) {
254
+ if (u.kind !== "parking" && u.kind !== "parkingRamp")
255
+ continue;
256
+ const r = runs.get(u.floor);
257
+ const right = u.x + u.width;
258
+ if (!r)
259
+ runs.set(u.floor, { min: u.x, max: right });
260
+ else {
261
+ if (u.x < r.min)
262
+ r.min = u.x;
263
+ if (right > r.max)
264
+ r.max = right;
265
+ }
266
+ }
267
+ for (const [floor, r] of runs) {
268
+ const x0w = engine.worldX(r.min) + 2;
269
+ const x1w = engine.worldX(r.max) - 18;
270
+ // A run too short for the car to travel gets none, bail BEFORE creating
271
+ // the actor, so an untracked actor is never added to the engine (it would
272
+ // leak: clearMotion only kills what's in this.garageCars).
273
+ if (x1w <= x0w)
274
+ continue;
275
+ const seed = (floor * 97 + r.min * 13) | 0;
276
+ const cv = new ex.Canvas({ width: 16, height: 8, cache: true, draw: (ctx) => drawStreetCar(ctx, seed) });
277
+ const a = new ex.Actor({ pos: ex.vec(x0w, engine.worldYTop(floor) + FLOOR - 10), width: 16, height: 8, anchor: ex.vec(0, 0), z: Z.streetCar });
278
+ a.graphics.use(cv);
279
+ a.graphics.isVisible = false;
280
+ engine.engine.add(a);
281
+ engine.garageCars.push({ actor: a, floor, x0w, x1w, seed });
282
+ }
283
+ buildWalkers(engine);
284
+ // A structural rebuild recreates the moving layer visible; while the camera
285
+ // is culled-out, hide it again before it can flash for a frame.
286
+ reassertCrowdCull(engine);
287
+ }
288
+ /** Refresh the per-floor occupancy map (0..1) when the hour or layout changes,
289
+ * so decorative passers-by appear only where tenants actually are. */
290
+ function refreshFloorLiveliness(engine) {
291
+ const hour = engine.sim.clock.hour;
292
+ const rev = engine.sim.tower.revision;
293
+ if (hour === engine.floorLiveHour && rev === engine.floorLiveRev)
294
+ return;
295
+ engine.floorLiveHour = hour;
296
+ engine.floorLiveRev = rev;
297
+ const people = new Map();
298
+ for (const u of engine.sim.tower.units) {
299
+ if (u.occupants > 0)
300
+ people.set(u.floor, (people.get(u.floor) ?? 0) + u.occupants);
301
+ }
302
+ engine.floorLive.clear();
303
+ // Scale present occupants to 0..1: ~16 on a floor reads as fully lively (all
304
+ // its loiterers shown); a busier floor shows more, an empty or all-vacant
305
+ // floor shows none.
306
+ for (const [f, n] of people)
307
+ engine.floorLive.set(f, Math.min(1, n / 16));
308
+ }
309
+ /** Per-entry glide state for the elevator cars (GH #688, #2097). Keyed off the
310
+ * carActors entry object so syncMotion's full rebuild naturally forgets old
311
+ * cars, and a fresh entry lazily seeds AT its sim position (its first frame
312
+ * snaps, exactly the old behavior, which also keeps fake-entry tests exact).
313
+ * Deliberately not gated on `d.anim`: car motion is functional, so it keeps
314
+ * gliding under reduced motion, the same rule the routed crowd follows. */
315
+ const carDrawStates = new WeakMap();
316
+ /** The step on which a car's riders changed, while the drawn car is still on
317
+ * its way there. */
318
+ const cabChangeStep = new WeakMap();
319
+ /** Cars just rebuilt by `syncMotion`: their first riders show at once. */
320
+ const freshCabs = new WeakSet();
321
+ /** Repositions every moving actor each frame (the engine then draws them).
322
+ * `elapsedMs` is the engine update's frame delta (stepped by the screenshot
323
+ * TestClock, so the glide below stays deterministic); it advances the step
324
+ * clock the cars and the people share, and the default keeps legacy callers
325
+ * and tests on a plain 60fps frame. */
326
+ function updateMotion(engine, elapsedMs = 1000 / 60) {
327
+ // The step clock runs even while culled, so a zoom-in finds it current.
328
+ tickCrowdClock(engine, elapsedMs);
329
+ const clock = stepClockOf(engine);
330
+ const progress = stepProgress(clock);
331
+ // Zoom cull (CAP-1): owns the hysteresis step for the frame. While culled,
332
+ // every per-frame position/graphic loop below is skipped along with the
333
+ // sibling reconcileCrowd pass.
334
+ if (applyCrowdCull(engine))
335
+ return;
336
+ const anim = engine.d.anim;
337
+ const catalog = towerCatalog(engine.sim);
338
+ const rules = catalog.rules;
339
+ const aboard = cabRidersOf(engine, clock.stepped, { fedUpWait: rules.fedUpWait, lit: rules.shadedLook });
340
+ for (const c of engine.carActors) {
341
+ const target = c.t.carPositions[c.i];
342
+ let drawn = carDrawStates.get(c);
343
+ if (!drawn) {
344
+ drawn = newCarDraw(target);
345
+ carDrawStates.set(c, drawn);
346
+ }
347
+ // The drawn car glides to the engine's position over the step, on the
348
+ // people's step clock, instead of catching up and waiting between floors.
349
+ glideCar(drawn, target, clock.stepped, progress);
350
+ // A stale or hostile engine value beyond the shaft never draws past it.
351
+ if (typeof c.t.bottom === "number" && drawn.pos < c.t.bottom)
352
+ drawn.pos = c.t.bottom;
353
+ if (typeof c.t.top === "number" && drawn.pos > c.t.top)
354
+ drawn.pos = c.t.top;
355
+ c.actor.pos = ex.vec(engine.worldX(c.t.x), -drawn.pos * FLOOR);
356
+ // The boarded riders, the lantern and FULL make the cab's state
357
+ // (`cabWant`, worked out again only when one changes); the cab's graphic
358
+ // then shows it from the shared parts, with nothing painted.
359
+ const cap = catalogFacility(catalog, c.t.kind).carCapacity ?? 0;
360
+ const want = cabWant(c, c.t.carDir?.[c.i] ?? 0, c.t.carLoad?.[c.i] ?? 0, cap, cabLoad(aboard, c.t.id, c.i));
361
+ // The cab's riders change when the drawn car gets there, on the same rule
362
+ // as the people getting in or out (`positionPerson`), so nobody shows in
363
+ // the cab and on the landing at once, or in neither.
364
+ const key = want.key;
365
+ const fresh = freshCabs.delete(c);
366
+ if (key === c.shown)
367
+ cabChangeStep.delete(c);
368
+ else {
369
+ const since = cabChangeStep.get(c) ?? clock.steps;
370
+ if (progress >= 1 || clock.steps > since || fresh) {
371
+ c.shown = key;
372
+ cabChangeStep.delete(c);
373
+ c.cab.show(want.ind);
374
+ }
375
+ else
376
+ cabChangeStep.set(c, since);
377
+ }
378
+ }
379
+ // The metro's one train per line runs on GAME time like the garbage truck,
380
+ // on the engine's timetable (riders leaving by train board it): a run per
381
+ // daytime hour, none overnight, held while the game is paused.
382
+ const timetable = towerCatalog(engine.sim).world.metroTrain;
383
+ for (const tr of engine.trainActors) {
384
+ tr.shift(metroTrainAt(engine.sim.clock.minuteOfDay, tr.line, tr.w + 12, timetable) - tr.line[tr.stop]);
385
+ }
386
+ // The garbage truck runs on GAME time (the collection is a sim event, not
387
+ // ambience): during the collection hour it drives in along the center's
388
+ // bottom story, loads, and drives off, pausing the game freezes it.
389
+ const simClock = engine.sim.clock;
390
+ const garbageCollectHour = towerCatalog(engine.sim).economy.garbageCollectHour;
391
+ const truckHour = simClock.hour === garbageCollectHour;
392
+ for (const tk of engine.truckActors) {
393
+ // No collection at a center that isn't running (under construction, on
394
+ // fire, or a gutted shell), a non-operational plant processes no waste.
395
+ const show = truckHour && isOperational(tk.u);
396
+ if (tk.actor.graphics.isVisible !== show)
397
+ tk.actor.graphics.isVisible = show;
398
+ if (!show)
399
+ continue;
400
+ const p = (simClock.minuteOfDay - garbageCollectHour * 60) / 60; // 0..1 through the hour
401
+ const base = engine.worldX(tk.u.x);
402
+ const uw = tk.u.width * TILE;
403
+ let x;
404
+ if (p < 0.25)
405
+ x = base - 60 + (p / 0.25) * 60; // roll in from the left
406
+ else if (p < 0.7)
407
+ x = base; // loading at the mouth
408
+ else
409
+ x = base + ((p - 0.7) / 0.3) * (uw + 20); // drive off across the deck
410
+ tk.actor.pos = ex.vec(x, engine.worldYTop(tk.u.floor) + FLOOR - GARBAGE_TRUCK_H);
411
+ }
412
+ // Garage commute cars: cruise the parking decks during the morning and
413
+ // evening rushes, but only when the garage actually has cars to move.
414
+ // Reads the fraction computed in syncScene (per sync, not per frame), so
415
+ // this frame-path never runs the parking flood-fill itself.
416
+ // While guards search for a bomb the engine holds every person and car
417
+ // still, so the decorations that stand for people (garage cars,
418
+ // passers-by) leave too.
419
+ const lockdown = engine.sim.bombSearch?.lockdown === true;
420
+ const rushing = (simClock.isMorning() || simClock.isEvening()) && engine.displayParkingUse > 0 && !lockdown;
421
+ for (const g of engine.garageCars) {
422
+ if (g.actor.graphics.isVisible !== rushing)
423
+ g.actor.graphics.isVisible = rushing;
424
+ if (!rushing)
425
+ continue;
426
+ let p = (Math.abs(g.seed) % 100) / 100 + anim * 0.05;
427
+ p -= Math.floor(p);
428
+ const tt = 1 - Math.abs(2 * p - 1); // ping-pong along the deck
429
+ g.actor.pos = ex.vec(g.x0w + tt * (g.x1w - g.x0w), engine.worldYTop(g.floor) + FLOOR - 10);
430
+ }
431
+ // A tower with no passers-by (every Classic tower) skips the occupancy walk.
432
+ if (engine.walkers.length > 0)
433
+ refreshFloorLiveliness(engine);
434
+ // The Settings switch (Modern, default off) and reduced motion each hide every
435
+ // passer-by; reduced motion promises to calm background animation (#2091).
436
+ const passersShown = engine.passersBy && !engine.reducedMotion && !lockdown;
437
+ const lit = engine.walkers.length > 0 && towerCatalog(engine.sim).rules.shadedLook;
438
+ for (const w of engine.walkers) {
439
+ // A passer-by shows only while its own floor has live occupants, so an
440
+ // empty floor stays empty.
441
+ const visible = passersShown && w.rank <= (engine.floorLive.get(w.floor) ?? 0);
442
+ if (w.actor.graphics.isVisible !== visible)
443
+ w.actor.graphics.isVisible = visible;
444
+ if (!visible)
445
+ continue;
446
+ let p = w.phase + (w.dir > 0 ? 0 : 0.5) + anim * w.speed * 0.03;
447
+ p -= Math.floor(p);
448
+ // Ping-pong 0→1→0 so figures pace back and forth instead of teleporting
449
+ // from the far end back to the start each loop.
450
+ const tt = 1 - Math.abs(2 * p - 1);
451
+ // A passer-by never turns amber or red: it has no wait, and a mood color
452
+ // is how a player spots a real person waiting too long. It faces the way
453
+ // it paces (the first half of the ping-pong runs toward x1w).
454
+ w.actor.pos = ex.vec(w.x0w + tt * (w.x1w - w.x0w), w.yw);
455
+ const key = figureKey(w.look, "walk", strideFrame(lit, w.actor.pos.x, w.look), "content", p > 0.5, lit);
456
+ if (key !== w.key) {
457
+ w.key = key;
458
+ w.actor.graphics.use(engine.people.get(key));
459
+ }
460
+ }
461
+ }
462
+
463
+ export { clearCrowd, clearMotion, reap, reconcileCrowd, syncMotion, tickCrowdClock, updateMotion };
464
+ //# sourceMappingURL=towerCrowd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"towerCrowd.js","sources":["../../../src/render/excalibur/towerCrowd.ts"],"sourcesContent":["import * as ex from \"excalibur\";\nimport { Z } from \"../depthPlanes\";\nimport { isElevatorKind } from \"../../presentation/viewKinds\";\nimport { catalogFacility } from \"../../catalog/catalogTypes\";\nimport { towerCatalog } from \"../../catalog/towerCatalog\";\nimport { isOperational } from \"../../shared/unitState\";\nimport { drawGarbageTruck, drawStreetCar } from \"../sprites\";\nimport { GARBAGE_TRUCK_H } from \"../sprites/facilities/vehicles\";\nimport { metroTrainAt } from \"../metroTrainSchedule\";\nimport { addMetros } from \"./towerMetro\";\nimport { buildWalkers } from \"./towerWalkerBuild\";\nimport { cabLoad, cabRidersOf } from \"./cabRiders\";\nimport { CabGraphic, cabWant, carKey, IDLE_CAR } from \"./cabGraphics\";\nimport { glideCar, newCarDraw, type CarDrawState } from \"../carMotion\";\nimport type { PersonView } from \"../../simport/view\";\nimport { FLOOR, TILE } from \"../scale\";\nimport type { TowerEngine } from \"./TowerEngine\";\nimport { climbDrawX, leaveFlight, type Climber } from \"../climbPath\";\nimport { applyCrowdCull, reassertCrowdCull } from \"./crowdCull\";\nimport { FIGURE_ANCHOR, FIGURE_H, FIGURE_W } from \"./peopleGfx\";\nimport { advanceGlide, figureKey, newGlide, newStepClock, stepProgress, strideFrame, tickStepClock, type Glide, type StepClock } from \"./crowdLook\";\nimport { doorPlane, personFigure, ridingHidden, waitShaftMid, walkingPlane, type CrowdLook } from \"./crowdFigure\";\nimport { pushThroughDoors, turnHallDoors, type Pusher } from \"./towerHallDoors\";\n\n/**\n * Engine-driven crowd and motion for {@link TowerEngine}: the routed commuter\n * actors, elevator cars, metro train, garbage trucks, garage cars and the\n * decorative passers-by. Friend functions taking the engine instance. Extracted from\n * `TowerEngine.ts`; the class keeps thin delegations. Pure code move: the\n * positioning, cadence and Excalibur calls are unchanged.\n */\n\n\n/** Retained-actor reconciliation tail: kill and forget every entry the\n * current pass didn't mark as seen. Each reconciler supplies its own\n * disposal (kill one actor, kill a pair, drop a parallel sig entry). Shared\n * by `towerCrowd` and `towerReconcile`. */\nexport function reap<K, V>(map: Map<K, V>, seen: ReadonlySet<K>, dispose: (v: V, k: K) => void): void {\n for (const [k, v] of map) {\n if (seen.has(k)) continue;\n dispose(v, k);\n map.delete(k);\n }\n}\n\n/** A decorative passer-by: a corridor figure that is not a person the engine\n * knows about (#2091; built by `buildWalkers`, Modern only). */\nexport interface Walker {\n actor: ex.Actor;\n /** Its cast look (an index into `LOOKS`). */\n look: number;\n /** The bake it shows now (`figureKey`), so the graphic swaps only on a change. */\n key: number;\n x0w: number;\n x1w: number;\n /** The world y its feet stand on. */\n yw: number;\n speed: number;\n dir: number;\n phase: number;\n /** 0..1 position in its floor's crowd; shown only when the floor is busy enough. */\n rank: number;\n /** Floor this figure belongs to (for per-floor occupancy gating). */\n floor: number;\n}\n\n/** One drawn person: the actor, its glide between the engine's positions, and\n * the bake it shows (`figureKey`), so the graphic swaps only on a change. */\nexport interface CrowdActor extends Pusher, Climber {\n actor: ex.Actor;\n glide: Glide;\n key: number;\n /** Whether the figure is drawn as inside a car (hidden). It follows the\n * engine's riding state once the drawn car gets there. */\n inCar: boolean;\n /** The step on which this person got in or out of a car, while the drawn\n * car is still on its way (see `positionPerson`). */\n boardStep?: number;\n /** The middle of the shaft this person waits at (`waitShaftMid`), found\n * once per wait; `undefined` while not waiting. */\n shaftMid?: number | null;\n /** The floor `shaftMid` was found on: a wait on another floor finds its\n * own shaft, even when the zoom cull hid the ride between them. */\n shaftFloor?: number;\n}\n\nconst stepClocks = new WeakMap<TowerEngine, StepClock>();\n\n/** The renderer's step clock, advanced once per frame by `tickCrowdClock`. */\nfunction stepClockOf(engine: TowerEngine): StepClock {\n let c = stepClocks.get(engine);\n if (!c) {\n c = newStepClock(engine.sim.clock.minutes);\n stepClocks.set(engine, c);\n }\n return c;\n}\n\n/** Advance the step clock the cars and the people glide on by one frame of\n * `elapsedMs`, before either is drawn (`updateMotion` calls it first). A\n * paused game passes no time. */\nexport function tickCrowdClock(engine: TowerEngine, elapsedMs: number): void {\n tickStepClock(stepClockOf(engine), engine.sim.clock.minutes, engine.paused ? 0 : elapsedMs);\n}\n\n/** Draw the engine-owned commuters: add/remove/position one actor per live\n * person, by stable id. Read-only, the engine advances the crowd in tick().\n * The step clock (`tickCrowdClock`) paces the glide and the beats. */\nexport function reconcileCrowd(engine: TowerEngine): void {\n const clock = stepClockOf(engine);\n // Zoom cull (CAP-1): while the moving layer is sub-legible, skip the whole\n // add/remove/position pass. People who spawn or leave meanwhile are settled\n // by the first reconcile after the camera zooms back in. Runs the same\n // idempotent hysteresis step as updateMotion rather than reading the raw\n // latch, so correctness never rests on which pass the frame loop calls\n // first: whichever runs first this frame advances the latch, and an un-cull\n // frame always reconciles (rider hiding, despawn reaping) before rendering.\n if (applyCrowdCull(engine)) return;\n const rules = towerCatalog(engine.sim).rules;\n const look: CrowdLook = { lit: rules.shadedLook, fedUpWait: rules.fedUpWait, progress: stepProgress(clock), clock };\n const seen = new Set<number>();\n for (const p of engine.sim.crowd.people) {\n seen.add(p.id);\n let rec = engine.crowdActors.get(p.id);\n if (!rec) {\n const a = new ex.Actor({ pos: ex.vec(0, 0), width: FIGURE_W, height: FIGURE_H, anchor: FIGURE_ANCHOR, z: Z.crowd });\n engine.engine.add(a);\n rec = { actor: a, glide: newGlide(p.x, p.fy, (p.seed & 1) === 1), key: -1, inCar: ridingHidden(p) };\n engine.crowdActors.set(p.id, rec);\n }\n positionPerson(engine, p, rec, look);\n }\n turnHallDoors(engine);\n reap(engine.crowdActors, seen, (rec) => rec.actor.kill());\n}\n\nfunction positionPerson(engine: TowerEngine, p: PersonView, rec: CrowdActor, look: CrowdLook): void {\n const inCar = ridingHidden(p);\n // A rider walking into the car keeps the shaft found while they waited.\n const boarding = inCar && !rec.inCar;\n if ((p.state !== \"waiting\" && !boarding) || p.floor !== rec.shaftFloor) rec.shaftMid = undefined;\n const wasShown = rec.actor.graphics.isVisible;\n let doorX: number | undefined;\n // Getting in or out shows when the drawn car gets there: the cars glide\n // over the same step, so the change waits for the step's glide to end (or\n // the next step to land) instead of happening while the car is drawn a\n // floor away.\n if (rec.inCar !== inCar) {\n rec.boardStep ??= look.clock.steps;\n if (look.progress < 1 && look.clock.steps === rec.boardStep) {\n // Getting on: walk from the line into the car's door, reaching it as\n // the step's glide ends and the figure is hidden.\n if (!rec.inCar) doorX = rec.shaftMid ?? p.x;\n else {\n // Still in the drawn car: stay hidden, and follow the engine.\n if (wasShown) rec.actor.graphics.isVisible = false;\n advanceGlide(rec.glide, p.x, p.fy, look.clock.stepped, look.progress, false);\n return;\n }\n } else rec.inCar = inCar;\n }\n if (doorX === undefined) rec.boardStep = undefined;\n const hidden = rec.inCar;\n if (wasShown !== !hidden) rec.actor.graphics.isVisible = !hidden;\n // Off a stairway or escalator, the walk starts from the landing.\n if (p.state !== \"climbing\") {\n const landing = leaveFlight(rec);\n if (landing !== undefined) rec.glide.x = landing;\n }\n // A hidden rider still follows the engine, so it reappears where it gets\n // out instead of gliding there from the floor it boarded on.\n advanceGlide(rec.glide, doorX ?? p.x, p.fy, look.clock.stepped, look.progress, wasShown && !hidden, p.state === \"riding\");\n // A rider leaves no trail for the doors: their next step on foot is\n // measured from where they get out, not where they got in.\n if (hidden) {\n rec.lastX = undefined;\n return;\n }\n const g = rec.glide;\n // Use the continuous floor (fy) so a stair/escalator climber animates\n // smoothly between floors; for every other state fy equals the floor.\n // A climber is drawn along the flight's run, not up its middle.\n const climbX = p.state === \"climbing\" ? climbDrawX(rec, engine.sim.tower.transports, p.x, p.floor, g.fy, g.toFy < g.fromFy, engine.flightPass.winding) : undefined;\n if (climbX !== undefined) g.left = rec.climbLeft === true;\n rec.actor.pos = ex.vec(engine.worldX(climbX ?? g.x), engine.worldYTop(g.fy) + FLOOR - 3);\n // Inside a revolving door between lobby halls (#2068) a walker pushes it:\n // walking left they pass behind its center post, walking right in front.\n const onFloor = g.fy === p.floor;\n if (!onFloor) rec.lastX = undefined;\n const through = onFloor ? pushThroughDoors(engine, rec, p.floor, rec.actor.pos.x) : undefined;\n // Elsewhere, walking along a floor, a person passes behind the shafts and\n // cabs. The waiting line, a climber and a rider stay in front: the line's\n // mood colors are the traffic gauge, and the others are on the transport.\n const z = through !== undefined ? doorPlane(through) : walkingPlane(p);\n if (rec.actor.z !== z) rec.actor.z = z;\n if (p.state === \"waiting\" && rec.shaftMid === undefined) {\n rec.shaftMid = waitShaftMid(engine.sim.tower.elevators ?? engine.sim.tower.transports, p);\n rec.shaftFloor = p.floor;\n }\n const key = personFigure(p, g, look, through, rec.shaftMid);\n if (key !== rec.key) {\n rec.key = key;\n rec.actor.graphics.use(engine.people.get(key));\n }\n}\n\nexport function clearCrowd(engine: TowerEngine): void {\n // Only the drawn actors are ours; the crowd model belongs to the sim.\n for (const rec of engine.crowdActors.values()) rec.actor.kill();\n engine.crowdActors.clear();\n}\n\n// ---- Engine-driven motion (cars, train, walkers) ------------------------\n\nexport function clearMotion(engine: TowerEngine): void {\n for (const c of engine.carActors) c.actor.kill();\n for (const t of engine.trainActors) t.actor.kill();\n for (const t of engine.tunnelActors) t.kill();\n for (const t of engine.truckActors) t.actor.kill();\n for (const g of engine.garageCars) g.actor.kill();\n for (const w of engine.walkers) w.actor.kill();\n engine.carActors = [];\n engine.trainActors = [];\n engine.tunnelActors = [];\n engine.truckActors = [];\n engine.garageCars = [];\n engine.walkers = [];\n}\n\nexport function syncMotion(engine: TowerEngine): void {\n // Carry each car's glide state across the rebuild, keyed by shaft id +\n // car index: structural edits run syncMotion on every revision bump, and\n // without the carry-over an unrelated place/demolish would snap every\n // mid-travel car to its sim position (GH #688). A shaft that vanished simply\n // has no new entry to claim its old state; a genuinely new car seeds lazily\n // at its sim position in updateMotion (the CAP-3 rebuild snap).\n const carried = new Map<string, CarDrawState>();\n for (const c of engine.carActors) {\n const s = carDrawStates.get(c);\n if (s) carried.set(`${c.t.id}:${c.i}`, s);\n }\n clearMotion(engine);\n for (const t of engine.sim.tower.transports) {\n if (!isElevatorKind(t.kind)) continue;\n const w = t.width * TILE;\n for (let i = 0; i < t.cars; i++) {\n // One graphic per car, drawn from the tower's shared cab parts; a new\n // state only points it at other parts (`cabGraphics.ts`).\n const cab = new CabGraphic({ w, kind: t.kind }, IDLE_CAR);\n const a = new ex.Actor({ pos: ex.vec(engine.worldX(t.x), -t.carPositions[i] * FLOOR), width: w, height: FLOOR, anchor: ex.vec(0, 0), z: Z.cab });\n a.graphics.use(cab);\n engine.engine.add(a);\n const entry = { actor: a, t, i, w, kind: t.kind, cab, shown: carKey(IDLE_CAR) };\n const prev = carried.get(`${t.id}:${i}`);\n if (prev) carDrawStates.set(entry, prev);\n freshCabs.add(entry);\n engine.carActors.push(entry);\n }\n }\n addMetros(engine, engine.sim.tower.units.filter((u) => u.kind === \"metro\"));\n // Garbage trucks: one per recycling center, parked off-screen until the\n // collection hour (updateMotion drives them in and out along the bottom\n // story, exactly the metro-train pattern).\n for (const u of engine.sim.tower.units) {\n if (u.kind !== \"recycling\") continue;\n const w = 68;\n const cv = new ex.Canvas({ width: w, height: GARBAGE_TRUCK_H, cache: true, draw: (ctx) => drawGarbageTruck(ctx, w) });\n const a = new ex.Actor({\n pos: ex.vec(engine.worldX(u.x), engine.worldYTop(u.floor) + FLOOR - GARBAGE_TRUCK_H),\n width: w,\n height: GARBAGE_TRUCK_H,\n anchor: ex.vec(0, 0),\n z: Z.vehicle,\n });\n a.graphics.use(cv);\n a.graphics.isVisible = false;\n engine.engine.add(a);\n engine.truckActors.push({ actor: a, u, w });\n }\n // Commute cars: one per floor that carries parking structure, cruising the\n // extent of that floor's parking/ramp run at rush hours.\n const runs = new Map<number, { min: number; max: number }>();\n for (const u of engine.sim.tower.units) {\n if (u.kind !== \"parking\" && u.kind !== \"parkingRamp\") continue;\n const r = runs.get(u.floor);\n const right = u.x + u.width;\n if (!r) runs.set(u.floor, { min: u.x, max: right });\n else {\n if (u.x < r.min) r.min = u.x;\n if (right > r.max) r.max = right;\n }\n }\n for (const [floor, r] of runs) {\n const x0w = engine.worldX(r.min) + 2;\n const x1w = engine.worldX(r.max) - 18;\n // A run too short for the car to travel gets none, bail BEFORE creating\n // the actor, so an untracked actor is never added to the engine (it would\n // leak: clearMotion only kills what's in this.garageCars).\n if (x1w <= x0w) continue;\n const seed = (floor * 97 + r.min * 13) | 0;\n const cv = new ex.Canvas({ width: 16, height: 8, cache: true, draw: (ctx) => drawStreetCar(ctx, seed) });\n const a = new ex.Actor({ pos: ex.vec(x0w, engine.worldYTop(floor) + FLOOR - 10), width: 16, height: 8, anchor: ex.vec(0, 0), z: Z.streetCar });\n a.graphics.use(cv);\n a.graphics.isVisible = false;\n engine.engine.add(a);\n engine.garageCars.push({ actor: a, floor, x0w, x1w, seed });\n }\n buildWalkers(engine);\n // A structural rebuild recreates the moving layer visible; while the camera\n // is culled-out, hide it again before it can flash for a frame.\n reassertCrowdCull(engine);\n}\n\n\n/** Refresh the per-floor occupancy map (0..1) when the hour or layout changes,\n * so decorative passers-by appear only where tenants actually are. */\nfunction refreshFloorLiveliness(engine: TowerEngine): void {\n const hour = engine.sim.clock.hour;\n const rev = engine.sim.tower.revision;\n if (hour === engine.floorLiveHour && rev === engine.floorLiveRev) return;\n engine.floorLiveHour = hour;\n engine.floorLiveRev = rev;\n const people = new Map<number, number>();\n for (const u of engine.sim.tower.units) {\n if (u.occupants > 0) people.set(u.floor, (people.get(u.floor) ?? 0) + u.occupants);\n }\n engine.floorLive.clear();\n // Scale present occupants to 0..1: ~16 on a floor reads as fully lively (all\n // its loiterers shown); a busier floor shows more, an empty or all-vacant\n // floor shows none.\n for (const [f, n] of people) engine.floorLive.set(f, Math.min(1, n / 16));\n}\n\n/** Per-entry glide state for the elevator cars (GH #688, #2097). Keyed off the\n * carActors entry object so syncMotion's full rebuild naturally forgets old\n * cars, and a fresh entry lazily seeds AT its sim position (its first frame\n * snaps, exactly the old behavior, which also keeps fake-entry tests exact).\n * Deliberately not gated on `d.anim`: car motion is functional, so it keeps\n * gliding under reduced motion, the same rule the routed crowd follows. */\nconst carDrawStates = new WeakMap<object, CarDrawState>();\n/** The step on which a car's riders changed, while the drawn car is still on\n * its way there. */\nconst cabChangeStep = new WeakMap<object, number>();\n/** Cars just rebuilt by `syncMotion`: their first riders show at once. */\nconst freshCabs = new WeakSet<object>();\n\n/** Repositions every moving actor each frame (the engine then draws them).\n * `elapsedMs` is the engine update's frame delta (stepped by the screenshot\n * TestClock, so the glide below stays deterministic); it advances the step\n * clock the cars and the people share, and the default keeps legacy callers\n * and tests on a plain 60fps frame. */\nexport function updateMotion(engine: TowerEngine, elapsedMs = 1000 / 60): void {\n // The step clock runs even while culled, so a zoom-in finds it current.\n tickCrowdClock(engine, elapsedMs);\n const clock = stepClockOf(engine);\n const progress = stepProgress(clock);\n // Zoom cull (CAP-1): owns the hysteresis step for the frame. While culled,\n // every per-frame position/graphic loop below is skipped along with the\n // sibling reconcileCrowd pass.\n if (applyCrowdCull(engine)) return;\n const anim = engine.d.anim;\n const catalog = towerCatalog(engine.sim);\n const rules = catalog.rules;\n const aboard = cabRidersOf(engine, clock.stepped, { fedUpWait: rules.fedUpWait, lit: rules.shadedLook });\n for (const c of engine.carActors) {\n const target = c.t.carPositions[c.i];\n let drawn = carDrawStates.get(c);\n if (!drawn) {\n drawn = newCarDraw(target);\n carDrawStates.set(c, drawn);\n }\n // The drawn car glides to the engine's position over the step, on the\n // people's step clock, instead of catching up and waiting between floors.\n glideCar(drawn, target, clock.stepped, progress);\n // A stale or hostile engine value beyond the shaft never draws past it.\n if (typeof c.t.bottom === \"number\" && drawn.pos < c.t.bottom) drawn.pos = c.t.bottom;\n if (typeof c.t.top === \"number\" && drawn.pos > c.t.top) drawn.pos = c.t.top;\n c.actor.pos = ex.vec(engine.worldX(c.t.x), -drawn.pos * FLOOR);\n // The boarded riders, the lantern and FULL make the cab's state\n // (`cabWant`, worked out again only when one changes); the cab's graphic\n // then shows it from the shared parts, with nothing painted.\n const cap = catalogFacility(catalog, c.t.kind).carCapacity ?? 0;\n const want = cabWant(c, c.t.carDir?.[c.i] ?? 0, c.t.carLoad?.[c.i] ?? 0, cap, cabLoad(aboard, c.t.id, c.i));\n // The cab's riders change when the drawn car gets there, on the same rule\n // as the people getting in or out (`positionPerson`), so nobody shows in\n // the cab and on the landing at once, or in neither.\n const key = want.key;\n const fresh = freshCabs.delete(c);\n if (key === c.shown) cabChangeStep.delete(c);\n else {\n const since = cabChangeStep.get(c) ?? clock.steps;\n if (progress >= 1 || clock.steps > since || fresh) {\n c.shown = key;\n cabChangeStep.delete(c);\n c.cab.show(want.ind);\n } else cabChangeStep.set(c, since);\n }\n }\n // The metro's one train per line runs on GAME time like the garbage truck,\n // on the engine's timetable (riders leaving by train board it): a run per\n // daytime hour, none overnight, held while the game is paused.\n const timetable = towerCatalog(engine.sim).world.metroTrain;\n for (const tr of engine.trainActors) {\n tr.shift(metroTrainAt(engine.sim.clock.minuteOfDay, tr.line, tr.w + 12, timetable) - tr.line[tr.stop]);\n }\n // The garbage truck runs on GAME time (the collection is a sim event, not\n // ambience): during the collection hour it drives in along the center's\n // bottom story, loads, and drives off, pausing the game freezes it.\n const simClock = engine.sim.clock;\n const garbageCollectHour = towerCatalog(engine.sim).economy.garbageCollectHour;\n const truckHour = simClock.hour === garbageCollectHour;\n for (const tk of engine.truckActors) {\n // No collection at a center that isn't running (under construction, on\n // fire, or a gutted shell), a non-operational plant processes no waste.\n const show = truckHour && isOperational(tk.u);\n if (tk.actor.graphics.isVisible !== show) tk.actor.graphics.isVisible = show;\n if (!show) continue;\n const p = (simClock.minuteOfDay - garbageCollectHour * 60) / 60; // 0..1 through the hour\n const base = engine.worldX(tk.u.x);\n const uw = tk.u.width * TILE;\n let x: number;\n if (p < 0.25) x = base - 60 + (p / 0.25) * 60; // roll in from the left\n else if (p < 0.7) x = base; // loading at the mouth\n else x = base + ((p - 0.7) / 0.3) * (uw + 20); // drive off across the deck\n tk.actor.pos = ex.vec(x, engine.worldYTop(tk.u.floor) + FLOOR - GARBAGE_TRUCK_H);\n }\n // Garage commute cars: cruise the parking decks during the morning and\n // evening rushes, but only when the garage actually has cars to move.\n // Reads the fraction computed in syncScene (per sync, not per frame), so\n // this frame-path never runs the parking flood-fill itself.\n // While guards search for a bomb the engine holds every person and car\n // still, so the decorations that stand for people (garage cars,\n // passers-by) leave too.\n const lockdown = engine.sim.bombSearch?.lockdown === true;\n const rushing = (simClock.isMorning() || simClock.isEvening()) && engine.displayParkingUse > 0 && !lockdown;\n for (const g of engine.garageCars) {\n if (g.actor.graphics.isVisible !== rushing) g.actor.graphics.isVisible = rushing;\n if (!rushing) continue;\n let p = (Math.abs(g.seed) % 100) / 100 + anim * 0.05;\n p -= Math.floor(p);\n const tt = 1 - Math.abs(2 * p - 1); // ping-pong along the deck\n g.actor.pos = ex.vec(g.x0w + tt * (g.x1w - g.x0w), engine.worldYTop(g.floor) + FLOOR - 10);\n }\n // A tower with no passers-by (every Classic tower) skips the occupancy walk.\n if (engine.walkers.length > 0) refreshFloorLiveliness(engine);\n // The Settings switch (Modern, default off) and reduced motion each hide every\n // passer-by; reduced motion promises to calm background animation (#2091).\n const passersShown = engine.passersBy && !engine.reducedMotion && !lockdown;\n const lit = engine.walkers.length > 0 && towerCatalog(engine.sim).rules.shadedLook;\n for (const w of engine.walkers) {\n // A passer-by shows only while its own floor has live occupants, so an\n // empty floor stays empty.\n const visible = passersShown && w.rank <= (engine.floorLive.get(w.floor) ?? 0);\n if (w.actor.graphics.isVisible !== visible) w.actor.graphics.isVisible = visible;\n if (!visible) continue;\n let p = w.phase + (w.dir > 0 ? 0 : 0.5) + anim * w.speed * 0.03;\n p -= Math.floor(p);\n // Ping-pong 0→1→0 so figures pace back and forth instead of teleporting\n // from the far end back to the start each loop.\n const tt = 1 - Math.abs(2 * p - 1);\n // A passer-by never turns amber or red: it has no wait, and a mood color\n // is how a player spots a real person waiting too long. It faces the way\n // it paces (the first half of the ping-pong runs toward x1w).\n w.actor.pos = ex.vec(w.x0w + tt * (w.x1w - w.x0w), w.yw);\n const key = figureKey(w.look, \"walk\", strideFrame(lit, w.actor.pos.x, w.look), \"content\", p > 0.5, lit);\n if (key !== w.key) {\n w.key = key;\n w.actor.graphics.use(engine.people.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