@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,428 @@
1
+ /**
2
+ * The catalog's shape: the types a frontend reads the catalog through, the shape
3
+ * version, and the lookup by kind ({@link catalogFacility}). Type-only imports, so
4
+ * a frontend that reads the WASM binding's catalog bundles no engine tables;
5
+ * `engine-rs/src/catalog.rs` serializes it.
6
+ */
7
+ import type { CalendarKind } from "../shared/engineTypes";
8
+ import type { FacilityCategory, FacilityKind, GameMode } from "../shared/types";
9
+ import type { FilmPolicy, FilmTier, TicketPrice } from "../simport/commands";
10
+ import type { CatalogSkyBridgeRules } from "./skyBridgeTypes";
11
+ import type { CatalogStarDutyRules } from "./starDutyTypes";
12
+ /** A film a theater can show, as the catalog publishes it (#1950). */
13
+ export interface CatalogFilm {
14
+ readonly key: FilmTier;
15
+ /** What the card calls it ("New film", "Feature", ...). */
16
+ readonly label: string;
17
+ /** What showing it costs, charged once. */
18
+ readonly price: number;
19
+ }
20
+ /** An Auto-rebook choice for a Modern theater (#1950): the policy the save
21
+ * stores, and the film it books again once the theater's film is spent, or
22
+ * null where rebooking is off. */
23
+ export interface CatalogFilmRebook {
24
+ readonly policy: FilmPolicy;
25
+ readonly film: FilmTier | null;
26
+ }
27
+ /** A ticket price step for a Modern theater (#1950): what it multiplies a
28
+ * seat's ticket income by, and the share of the crowd's visits the theater
29
+ * draws, both against Normal's 1. */
30
+ export interface CatalogTicketPrice {
31
+ readonly key: TicketPrice;
32
+ /** What the card calls it ("Low", "Normal", ...). */
33
+ readonly label: string;
34
+ readonly incomeMult: number;
35
+ readonly pickMult: number;
36
+ }
37
+ /** The version of the catalog's shape. It moves when a field is added,
38
+ * renamed or removed, so a frontend can refuse a shape it does not know. */
39
+ export declare const CATALOG_VERSION = 26;
40
+ /** Every price, size and build rule of one mode. */
41
+ export interface Catalog {
42
+ /** {@link CATALOG_VERSION}. */
43
+ readonly version: number;
44
+ /** The mode the values are resolved for. */
45
+ readonly mode: GameMode;
46
+ readonly world: CatalogWorld;
47
+ readonly economy: CatalogEconomy;
48
+ readonly rules: CatalogRules;
49
+ /** The caps several kinds share, in the engine's order. */
50
+ readonly pools: readonly CatalogPool[];
51
+ /** One entry per facility kind in the engine's catalog order, the kinds this
52
+ * mode cannot build included (`available: false`). */
53
+ readonly facilities: readonly CatalogFacility[];
54
+ }
55
+ /** The tower geometry a placement needs. */
56
+ export interface CatalogWorld {
57
+ /** The buildable lot width in tiles. */
58
+ readonly lotWidth: number;
59
+ /** The lowest floor. Floors number without a gap: 1 is the ground floor,
60
+ * 0 the first basement. */
61
+ readonly minFloor: number;
62
+ readonly maxFloor: number;
63
+ /** The ground floor, where the main lobby sits. */
64
+ readonly groundFloor: number;
65
+ /** What the floor tool lays on the ground floor: a lobby. A current game
66
+ * holds no plain floor there, so each tile the floor tool lays pays for
67
+ * its floor too (`paysForFloor`). */
68
+ readonly groundFloorStructure: FacilityKind;
69
+ /** Floors between lobbies: besides the ground floor, a sky lobby may sit on
70
+ * every floor from 2 up that is a multiple of it (15, 30, ...). */
71
+ readonly lobbyInterval: number;
72
+ /** The Metro's timetable, which riders leaving by train keep. */
73
+ readonly metroTrain: CatalogMetroTrain;
74
+ }
75
+ /** When the one train on a Metro line runs, in game time: each hour from
76
+ * `firstHour` to `lastHour` (`metroLineTimes` works out its calls). */
77
+ export interface CatalogMetroTrain {
78
+ readonly firstHour: number;
79
+ readonly lastHour: number;
80
+ readonly legMinutes: number;
81
+ readonly dwellMinutes: number;
82
+ readonly runMinutes: number;
83
+ }
84
+ /** The mode's economy constants a UI shows, in dollars. */
85
+ export interface CatalogEconomy {
86
+ /** The treasury a new tower starts with. */
87
+ readonly startingMoney: number;
88
+ /** The price of one more elevator car on a shaft (the engine's `addCar`
89
+ * charges it). */
90
+ readonly addCarCost: number;
91
+ /** What the engine's `removeCar` refunds for one car. */
92
+ readonly carResaleRefund: number;
93
+ /** The price of each floor an elevator spans past its first. The build
94
+ * charges it, and the engine's `extendTransport` charges it for each floor
95
+ * an extend adds. Stairs and escalators pay none. */
96
+ readonly transportFloorCost: number;
97
+ /** The calendars a tower of this mode can run, its default first. Every
98
+ * `...Monthly` figure here and each facility's `upkeepMonthly` is quoted per
99
+ * 30-day real-world month: the engine charges it once per maintenance
100
+ * period, multiplied by that calendar's `maintenanceScale`. */
101
+ readonly calendars: readonly CatalogCalendar[];
102
+ /** Monthly upkeep per elevator car. */
103
+ readonly maintenancePerCarMonthly: number;
104
+ /** Monthly operating overhead per leasable or trading unit (0 where the
105
+ * mode charges none). */
106
+ readonly overheadPerUnitMonthly: number;
107
+ /** Monthly tax on an unsold condo as a fraction of its asking price (0
108
+ * where the mode charges none). Each period the engine charges
109
+ * `ceil(price * rate)`, multiplied by `maintenanceScale` and rounded. */
110
+ readonly condoHoldTaxRate: number;
111
+ /** A nightclub's monthly DJ booking. */
112
+ readonly nightclubDjMonthly: number;
113
+ /** Hour of the daily garbage-truck collection that empties recycling bins. */
114
+ readonly garbageCollectHour: number;
115
+ /** The paid exterminator's fees, or null where the mode has none. */
116
+ readonly exterminator: {
117
+ readonly calloutFee: number;
118
+ readonly perRoomFee: number;
119
+ } | null;
120
+ /** The films a theater can show, with their prices, in the order the card
121
+ * lists them (#1932, #1950). No theater pays anything each period. */
122
+ readonly films: readonly CatalogFilm[];
123
+ /** The Auto-rebook choices, in the order the card's button cycles through
124
+ * them (#1950); empty where no theater rebooks (Classic). */
125
+ readonly filmRebooks: readonly CatalogFilmRebook[];
126
+ /** The policy a theater with none, or an old save's "auto", rebooks by,
127
+ * or null where no theater rebooks. */
128
+ readonly filmRebookDefault: FilmPolicy | null;
129
+ /** The screens a theater runs, each with its own film, age, Auto-rebook
130
+ * choice and booking: 1 in Classic, 2 in Modern (#1950). */
131
+ readonly cinemaScreens: number;
132
+ /** A theater's ticket price steps, cheapest first, in the order the card's
133
+ * button cycles through them (#1950); empty where the mode has none
134
+ * (Classic). */
135
+ readonly ticketPrices: readonly CatalogTicketPrice[];
136
+ /** The step a theater with none set charges, or null where the mode has no
137
+ * ticket price. */
138
+ readonly ticketPriceDefault: TicketPrice | null;
139
+ /** Whether the player can switch automatic bridging off. When false,
140
+ * bridging is always on. When true, a tower starts bridged unless it was
141
+ * founded unbridged, and the live setting is per tower (the engine's
142
+ * `autoBridge()`, the save's `autoBridge`). */
143
+ readonly autoBridgeToggleable: boolean;
144
+ }
145
+ /** Mode rules a frontend shows the player, each from the engine's own rule
146
+ * method, so a frontend reads them here instead of deciding by mode name. */
147
+ export interface CatalogRules extends CatalogStarDutyRules, CatalogSkyBridgeRules {
148
+ /** Whether a sold condo carries its own household of 2 to 5 that prices the sale and counts
149
+ * its residents. When false every condo houses the flat family and stores no household. */
150
+ readonly variantHouseholds: boolean;
151
+ /** Whether the build preview names the engine's refusal before the click.
152
+ * When false the refusal shows only once a click is refused. */
153
+ readonly previewNamesRefusal: boolean;
154
+ /** Whether the elevator schedule's assisted tools answer: the intent presets, auto-tune and the
155
+ * staffing advice. When false the schedule is the manual grid only and each assisted query is refused. */
156
+ readonly scheduleAssist: boolean;
157
+ /** Whether the player may place new construction while the game is paused. When false a placement
158
+ * at speed 0 is refused with a note to unpause; the engine itself has no paused state. */
159
+ readonly buildsWhilePaused: boolean;
160
+ /** Whether the tower can be exported for SimTower (1994) as a `.TDT`. When false the export dialog
161
+ * disables that choice with the reason, and the engine's `.TDT` export refuses the tower. */
162
+ readonly exportsTo1994: boolean;
163
+ /** Whether the tenant card's lobby warning quotes the floors to the
164
+ * nearest lobby. When false it names the problem without the number. */
165
+ readonly quotesLobbyDistance: boolean;
166
+ /** Whether a card or notice that names a problem also says what to do about it (#549). When
167
+ * false it states the cause only, as the 1994 game's inspector did. */
168
+ readonly advisesFixes: boolean;
169
+ /** Whether a sky lobby may rise more than one story (#308). The ground lobby always may,
170
+ * up to `maxLobbyHeight`; when false it is the only one that can. */
171
+ readonly tallSkyLobbies: boolean;
172
+ /** The most stories a lobby can rise (#308). A floor's first lobby sets its
173
+ * height, and it never changes after. */
174
+ readonly maxLobbyHeight: number;
175
+ /** Whether the frontend may draw decorative passers-by: figures that pace the corridors for life but are not
176
+ * people the engine knows about (#2091). When false (Classic, as in SimTower) it draws only the engine's own people. */
177
+ readonly decorativePassersBy: boolean;
178
+ /** Whether the frontend draws the lit look (#2097): people lit from the
179
+ * upper left with a four-frame walk, and rooms shaded to match. When false
180
+ * (Classic) it keeps the flat 1994 look with a two-frame walk. */
181
+ readonly shadedLook: boolean;
182
+ /** Whether a one-story stair beside a venue draws as a spiral and an escalator as a
183
+ * switchback. Drawing only; when false (Classic) every flight is straight, as in 1994. */
184
+ readonly venueFlights: boolean;
185
+ /** Whether each tower on the lot draws its own front door: the grand entrance and doorman at the left end of its
186
+ * ground lobby, the service door at the right. Drawing only; when false (Classic) the leftmost ground lobby has it. */
187
+ readonly frontDoorPerTower: boolean;
188
+ /** Whether an express keeps the 1994 stops (#1527): ground, every 15th floor, every basement. */
189
+ readonly expressStopsOn15thFloors: boolean;
190
+ /** Whether one free parking space serves every office (#1970), so the stats count offices as one space (#2024). */
191
+ readonly officesShareOneParkingSpace: boolean;
192
+ /** Seconds a person waits before it counts as stress and the frontend shows them fed up (red). Same in both modes. */
193
+ readonly fedUpWait: number;
194
+ }
195
+ /** One calendar a tower can run and how it scales the quoted figures. */
196
+ export interface CatalogCalendar {
197
+ /** As a save names it. */
198
+ readonly key: CalendarKind;
199
+ /** Days per quarter. */
200
+ readonly quarterDays: number;
201
+ /** Days between lease rent collections: the quarter in Classic, the maintenance period in Modern (#2255). */
202
+ readonly leasePeriodDays: number;
203
+ /** Days between maintenance charges (and monthly rent collections). */
204
+ readonly maintenancePeriodDays: number;
205
+ /** What a `...Monthly` figure and a monthly rent are multiplied by on each maintenance period. */
206
+ readonly maintenanceScale: number;
207
+ /** What a quarterly rent is multiplied by on each lease collection. */
208
+ readonly quarterlyRentScale: number;
209
+ }
210
+ /** A cap several kinds share. */
211
+ export interface CatalogPool {
212
+ /** The name a {@link CatalogFacility.pool} refers to it by. */
213
+ readonly key: "elevators" | "walkways" | "venues";
214
+ /** The label the engine's refusal names the pool by. */
215
+ readonly label: string;
216
+ /** The most units of all its kinds together a tower may hold. */
217
+ readonly cap: number;
218
+ readonly kinds: readonly FacilityKind[];
219
+ }
220
+ /** When a price is collected: `quarterly` (offices and the lease amenities,
221
+ * every `leasePeriodDays`, scaled by the calendar's `quarterlyRentScale`), `maintenancePeriod` (rental
222
+ * living, every maintenance period, scaled by `maintenanceScale`), `sale` (a
223
+ * condo, once) or `nightly` (hotel rooms). */
224
+ export type CatalogRentCadence = "quarterly" | "maintenancePeriod" | "sale" | "nightly";
225
+ /** How the player prices a kind: a ladder of fixed rungs (Classic) or a
226
+ * continuous band (Modern). */
227
+ export type CatalogRent = {
228
+ readonly shape: "ladder";
229
+ readonly cadence: CatalogRentCadence;
230
+ /** The price a new unit starts at (the Average rung). */
231
+ readonly default: number;
232
+ readonly rungs: readonly {
233
+ readonly level: number;
234
+ readonly label: string;
235
+ readonly value: number;
236
+ }[];
237
+ /** A ladder always offers the No Rate off-market state. */
238
+ readonly noRate: true;
239
+ } | {
240
+ readonly shape: "band";
241
+ readonly cadence: CatalogRentCadence;
242
+ /** The price a new unit starts at. */
243
+ readonly default: number;
244
+ readonly min: number;
245
+ readonly max: number;
246
+ readonly step: number;
247
+ /** A band never offers No Rate. */
248
+ readonly noRate: false;
249
+ };
250
+ /** One facility kind, resolved for the catalog's mode. */
251
+ export interface CatalogFacility {
252
+ /** The key saves and commands name the kind by. */
253
+ readonly key: FacilityKind;
254
+ readonly name: string;
255
+ readonly category: FacilityCategory;
256
+ /** Width in tiles. A transport's width is its shaft's. */
257
+ readonly width: number;
258
+ /** Height in floors (1 for an ordinary room, and 1 for a transport, whose
259
+ * height is its span). */
260
+ readonly floors: number;
261
+ /** The build price. An elevator adds `transportFloorCost` for each floor past
262
+ * its first (top minus bottom). A room adds the floor's price for every
263
+ * floor tile laid under it, and so does a kind that pays for its floor
264
+ * (`paysForFloor`) placed where there is no floor yet (see
265
+ * `catalogTileCost`). With automatic bridging on, every gap tile bridged to
266
+ * the tower adds one substrate tile: the lobby's price plus the floor's
267
+ * when placing a lobby (on any floor), the floor's price for a floor tile
268
+ * or a room. */
269
+ readonly cost: number;
270
+ /** Whether a tile of this kind placed where there is no floor yet also
271
+ * pays the floor's price, for the floor it lays (the lobby). Over a floor
272
+ * tile it pays `cost` alone. */
273
+ readonly paysForFloor: boolean;
274
+ /** The star rating that unlocks it. */
275
+ readonly minStar: number;
276
+ /** The people it holds (tenants, residents or customers at a time). */
277
+ readonly population: number;
278
+ /** The most residents a household-sized unit may carry, or null. */
279
+ readonly maxHousehold: number | null;
280
+ /** The audience an attendance venue seats, or null. */
281
+ readonly attendance: number | null;
282
+ readonly modernOnly: boolean;
283
+ readonly transport: boolean;
284
+ /** A staff-only transport (the service elevator). */
285
+ readonly staffOnly: boolean;
286
+ /** Built underground only. */
287
+ readonly basement: boolean;
288
+ /** Never built underground. */
289
+ readonly noBasement: boolean;
290
+ /** Whether this mode can build it at all (the star gate aside). */
291
+ readonly available: boolean;
292
+ /** In-game minutes of construction (0 for structure and for transports,
293
+ * which work as soon as they are placed). */
294
+ readonly buildMinutes: number;
295
+ /** What selling it refunds (a gutted unit refunds nothing). */
296
+ readonly resaleRefund: number;
297
+ /** The most a tower may hold of this kind alone, or null when uncapped. */
298
+ readonly buildCap: number | null;
299
+ /** The {@link CatalogPool.key} of the cap it shares, or null. */
300
+ readonly pool: CatalogPool["key"] | null;
301
+ /** For a transport, the largest top floor minus bottom floor it may have,
302
+ * else null. It serves `maxSpan + 1` floors: stairs and escalators have 1
303
+ * and link two floors. */
304
+ readonly maxSpan: number | null;
305
+ /** A fixed two-floor transport placed with one tap and never resized. */
306
+ readonly fixedSpan: boolean;
307
+ /** For an elevator, the most cars a shaft takes, else null. */
308
+ readonly maxCars: number | null;
309
+ /** For a transport, the passengers one car (or one flight) carries, else null. */
310
+ readonly carCapacity: number | null;
311
+ /** The varieties a new unit draws from, in the engine's order, or null. */
312
+ readonly subtypes: readonly string[] | null;
313
+ /** How the player prices it in this mode, or null when its price is not
314
+ * player-set. */
315
+ readonly rent: CatalogRent | null;
316
+ /** A trading venue's headline daily take in this mode, or null: the ceiling
317
+ * the money loop pays a sold-out venue. */
318
+ readonly dailyIncome: number | null;
319
+ /** The average ticket per customer the engine counts customers with, for the
320
+ * venues that track them in this mode (those with subtypes and a daily
321
+ * income), else null. */
322
+ readonly spendPerCustomer: number | null;
323
+ /** A service facility's monthly maintenance, or null. */
324
+ readonly upkeepMonthly: number | null;
325
+ /** Whether it is open in each hour of the day, 0 to 23, for a kind that
326
+ * keeps business hours, else null (always open). */
327
+ readonly openHours: readonly boolean[] | null;
328
+ /** Whether a unit may carry its own household size (`residents`), which
329
+ * then stands in for `population`; a condo's price scales with it against
330
+ * the condo's `population`. */
331
+ readonly ownHousehold: boolean;
332
+ /** A foot-traffic trading kind: the predicate the lobby-proximity rule
333
+ * keys off, and the noise rule too, less the quiet spa and daycare. */
334
+ readonly commercial: boolean;
335
+ /** A hotel room of any size. */
336
+ readonly hotel: boolean;
337
+ /** A Modern lease amenity (fitness club, clinic): lease tenants that erode
338
+ * on unserved placement and an over-market rent. */
339
+ readonly leaseAmenity: boolean;
340
+ /** A demand tenant whose unmet local coverage drains satisfaction (office,
341
+ * condo, apartment, hotel rooms). */
342
+ readonly unmetDemand: boolean;
343
+ /** The venue's cross-floor halo in this mode, or null (#1980): the
344
+ * placement range rings draw it. */
345
+ readonly halo: CatalogHalo | null;
346
+ /** How far the room's same-floor noise carries and how far it hears its
347
+ * neighbors, which the placement overlay draws; empty in Classic. */
348
+ readonly noise: readonly CatalogNoise[];
349
+ }
350
+ /** A venue's cross-floor halo: who feels it, over how many floors and how
351
+ * hard. A room `d` floors from the venue feels `max * (1 - d / floors)`,
352
+ * and none at `floors` or beyond. */
353
+ export interface CatalogHalo {
354
+ /** `lift` (an amenity) or `drain` (a nuisance). */
355
+ readonly effect: "lift" | "drain";
356
+ readonly floors: number;
357
+ /** The hourly bonus or drain on the venue's own floor. */
358
+ readonly max: number;
359
+ /** How far a lift raises a capped room's ceiling at full strength, or
360
+ * null for a drain. */
361
+ readonly capLift: number | null;
362
+ /** The facility keys that feel it. */
363
+ readonly feltBy: readonly FacilityKind[];
364
+ /** Felt only in the venue's `openHours`. */
365
+ readonly openHoursOnly: boolean;
366
+ /** Scaled by the household's size, largest for the biggest family. */
367
+ readonly familyScaled: boolean;
368
+ }
369
+ /** One reach of a room's same-floor noise. The tile beside the room is tile
370
+ * 0, so a room of the other side within `tiles + 1` tiles of an edge counts;
371
+ * a lobby tile or a gap in the floor stops it. */
372
+ export interface CatalogNoise {
373
+ /** `carries`: the room makes noise `kinds` hear. `hears`: the room hears
374
+ * noise `kinds` make. */
375
+ readonly role: "carries" | "hears";
376
+ readonly tiles: number;
377
+ /** The facility keys on the other side. */
378
+ readonly kinds: readonly FacilityKind[];
379
+ }
380
+ /** The catalog entry for `kind`, or undefined when the catalog lists no such
381
+ * kind (a kind from another build, or a damaged save). */
382
+ export declare function findCatalogFacility(catalog: Catalog, kind: FacilityKind): CatalogFacility | undefined;
383
+ /** The catalog entry for `kind`. Throws when the catalog lists no such kind,
384
+ * which only a damaged catalog or a kind from another build can cause. */
385
+ export declare function catalogFacility(catalog: Catalog, kind: FacilityKind): CatalogFacility;
386
+ /** What a build of `kind` on `floor` lays, by the catalog's ground-floor rule:
387
+ * the floor tool lays the world's ground-floor structure (a lobby) on the
388
+ * ground floor, and every other build lays its own kind. */
389
+ export declare function catalogBuildKind(catalog: Catalog, kind: FacilityKind, floor: number): FacilityKind;
390
+ /** What a structure tile is placed on: open space with no floor yet, or a
391
+ * floor tile that it turns into its own kind. */
392
+ export type TileGround = "no floor yet" | "a floor tile";
393
+ /** The price of one structure tile of `kind` (a floor or a lobby tile)
394
+ * placed on `ground`, by the catalog's rule: a kind that pays for its floor
395
+ * (`paysForFloor`, the lobby) adds the floor's price where there is no
396
+ * floor yet, and pays its own price alone over a floor tile. */
397
+ export declare function catalogTileCost(catalog: Catalog, kind: FacilityKind, ground: TileGround): number;
398
+ /** The editor card's action for showing a `key` film on screen `screen`
399
+ * (from 0; `data-edit`). The first screen's keeps the one-screen name. */
400
+ export declare function filmEditAction(key: FilmTier, screen?: number): string;
401
+ /** The editor card's action for stepping screen `screen`'s Auto-rebook
402
+ * choice (from 0; `data-edit`). */
403
+ export declare function filmPolicyEditAction(screen?: number): string;
404
+ /** The Auto-rebook choice a theater with `policy` follows: its own where the
405
+ * catalog lists it, otherwise the mode's default (no policy, or an old
406
+ * save's "auto"). Null where no theater rebooks (#1950). */
407
+ export declare function catalogFilmRebook(catalog: Catalog, policy: FilmPolicy | null | undefined): CatalogFilmRebook | null;
408
+ /** The ticket price step a theater charges: its own where the catalog lists
409
+ * it, otherwise the mode's default. Null where the mode has no ticket price
410
+ * (#1950). */
411
+ export declare function catalogTicketPrice(catalog: Catalog, price: TicketPrice | null | undefined): CatalogTicketPrice | null;
412
+ /** Whether a facility is open in `hour` (the game hour; fractions and 24 read
413
+ * as the engines read them, since every opening and closing is on the hour):
414
+ * always, for a kind that keeps no business hours. */
415
+ export declare function catalogOpenAt(f: CatalogFacility, hour: number): boolean;
416
+ /** The people a unit holds: its own household where the kind carries one and
417
+ * the unit has it, else the catalog's `population`. */
418
+ export declare function catalogResidents(f: CatalogFacility, residents: number | null | undefined): number;
419
+ /** A condo's price for its household: the asking `base` scaled by household
420
+ * size against the classic household, the condo's catalog `population`. No
421
+ * household (Classic, or an unsold unit) is exactly the base. */
422
+ export declare function catalogHouseholdPrice(catalog: Catalog, base: number, residents: number | null | undefined): number;
423
+ /** The rung of a ladder a value sits on: the nearest, ties rounding up to the
424
+ * higher rung, and Average (the third rung) for a non-finite value. The
425
+ * engine's own snap (`snapToLadder`) is this rule. */
426
+ export declare function rungFor<R extends {
427
+ readonly value: number;
428
+ }>(rungs: readonly R[], value: number): R;
@@ -0,0 +1,102 @@
1
+ /** The version of the catalog's shape. It moves when a field is added,
2
+ * renamed or removed, so a frontend can refuse a shape it does not know. */
3
+ const CATALOG_VERSION = 26;
4
+ const facilityIndex = new WeakMap();
5
+ /** The catalog entry for `kind`, or undefined when the catalog lists no such
6
+ * kind (a kind from another build, or a damaged save). */
7
+ function findCatalogFacility(catalog, kind) {
8
+ let index = facilityIndex.get(catalog);
9
+ if (!index) {
10
+ index = new Map(catalog.facilities.map((f) => [f.key, f]));
11
+ facilityIndex.set(catalog, index);
12
+ }
13
+ return index.get(kind);
14
+ }
15
+ /** The catalog entry for `kind`. Throws when the catalog lists no such kind,
16
+ * which only a damaged catalog or a kind from another build can cause. */
17
+ function catalogFacility(catalog, kind) {
18
+ const f = findCatalogFacility(catalog, kind);
19
+ if (!f)
20
+ throw new Error(`the ${catalog.mode} catalog lists no facility "${kind}"`);
21
+ return f;
22
+ }
23
+ /** What a build of `kind` on `floor` lays, by the catalog's ground-floor rule:
24
+ * the floor tool lays the world's ground-floor structure (a lobby) on the
25
+ * ground floor, and every other build lays its own kind. */
26
+ function catalogBuildKind(catalog, kind, floor) {
27
+ return kind === "floor" && floor === catalog.world.groundFloor ? catalog.world.groundFloorStructure : kind;
28
+ }
29
+ /** The price of one structure tile of `kind` (a floor or a lobby tile)
30
+ * placed on `ground`, by the catalog's rule: a kind that pays for its floor
31
+ * (`paysForFloor`, the lobby) adds the floor's price where there is no
32
+ * floor yet, and pays its own price alone over a floor tile. */
33
+ function catalogTileCost(catalog, kind, ground) {
34
+ const f = catalogFacility(catalog, kind);
35
+ return f.paysForFloor && ground === "no floor yet" ? f.cost + catalogFacility(catalog, "floor").cost : f.cost;
36
+ }
37
+ /** The editor card's action for showing a `key` film on screen `screen`
38
+ * (from 0; `data-edit`). The first screen's keeps the one-screen name. */
39
+ function filmEditAction(key, screen = 0) {
40
+ return screen === 0 ? `${key}Film` : `${key}Film${screen + 1}`;
41
+ }
42
+ /** The editor card's action for stepping screen `screen`'s Auto-rebook
43
+ * choice (from 0; `data-edit`). */
44
+ function filmPolicyEditAction(screen = 0) {
45
+ return screen === 0 ? "filmPolicy" : `filmPolicy${screen + 1}`;
46
+ }
47
+ /** The Auto-rebook choice a theater with `policy` follows: its own where the
48
+ * catalog lists it, otherwise the mode's default (no policy, or an old
49
+ * save's "auto"). Null where no theater rebooks (#1950). */
50
+ function catalogFilmRebook(catalog, policy) {
51
+ const { filmRebooks, filmRebookDefault } = catalog.economy;
52
+ const listed = (p) => filmRebooks.find((r) => r.policy === p);
53
+ return listed(policy) ?? listed(filmRebookDefault) ?? null;
54
+ }
55
+ /** The ticket price step a theater charges: its own where the catalog lists
56
+ * it, otherwise the mode's default. Null where the mode has no ticket price
57
+ * (#1950). */
58
+ function catalogTicketPrice(catalog, price) {
59
+ const { ticketPrices, ticketPriceDefault } = catalog.economy;
60
+ const listed = (p) => ticketPrices.find((t) => t.key === p);
61
+ return listed(price) ?? listed(ticketPriceDefault) ?? null;
62
+ }
63
+ /** Whether a facility is open in `hour` (the game hour; fractions and 24 read
64
+ * as the engines read them, since every opening and closing is on the hour):
65
+ * always, for a kind that keeps no business hours. */
66
+ function catalogOpenAt(f, hour) {
67
+ return f.openHours === null || f.openHours[((Math.floor(hour) % 24) + 24) % 24] === true;
68
+ }
69
+ /** The people a unit holds: its own household where the kind carries one and
70
+ * the unit has it, else the catalog's `population`. */
71
+ function catalogResidents(f, residents) {
72
+ return f.ownHousehold && residents != null ? residents : f.population;
73
+ }
74
+ /** A condo's price for its household: the asking `base` scaled by household
75
+ * size against the classic household, the condo's catalog `population`. No
76
+ * household (Classic, or an unsold unit) is exactly the base. */
77
+ function catalogHouseholdPrice(catalog, base, residents) {
78
+ if (residents == null)
79
+ return base;
80
+ return Math.round((base * residents) / catalogFacility(catalog, "condo").population);
81
+ }
82
+ /** The rung of a ladder a value sits on: the nearest, ties rounding up to the
83
+ * higher rung, and Average (the third rung) for a non-finite value. The
84
+ * engine's own snap (`snapToLadder`) is this rule. */
85
+ function rungFor(rungs, value) {
86
+ if (!Number.isFinite(value))
87
+ return rungs[2];
88
+ let best = rungs[0];
89
+ let bestDist = Infinity;
90
+ for (const r of rungs) {
91
+ const d = Math.abs(value - r.value);
92
+ // `<=` so an exact tie prefers the later (higher) rung.
93
+ if (d <= bestDist) {
94
+ bestDist = d;
95
+ best = r;
96
+ }
97
+ }
98
+ return best;
99
+ }
100
+
101
+ export { CATALOG_VERSION, catalogBuildKind, catalogFacility, catalogFilmRebook, catalogHouseholdPrice, catalogOpenAt, catalogResidents, catalogTicketPrice, catalogTileCost, filmEditAction, filmPolicyEditAction, findCatalogFacility, rungFor };
102
+ //# sourceMappingURL=catalogTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalogTypes.js","sources":["../../src/catalog/catalogTypes.ts"],"sourcesContent":["/**\n * The catalog's shape: the types a frontend reads the catalog through, the shape\n * version, and the lookup by kind ({@link catalogFacility}). Type-only imports, so\n * a frontend that reads the WASM binding's catalog bundles no engine tables;\n * `engine-rs/src/catalog.rs` serializes it.\n */\nimport type { CalendarKind } from \"../shared/engineTypes\";\nimport type { FacilityCategory, FacilityKind, GameMode } from \"../shared/types\";\nimport type { FilmPolicy, FilmTier, TicketPrice } from \"../simport/commands\";\nimport type { CatalogSkyBridgeRules } from \"./skyBridgeTypes\";\nimport type { CatalogStarDutyRules } from \"./starDutyTypes\";\n\n/** A film a theater can show, as the catalog publishes it (#1950). */\nexport interface CatalogFilm {\n readonly key: FilmTier;\n /** What the card calls it (\"New film\", \"Feature\", ...). */\n readonly label: string;\n /** What showing it costs, charged once. */\n readonly price: number;\n}\n\n/** An Auto-rebook choice for a Modern theater (#1950): the policy the save\n * stores, and the film it books again once the theater's film is spent, or\n * null where rebooking is off. */\nexport interface CatalogFilmRebook {\n readonly policy: FilmPolicy;\n readonly film: FilmTier | null;\n}\n\n/** A ticket price step for a Modern theater (#1950): what it multiplies a\n * seat's ticket income by, and the share of the crowd's visits the theater\n * draws, both against Normal's 1. */\nexport interface CatalogTicketPrice {\n readonly key: TicketPrice;\n /** What the card calls it (\"Low\", \"Normal\", ...). */\n readonly label: string;\n readonly incomeMult: number;\n readonly pickMult: number;\n}\n\n/** The version of the catalog's shape. It moves when a field is added,\n * renamed or removed, so a frontend can refuse a shape it does not know. */\nexport const CATALOG_VERSION = 26;\n\n/** Every price, size and build rule of one mode. */\nexport interface Catalog {\n /** {@link CATALOG_VERSION}. */\n readonly version: number;\n /** The mode the values are resolved for. */\n readonly mode: GameMode;\n readonly world: CatalogWorld;\n readonly economy: CatalogEconomy;\n readonly rules: CatalogRules;\n /** The caps several kinds share, in the engine's order. */\n readonly pools: readonly CatalogPool[];\n /** One entry per facility kind in the engine's catalog order, the kinds this\n * mode cannot build included (`available: false`). */\n readonly facilities: readonly CatalogFacility[];\n}\n\n/** The tower geometry a placement needs. */\nexport interface CatalogWorld {\n /** The buildable lot width in tiles. */\n readonly lotWidth: number;\n /** The lowest floor. Floors number without a gap: 1 is the ground floor,\n * 0 the first basement. */\n readonly minFloor: number;\n readonly maxFloor: number;\n /** The ground floor, where the main lobby sits. */\n readonly groundFloor: number;\n /** What the floor tool lays on the ground floor: a lobby. A current game\n * holds no plain floor there, so each tile the floor tool lays pays for\n * its floor too (`paysForFloor`). */\n readonly groundFloorStructure: FacilityKind;\n /** Floors between lobbies: besides the ground floor, a sky lobby may sit on\n * every floor from 2 up that is a multiple of it (15, 30, ...). */\n readonly lobbyInterval: number;\n /** The Metro's timetable, which riders leaving by train keep. */\n readonly metroTrain: CatalogMetroTrain;\n}\n\n/** When the one train on a Metro line runs, in game time: each hour from\n * `firstHour` to `lastHour` (`metroLineTimes` works out its calls). */\nexport interface CatalogMetroTrain {\n readonly firstHour: number;\n readonly lastHour: number;\n readonly legMinutes: number;\n readonly dwellMinutes: number;\n readonly runMinutes: number;\n}\n\n/** The mode's economy constants a UI shows, in dollars. */\nexport interface CatalogEconomy {\n /** The treasury a new tower starts with. */\n readonly startingMoney: number;\n /** The price of one more elevator car on a shaft (the engine's `addCar`\n * charges it). */\n readonly addCarCost: number;\n /** What the engine's `removeCar` refunds for one car. */\n readonly carResaleRefund: number;\n /** The price of each floor an elevator spans past its first. The build\n * charges it, and the engine's `extendTransport` charges it for each floor\n * an extend adds. Stairs and escalators pay none. */\n readonly transportFloorCost: number;\n /** The calendars a tower of this mode can run, its default first. Every\n * `...Monthly` figure here and each facility's `upkeepMonthly` is quoted per\n * 30-day real-world month: the engine charges it once per maintenance\n * period, multiplied by that calendar's `maintenanceScale`. */\n readonly calendars: readonly CatalogCalendar[];\n /** Monthly upkeep per elevator car. */\n readonly maintenancePerCarMonthly: number;\n /** Monthly operating overhead per leasable or trading unit (0 where the\n * mode charges none). */\n readonly overheadPerUnitMonthly: number;\n /** Monthly tax on an unsold condo as a fraction of its asking price (0\n * where the mode charges none). Each period the engine charges\n * `ceil(price * rate)`, multiplied by `maintenanceScale` and rounded. */\n readonly condoHoldTaxRate: number;\n /** A nightclub's monthly DJ booking. */\n readonly nightclubDjMonthly: number;\n /** Hour of the daily garbage-truck collection that empties recycling bins. */\n readonly garbageCollectHour: number;\n /** The paid exterminator's fees, or null where the mode has none. */\n readonly exterminator: { readonly calloutFee: number; readonly perRoomFee: number } | null;\n /** The films a theater can show, with their prices, in the order the card\n * lists them (#1932, #1950). No theater pays anything each period. */\n readonly films: readonly CatalogFilm[];\n /** The Auto-rebook choices, in the order the card's button cycles through\n * them (#1950); empty where no theater rebooks (Classic). */\n readonly filmRebooks: readonly CatalogFilmRebook[];\n /** The policy a theater with none, or an old save's \"auto\", rebooks by,\n * or null where no theater rebooks. */\n readonly filmRebookDefault: FilmPolicy | null;\n /** The screens a theater runs, each with its own film, age, Auto-rebook\n * choice and booking: 1 in Classic, 2 in Modern (#1950). */\n readonly cinemaScreens: number;\n /** A theater's ticket price steps, cheapest first, in the order the card's\n * button cycles through them (#1950); empty where the mode has none\n * (Classic). */\n readonly ticketPrices: readonly CatalogTicketPrice[];\n /** The step a theater with none set charges, or null where the mode has no\n * ticket price. */\n readonly ticketPriceDefault: TicketPrice | null;\n /** Whether the player can switch automatic bridging off. When false,\n * bridging is always on. When true, a tower starts bridged unless it was\n * founded unbridged, and the live setting is per tower (the engine's\n * `autoBridge()`, the save's `autoBridge`). */\n readonly autoBridgeToggleable: boolean;\n}\n\n/** Mode rules a frontend shows the player, each from the engine's own rule\n * method, so a frontend reads them here instead of deciding by mode name. */\nexport interface CatalogRules extends CatalogStarDutyRules, CatalogSkyBridgeRules {\n /** Whether a sold condo carries its own household of 2 to 5 that prices the sale and counts\n * its residents. When false every condo houses the flat family and stores no household. */\n readonly variantHouseholds: boolean;\n /** Whether the build preview names the engine's refusal before the click.\n * When false the refusal shows only once a click is refused. */\n readonly previewNamesRefusal: boolean;\n /** Whether the elevator schedule's assisted tools answer: the intent presets, auto-tune and the\n * staffing advice. When false the schedule is the manual grid only and each assisted query is refused. */\n readonly scheduleAssist: boolean;\n /** Whether the player may place new construction while the game is paused. When false a placement\n * at speed 0 is refused with a note to unpause; the engine itself has no paused state. */\n readonly buildsWhilePaused: boolean;\n /** Whether the tower can be exported for SimTower (1994) as a `.TDT`. When false the export dialog\n * disables that choice with the reason, and the engine's `.TDT` export refuses the tower. */\n readonly exportsTo1994: boolean;\n /** Whether the tenant card's lobby warning quotes the floors to the\n * nearest lobby. When false it names the problem without the number. */\n readonly quotesLobbyDistance: boolean;\n /** Whether a card or notice that names a problem also says what to do about it (#549). When\n * false it states the cause only, as the 1994 game's inspector did. */\n readonly advisesFixes: boolean;\n /** Whether a sky lobby may rise more than one story (#308). The ground lobby always may,\n * up to `maxLobbyHeight`; when false it is the only one that can. */\n readonly tallSkyLobbies: boolean;\n /** The most stories a lobby can rise (#308). A floor's first lobby sets its\n * height, and it never changes after. */\n readonly maxLobbyHeight: number;\n /** Whether the frontend may draw decorative passers-by: figures that pace the corridors for life but are not\n * people the engine knows about (#2091). When false (Classic, as in SimTower) it draws only the engine's own people. */\n readonly decorativePassersBy: boolean;\n /** Whether the frontend draws the lit look (#2097): people lit from the\n * upper left with a four-frame walk, and rooms shaded to match. When false\n * (Classic) it keeps the flat 1994 look with a two-frame walk. */\n readonly shadedLook: boolean;\n /** Whether a one-story stair beside a venue draws as a spiral and an escalator as a\n * switchback. Drawing only; when false (Classic) every flight is straight, as in 1994. */\n readonly venueFlights: boolean;\n /** Whether each tower on the lot draws its own front door: the grand entrance and doorman at the left end of its\n * ground lobby, the service door at the right. Drawing only; when false (Classic) the leftmost ground lobby has it. */\n readonly frontDoorPerTower: boolean;\n /** Whether an express keeps the 1994 stops (#1527): ground, every 15th floor, every basement. */\n readonly expressStopsOn15thFloors: boolean;\n /** Whether one free parking space serves every office (#1970), so the stats count offices as one space (#2024). */\n readonly officesShareOneParkingSpace: boolean;\n /** Seconds a person waits before it counts as stress and the frontend shows them fed up (red). Same in both modes. */\n readonly fedUpWait: number;\n}\n\n/** One calendar a tower can run and how it scales the quoted figures. */\nexport interface CatalogCalendar {\n /** As a save names it. */\n readonly key: CalendarKind;\n /** Days per quarter. */\n readonly quarterDays: number;\n /** Days between lease rent collections: the quarter in Classic, the maintenance period in Modern (#2255). */\n readonly leasePeriodDays: number;\n /** Days between maintenance charges (and monthly rent collections). */\n readonly maintenancePeriodDays: number;\n /** What a `...Monthly` figure and a monthly rent are multiplied by on each maintenance period. */\n readonly maintenanceScale: number;\n /** What a quarterly rent is multiplied by on each lease collection. */\n readonly quarterlyRentScale: number;\n}\n\n/** A cap several kinds share. */\nexport interface CatalogPool {\n /** The name a {@link CatalogFacility.pool} refers to it by. */\n readonly key: \"elevators\" | \"walkways\" | \"venues\";\n /** The label the engine's refusal names the pool by. */\n readonly label: string;\n /** The most units of all its kinds together a tower may hold. */\n readonly cap: number;\n readonly kinds: readonly FacilityKind[];\n}\n\n/** When a price is collected: `quarterly` (offices and the lease amenities,\n * every `leasePeriodDays`, scaled by the calendar's `quarterlyRentScale`), `maintenancePeriod` (rental\n * living, every maintenance period, scaled by `maintenanceScale`), `sale` (a\n * condo, once) or `nightly` (hotel rooms). */\nexport type CatalogRentCadence = \"quarterly\" | \"maintenancePeriod\" | \"sale\" | \"nightly\";\n\n/** How the player prices a kind: a ladder of fixed rungs (Classic) or a\n * continuous band (Modern). */\nexport type CatalogRent =\n | {\n readonly shape: \"ladder\";\n readonly cadence: CatalogRentCadence;\n /** The price a new unit starts at (the Average rung). */\n readonly default: number;\n readonly rungs: readonly { readonly level: number; readonly label: string; readonly value: number }[];\n /** A ladder always offers the No Rate off-market state. */\n readonly noRate: true;\n }\n | {\n readonly shape: \"band\";\n readonly cadence: CatalogRentCadence;\n /** The price a new unit starts at. */\n readonly default: number;\n readonly min: number;\n readonly max: number;\n readonly step: number;\n /** A band never offers No Rate. */\n readonly noRate: false;\n };\n\n/** One facility kind, resolved for the catalog's mode. */\nexport interface CatalogFacility {\n /** The key saves and commands name the kind by. */\n readonly key: FacilityKind;\n readonly name: string;\n readonly category: FacilityCategory;\n /** Width in tiles. A transport's width is its shaft's. */\n readonly width: number;\n /** Height in floors (1 for an ordinary room, and 1 for a transport, whose\n * height is its span). */\n readonly floors: number;\n /** The build price. An elevator adds `transportFloorCost` for each floor past\n * its first (top minus bottom). A room adds the floor's price for every\n * floor tile laid under it, and so does a kind that pays for its floor\n * (`paysForFloor`) placed where there is no floor yet (see\n * `catalogTileCost`). With automatic bridging on, every gap tile bridged to\n * the tower adds one substrate tile: the lobby's price plus the floor's\n * when placing a lobby (on any floor), the floor's price for a floor tile\n * or a room. */\n readonly cost: number;\n /** Whether a tile of this kind placed where there is no floor yet also\n * pays the floor's price, for the floor it lays (the lobby). Over a floor\n * tile it pays `cost` alone. */\n readonly paysForFloor: boolean;\n /** The star rating that unlocks it. */\n readonly minStar: number;\n /** The people it holds (tenants, residents or customers at a time). */\n readonly population: number;\n /** The most residents a household-sized unit may carry, or null. */\n readonly maxHousehold: number | null;\n /** The audience an attendance venue seats, or null. */\n readonly attendance: number | null;\n readonly modernOnly: boolean;\n readonly transport: boolean;\n /** A staff-only transport (the service elevator). */\n readonly staffOnly: boolean;\n /** Built underground only. */\n readonly basement: boolean;\n /** Never built underground. */\n readonly noBasement: boolean;\n /** Whether this mode can build it at all (the star gate aside). */\n readonly available: boolean;\n /** In-game minutes of construction (0 for structure and for transports,\n * which work as soon as they are placed). */\n readonly buildMinutes: number;\n /** What selling it refunds (a gutted unit refunds nothing). */\n readonly resaleRefund: number;\n /** The most a tower may hold of this kind alone, or null when uncapped. */\n readonly buildCap: number | null;\n /** The {@link CatalogPool.key} of the cap it shares, or null. */\n readonly pool: CatalogPool[\"key\"] | null;\n /** For a transport, the largest top floor minus bottom floor it may have,\n * else null. It serves `maxSpan + 1` floors: stairs and escalators have 1\n * and link two floors. */\n readonly maxSpan: number | null;\n /** A fixed two-floor transport placed with one tap and never resized. */\n readonly fixedSpan: boolean;\n /** For an elevator, the most cars a shaft takes, else null. */\n readonly maxCars: number | null;\n /** For a transport, the passengers one car (or one flight) carries, else null. */\n readonly carCapacity: number | null;\n /** The varieties a new unit draws from, in the engine's order, or null. */\n readonly subtypes: readonly string[] | null;\n /** How the player prices it in this mode, or null when its price is not\n * player-set. */\n readonly rent: CatalogRent | null;\n /** A trading venue's headline daily take in this mode, or null: the ceiling\n * the money loop pays a sold-out venue. */\n readonly dailyIncome: number | null;\n /** The average ticket per customer the engine counts customers with, for the\n * venues that track them in this mode (those with subtypes and a daily\n * income), else null. */\n readonly spendPerCustomer: number | null;\n /** A service facility's monthly maintenance, or null. */\n readonly upkeepMonthly: number | null;\n /** Whether it is open in each hour of the day, 0 to 23, for a kind that\n * keeps business hours, else null (always open). */\n readonly openHours: readonly boolean[] | null;\n /** Whether a unit may carry its own household size (`residents`), which\n * then stands in for `population`; a condo's price scales with it against\n * the condo's `population`. */\n readonly ownHousehold: boolean;\n /** A foot-traffic trading kind: the predicate the lobby-proximity rule\n * keys off, and the noise rule too, less the quiet spa and daycare. */\n readonly commercial: boolean;\n /** A hotel room of any size. */\n readonly hotel: boolean;\n /** A Modern lease amenity (fitness club, clinic): lease tenants that erode\n * on unserved placement and an over-market rent. */\n readonly leaseAmenity: boolean;\n /** A demand tenant whose unmet local coverage drains satisfaction (office,\n * condo, apartment, hotel rooms). */\n readonly unmetDemand: boolean;\n /** The venue's cross-floor halo in this mode, or null (#1980): the\n * placement range rings draw it. */\n readonly halo: CatalogHalo | null;\n /** How far the room's same-floor noise carries and how far it hears its\n * neighbors, which the placement overlay draws; empty in Classic. */\n readonly noise: readonly CatalogNoise[];\n}\n\n/** A venue's cross-floor halo: who feels it, over how many floors and how\n * hard. A room `d` floors from the venue feels `max * (1 - d / floors)`,\n * and none at `floors` or beyond. */\nexport interface CatalogHalo {\n /** `lift` (an amenity) or `drain` (a nuisance). */\n readonly effect: \"lift\" | \"drain\";\n readonly floors: number;\n /** The hourly bonus or drain on the venue's own floor. */\n readonly max: number;\n /** How far a lift raises a capped room's ceiling at full strength, or\n * null for a drain. */\n readonly capLift: number | null;\n /** The facility keys that feel it. */\n readonly feltBy: readonly FacilityKind[];\n /** Felt only in the venue's `openHours`. */\n readonly openHoursOnly: boolean;\n /** Scaled by the household's size, largest for the biggest family. */\n readonly familyScaled: boolean;\n}\n\n/** One reach of a room's same-floor noise. The tile beside the room is tile\n * 0, so a room of the other side within `tiles + 1` tiles of an edge counts;\n * a lobby tile or a gap in the floor stops it. */\nexport interface CatalogNoise {\n /** `carries`: the room makes noise `kinds` hear. `hears`: the room hears\n * noise `kinds` make. */\n readonly role: \"carries\" | \"hears\";\n readonly tiles: number;\n /** The facility keys on the other side. */\n readonly kinds: readonly FacilityKind[];\n}\n\nconst facilityIndex = new WeakMap<Catalog, ReadonlyMap<FacilityKind, CatalogFacility>>();\n\n/** The catalog entry for `kind`, or undefined when the catalog lists no such\n * kind (a kind from another build, or a damaged save). */\nexport function findCatalogFacility(catalog: Catalog, kind: FacilityKind): CatalogFacility | undefined {\n let index = facilityIndex.get(catalog);\n if (!index) {\n index = new Map(catalog.facilities.map((f) => [f.key, f]));\n facilityIndex.set(catalog, index);\n }\n return index.get(kind);\n}\n\n/** The catalog entry for `kind`. Throws when the catalog lists no such kind,\n * which only a damaged catalog or a kind from another build can cause. */\nexport function catalogFacility(catalog: Catalog, kind: FacilityKind): CatalogFacility {\n const f = findCatalogFacility(catalog, kind);\n if (!f) throw new Error(`the ${catalog.mode} catalog lists no facility \"${kind}\"`);\n return f;\n}\n\n/** What a build of `kind` on `floor` lays, by the catalog's ground-floor rule:\n * the floor tool lays the world's ground-floor structure (a lobby) on the\n * ground floor, and every other build lays its own kind. */\nexport function catalogBuildKind(catalog: Catalog, kind: FacilityKind, floor: number): FacilityKind {\n return kind === \"floor\" && floor === catalog.world.groundFloor ? catalog.world.groundFloorStructure : kind;\n}\n\n/** What a structure tile is placed on: open space with no floor yet, or a\n * floor tile that it turns into its own kind. */\nexport type TileGround = \"no floor yet\" | \"a floor tile\";\n\n/** The price of one structure tile of `kind` (a floor or a lobby tile)\n * placed on `ground`, by the catalog's rule: a kind that pays for its floor\n * (`paysForFloor`, the lobby) adds the floor's price where there is no\n * floor yet, and pays its own price alone over a floor tile. */\nexport function catalogTileCost(catalog: Catalog, kind: FacilityKind, ground: TileGround): number {\n const f = catalogFacility(catalog, kind);\n return f.paysForFloor && ground === \"no floor yet\" ? f.cost + catalogFacility(catalog, \"floor\").cost : f.cost;\n}\n\n/** The editor card's action for showing a `key` film on screen `screen`\n * (from 0; `data-edit`). The first screen's keeps the one-screen name. */\nexport function filmEditAction(key: FilmTier, screen = 0): string {\n return screen === 0 ? `${key}Film` : `${key}Film${screen + 1}`;\n}\n\n/** The editor card's action for stepping screen `screen`'s Auto-rebook\n * choice (from 0; `data-edit`). */\nexport function filmPolicyEditAction(screen = 0): string {\n return screen === 0 ? \"filmPolicy\" : `filmPolicy${screen + 1}`;\n}\n\n/** The Auto-rebook choice a theater with `policy` follows: its own where the\n * catalog lists it, otherwise the mode's default (no policy, or an old\n * save's \"auto\"). Null where no theater rebooks (#1950). */\nexport function catalogFilmRebook(catalog: Catalog, policy: FilmPolicy | null | undefined): CatalogFilmRebook | null {\n const { filmRebooks, filmRebookDefault } = catalog.economy;\n const listed = (p: FilmPolicy | null | undefined) => filmRebooks.find((r) => r.policy === p);\n return listed(policy) ?? listed(filmRebookDefault) ?? null;\n}\n\n/** The ticket price step a theater charges: its own where the catalog lists\n * it, otherwise the mode's default. Null where the mode has no ticket price\n * (#1950). */\nexport function catalogTicketPrice(catalog: Catalog, price: TicketPrice | null | undefined): CatalogTicketPrice | null {\n const { ticketPrices, ticketPriceDefault } = catalog.economy;\n const listed = (p: TicketPrice | null | undefined) => ticketPrices.find((t) => t.key === p);\n return listed(price) ?? listed(ticketPriceDefault) ?? null;\n}\n\n/** Whether a facility is open in `hour` (the game hour; fractions and 24 read\n * as the engines read them, since every opening and closing is on the hour):\n * always, for a kind that keeps no business hours. */\nexport function catalogOpenAt(f: CatalogFacility, hour: number): boolean {\n return f.openHours === null || f.openHours[((Math.floor(hour) % 24) + 24) % 24] === true;\n}\n\n/** The people a unit holds: its own household where the kind carries one and\n * the unit has it, else the catalog's `population`. */\nexport function catalogResidents(f: CatalogFacility, residents: number | null | undefined): number {\n return f.ownHousehold && residents != null ? residents : f.population;\n}\n\n/** A condo's price for its household: the asking `base` scaled by household\n * size against the classic household, the condo's catalog `population`. No\n * household (Classic, or an unsold unit) is exactly the base. */\nexport function catalogHouseholdPrice(catalog: Catalog, base: number, residents: number | null | undefined): number {\n if (residents == null) return base;\n return Math.round((base * residents) / catalogFacility(catalog, \"condo\").population);\n}\n\n/** The rung of a ladder a value sits on: the nearest, ties rounding up to the\n * higher rung, and Average (the third rung) for a non-finite value. The\n * engine's own snap (`snapToLadder`) is this rule. */\nexport function rungFor<R extends { readonly value: number }>(rungs: readonly R[], value: number): R {\n if (!Number.isFinite(value)) return rungs[2];\n let best = rungs[0];\n let bestDist = Infinity;\n for (const r of rungs) {\n const d = Math.abs(value - r.value);\n // `<=` so an exact tie prefers the later (higher) rung.\n if (d <= bestDist) {\n bestDist = d;\n best = r;\n }\n }\n return best;\n}\n"],"names":[],"mappings":"AAwCA;AAC6E;AACtE,MAAM,eAAe,GAAG;AA6V/B,MAAM,aAAa,GAAG,IAAI,OAAO,EAAuD;AAExF;AAC2D;AACrD,SAAU,mBAAmB,CAAC,OAAgB,EAAE,IAAkB,EAAA;IACtE,IAAI,KAAK,GAAG,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC;IACtC,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAC1D,QAAA,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC;IACnC;AACA,IAAA,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;AACxB;AAEA;AAC2E;AACrE,SAAU,eAAe,CAAC,OAAgB,EAAE,IAAkB,EAAA;IAClE,MAAM,CAAC,GAAG,mBAAmB,CAAC,OAAO,EAAE,IAAI,CAAC;AAC5C,IAAA,IAAI,CAAC,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,CAAA,IAAA,EAAO,OAAO,CAAC,IAAI,CAAA,4BAAA,EAA+B,IAAI,CAAA,CAAA,CAAG,CAAC;AAClF,IAAA,OAAO,CAAC;AACV;AAEA;;AAE6D;SAC7C,gBAAgB,CAAC,OAAgB,EAAE,IAAkB,EAAE,KAAa,EAAA;IAClF,OAAO,IAAI,KAAK,OAAO,IAAI,KAAK,KAAK,OAAO,CAAC,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,oBAAoB,GAAG,IAAI;AAC5G;AAMA;;;AAGiE;SACjD,eAAe,CAAC,OAAgB,EAAE,IAAkB,EAAE,MAAkB,EAAA;IACtF,MAAM,CAAC,GAAG,eAAe,CAAC,OAAO,EAAE,IAAI,CAAC;AACxC,IAAA,OAAO,CAAC,CAAC,YAAY,IAAI,MAAM,KAAK,cAAc,GAAG,CAAC,CAAC,IAAI,GAAG,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI;AAC/G;AAEA;AAC2E;SAC3D,cAAc,CAAC,GAAa,EAAE,MAAM,GAAG,CAAC,EAAA;AACtD,IAAA,OAAO,MAAM,KAAK,CAAC,GAAG,GAAG,GAAG,CAAA,IAAA,CAAM,GAAG,GAAG,GAAG,CAAA,IAAA,EAAO,MAAM,GAAG,CAAC,EAAE;AAChE;AAEA;AACoC;AAC9B,SAAU,oBAAoB,CAAC,MAAM,GAAG,CAAC,EAAA;AAC7C,IAAA,OAAO,MAAM,KAAK,CAAC,GAAG,YAAY,GAAG,CAAA,UAAA,EAAa,MAAM,GAAG,CAAC,EAAE;AAChE;AAEA;;AAE6D;AACvD,SAAU,iBAAiB,CAAC,OAAgB,EAAE,MAAqC,EAAA;IACvF,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAAC,OAAO;IAC1D,MAAM,MAAM,GAAG,CAAC,CAAgC,KAAK,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IAC5F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,iBAAiB,CAAC,IAAI,IAAI;AAC5D;AAEA;;AAEe;AACT,SAAU,kBAAkB,CAAC,OAAgB,EAAE,KAAqC,EAAA;IACxF,MAAM,EAAE,YAAY,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,OAAO;IAC5D,MAAM,MAAM,GAAG,CAAC,CAAiC,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC;IAC3F,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,kBAAkB,CAAC,IAAI,IAAI;AAC5D;AAEA;;AAEuD;AACjD,SAAU,aAAa,CAAC,CAAkB,EAAE,IAAY,EAAA;AAC5D,IAAA,OAAO,CAAC,CAAC,SAAS,KAAK,IAAI,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,KAAK,IAAI;AAC1F;AAEA;AACwD;AAClD,SAAU,gBAAgB,CAAC,CAAkB,EAAE,SAAoC,EAAA;AACvF,IAAA,OAAO,CAAC,CAAC,YAAY,IAAI,SAAS,IAAI,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC,UAAU;AACvE;AAEA;;AAEkE;SAClD,qBAAqB,CAAC,OAAgB,EAAE,IAAY,EAAE,SAAoC,EAAA;IACxG,IAAI,SAAS,IAAI,IAAI;AAAE,QAAA,OAAO,IAAI;AAClC,IAAA,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,SAAS,IAAI,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,UAAU,CAAC;AACtF;AAEA;;AAEuD;AACjD,SAAU,OAAO,CAAuC,KAAmB,EAAE,KAAa,EAAA;AAC9F,IAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;AAAE,QAAA,OAAO,KAAK,CAAC,CAAC,CAAC;AAC5C,IAAA,IAAI,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC;IACnB,IAAI,QAAQ,GAAG,QAAQ;AACvB,IAAA,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;AACrB,QAAA,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;;AAEnC,QAAA,IAAI,CAAC,IAAI,QAAQ,EAAE;YACjB,QAAQ,GAAG,CAAC;YACZ,IAAI,GAAG,CAAC;QACV;IACF;AACA,IAAA,OAAO,IAAI;AACb;;"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The Sky Bridge tool's rule in the catalog's `rules` block
3
+ * (`engine-rs/src/catalog/rules.rs`, `SkyBridgeRule`): when the tool opens,
4
+ * how far a bridge reaches and what a tile costs. `CatalogRules` in
5
+ * `catalogTypes.ts` extends it. The engine's `quoteSkyBridge` prices a gap.
6
+ */
7
+ /** The `CatalogRules` field the Sky Bridge tool reads. */
8
+ export interface CatalogSkyBridgeRules {
9
+ /** The Sky Bridge tool, or null where the mode builds no bridges (Classic,
10
+ * as in 1994). */
11
+ readonly skyBridge: CatalogSkyBridge | null;
12
+ }
13
+ /** What the Sky Bridge tool shows. One click lays the whole gap between two
14
+ * sky lobbies, or nothing. */
15
+ export interface CatalogSkyBridge {
16
+ /** The star rating the tool opens at. */
17
+ readonly minStar: number;
18
+ /** The most tiles of open air one bridge spans. */
19
+ readonly maxSpan: number;
20
+ /** The price of one bridge tile over open air. */
21
+ readonly tileCost: number;
22
+ /** The looks a bridge can wear, in the order the tool lists them; the first
23
+ * is the plain lobby. A bridge's look is its index here. */
24
+ readonly looks: readonly string[];
25
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The Sky Bridge tool's rule in the catalog's `rules` block
3
+ * (`engine-rs/src/catalog/rules.rs`, `SkyBridgeRule`): when the tool opens,
4
+ * how far a bridge reaches and what a tile costs. `CatalogRules` in
5
+ * `catalogTypes.ts` extends it. The engine's `quoteSkyBridge` prices a gap.
6
+ */
7
+ //# sourceMappingURL=skyBridgeTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skyBridgeTypes.js","sources":["../../src/catalog/skyBridgeTypes.ts"],"sourcesContent":["/**\n * The Sky Bridge tool's rule in the catalog's `rules` block\n * (`engine-rs/src/catalog/rules.rs`, `SkyBridgeRule`): when the tool opens,\n * how far a bridge reaches and what a tile costs. `CatalogRules` in\n * `catalogTypes.ts` extends it. The engine's `quoteSkyBridge` prices a gap.\n */\n\n/** The `CatalogRules` field the Sky Bridge tool reads. */\nexport interface CatalogSkyBridgeRules {\n /** The Sky Bridge tool, or null where the mode builds no bridges (Classic,\n * as in 1994). */\n readonly skyBridge: CatalogSkyBridge | null;\n}\n\n/** What the Sky Bridge tool shows. One click lays the whole gap between two\n * sky lobbies, or nothing. */\nexport interface CatalogSkyBridge {\n /** The star rating the tool opens at. */\n readonly minStar: number;\n /** The most tiles of open air one bridge spans. */\n readonly maxSpan: number;\n /** The price of one bridge tile over open air. */\n readonly tileCost: number;\n /** The looks a bridge can wear, in the order the tool lists them; the first\n * is the plain lobby. A bridge's look is its index here. */\n readonly looks: readonly string[];\n}\n"],"names":[],"mappings":"AAAA;;;;;AAKG"}