@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,433 @@
1
+ import type { EnginePortRecycling } from "./recyclingPort";
2
+ import type { EnginePortSkyBridge } from "./skyBridgePort";
3
+ import type { EnginePortTraffic } from "./trafficPort";
4
+ /** Low-frequency keyed inspector facts. Rust produces the status verdicts
5
+ * and the numbers; neither the UI nor the binding recomputes game rules. */
6
+ export interface ServiceDiagnosticFacts {
7
+ readonly hotel: {
8
+ readonly rating: "notApplicable" | "counts" | "excluded";
9
+ readonly condition: "other" | "dirty" | "infested";
10
+ readonly infestDays: number | null;
11
+ readonly recovery: boolean | null;
12
+ };
13
+ readonly parking: {
14
+ readonly status: "notApplicable" | "ramp" | "connected" | "disconnected";
15
+ readonly shortage: boolean | null;
16
+ readonly have: number | null;
17
+ readonly total: number | null;
18
+ readonly offices: number | null;
19
+ readonly suites: number | null;
20
+ };
21
+ readonly housekeeping: {
22
+ readonly status: "notApplicable" | "adequate" | "nominalShortfall" | "observedShortfall";
23
+ readonly crews: number | null;
24
+ readonly maids: number | null;
25
+ readonly rooms: number | null;
26
+ readonly maidsPerUnit: number | null;
27
+ readonly roomsPerMaid: number | null;
28
+ readonly cleaned: number | null;
29
+ readonly leftover: number | null;
30
+ readonly infested: number | null;
31
+ readonly outOfReach: number | null;
32
+ readonly hasInfested: boolean | null;
33
+ readonly hasOutOfReach: boolean | null;
34
+ readonly recovery: boolean | null;
35
+ };
36
+ readonly retail: {
37
+ readonly active: boolean;
38
+ readonly today: number | null;
39
+ readonly barWidth: number | null;
40
+ readonly tier: "notApplicable" | "noData" | "low" | "average" | "booming";
41
+ readonly localDemandPct: number | null;
42
+ readonly advice: "none" | "underServed" | "overBuilt";
43
+ readonly profitYest: number | null;
44
+ readonly rainy: boolean | null;
45
+ };
46
+ readonly commercial: {
47
+ /** More than two floors from a (sky) lobby, which halves a venue's trade;
48
+ * null for a unit the penalty never applies to (a sky bar, or a venue that
49
+ * earns no traffic income in this mode). */
50
+ readonly lobbyFar: boolean | null;
51
+ };
52
+ }
53
+ /** How an Auto-tune proposal query ended. The engine decides every status;
54
+ * the host only picks wording and button state from it. */
55
+ export type AutoTuneStatus = "available" | "insufficient-data" | "unavailable-in-mode" | "no-cars" | "not-an-elevator" | "missing-shaft" | "invalid-draft";
56
+ /** One day type's readiness: `warm` is what Auto-tune needs to tune that day.
57
+ * A warm day also carries its measured 24-hour `curve` (0 to 1 per hour of
58
+ * day), the ring the engine tuned from; a cold day has none. */
59
+ export interface AutoTuneDay {
60
+ readonly warm: boolean;
61
+ readonly sampledHours: number;
62
+ readonly curve: readonly number[] | null;
63
+ }
64
+ /** What `autoTuneProposal` answers (engine-rs `schedule_authoring.rs`).
65
+ * `proposal` is present only for `available`. A day type that is not warm
66
+ * keeps the draft's own row (null when the draft has none). */
67
+ export interface AutoTuneProposal {
68
+ readonly status: AutoTuneStatus;
69
+ readonly weekday: AutoTuneDay;
70
+ readonly weekend: AutoTuneDay;
71
+ readonly proposal: {
72
+ readonly weekday: readonly number[] | null;
73
+ readonly weekend: readonly number[] | null;
74
+ readonly homeFloors: readonly number[];
75
+ /** True when the engine seeded the homes, false when they are the draft's own. */
76
+ readonly homesSeeded: boolean;
77
+ } | null;
78
+ }
79
+ /** A named schedule intent. The first three are the Modern presets;
80
+ * `stage-up-tower` is the staging-only play the raw grid offers in both modes. */
81
+ export type SchedulePresetName = "rush" | "balanced" | "feeder" | "stage-up-tower";
82
+ /** The three presets the dialog offers as buttons. */
83
+ export type AssistedPreset = Exclude<SchedulePresetName, "stage-up-tower">;
84
+ /** How a preset query ended. */
85
+ export type PresetStatus = "available" | "unavailable-in-mode" | "no-cars" | "not-an-elevator" | "missing-shaft" | "unknown-preset";
86
+ /** What `schedulePreset` answers (engine-rs `schedule_presets.rs`): the rows and
87
+ * homes the preset sets. `weekday` and `weekend` are null for the staging-only
88
+ * play and on every refusal. */
89
+ export interface PresetProposal {
90
+ readonly status: PresetStatus;
91
+ readonly weekday: readonly number[] | null;
92
+ readonly weekend: readonly number[] | null;
93
+ readonly homeFloors: readonly number[];
94
+ }
95
+ export type ScheduleFactsStatus = "available" | "not-an-elevator" | "missing-shaft" | "invalid-draft";
96
+ /** The advice comparison (engine-rs `schedule_facts.rs`). `ready` with empty
97
+ * `over` and `short` means the schedule and the measured load line up. */
98
+ export interface ScheduleAdvice {
99
+ /** `no-cars`: the shaft holds none (a loaded save can). `refused`: the query
100
+ * itself was refused, and the answer's `status` says why. */
101
+ readonly status: "ready" | "insufficient-data" | "unavailable-in-mode" | "no-cars" | "refused";
102
+ /** Hours (0 to 23) where the authored cars are well above the measured want. */
103
+ readonly over: readonly number[];
104
+ /** Hours where they are well below it; never an hour that runs the whole fleet. */
105
+ readonly short: readonly number[];
106
+ }
107
+ /** The Simulate staging summary: how the fleet is positioned. It promises no wait time. */
108
+ export interface StagingSummary {
109
+ /** True when `peakHour` is the day's measured busiest hour, false when it is
110
+ * the assumed evening down-rush. */
111
+ readonly measured: boolean;
112
+ readonly peakHour: number;
113
+ readonly activeAtPeak: number;
114
+ readonly upTowerCars: number;
115
+ readonly lobbyCars: number;
116
+ readonly topLobby: number;
117
+ readonly baseLobby: number;
118
+ }
119
+ /** What `scheduleFacts` answers. `recommended` is the preset to highlight, null
120
+ * where the mode offers no assisted presets; `staging` is null on a refusal. */
121
+ export interface ScheduleFacts {
122
+ readonly status: ScheduleFactsStatus;
123
+ readonly recommended: AssistedPreset | null;
124
+ readonly advice: ScheduleAdvice;
125
+ readonly staging: StagingSummary | null;
126
+ /** The draft's homes as the shaft would hold them: one per car, each on the
127
+ * nearest served floor (ties to the lower), a car the draft lists no home for
128
+ * at the base lobby. Empty on a refusal. */
129
+ readonly homeFloors: readonly number[];
130
+ }
131
+ /** A `Float64Array` record whose slots `viewLayout().records` names. */
132
+ export type PortRecord = Float64Array;
133
+ /** `undo` and `redo` answer this status when there is no step to take. A done
134
+ * step is `1` and a refused one `0`, as for any swap. */
135
+ export declare const UNDO_NOTHING_TO_STEP = 2;
136
+ /** The status of a step the engine refused; `lastReason()` says why. */
137
+ export declare const UNDO_REFUSED = 0;
138
+ /** The status of a step the engine took: the tower changed and the
139
+ * generation moved, as after a done swap, so the host follows it. */
140
+ export declare const UNDO_DONE = 1;
141
+ /** Time, lifecycle and saves (contract section 2). */
142
+ export interface EnginePortLifecycle {
143
+ /** The frame loop's step; `dtMinutes` is a finite real, 0 or more. */
144
+ tick(dtMinutes: number): void;
145
+ /** One frame's time through the fixed step (`advanceOwedMinutes`):
146
+ * `owed` is the minutes the host carried, and the answer is
147
+ * `[steps, owed]`, the steps run and the minutes still owed. The engine
148
+ * keeps the step mode they were owed under; `step` false owes the frame's
149
+ * minutes without stepping them. */
150
+ advance(owed: number, dtMs: number, minutesPerSecond: number, steadyClock: boolean, step: boolean): PortRecord;
151
+ /** The save; JSON is the save format. */
152
+ serialize(): string;
153
+ /** `serialize()` stamped with `savedAt` and `appVersion`, as UTF-8 bytes. */
154
+ saveBytes(appVersion: string, savedAtMs: number): Uint8Array;
155
+ /** The `stored` source: `[status, generation]`. A save with no `appVersion` is a founder's tower (before 2.0). */
156
+ loadSave(text: string): PortRecord;
157
+ /** The `history` source: keeps the live camera and auto-bridge preference, and never applies the founder rule. */
158
+ restore(text: string): PortRecord;
159
+ /** The `found` source. */
160
+ foundTower(seed: number, modeCode: number, calendarCode: number, unbridged: boolean): PortRecord;
161
+ /** Moves on every done swap; the reader rebuilds on a move. */
162
+ generation(): number;
163
+ undoSignature(): string;
164
+ /** The engine keeps the undo and redo steps of the tower it runs. A gesture
165
+ * calls `undoCapture(label)` before its first change and `undoCommit()` at
166
+ * its end, which keeps the capture as a step only if the gesture changed
167
+ * the tower or moved cash (true when it did), so a room built and sold
168
+ * again in one gesture leaves the price it lost to undo; `undoDiscard()`
169
+ * drops a capture for a gesture
170
+ * canceled into inspection. A gesture that did change the tower is kept
171
+ * as a step all the same, by `undoDiscard()` and by a capture over it, so
172
+ * no gesture's edit is left out of the steps. An edit made with no
173
+ * gesture open is in no step, so a host stops a drag whose gesture an
174
+ * undo, a redo or another capture closed. A step holds only what the edit changed
175
+ * (the units and shafts it touched and the cash the edit commands moved),
176
+ * up to 50 steps each way; any adopted tower, `restore` included, forgets
177
+ * them, and `undoClear()` forgets them for a tooling swap that bypassed
178
+ * the port. */
179
+ undoCapture(label: string): void;
180
+ undoCommit(): boolean;
181
+ undoDiscard(): void;
182
+ undoClear(): void;
183
+ /** Step back or forward: `[status, generation]` as `restore` answers, with
184
+ * `UNDO_NOTHING_TO_STEP` as the status when there is no step. A done step
185
+ * has already changed the tower and keeps the generation, since it is the
186
+ * same tower (#1802): the host follows it as it follows an edit, and the
187
+ * tower revision moves only when the step moved rooms or shafts. Time is not rewound: the cash a step
188
+ * moves is exactly what its edit moved. A step that time can make apply
189
+ * is refused (status 0, `lastReason()` says why) and stays available:
190
+ * the balance cannot pay for it yet, or a room it would take out is
191
+ * burning. A step that can never apply again is refused and dropped, so
192
+ * an undo goes on to the edit before it and a redo ends the redo trail:
193
+ * it would take back a build in use since the step was made (a room that
194
+ * opened, or that a tenant, income or a fire used; a floor or lobby
195
+ * tile, or a shaft, that stood through an hourly pass, floor a room's
196
+ * build laid under it included, or a shaft anyone rode), or one used
197
+ * inside its own gesture before the gesture sold it, it would undo a dig
198
+ * that searched for treasure, reprice a condo that has sold, or sell
199
+ * again a room whose tenants changed, or something stands in its way (a
200
+ * room or shaft in the place of one it would put back, no floor under it
201
+ * or no story under a floor or lobby tile above the ground floor, a room
202
+ * on a sky lobby floor that keeps a lobby or a lobby on one that keeps a
203
+ * room, a room on the metro's row or below it, a tile below that row, a
204
+ * station it would put back over a tile below its row or onto a room on
205
+ * it, a cap that is full, a room on a floor or lobby tile it would take
206
+ * out or, from the ground floor up, the story above one, a shaft left
207
+ * with no floor on a story it spans, or ground-floor or basement tiles
208
+ * cut off from the oldest ground-floor tile of the part they stood in (in
209
+ * play the tower's first lobby tile, unless a sale parted the ground
210
+ * floor) once the ground-floor lobby tiles it would take out, and the
211
+ * tiles there it takes with them, are gone, unless each such run was all
212
+ * there before those lobby tiles or is the one run with a lobby tile that
213
+ * stands on its own, where no older ground-floor tile of that part stays
214
+ * or comes back with the step outside it), or it meets a tower it does
215
+ * not expect (a unit or shaft it would take out or restore gone or
216
+ * changed, or one it would put back already there). Only an edit clears
217
+ * what stands in the way, and undoing that edit puts it back. A gesture
218
+ * under way is committed first. A done step on the Rust engine raises the
219
+ * tower revision above earlier values; the renderer retains its scene
220
+ * after such a step and detects the change by that revision.
221
+ * The test-only TypeScript reference rebuilds a Simulation and resets its
222
+ * revision, so the host uses a full redraw if the revision did not advance. */
223
+ undo(): PortRecord;
224
+ redo(): PortRecord;
225
+ /** What the last `undo` or `redo` says to the player ("Undid: Bulldoze",
226
+ * "Nothing to undo."); undefined after a refused step. */
227
+ undoNotice(): string | undefined;
228
+ /** `[undo, redo]`: how many steps each stack holds. */
229
+ undoDepths(): PortRecord;
230
+ /** Takes the events since the last drain: `[dropped, count]`. */
231
+ drainEvents(): PortRecord;
232
+ /** Event `i` of the last drained batch, as `{ name, payload }` JSON. */
233
+ eventText(i: number): string | undefined;
234
+ /** Marks the tower as the title screen's scenery. */
235
+ setBackdrop(on: boolean): void;
236
+ }
237
+ /** The view and its text (contract sections 2 and 5). */
238
+ export interface EnginePortView {
239
+ /** Slots, widths, code tables and record slots, as JSON; read once. */
240
+ viewLayout(): string;
241
+ /** A fresh copy the caller owns, per tower revision. */
242
+ viewStructure(): Float64Array;
243
+ /** A fresh copy the caller owns, per frame. */
244
+ viewFrame(full: boolean): Float64Array;
245
+ /** The floors and tiles the next frames send people for (the camera, padded
246
+ * for riders); a number that is not finite clears it, and every person goes. */
247
+ setPeopleWindow(floorLo: number, floorHi: number, xLo: number, xHi: number): void;
248
+ /** `[revision, full, ids...]`: the rooms whose label or subtype changed. */
249
+ unitMetaChanged(since: number): PortRecord;
250
+ unitLabel(id: number): string | undefined;
251
+ unitSubtype(id: number): string | undefined;
252
+ towerName(): string | undefined;
253
+ /** The refusal text of the last status call that refused. */
254
+ lastReason(): string | undefined;
255
+ /** `(seq, kindCode, minute)` triples after `seq`. */
256
+ logAfter(seq: number): PortRecord;
257
+ logText(seq: number): string | undefined;
258
+ /** The saved camera as JSON, read once per tower. */
259
+ view(): string | undefined;
260
+ /** The waiting emergency as JSON `{ kind, cost, message }`, read when `pendingChoice` rises. */
261
+ pendingChoice(): string | undefined;
262
+ /** The bomb search as JSON `{ deadline, sweeping, searched, seq, lockdown }`,
263
+ * read when the frame's `bombSearchSeq` moves; undefined when none runs. */
264
+ bombSearch?(): string | undefined;
265
+ /** The answer to a fire as JSON (`FireResponseView`), read when `fireResponseSeq` moves. */
266
+ fireResponse?(): string | undefined;
267
+ }
268
+ /** The commands; each answers a result record (contract section 2). */
269
+ export interface EnginePortCommands {
270
+ buildAt(kind: number, floor: number, x: number): PortRecord;
271
+ paintTiles(kind: number, floor: number, tiles: Float64Array): PortRecord;
272
+ /** The height, 1 to 3 stories, a floor's first lobby tile rises to from now
273
+ * on (#308); `buildAt`, `paintTiles` and `quoteBuild` all use it. */
274
+ setLobbyHeight(height: number): void;
275
+ buildShaft(kind: number, x: number, bottom: number, top: number): PortRecord;
276
+ demolish(id: number, bulldoze: boolean): PortRecord;
277
+ /** The floor or lobby tile at a cell, which the view gives no id (#1417). */
278
+ demolishTile(floor: number, x: number, bulldoze: boolean): PortRecord;
279
+ changeCars(id: number, add: boolean): PortRecord;
280
+ startExtend(id: number): PortRecord;
281
+ stopExtend(): PortRecord;
282
+ extendShaft(id: number, up: boolean, targetFloor: number): PortRecord;
283
+ markStop(id: number, floor: number, stop: boolean): PortRecord;
284
+ expressStops(id: number): PortRecord;
285
+ dropStops(id: number): PortRecord;
286
+ scheduleShaft(id: number, slots: Float64Array): PortRecord;
287
+ labelUnit(id: number, text: string): PortRecord;
288
+ stepRent(id: number, dir: number): PortRecord;
289
+ noRate(id: number): PortRecord;
290
+ setRent(id: number, target: number): PortRecord;
291
+ rentBatch(kind: number, target: number, onlyDefault: boolean): PortRecord;
292
+ /** Set the film screen `screen` (from 0) of a theater books again once its
293
+ * film is spent, by code (`filmPolicies`); a screen the theater does not
294
+ * run is refused (#1950). */
295
+ setFilm(id: number, policyCode: number, screen: number): PortRecord;
296
+ /** Show a film of tier `tier` (by code, `filmTiers`) on screen `screen`
297
+ * (from 0) of a theater: the record's `cost` slot is the price paid, or the
298
+ * price wanted on a "funds" refusal. A Modern theater runs two screens and
299
+ * a Classic one a single screen (`economy.cinemaScreens`, #1950). */
300
+ changeFilm(id: number, tier: number, screen: number): PortRecord;
301
+ /** Set a Modern theater's ticket price step by code (`ticketPrices`); the
302
+ * record's `priceCode` slot is the code stored (#1950). */
303
+ setTicketPrice(id: number, priceCode: number): PortRecord;
304
+ rerollUnit(id: number): PortRecord;
305
+ bookExterminator(): PortRecord;
306
+ /** Put the fire rescue offer up again while a fire burns, with its `cost`; "none" or "pending" (#1889). */
307
+ callFireRescue(): PortRecord;
308
+ answerChoice(accept: boolean): PortRecord;
309
+ chooseAutoBridge(value: boolean): PortRecord;
310
+ flipAutoBridge(): PortRecord;
311
+ nameTower(text?: string | null): PortRecord;
312
+ setCamera(tile: number, floor: number, zoom: number): PortRecord;
313
+ logLine(text: string, kindCode: number): PortRecord;
314
+ }
315
+ /** The queries (contract section 2). */
316
+ export interface EnginePortQueries {
317
+ quoteBuild(kind: number, floor: number, x: number): PortRecord;
318
+ /** How many stories a lobby tile laid at `(floor, x)` now rises (#308):
319
+ * in Modern, the hall it is laid against (#2068). */
320
+ lobbyRise(floor: number, x: number): number;
321
+ /** The top a stairway or escalator at `x` asked from `bottom` to `top` is
322
+ * built to: out of a tall lobby a one-story flight climbs the whole lobby
323
+ * (#308), in Modern the hall under it (#2068). */
324
+ walkwayTop(kind: number, x: number, bottom: number, top: number): number;
325
+ quoteShaft(kind: number, x: number, bottom: number, top: number): PortRecord;
326
+ /** What `rentBatch` would do, nothing written; `ok` 0 for an unpriced kind. */
327
+ quoteRentBatch(kind: number, target: number, onlyDefault: boolean): PortRecord;
328
+ /** A shaft's schedule as `scheduleShaft`'s slots; empty when it has none. */
329
+ shaftSchedule(id: number): PortRecord;
330
+ /** The read-only Auto-tune proposal for a shaft against the dialog's
331
+ * working schedule (`scheduleShaft`'s slots, empty for none, home count 0
332
+ * for staging the player has not set by hand). `weekendView` is the day tab
333
+ * on screen. Writes nothing; applying it is the ordinary `scheduleShaft`. */
334
+ autoTuneProposal(id: number, draft: Float64Array, weekendView: boolean): AutoTuneProposal;
335
+ /** The advice and staging facts for a shaft against the dialog's working
336
+ * schedule (`draft` in `scheduleShaft`'s slots, empty for none; here its
337
+ * homes are the staging being summarized). `weekendView` is the day tab on
338
+ * screen. Writes nothing. */
339
+ scheduleFacts(id: number, draft: Float64Array, weekendView: boolean): ScheduleFacts;
340
+ /** The rows and homes the named preset sets for a shaft. Writes nothing;
341
+ * applying it is the ordinary `scheduleShaft`. */
342
+ schedulePreset(id: number, preset: SchedulePresetName): PresetProposal;
343
+ /** Whether the tower came from a pre-2.0 save (the founder's welcome). */
344
+ founder(): boolean;
345
+ statsStrip(): PortRecord;
346
+ hotspot(): PortRecord;
347
+ /** Bits in the layout's `onboarding` order. */
348
+ onboarding(): number;
349
+ /** The auto-bridge preference the tower holds (always on in Classic). */
350
+ autoBridge(): boolean;
351
+ /** Whether the VIP has rated the tower a TOWER, the win. */
352
+ evaluatedTower(): boolean;
353
+ heatCells(modeCode: number): PortRecord;
354
+ crewCoverage(): PortRecord;
355
+ /** Empty for an id that names no unit. */
356
+ unitCard(id: number): PortRecord;
357
+ /** Empty for an id that names no shaft. */
358
+ shaftCard(id: number): PortRecord;
359
+ /** A walking person's trip (#2092): why they are out, where the leg they
360
+ * are on began and ends, and their wait. Empty for an id that names
361
+ * nobody in the tower now. Read while the person card is open. */
362
+ personCard(id: number): PortRecord;
363
+ /** The stats screen: the `statsSheet` header, then the sections its last
364
+ * six slots count. */
365
+ statsSheet(): PortRecord;
366
+ /** One unit's diagnostics facts; empty for an id that names no unit. */
367
+ unitFacts(id: number): PortRecord;
368
+ /** Low-frequency structured service diagnostics for the inspector. */
369
+ serviceDiagnostics(id: number): ServiceDiagnosticFacts | undefined;
370
+ /** The Map's Eval and Pricing read (#343 S7): one `roomTier` row (id,
371
+ * floor, x, then codes from `evalTiers` and `rentTiers`) per room that
372
+ * carries an evaluation or a rent level, in the view's room order. One
373
+ * pass over the rooms, read through `RoomTierReader` (`roomTiers.ts`) only
374
+ * on the Map SPEC's triggers (its S7 Cost bullet), at most once a frame. A
375
+ * reader takes the member's absence as no rows. */
376
+ roomTiers?(): PortRecord;
377
+ }
378
+ /** The save files (contract section 2): `.vctower` and the 1994 `.TDT`. */
379
+ export interface EnginePortFiles {
380
+ /** A `.vctower` file (the `stored` source): `[status, generation]`. */
381
+ loadVctower(text: string): PortRecord;
382
+ /** The tower as `.vctower` text; undefined, with `lastReason()`, when the
383
+ * stamp refuses the build name or the time. */
384
+ exportVctower(appVersion: string, savedAtMs: number): string | undefined;
385
+ /** `loadVctower` for a file's bytes, the binary `VCTOWER2` file included. */
386
+ loadVctowerBytes(bytes: Uint8Array): PortRecord;
387
+ /** The tower as a binary `.vctower` file (`VCTOWER2`); undefined, with
388
+ * `lastReason()`, when the stamp refuses the build name or the time. */
389
+ exportVctowerBytes(appVersion: string, savedAtMs: number): Uint8Array | undefined;
390
+ /** Reads and stages a `.TDT` file and answers its report's numbers; the
391
+ * live tower is untouched until `adoptTdt`. */
392
+ loadTdt(bytes: Uint8Array, filename: string): PortRecord;
393
+ /** Note `i` of the staged file: the header's notes, then the warnings. */
394
+ tdtNote(i: number): string | undefined;
395
+ tdtTowerName(): string | undefined;
396
+ /** Swaps the staged tower in (the `legacy` source): `[status, generation]`. */
397
+ adoptTdt(): PortRecord;
398
+ /** The closed code of the last refused file read or write (#2075), safe
399
+ * for analytics; undefined when the last one worked. */
400
+ lastRefusalCode(): string | undefined;
401
+ /** Writes the tower as a `.TDT` file and answers the report's numbers. */
402
+ tdtExport(): PortRecord;
403
+ /** The last done `tdtExport`'s bytes, handed over once. */
404
+ tdtFile(): Uint8Array | undefined;
405
+ /** The name a `.TDT` export of the tower downloads as (8.3, DOS-safe, #1676). */
406
+ tdtFilename(): string;
407
+ /** Readies a `.TDT` read or write on an engine without its own codec; the Rust engine has one and leaves this out. */
408
+ prepareTdt?(): Promise<void>;
409
+ }
410
+ /** The renderer's reads beyond the view frame (contract section 2, PR 5b).
411
+ * The overlay's peak congestion is `hotspot`'s ratio. */
412
+ export interface EnginePortRender {
413
+ /** The mean congestion over populated floors; read per frame. */
414
+ congestion(): number;
415
+ /** The elevator queue projection as `queueView`, `queueLanding` and
416
+ * `queueCar` slots; kept per step and revision, so read per frame. */
417
+ queueView(): PortRecord;
418
+ /** `[count, ids...]`: the working garage spaces, ascending. */
419
+ parkingSet(): PortRecord;
420
+ /** The garage fill, 0 to 1, for `spots` working spaces. */
421
+ parkingUsage(spots: number): number;
422
+ /** The recycling bins' fill, 0 to 1. */
423
+ recyclingFill(): number;
424
+ /** Every lobby hall taller than one story as flat `[floor, x0, x1,
425
+ * height, ...]` quads by floor and then column, `x1` the hall's last
426
+ * column (#308, #2068); read once per structure pass. */
427
+ lobbyHeights(): PortRecord;
428
+ /** Whether a walker can stand at `floor`, `x`; false off a whole tile. */
429
+ positionReachable(floor: number, x: number): boolean;
430
+ }
431
+ /** The whole port: what the game holds, whichever engine runs. */
432
+ export interface EnginePort extends EnginePortLifecycle, EnginePortView, EnginePortCommands, EnginePortQueries, EnginePortFiles, EnginePortRender, EnginePortRecycling, EnginePortSkyBridge, EnginePortTraffic {
433
+ }
@@ -0,0 +1,11 @@
1
+ /** `undo` and `redo` answer this status when there is no step to take. A done
2
+ * step is `1` and a refused one `0`, as for any swap. */
3
+ const UNDO_NOTHING_TO_STEP = 2;
4
+ /** The status of a step the engine refused; `lastReason()` says why. */
5
+ const UNDO_REFUSED = 0;
6
+ /** The status of a step the engine took: the tower changed and the
7
+ * generation moved, as after a done swap, so the host follows it. */
8
+ const UNDO_DONE = 1;
9
+
10
+ export { UNDO_DONE, UNDO_NOTHING_TO_STEP, UNDO_REFUSED };
11
+ //# sourceMappingURL=enginePort.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enginePort.js","sources":["../../src/simport/enginePort.ts"],"sourcesContent":["// The engine port (facade slice 7, the 2026-10-28 redesign). The contract is\n// `_bmad-output/planning-artifacts/architecture/architecture-rust-facade-2026-10-20/engine-port-contract.md`.\n//\n// One synchronous, numeric interface the binding's `Engine` implements, so the\n// game holds one `EnginePort` and calls it directly. Arguments are numbers,\n// booleans, a `Float64Array` or one of the few strings the contract's section 4\n// lists; answers are a number, a boolean, a `Float64Array` record, or a text\n// getter's string. Kinds, modes, calendars, film policies, log kinds and states\n// cross as codes into the tables of `viewLayout()`.\n//\n// A command answers a result record: slot 0 the status (1 done, 0 refused),\n// slot 1 the money delta the engine measured around it, then the op's own\n// slots named in `viewLayout().records`. Only the members that answer a\n// status clear and set `lastReason()`.\n//\n// `src/simport/enginePort.types.test.ts` holds the engine to this shape.\nimport type { EnginePortRecycling } from \"./recyclingPort\";\nimport type { EnginePortSkyBridge } from \"./skyBridgePort\";\nimport type { EnginePortTraffic } from \"./trafficPort\";\n\n/** Low-frequency keyed inspector facts. Rust produces the status verdicts\n * and the numbers; neither the UI nor the binding recomputes game rules. */\nexport interface ServiceDiagnosticFacts {\n readonly hotel: {\n readonly rating: \"notApplicable\" | \"counts\" | \"excluded\";\n readonly condition: \"other\" | \"dirty\" | \"infested\";\n readonly infestDays: number | null;\n readonly recovery: boolean | null;\n };\n readonly parking: {\n readonly status: \"notApplicable\" | \"ramp\" | \"connected\" | \"disconnected\";\n readonly shortage: boolean | null;\n readonly have: number | null;\n readonly total: number | null;\n readonly offices: number | null;\n readonly suites: number | null;\n };\n readonly housekeeping: {\n readonly status: \"notApplicable\" | \"adequate\" | \"nominalShortfall\" | \"observedShortfall\";\n readonly crews: number | null;\n readonly maids: number | null;\n readonly rooms: number | null;\n readonly maidsPerUnit: number | null;\n readonly roomsPerMaid: number | null;\n readonly cleaned: number | null;\n readonly leftover: number | null;\n readonly infested: number | null;\n readonly outOfReach: number | null;\n readonly hasInfested: boolean | null;\n readonly hasOutOfReach: boolean | null;\n readonly recovery: boolean | null;\n };\n readonly retail: {\n readonly active: boolean;\n readonly today: number | null;\n readonly barWidth: number | null;\n readonly tier: \"notApplicable\" | \"noData\" | \"low\" | \"average\" | \"booming\";\n readonly localDemandPct: number | null;\n readonly advice: \"none\" | \"underServed\" | \"overBuilt\";\n readonly profitYest: number | null;\n readonly rainy: boolean | null;\n };\n readonly commercial: {\n /** More than two floors from a (sky) lobby, which halves a venue's trade;\n * null for a unit the penalty never applies to (a sky bar, or a venue that\n * earns no traffic income in this mode). */\n readonly lobbyFar: boolean | null;\n };\n}\n\n/** How an Auto-tune proposal query ended. The engine decides every status;\n * the host only picks wording and button state from it. */\nexport type AutoTuneStatus =\n | \"available\"\n | \"insufficient-data\"\n | \"unavailable-in-mode\"\n | \"no-cars\"\n | \"not-an-elevator\"\n | \"missing-shaft\"\n | \"invalid-draft\";\n\n/** One day type's readiness: `warm` is what Auto-tune needs to tune that day.\n * A warm day also carries its measured 24-hour `curve` (0 to 1 per hour of\n * day), the ring the engine tuned from; a cold day has none. */\nexport interface AutoTuneDay {\n readonly warm: boolean;\n readonly sampledHours: number;\n readonly curve: readonly number[] | null;\n}\n\n/** What `autoTuneProposal` answers (engine-rs `schedule_authoring.rs`).\n * `proposal` is present only for `available`. A day type that is not warm\n * keeps the draft's own row (null when the draft has none). */\nexport interface AutoTuneProposal {\n readonly status: AutoTuneStatus;\n readonly weekday: AutoTuneDay;\n readonly weekend: AutoTuneDay;\n readonly proposal: {\n readonly weekday: readonly number[] | null;\n readonly weekend: readonly number[] | null;\n readonly homeFloors: readonly number[];\n /** True when the engine seeded the homes, false when they are the draft's own. */\n readonly homesSeeded: boolean;\n } | null;\n}\n\n/** A named schedule intent. The first three are the Modern presets;\n * `stage-up-tower` is the staging-only play the raw grid offers in both modes. */\nexport type SchedulePresetName = \"rush\" | \"balanced\" | \"feeder\" | \"stage-up-tower\";\n\n/** The three presets the dialog offers as buttons. */\nexport type AssistedPreset = Exclude<SchedulePresetName, \"stage-up-tower\">;\n\n/** How a preset query ended. */\nexport type PresetStatus = \"available\" | \"unavailable-in-mode\" | \"no-cars\" | \"not-an-elevator\" | \"missing-shaft\" | \"unknown-preset\";\n\n/** What `schedulePreset` answers (engine-rs `schedule_presets.rs`): the rows and\n * homes the preset sets. `weekday` and `weekend` are null for the staging-only\n * play and on every refusal. */\nexport interface PresetProposal {\n readonly status: PresetStatus;\n readonly weekday: readonly number[] | null;\n readonly weekend: readonly number[] | null;\n readonly homeFloors: readonly number[];\n}\n\nexport type ScheduleFactsStatus = \"available\" | \"not-an-elevator\" | \"missing-shaft\" | \"invalid-draft\";\n\n/** The advice comparison (engine-rs `schedule_facts.rs`). `ready` with empty\n * `over` and `short` means the schedule and the measured load line up. */\nexport interface ScheduleAdvice {\n /** `no-cars`: the shaft holds none (a loaded save can). `refused`: the query\n * itself was refused, and the answer's `status` says why. */\n readonly status: \"ready\" | \"insufficient-data\" | \"unavailable-in-mode\" | \"no-cars\" | \"refused\";\n /** Hours (0 to 23) where the authored cars are well above the measured want. */\n readonly over: readonly number[];\n /** Hours where they are well below it; never an hour that runs the whole fleet. */\n readonly short: readonly number[];\n}\n\n/** The Simulate staging summary: how the fleet is positioned. It promises no wait time. */\nexport interface StagingSummary {\n /** True when `peakHour` is the day's measured busiest hour, false when it is\n * the assumed evening down-rush. */\n readonly measured: boolean;\n readonly peakHour: number;\n readonly activeAtPeak: number;\n readonly upTowerCars: number;\n readonly lobbyCars: number;\n readonly topLobby: number;\n readonly baseLobby: number;\n}\n\n/** What `scheduleFacts` answers. `recommended` is the preset to highlight, null\n * where the mode offers no assisted presets; `staging` is null on a refusal. */\nexport interface ScheduleFacts {\n readonly status: ScheduleFactsStatus;\n readonly recommended: AssistedPreset | null;\n readonly advice: ScheduleAdvice;\n readonly staging: StagingSummary | null;\n /** The draft's homes as the shaft would hold them: one per car, each on the\n * nearest served floor (ties to the lower), a car the draft lists no home for\n * at the base lobby. Empty on a refusal. */\n readonly homeFloors: readonly number[];\n}\n\n/** A `Float64Array` record whose slots `viewLayout().records` names. */\nexport type PortRecord = Float64Array;\n\n/** `undo` and `redo` answer this status when there is no step to take. A done\n * step is `1` and a refused one `0`, as for any swap. */\nexport const UNDO_NOTHING_TO_STEP = 2;\n\n/** The status of a step the engine refused; `lastReason()` says why. */\nexport const UNDO_REFUSED = 0;\n\n/** The status of a step the engine took: the tower changed and the\n * generation moved, as after a done swap, so the host follows it. */\nexport const UNDO_DONE = 1;\n\n/** Time, lifecycle and saves (contract section 2). */\nexport interface EnginePortLifecycle {\n /** The frame loop's step; `dtMinutes` is a finite real, 0 or more. */\n tick(dtMinutes: number): void;\n /** One frame's time through the fixed step (`advanceOwedMinutes`):\n * `owed` is the minutes the host carried, and the answer is\n * `[steps, owed]`, the steps run and the minutes still owed. The engine\n * keeps the step mode they were owed under; `step` false owes the frame's\n * minutes without stepping them. */\n advance(\n owed: number,\n dtMs: number,\n minutesPerSecond: number,\n steadyClock: boolean,\n step: boolean,\n ): PortRecord;\n /** The save; JSON is the save format. */\n serialize(): string;\n /** `serialize()` stamped with `savedAt` and `appVersion`, as UTF-8 bytes. */\n saveBytes(appVersion: string, savedAtMs: number): Uint8Array;\n /** The `stored` source: `[status, generation]`. A save with no `appVersion` is a founder's tower (before 2.0). */\n loadSave(text: string): PortRecord;\n /** The `history` source: keeps the live camera and auto-bridge preference, and never applies the founder rule. */\n restore(text: string): PortRecord;\n /** The `found` source. */\n foundTower(\n seed: number,\n modeCode: number,\n calendarCode: number,\n unbridged: boolean,\n ): PortRecord;\n /** Moves on every done swap; the reader rebuilds on a move. */\n generation(): number;\n undoSignature(): string;\n /** The engine keeps the undo and redo steps of the tower it runs. A gesture\n * calls `undoCapture(label)` before its first change and `undoCommit()` at\n * its end, which keeps the capture as a step only if the gesture changed\n * the tower or moved cash (true when it did), so a room built and sold\n * again in one gesture leaves the price it lost to undo; `undoDiscard()`\n * drops a capture for a gesture\n * canceled into inspection. A gesture that did change the tower is kept\n * as a step all the same, by `undoDiscard()` and by a capture over it, so\n * no gesture's edit is left out of the steps. An edit made with no\n * gesture open is in no step, so a host stops a drag whose gesture an\n * undo, a redo or another capture closed. A step holds only what the edit changed\n * (the units and shafts it touched and the cash the edit commands moved),\n * up to 50 steps each way; any adopted tower, `restore` included, forgets\n * them, and `undoClear()` forgets them for a tooling swap that bypassed\n * the port. */\n undoCapture(label: string): void;\n undoCommit(): boolean;\n undoDiscard(): void;\n undoClear(): void;\n /** Step back or forward: `[status, generation]` as `restore` answers, with\n * `UNDO_NOTHING_TO_STEP` as the status when there is no step. A done step\n * has already changed the tower and keeps the generation, since it is the\n * same tower (#1802): the host follows it as it follows an edit, and the\n * tower revision moves only when the step moved rooms or shafts. Time is not rewound: the cash a step\n * moves is exactly what its edit moved. A step that time can make apply\n * is refused (status 0, `lastReason()` says why) and stays available:\n * the balance cannot pay for it yet, or a room it would take out is\n * burning. A step that can never apply again is refused and dropped, so\n * an undo goes on to the edit before it and a redo ends the redo trail:\n * it would take back a build in use since the step was made (a room that\n * opened, or that a tenant, income or a fire used; a floor or lobby\n * tile, or a shaft, that stood through an hourly pass, floor a room's\n * build laid under it included, or a shaft anyone rode), or one used\n * inside its own gesture before the gesture sold it, it would undo a dig\n * that searched for treasure, reprice a condo that has sold, or sell\n * again a room whose tenants changed, or something stands in its way (a\n * room or shaft in the place of one it would put back, no floor under it\n * or no story under a floor or lobby tile above the ground floor, a room\n * on a sky lobby floor that keeps a lobby or a lobby on one that keeps a\n * room, a room on the metro's row or below it, a tile below that row, a\n * station it would put back over a tile below its row or onto a room on\n * it, a cap that is full, a room on a floor or lobby tile it would take\n * out or, from the ground floor up, the story above one, a shaft left\n * with no floor on a story it spans, or ground-floor or basement tiles\n * cut off from the oldest ground-floor tile of the part they stood in (in\n * play the tower's first lobby tile, unless a sale parted the ground\n * floor) once the ground-floor lobby tiles it would take out, and the\n * tiles there it takes with them, are gone, unless each such run was all\n * there before those lobby tiles or is the one run with a lobby tile that\n * stands on its own, where no older ground-floor tile of that part stays\n * or comes back with the step outside it), or it meets a tower it does\n * not expect (a unit or shaft it would take out or restore gone or\n * changed, or one it would put back already there). Only an edit clears\n * what stands in the way, and undoing that edit puts it back. A gesture\n * under way is committed first. A done step on the Rust engine raises the\n * tower revision above earlier values; the renderer retains its scene\n * after such a step and detects the change by that revision.\n * The test-only TypeScript reference rebuilds a Simulation and resets its\n * revision, so the host uses a full redraw if the revision did not advance. */\n undo(): PortRecord;\n redo(): PortRecord;\n /** What the last `undo` or `redo` says to the player (\"Undid: Bulldoze\",\n * \"Nothing to undo.\"); undefined after a refused step. */\n undoNotice(): string | undefined;\n /** `[undo, redo]`: how many steps each stack holds. */\n undoDepths(): PortRecord;\n /** Takes the events since the last drain: `[dropped, count]`. */\n drainEvents(): PortRecord;\n /** Event `i` of the last drained batch, as `{ name, payload }` JSON. */\n eventText(i: number): string | undefined;\n /** Marks the tower as the title screen's scenery. */\n setBackdrop(on: boolean): void;\n}\n\n/** The view and its text (contract sections 2 and 5). */\nexport interface EnginePortView {\n /** Slots, widths, code tables and record slots, as JSON; read once. */\n viewLayout(): string;\n /** A fresh copy the caller owns, per tower revision. */\n viewStructure(): Float64Array;\n /** A fresh copy the caller owns, per frame. */\n viewFrame(full: boolean): Float64Array;\n /** The floors and tiles the next frames send people for (the camera, padded\n * for riders); a number that is not finite clears it, and every person goes. */\n setPeopleWindow(floorLo: number, floorHi: number, xLo: number, xHi: number): void;\n /** `[revision, full, ids...]`: the rooms whose label or subtype changed. */\n unitMetaChanged(since: number): PortRecord;\n unitLabel(id: number): string | undefined;\n unitSubtype(id: number): string | undefined;\n towerName(): string | undefined;\n /** The refusal text of the last status call that refused. */\n lastReason(): string | undefined;\n /** `(seq, kindCode, minute)` triples after `seq`. */\n logAfter(seq: number): PortRecord;\n logText(seq: number): string | undefined;\n /** The saved camera as JSON, read once per tower. */\n view(): string | undefined;\n /** The waiting emergency as JSON `{ kind, cost, message }`, read when `pendingChoice` rises. */\n pendingChoice(): string | undefined;\n /** The bomb search as JSON `{ deadline, sweeping, searched, seq, lockdown }`,\n * read when the frame's `bombSearchSeq` moves; undefined when none runs. */\n bombSearch?(): string | undefined;\n /** The answer to a fire as JSON (`FireResponseView`), read when `fireResponseSeq` moves. */\n fireResponse?(): string | undefined;\n}\n\n/** The commands; each answers a result record (contract section 2). */\nexport interface EnginePortCommands {\n buildAt(kind: number, floor: number, x: number): PortRecord;\n paintTiles(kind: number, floor: number, tiles: Float64Array): PortRecord;\n /** The height, 1 to 3 stories, a floor's first lobby tile rises to from now\n * on (#308); `buildAt`, `paintTiles` and `quoteBuild` all use it. */\n setLobbyHeight(height: number): void;\n buildShaft(kind: number, x: number, bottom: number, top: number): PortRecord;\n demolish(id: number, bulldoze: boolean): PortRecord;\n /** The floor or lobby tile at a cell, which the view gives no id (#1417). */\n demolishTile(floor: number, x: number, bulldoze: boolean): PortRecord;\n changeCars(id: number, add: boolean): PortRecord;\n startExtend(id: number): PortRecord;\n stopExtend(): PortRecord;\n extendShaft(id: number, up: boolean, targetFloor: number): PortRecord;\n markStop(id: number, floor: number, stop: boolean): PortRecord;\n expressStops(id: number): PortRecord;\n dropStops(id: number): PortRecord;\n scheduleShaft(id: number, slots: Float64Array): PortRecord;\n labelUnit(id: number, text: string): PortRecord;\n stepRent(id: number, dir: number): PortRecord;\n noRate(id: number): PortRecord;\n setRent(id: number, target: number): PortRecord;\n rentBatch(kind: number, target: number, onlyDefault: boolean): PortRecord;\n /** Set the film screen `screen` (from 0) of a theater books again once its\n * film is spent, by code (`filmPolicies`); a screen the theater does not\n * run is refused (#1950). */\n setFilm(id: number, policyCode: number, screen: number): PortRecord;\n /** Show a film of tier `tier` (by code, `filmTiers`) on screen `screen`\n * (from 0) of a theater: the record's `cost` slot is the price paid, or the\n * price wanted on a \"funds\" refusal. A Modern theater runs two screens and\n * a Classic one a single screen (`economy.cinemaScreens`, #1950). */\n changeFilm(id: number, tier: number, screen: number): PortRecord;\n /** Set a Modern theater's ticket price step by code (`ticketPrices`); the\n * record's `priceCode` slot is the code stored (#1950). */\n setTicketPrice(id: number, priceCode: number): PortRecord;\n rerollUnit(id: number): PortRecord;\n bookExterminator(): PortRecord;\n /** Put the fire rescue offer up again while a fire burns, with its `cost`; \"none\" or \"pending\" (#1889). */\n callFireRescue(): PortRecord;\n answerChoice(accept: boolean): PortRecord;\n chooseAutoBridge(value: boolean): PortRecord;\n flipAutoBridge(): PortRecord;\n nameTower(text?: string | null): PortRecord;\n setCamera(tile: number, floor: number, zoom: number): PortRecord;\n logLine(text: string, kindCode: number): PortRecord;\n}\n\n/** The queries (contract section 2). */\nexport interface EnginePortQueries {\n quoteBuild(kind: number, floor: number, x: number): PortRecord;\n /** How many stories a lobby tile laid at `(floor, x)` now rises (#308):\n * in Modern, the hall it is laid against (#2068). */\n lobbyRise(floor: number, x: number): number;\n /** The top a stairway or escalator at `x` asked from `bottom` to `top` is\n * built to: out of a tall lobby a one-story flight climbs the whole lobby\n * (#308), in Modern the hall under it (#2068). */\n walkwayTop(kind: number, x: number, bottom: number, top: number): number;\n quoteShaft(kind: number, x: number, bottom: number, top: number): PortRecord;\n /** What `rentBatch` would do, nothing written; `ok` 0 for an unpriced kind. */\n quoteRentBatch(kind: number, target: number, onlyDefault: boolean): PortRecord;\n /** A shaft's schedule as `scheduleShaft`'s slots; empty when it has none. */\n shaftSchedule(id: number): PortRecord;\n /** The read-only Auto-tune proposal for a shaft against the dialog's\n * working schedule (`scheduleShaft`'s slots, empty for none, home count 0\n * for staging the player has not set by hand). `weekendView` is the day tab\n * on screen. Writes nothing; applying it is the ordinary `scheduleShaft`. */\n autoTuneProposal(id: number, draft: Float64Array, weekendView: boolean): AutoTuneProposal;\n /** The advice and staging facts for a shaft against the dialog's working\n * schedule (`draft` in `scheduleShaft`'s slots, empty for none; here its\n * homes are the staging being summarized). `weekendView` is the day tab on\n * screen. Writes nothing. */\n scheduleFacts(id: number, draft: Float64Array, weekendView: boolean): ScheduleFacts;\n /** The rows and homes the named preset sets for a shaft. Writes nothing;\n * applying it is the ordinary `scheduleShaft`. */\n schedulePreset(id: number, preset: SchedulePresetName): PresetProposal;\n /** Whether the tower came from a pre-2.0 save (the founder's welcome). */\n founder(): boolean;\n statsStrip(): PortRecord;\n hotspot(): PortRecord;\n /** Bits in the layout's `onboarding` order. */\n onboarding(): number;\n /** The auto-bridge preference the tower holds (always on in Classic). */\n autoBridge(): boolean;\n /** Whether the VIP has rated the tower a TOWER, the win. */\n evaluatedTower(): boolean;\n heatCells(modeCode: number): PortRecord;\n crewCoverage(): PortRecord;\n /** Empty for an id that names no unit. */\n unitCard(id: number): PortRecord;\n /** Empty for an id that names no shaft. */\n shaftCard(id: number): PortRecord;\n /** A walking person's trip (#2092): why they are out, where the leg they\n * are on began and ends, and their wait. Empty for an id that names\n * nobody in the tower now. Read while the person card is open. */\n personCard(id: number): PortRecord;\n /** The stats screen: the `statsSheet` header, then the sections its last\n * six slots count. */\n statsSheet(): PortRecord;\n /** One unit's diagnostics facts; empty for an id that names no unit. */\n unitFacts(id: number): PortRecord;\n /** Low-frequency structured service diagnostics for the inspector. */\n serviceDiagnostics(id: number): ServiceDiagnosticFacts | undefined;\n /** The Map's Eval and Pricing read (#343 S7): one `roomTier` row (id,\n * floor, x, then codes from `evalTiers` and `rentTiers`) per room that\n * carries an evaluation or a rent level, in the view's room order. One\n * pass over the rooms, read through `RoomTierReader` (`roomTiers.ts`) only\n * on the Map SPEC's triggers (its S7 Cost bullet), at most once a frame. A\n * reader takes the member's absence as no rows. */\n roomTiers?(): PortRecord;\n}\n\n/** The save files (contract section 2): `.vctower` and the 1994 `.TDT`. */\nexport interface EnginePortFiles {\n /** A `.vctower` file (the `stored` source): `[status, generation]`. */\n loadVctower(text: string): PortRecord;\n /** The tower as `.vctower` text; undefined, with `lastReason()`, when the\n * stamp refuses the build name or the time. */\n exportVctower(appVersion: string, savedAtMs: number): string | undefined;\n /** `loadVctower` for a file's bytes, the binary `VCTOWER2` file included. */\n loadVctowerBytes(bytes: Uint8Array): PortRecord;\n /** The tower as a binary `.vctower` file (`VCTOWER2`); undefined, with\n * `lastReason()`, when the stamp refuses the build name or the time. */\n exportVctowerBytes(appVersion: string, savedAtMs: number): Uint8Array | undefined;\n /** Reads and stages a `.TDT` file and answers its report's numbers; the\n * live tower is untouched until `adoptTdt`. */\n loadTdt(bytes: Uint8Array, filename: string): PortRecord;\n /** Note `i` of the staged file: the header's notes, then the warnings. */\n tdtNote(i: number): string | undefined;\n tdtTowerName(): string | undefined;\n /** Swaps the staged tower in (the `legacy` source): `[status, generation]`. */\n adoptTdt(): PortRecord;\n /** The closed code of the last refused file read or write (#2075), safe\n * for analytics; undefined when the last one worked. */\n lastRefusalCode(): string | undefined;\n /** Writes the tower as a `.TDT` file and answers the report's numbers. */\n tdtExport(): PortRecord;\n /** The last done `tdtExport`'s bytes, handed over once. */\n tdtFile(): Uint8Array | undefined;\n /** The name a `.TDT` export of the tower downloads as (8.3, DOS-safe, #1676). */\n tdtFilename(): string;\n /** Readies a `.TDT` read or write on an engine without its own codec; the Rust engine has one and leaves this out. */\n prepareTdt?(): Promise<void>;\n}\n\n/** The renderer's reads beyond the view frame (contract section 2, PR 5b).\n * The overlay's peak congestion is `hotspot`'s ratio. */\nexport interface EnginePortRender {\n /** The mean congestion over populated floors; read per frame. */\n congestion(): number;\n /** The elevator queue projection as `queueView`, `queueLanding` and\n * `queueCar` slots; kept per step and revision, so read per frame. */\n queueView(): PortRecord;\n /** `[count, ids...]`: the working garage spaces, ascending. */\n parkingSet(): PortRecord;\n /** The garage fill, 0 to 1, for `spots` working spaces. */\n parkingUsage(spots: number): number;\n /** The recycling bins' fill, 0 to 1. */\n recyclingFill(): number;\n /** Every lobby hall taller than one story as flat `[floor, x0, x1,\n * height, ...]` quads by floor and then column, `x1` the hall's last\n * column (#308, #2068); read once per structure pass. */\n lobbyHeights(): PortRecord;\n /** Whether a walker can stand at `floor`, `x`; false off a whole tile. */\n positionReachable(floor: number, x: number): boolean;\n}\n\n/** The whole port: what the game holds, whichever engine runs. */\nexport interface EnginePort\n extends\n EnginePortLifecycle,\n EnginePortView,\n EnginePortCommands,\n EnginePortQueries,\n EnginePortFiles,\n EnginePortRender,\n EnginePortRecycling,\n EnginePortSkyBridge,\n EnginePortTraffic {}\n"],"names":[],"mappings":"AAyKA;AAC0D;AACnD,MAAM,oBAAoB,GAAG;AAEpC;AACO,MAAM,YAAY,GAAG;AAE5B;AACsE;AAC/D,MAAM,SAAS,GAAG;;"}