@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,18 @@
1
+ /**
2
+ * How the game reads a raw input event where two layers must agree on it.
3
+ */
4
+ /** Space, as the two names browsers report it by, or by its physical key: with
5
+ * Option held, macOS reports Space as a no-break space. The game's Space hold
6
+ * (`inputKeys`) and the palette's items (`uiPalette`) share this one test, so
7
+ * the palette skips exactly the Space releases the game canceled. */
8
+ export declare function isSpaceKey(e: Pick<KeyboardEvent, "key" | "code">): boolean;
9
+ /** The wheel turn that zooms the world, or 0 for one that does not. Browsers
10
+ * remap Shift+wheel to a sideways scroll (deltaY 0), so under the Shift pan key
11
+ * deltaX carries the zoom; any other sideways swipe zooms nothing. The camera
12
+ * (`towerInputCamera`) zooms by it, and the Space hold (`inputKeys`) counts a
13
+ * turn as a pan only when it zooms. */
14
+ export declare function wheelZoomDelta(e: {
15
+ deltaX: number;
16
+ deltaY: number;
17
+ shiftKey?: boolean;
18
+ }): number;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * How the game reads a raw input event where two layers must agree on it.
3
+ */
4
+ /** Space, as the two names browsers report it by, or by its physical key: with
5
+ * Option held, macOS reports Space as a no-break space. The game's Space hold
6
+ * (`inputKeys`) and the palette's items (`uiPalette`) share this one test, so
7
+ * the palette skips exactly the Space releases the game canceled. */
8
+ function isSpaceKey(e) {
9
+ return e.key === " " || e.key === "Spacebar" || e.code === "Space";
10
+ }
11
+ /** The wheel turn that zooms the world, or 0 for one that does not. Browsers
12
+ * remap Shift+wheel to a sideways scroll (deltaY 0), so under the Shift pan key
13
+ * deltaX carries the zoom; any other sideways swipe zooms nothing. The camera
14
+ * (`towerInputCamera`) zooms by it, and the Space hold (`inputKeys`) counts a
15
+ * turn as a pan only when it zooms. */
16
+ function wheelZoomDelta(e) {
17
+ if (e.deltaY !== 0)
18
+ return e.deltaY;
19
+ return e.shiftKey ? e.deltaX : 0;
20
+ }
21
+
22
+ export { isSpaceKey, wheelZoomDelta };
23
+ //# sourceMappingURL=inputEvents.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputEvents.js","sources":["../../src/shared/inputEvents.ts"],"sourcesContent":["/**\n * How the game reads a raw input event where two layers must agree on it.\n */\n\n/** Space, as the two names browsers report it by, or by its physical key: with\n * Option held, macOS reports Space as a no-break space. The game's Space hold\n * (`inputKeys`) and the palette's items (`uiPalette`) share this one test, so\n * the palette skips exactly the Space releases the game canceled. */\nexport function isSpaceKey(e: Pick<KeyboardEvent, \"key\" | \"code\">): boolean {\n return e.key === \" \" || e.key === \"Spacebar\" || e.code === \"Space\";\n}\n\n/** The wheel turn that zooms the world, or 0 for one that does not. Browsers\n * remap Shift+wheel to a sideways scroll (deltaY 0), so under the Shift pan key\n * deltaX carries the zoom; any other sideways swipe zooms nothing. The camera\n * (`towerInputCamera`) zooms by it, and the Space hold (`inputKeys`) counts a\n * turn as a pan only when it zooms. */\nexport function wheelZoomDelta(e: { deltaX: number; deltaY: number; shiftKey?: boolean }): number {\n if (e.deltaY !== 0) return e.deltaY;\n return e.shiftKey ? e.deltaX : 0;\n}\n"],"names":[],"mappings":"AAAA;;AAEG;AAEH;;;AAGsE;AAChE,SAAU,UAAU,CAAC,CAAsC,EAAA;AAC/D,IAAA,OAAO,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC,GAAG,KAAK,UAAU,IAAI,CAAC,CAAC,IAAI,KAAK,OAAO;AACpE;AAEA;;;;AAIwC;AAClC,SAAU,cAAc,CAAC,CAAyD,EAAA;AACtF,IAAA,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,CAAC,CAAC,MAAM;AACnC,IAAA,OAAO,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC;AAClC;;"}
@@ -0,0 +1,142 @@
1
+ import type { CalendarKind } from "./engineTypes";
2
+ import type { GameMode, LogEntry, SerializedUnit, SerializedView, Transport } from "./types";
3
+ /**
4
+ * The save-file wire format: what `Simulation.serialize()` writes and
5
+ * `deserialize()` hardens on the way back in. Split from types.ts when that
6
+ * file hit the size ceiling; import it from "./types" as before.
7
+ */
8
+ export interface SerializedGame {
9
+ version: number;
10
+ seed: number;
11
+ /** The RNG stream's founding seed (see RNG.initialSeed). Optional: saves
12
+ * written before it existed fall back to `seed` on load, which is just as
13
+ * stable an identity for an already-written file. */
14
+ initialSeed?: number;
15
+ money: number;
16
+ star: number;
17
+ minutes: number;
18
+ /** Rule-set the tower was founded under. Absent in saves written before the
19
+ * mode fork (and never mutated after creation), so a missing value loads as
20
+ * `classic` — every legacy tower stays pixel-faithful with no migration. */
21
+ mode?: GameMode;
22
+ /** A Modern tower's calendar choice (`canon` short vs `realWorld` length),
23
+ * made at New Tower. Ignored for Classic (always canon). Absent on saves
24
+ * written before the calendar toggle, and on all legacy Modern saves, so a
25
+ * missing value loads as `realWorld` — the shipped 7/90/360 behavior. */
26
+ modernCalendar?: CalendarKind;
27
+ /** LEGACY: the former Modern "manual structure" option. No longer written; read
28
+ * only for migration, where a `true` loads the tower with bridging off (that
29
+ * option became the founding "no bridging" default). Rooms auto-lay their floor
30
+ * in every tower now, so the old "rooms won't auto-floor" behavior is retired. */
31
+ manualStructure?: boolean;
32
+ /** True for a ground-floor tower: one that predates 2.0. Detected ONCE at load
33
+ * from the pre-2.0 `appVersion` stamp (or, for pre-stamp saves, the absence of
34
+ * one at the file-load boundary), then persisted here so it survives a re-save
35
+ * (which restamps `appVersion` to the current build) and travels with the tower
36
+ * (export/import, cross-device). Absent/false for towers started in 2.0 or
37
+ * later. Drives the splash "Ground floor" badge. */
38
+ founder?: boolean;
39
+ /** "Bridge floors between placements" toggle, flipped mid-game. Written only
40
+ * when turned OFF (default on), so an absent value loads as on, the shipped
41
+ * behavior that fills the walkway to a neighbor. Ignored for Classic (always
42
+ * on): a forged `false` on a Classic save is clamped back to on. */
43
+ autoBridge?: boolean;
44
+ /** Balance entering the current quarter (snapshotted at each quarter rollover
45
+ * before rent is collected), so the TDT exporter can write the header's
46
+ * `lastQuarterMoney` (0x10). `serialize()` always writes it (0 on a fresh
47
+ * tower that has not crossed a quarter boundary yet); only legacy saves
48
+ * written before this field omit it, and those load as 0. */
49
+ lastQuarterMoney?: number;
50
+ units: SerializedUnit[];
51
+ transports: Transport[];
52
+ nextId: number;
53
+ towerName: string;
54
+ builtWeddingHall: boolean;
55
+ evaluatedTower: boolean;
56
+ /** Scheduled day of the pending VIP inspection (-1 if none). Optional for
57
+ * backward compatibility with saves written before it was persisted. */
58
+ vipVisitDay?: number;
59
+ /** Whether a VIP has given a favorable suite review (a 4★ gate). */
60
+ vipFavorable?: boolean;
61
+ /** How many VIP visits the player has been told about (suite stays, drive-offs,
62
+ * TOWER inspections). Optional: saves written before the counter load as 0,
63
+ * except that a favorable review implies at least one visit (a won tower two). */
64
+ vipVisits?: number;
65
+ /** Day of the last unfavorable-VIP bulletin, persisted so a save/reload can't
66
+ * reopen the 5-day nag window early (which would also inflate `vipVisits`).
67
+ * Optional: older saves load as -100, the fresh-tower default. */
68
+ lastVipNagDay?: number;
69
+ /** Seasonal-event state (Santa guard + dedicated RNG position). Optional for
70
+ * backward compatibility with saves written before it was persisted. */
71
+ events?: {
72
+ lastSantaYear: number;
73
+ rngState: number;
74
+ pending?: {
75
+ kind: "fireRescue" | "bombThreat";
76
+ cost: number;
77
+ message: string;
78
+ } | null;
79
+ };
80
+ /** Buried-treasure finds so far (capped), persisted so reload can't reset it. */
81
+ treasuresFound?: number;
82
+ /** Modern only: the day a booked exterminator's treatment lands (persisted). */
83
+ exterminationDueDay?: number;
84
+ /** Rooms paid for by a pending Modern exterminator booking. Older saves
85
+ * without this field retain their tower-wide treatment. */
86
+ exterminationRoomIds?: number[];
87
+ /** Basement tiles already excavated ("floor:x"), so buried treasure stays a
88
+ * one-time find per tile across save/reload. Optional for older saves. */
89
+ excavated?: string[];
90
+ /** Cinema unit ids showing a blockbuster this month (paid at booking), so a
91
+ * mid-month reload keeps the boost. Optional for older saves. */
92
+ blockbusters?: number[];
93
+ /** Ids of optional milestones already achieved, so reload doesn't
94
+ * re-announce them. Optional for older saves. */
95
+ milestones?: string[];
96
+ /** Rolling income/expense ledger for the stats breakdown (today's running
97
+ * totals + the trailing per-day window). Optional for pre-ledger saves. */
98
+ ledger?: unknown;
99
+ /** Where the player was looking when the save was written (see
100
+ * {@link SerializedView}). Stamped by the UI layer at save/export time;
101
+ * absent in older saves and fresh towers, which load centered as before. */
102
+ view?: SerializedView;
103
+ /** When this save was WRITTEN (epoch ms). Provenance of the file, not live
104
+ * state: the storage layer stamps it on every write (localStorage and
105
+ * .vctower alike), the engine never writes or reads it, and deserialize
106
+ * does not carry it onto the sim (the next write re-stamps). */
107
+ savedAt?: number;
108
+ /** Which build wrote this save (the Vite-injected app version). Same
109
+ * write-time provenance contract as {@link savedAt}: stamped by the storage
110
+ * layer. Read once on load (deserialize) to detect a pre-2.0 founding tower
111
+ * (major version below 2, which sets {@link founder}); not otherwise carried
112
+ * onto the sim, and the next write re-stamps it. */
113
+ appVersion?: string;
114
+ /** The tail of the bulletin log (newest last, capped at LOG_SAVE_CAP in
115
+ * Simulation.ts), so a loaded tower keeps its message history instead of
116
+ * opening with an empty panel. Absent in older saves (empty log). */
117
+ log?: LogEntry[];
118
+ /** Everyone in the tower as they stood (walking, waiting, riding, at a
119
+ * venue, cleaning), so a reload keeps them. The engine owns the shape
120
+ * (`engine-rs/src/crowd/save.rs`); absent in older saves, which load with
121
+ * nobody in the building. */
122
+ crowd?: unknown;
123
+ /** The elevator cars' timers mid-stop and the waiting estimate per floor,
124
+ * so the cars carry on after a reload. The engine owns the shape
125
+ * (`engine-rs/src/dispatch_save.rs`); absent in older saves. */
126
+ dispatch?: unknown;
127
+ /** Housekeeping's rooms cleaned today and yesterday's shift (cleaned, left
128
+ * dirty), so the checkout line and the stats sheet read the same after a
129
+ * reload. The engine owns the shape (`engine-rs/src/housekeeping_save.rs`);
130
+ * absent while there is nothing to tally and in older saves. */
131
+ housekeeping?: unknown;
132
+ /** The day's move-ins so far (offices, condos, hotel rooms and rentals let),
133
+ * so the evening's "New tenants:" line counts the whole day after a reload.
134
+ * The engine owns the shape (`engine-rs/src/churn/move_ins_save.rs`); absent
135
+ * while nobody has moved in since the last report and in older saves. */
136
+ moveIns?: unknown;
137
+ /** A first-day game's hour, maintenance-period and quarter marks that the
138
+ * clock does not give, so a reload bills the first day's end as the unsaved
139
+ * game would. The engine owns the shape (`engine-rs/src/sim_period_marks.rs`);
140
+ * absent from the second day on and in older saves. */
141
+ periodMarks?: unknown;
142
+ }
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=serializedGame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializedGame.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,298 @@
1
+ /**
2
+ * Core type definitions for the tower model, shared by the engine binding, the
3
+ * frontend and the TypeScript reference engine (which re-exports them from
4
+ * `src/engine/types.ts` until it is deleted, #1875).
5
+ *
6
+ * The tower is modelled as a grid of cells. Each floor is a row; columns are
7
+ * "tiles". A facility occupies a contiguous run of tiles on a single floor.
8
+ */
9
+ import type { ElevatorSchedule } from "./engineTypes";
10
+ /** Cosmetic sky weather, derived deterministically from the day. */
11
+ export type WeatherKind = "clear" | "cloudy" | "rain";
12
+ /**
13
+ * Rule-set a tower is founded under. Chosen once at tower creation and immutable
14
+ * for that save's life (never a runtime toggle), so no simulation code ever has
15
+ * to ask "did the player switch mid-game?".
16
+ *
17
+ * - `classic` — pixel-faithful 1994 SimTower: every condo houses a flat family
18
+ * of 3. This is the ONLY mode a save can have if it predates the mode field,
19
+ * so a legacy tower's population census loads unchanged (its condos stay flat
20
+ * 3s). Note the price-band re-anchor and the owner buy-back are 1994-canon
21
+ * fixes that apply to EVERY tower regardless of mode — they aren't gated here;
22
+ * only behavior the original never had is.
23
+ * - `modern` — Classic plus opt-in divergences the original couldn't do. Today
24
+ * that means *variant households* (a condo draws a 2–5 person family that
25
+ * drives its price and how demanding it is). Future Modern features layer in
26
+ * the same way, each behind this one flag.
27
+ */
28
+ export type GameMode = "classic" | "modern";
29
+ /** Guard for a persisted mode from an untrusted/older save (absent ⇒ classic). */
30
+ export declare function isGameMode(v: unknown): v is GameMode;
31
+ /** Category groups used for the build toolbar and evaluation rules. */
32
+ export type FacilityCategory = "structure" | "transport" | "office" | "residential" | "hotel" | "food" | "retail" | "entertainment" | "service" | "special";
33
+ /** Every buildable facility kind. */
34
+ export type FacilityKind = "lobby" | "floor" | "office" | "condo" | "rentalStudio" | "rentalApartment" | "hotelSingle" | "hotelDouble" | "hotelSuite" | "fastFood" | "restaurant" | "foodHall" | "shop" | "cinema" | "partyHall" | "amusements" | "boutiqueBay" | "fitnessClub" | "clinic" | "nightclub" | "spa" | "skyBar" | "aquaticCenter" | "daycare" | "stairs" | "escalator" | "elevatorStandard" | "elevatorService" | "elevatorExpress" | "parkingRamp" | "parking" | "security" | "medical" | "housekeeping" | "recycling" | "metro" | "weddingHall";
35
+ /** Occupancy / activity state of a unit. */
36
+ export type UnitState = "construction" | "empty" | "occupied" | "moving_in" | "vacating" | "asleep" | "dirty" | "infested" | "fire" | "gutted";
37
+ /** Guard for untrusted input (hand-edited / foreign saves): a forged `state`
38
+ * string would otherwise flow into UI innerHTML and state-machine compares. */
39
+ export declare function isUnitState(v: unknown): v is UnitState;
40
+ /** Why a dissatisfied tenant is leaving, attributed from the dominant
41
+ * satisfaction drain when it bottoms out, so the toast names the real cause
42
+ * rather than always blaming "poor access". `noise`: a noise-sensitive room
43
+ * (office, hotel, condo) worn down by a same-floor neighbor over sustained
44
+ * exposure (W2 erosion). `transportFar`: an office whose nearest stairs/elevator
45
+ * sits past the walking tolerance (79 tiles) on its floor (W1). `lobbyFar`: a
46
+ * tenant deep in the very-far band from the nearest (sky)lobby (fix: a sky
47
+ * lobby, not a nearer stair/elevator). `unmetDemand`: a served office/hotel/condo
48
+ * whose reachable shops/eateries can't cover demand (Modern evicts, Classic caps).
49
+ * `noTransport`: the unit's own contiguous floor segment cannot reach the ground
50
+ * lobby through any chain of transports, even though another part of the floor
51
+ * can (a gap-split floor whose transport sits on the far half); distinct from
52
+ * `access`, which is the whole floor being off the network (#647). `trash`:
53
+ * from 3 stars, too few recycling centers for the population. `parking`: from
54
+ * 3 stars, an office without enough parking for its workers. `homeParking`:
55
+ * Modern, from 3 stars, a home without parking for its households (#1973).
56
+ * It holds the home at Good and never empties it. */
57
+ export type VacateReason = "access" | "noTransport" | "congestion" | "rent" | "noise" | "transportFar" | "lobbyFar" | "unmetDemand" | "relocation" | "trash" | "parking" | "homeParking";
58
+ /** Player-facing phrase for each departure cause (toasts + inspector). Kept
59
+ * transport-neutral: a floor is "served" by any route to the lobby (elevator,
60
+ * stairs, or escalator) and congestion capacity counts them all, so the copy
61
+ * must not single out elevators. */
62
+ export declare const VACATE_REASON_TEXT: Record<VacateReason, string>;
63
+ export declare function isVacateReason(v: unknown): v is VacateReason;
64
+ export { isOperational, isPresent, isTenanted, isDormant } from "../shared/unitState";
65
+ export interface Facility {
66
+ kind: FacilityKind;
67
+ category: FacilityCategory;
68
+ name: string;
69
+ /** Width in tiles. */
70
+ width: number;
71
+ /** Height in floors (1 unless the facility spans several stories). */
72
+ floors?: number;
73
+ /** Build cost in dollars. */
74
+ cost: number;
75
+ /** Star rating required to unlock (1..5). */
76
+ minStar: number;
77
+ /** Population this facility contributes when fully occupied. */
78
+ population: number;
79
+ /** Modern-only content: a facility the 1994 game never had. Gated out of
80
+ * Classic entirely (unbuildable, hidden from the Classic palette), so a
81
+ * Classic tower stays pixel-faithful. Absent (falsy) for every canon kind. */
82
+ modernOnly?: boolean;
83
+ /** True for vertical transport (occupies multiple floors). */
84
+ transport?: boolean;
85
+ /** True for transports that carry only tower staff (housekeepers), never
86
+ * tenants or visitors — excluded from passenger routing, serving, capacity
87
+ * and dispatch demand. */
88
+ staffOnly?: boolean;
89
+ /** True if the facility may only be built underground (basement floors). */
90
+ basement?: boolean;
91
+ /** Visible seat capacity for routed attendance visitors at population-0
92
+ * entertainment venues (cinema / party hall / wedding hall). Live
93
+ * attendance (`Unit.customersIn`) is clamped here and mirrored into
94
+ * `occupants` for the occupancy-gated interior art; it never enters the
95
+ * census (the kind's `population` stays 0, keeping `censusCount`'s
96
+ * commercial gate closed). Design tuning, not a canon figure. */
97
+ attendance?: number;
98
+ }
99
+ /** A placed facility instance in the tower. */
100
+ export interface Unit {
101
+ id: number;
102
+ kind: FacilityKind;
103
+ floor: number;
104
+ /** Left-most tile column. */
105
+ x: number;
106
+ width: number;
107
+ state: UnitState;
108
+ /** 0..1 satisfaction; low values cause tenants to leave. */
109
+ satisfaction: number;
110
+ /** Current number of occupants present right now. */
111
+ occupants: number;
112
+ /** Transient count of the people currently at this venue: meal customers
113
+ * eating at a commercial venue (fastFood / restaurant / shop, where the
114
+ * count clamps at the catalog population and feeds the census), or routed
115
+ * attendance visitors at a population-0 entertainment venue (cinema /
116
+ * partyHall / weddingHall, where it clamps at the catalog `attendance`
117
+ * cap, mirrors into `occupants` for the interior art, and never enters
118
+ * the census). Not persisted: the field is omitted from serialization, so
119
+ * after a reload it is `undefined` and census reads treat it as 0 via
120
+ * `?? 0`; round-trippers rebuild the count organically. Incremented when
121
+ * a person enters the `dwelling` state at this venue; decremented when
122
+ * they leave. See {@link isCommercialKind} and `attendanceCap`. */
123
+ customersIn?: number;
124
+ /** Transient subset of {@link customersIn}: how many of the current eaters
125
+ * came from a HOTEL origin. The 4-star-plus rating census excludes hotel
126
+ * guests, so a guest eating at a fastFood must not re-enter it through the
127
+ * venue's customer tally; `occupantPopulation()` subtracts this. Same
128
+ * lifecycle as `customersIn`: not persisted, stripped on load, rebuilt by
129
+ * the live crowd, and always at most `customersIn`. */
130
+ hotelCustomersIn?: number;
131
+ /** Transient count of workers/residents currently out on a meal round-trip
132
+ * originating from THIS unit. Not persisted (a save reload resets it to 0
133
+ * and the next `updatePresence` hour boundary re-baselines `occupants`).
134
+ * The renderer and pop census read
135
+ * `visibleOccupants(u) = max(0, occupants - outForMeal)`. Incremented at
136
+ * meal-round-trip spawn; decremented at return arrival, guarded so a
137
+ * bulldozed origin does not ghost-decrement a fresh unit built on the
138
+ * same floor after. See `arch-person-meal-round-trips-2026-07-09` §1-2. */
139
+ outForMeal?: number;
140
+ /** Household size of a sold condo — the number of people who actually LIVE
141
+ * here, set once when the condo sells. Undefined ⇒ the kind's flat population
142
+ * (the 1994 default of 3), so Classic towers and every pre-variant save read
143
+ * identically. Only Modern towers populate it (a 2–5 person family). For any
144
+ * POPULATION / OCCUPANCY count, read it via {@link residentCount} (which falls
145
+ * back to the flat catalog value) rather than the raw field; the rule-set's
146
+ * pricing/churn and the Households readout read it directly on purpose. */
147
+ residents?: number;
148
+ /** "Taken" marker whose lifecycle differs by kind:
149
+ * - **Offices & condos** — the CURRENTLY-leased/sold predicate: set on move-in
150
+ * or sale, and CLEARED again on vacate or gut (and, on load, for any
151
+ * empty/construction/gutted shell), so the unit returns to the market — a
152
+ * re-let office, or a bought-back condo that can re-sell. It gates the
153
+ * one-time condo sale income, blocks repricing a sold condo, exempts a sold
154
+ * condo from overhead, and drives the owner buy-back on eviction.
155
+ * - **Hotels** — set on the first check-in and never cleared (nightly turnover
156
+ * runs through `state`: asleep → dirty → empty), so for a hotel room it reads
157
+ * as "has ever been booked", not "booked right now".
158
+ * Either way it is NOT a live-occupancy signal — who is present right now is
159
+ * `state` / {@link isTenanted} / {@link isPresent}, never this. */
160
+ everOccupied: boolean;
161
+ /** Accumulated income not yet collected (offices/condos). */
162
+ pendingIncome: number;
163
+ /** Player-set price for this unit — office quarterly rent, hotel nightly
164
+ * rate, or condo sale price. Undefined falls back to the kind's default. */
165
+ rent?: number;
166
+ /** A unit deliberately off the rental market, charging nothing (SimTower's
167
+ * "No Rate", rent class 4). `undefined`/`false` = on market at `rent`/default.
168
+ * Routed through `rentOf`, so a No-Rate unit yields $0 for every income site
169
+ * (office rent, hotel checkout, condo sale, condo hold-tax). Any explicit
170
+ * reprice clears it, returning the unit to the market. */
171
+ noRate?: boolean;
172
+ /** Name shown when inspected (e.g. tenant company / guest). */
173
+ label: string;
174
+ /** Why the current tenant gave notice — set while `state === "vacating"`, and
175
+ * cleared when they either leave or rescind. Undefined on a settled unit. */
176
+ vacateReason?: VacateReason;
177
+ /** Game-clock minute at which a `vacating` tenant actually leaves unless their
178
+ * satisfaction recovers first (the notice period). */
179
+ vacateAt?: number;
180
+ /** The film a Modern cinema books again once its film is spent, or "off"
181
+ * (#1950). `undefined` and the old "auto" book a feature. */
182
+ filmPolicy?: "auto" | "feature" | "blockbuster" | "revival" | "off";
183
+ /** A theatre's film age: the mornings its film has shown (#1932). Its
184
+ * draw falls as it ages; `undefined` is a new film. */
185
+ filmDays?: number;
186
+ /** A Modern theater's ticket price step (#1950); `undefined` is Normal. */
187
+ ticketPrice?: "low" | "high" | "premium";
188
+ /** A Modern theater's second screen, with the keys of the first, saved
189
+ * only while it shows something other than the first (#1950).
190
+ * `undefined` shows the first screen's film on both. */
191
+ screen2?: {
192
+ filmPolicy?: "auto" | "feature" | "blockbuster" | "revival" | "off";
193
+ filmDays?: number;
194
+ filmClassic?: true;
195
+ filmBlockbuster?: true;
196
+ };
197
+ /** Canon retail variant name for shop / fastFood / restaurant only (per
198
+ * `docs/canon/tdt-format.md` §7 lists). `undefined` on every other kind,
199
+ * and on legacy retail units from saves that predate this field, so they
200
+ * keep the generic name. Cosmetic-only: the economy never reads it. */
201
+ subtype?: string;
202
+ /** Retail-only running totals for today's inspector card: customer estimate
203
+ * and gross traffic income earned so far this day. Reset in `Simulation.onDay`
204
+ * after being rolled into `*Yest`, and by `EventSystem.gut`. `undefined` on
205
+ * every non-retail kind, and on legacy retail units from saves that predate
206
+ * the field. Display-only: the money loop never reads them back. */
207
+ patronageToday?: number;
208
+ patronageYest?: number;
209
+ /** The room's census from the day before (#1500): a shop's, fast food's or
210
+ * restaurant's visitors served yesterday, or a party hall's or theatre's
211
+ * set audience. */
212
+ visitorsYest?: number;
213
+ profitToday?: number;
214
+ profitYest?: number;
215
+ /** Game-clock minute at which construction finishes (for the build phase). */
216
+ completeAt?: number;
217
+ /** Hotel-only: consecutive DAYS `dirty` (counted at checkout); at `INFEST_DAYS`
218
+ * it escalates to `infested`. Absent = 0; persisted so a reload can't reset it. */
219
+ dirtyDays?: number;
220
+ }
221
+ /** A vertical transport instance (elevator shaft / stairs / escalator). */
222
+ export interface Transport {
223
+ id: number;
224
+ kind: FacilityKind;
225
+ x: number;
226
+ width: number;
227
+ /** Lowest floor served (inclusive). */
228
+ bottom: number;
229
+ /** Highest floor served (inclusive). */
230
+ top: number;
231
+ /** Number of cars (elevators only). */
232
+ cars: number;
233
+ /** Animated car positions (continuous floor value) for rendering. */
234
+ carPositions: number[];
235
+ /** Direction of each car: -1 down, 0 idle, 1 up. */
236
+ carDir: number[];
237
+ /** Passengers currently aboard each car (for rendering riders). */
238
+ carLoad?: number[];
239
+ /** Number of riders currently in transit through this transport. */
240
+ load: number;
241
+ /** Floors this transport is configured NOT to stop at (express service). */
242
+ skipFloors?: number[];
243
+ /** An express whose basement skips are its own (the player's or an imported TDT's); a save without it had them set by the old lobby-only rule, and a load clears them. */
244
+ preserveBasementStops?: boolean;
245
+ /** Optional per-shaft manual schedule (elevator-scheduling, #305); absent means today's automatic dispatch. Type and helpers live in the `elevatorSchedule` leaf. */
246
+ schedule?: ElevatorSchedule;
247
+ }
248
+ /**
249
+ * A unit as it appears in a save. Since save v3 the writer omits fields whose
250
+ * value equals the loader's fallback (see `serializeUnit` in Simulation.ts, which
251
+ * mirrors the `deserialize` coercion table): `state` "empty", `satisfaction` 1,
252
+ * `occupants` 0, `everOccupied` false, `pendingIncome` 0, `label` at the catalog
253
+ * name, and `width` for width-1 floor/lobby tiles only. Every reader must treat
254
+ * these as optional; `Simulation.deserialize` restores the defaults. Older saves
255
+ * (v1/v2) always carry the full shape.
256
+ */
257
+ export interface SerializedUnit extends Omit<Unit, "width" | "state" | "satisfaction" | "occupants" | "everOccupied" | "pendingIncome" | "label"> {
258
+ width?: number;
259
+ state?: UnitState;
260
+ satisfaction?: number;
261
+ occupants?: number;
262
+ everOccupied?: boolean;
263
+ pendingIncome?: number;
264
+ label?: string;
265
+ /** Version 11: on a plain floor tile, how many tiles in a row this entry
266
+ * stands for, with the next ids (see `shared/floorRuns`). */
267
+ run?: number;
268
+ }
269
+ /** One bulletin-log line. Lives here (not in Simulation.ts) because the save
270
+ * schema below carries a log tail; Simulation re-exports it for the UI. */
271
+ export interface LogEntry {
272
+ minute: number;
273
+ text: string;
274
+ kind: "info" | "good" | "bad" | "money";
275
+ }
276
+ /** Camera zoom bounds. They live in `shared/viewZoom.ts`; the save schema clamps a
277
+ * restored zoom to them at the deserialize trust boundary. */
278
+ export { VIEW_ZOOM_MIN, VIEW_ZOOM_MAX } from "../shared/viewZoom";
279
+ /**
280
+ * The camera view carried inside a save: the camera CENTER in grid units
281
+ * (tile across, floor up; fractional values are fine) plus the zoom. Inert
282
+ * UI cargo: the simulation never reads it; it only rides along so a save
283
+ * opened on another device restores the same view. Zoom is optional because
284
+ * the 1994 TDT format has no zoom to bring over.
285
+ */
286
+ export interface SerializedView {
287
+ tile: number;
288
+ floor: number;
289
+ zoom?: number;
290
+ }
291
+ export type { SerializedGame } from "./serializedGame";
292
+ /** Result of attempting to place a facility. */
293
+ export interface PlaceResult {
294
+ ok: boolean;
295
+ reason?: string;
296
+ unitId?: number;
297
+ transportId?: number;
298
+ }
@@ -0,0 +1,47 @@
1
+ import { VACATE_REASON_TEXT as VACATE_REASON_TEXT$1 } from './vacateReasonText.js';
2
+ export { isDormant, isOperational, isPresent, isTenanted } from './unitState.js';
3
+ export { VIEW_ZOOM_MAX, VIEW_ZOOM_MIN } from './viewZoom.js';
4
+
5
+ /**
6
+ * Core type definitions for the tower model, shared by the engine binding, the
7
+ * frontend and the TypeScript reference engine (which re-exports them from
8
+ * `src/engine/types.ts` until it is deleted, #1875).
9
+ *
10
+ * The tower is modelled as a grid of cells. Each floor is a row; columns are
11
+ * "tiles". A facility occupies a contiguous run of tiles on a single floor.
12
+ */
13
+ /** Guard for a persisted mode from an untrusted/older save (absent ⇒ classic). */
14
+ function isGameMode(v) {
15
+ return v === "classic" || v === "modern";
16
+ }
17
+ const UNIT_STATES = new Set([
18
+ "construction",
19
+ "empty",
20
+ "occupied",
21
+ "moving_in",
22
+ "vacating",
23
+ "asleep",
24
+ "dirty",
25
+ "infested",
26
+ "fire",
27
+ "gutted",
28
+ ]);
29
+ /** Guard for untrusted input (hand-edited / foreign saves): a forged `state`
30
+ * string would otherwise flow into UI innerHTML and state-machine compares. */
31
+ function isUnitState(v) {
32
+ return typeof v === "string" && UNIT_STATES.has(v);
33
+ }
34
+ /** Player-facing phrase for each departure cause (toasts + inspector). Kept
35
+ * transport-neutral: a floor is "served" by any route to the lobby (elevator,
36
+ * stairs, or escalator) and congestion capacity counts them all, so the copy
37
+ * must not single out elevators. */
38
+ const VACATE_REASON_TEXT = VACATE_REASON_TEXT$1;
39
+ /** Guard for a persisted departure cause from an untrusted save. Derived from
40
+ * {@link VACATE_REASON_TEXT} so the two can never drift as causes are added. */
41
+ const VACATE_REASONS = new Set(Object.keys(VACATE_REASON_TEXT));
42
+ function isVacateReason(v) {
43
+ return typeof v === "string" && VACATE_REASONS.has(v);
44
+ }
45
+
46
+ export { VACATE_REASON_TEXT, isGameMode, isUnitState, isVacateReason };
47
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../src/shared/types.ts"],"sourcesContent":["/**\n * Core type definitions for the tower model, shared by the engine binding, the\n * frontend and the TypeScript reference engine (which re-exports them from\n * `src/engine/types.ts` until it is deleted, #1875).\n *\n * The tower is modelled as a grid of cells. Each floor is a row; columns are\n * \"tiles\". A facility occupies a contiguous run of tiles on a single floor.\n */\n\nimport type { ElevatorSchedule } from \"./engineTypes\";\nimport { VACATE_REASON_TEXT as sharedVacateReasonText } from \"./vacateReasonText\";\n\n/** Cosmetic sky weather, derived deterministically from the day. */\nexport type WeatherKind = \"clear\" | \"cloudy\" | \"rain\";\n\n/**\n * Rule-set a tower is founded under. Chosen once at tower creation and immutable\n * for that save's life (never a runtime toggle), so no simulation code ever has\n * to ask \"did the player switch mid-game?\".\n *\n * - `classic` — pixel-faithful 1994 SimTower: every condo houses a flat family\n * of 3. This is the ONLY mode a save can have if it predates the mode field,\n * so a legacy tower's population census loads unchanged (its condos stay flat\n * 3s). Note the price-band re-anchor and the owner buy-back are 1994-canon\n * fixes that apply to EVERY tower regardless of mode — they aren't gated here;\n * only behavior the original never had is.\n * - `modern` — Classic plus opt-in divergences the original couldn't do. Today\n * that means *variant households* (a condo draws a 2–5 person family that\n * drives its price and how demanding it is). Future Modern features layer in\n * the same way, each behind this one flag.\n */\nexport type GameMode = \"classic\" | \"modern\";\n\n/** Guard for a persisted mode from an untrusted/older save (absent ⇒ classic). */\nexport function isGameMode(v: unknown): v is GameMode {\n return v === \"classic\" || v === \"modern\";\n}\n\n/** Category groups used for the build toolbar and evaluation rules. */\nexport type FacilityCategory =\n | \"structure\"\n | \"transport\"\n | \"office\"\n | \"residential\"\n | \"hotel\"\n | \"food\"\n | \"retail\"\n | \"entertainment\"\n | \"service\"\n | \"special\";\n\n/** Every buildable facility kind. */\nexport type FacilityKind =\n | \"lobby\"\n | \"floor\"\n | \"office\"\n | \"condo\"\n | \"rentalStudio\"\n | \"rentalApartment\"\n | \"hotelSingle\"\n | \"hotelDouble\"\n | \"hotelSuite\"\n | \"fastFood\"\n | \"restaurant\"\n | \"foodHall\"\n | \"shop\"\n | \"cinema\"\n | \"partyHall\"\n | \"amusements\"\n | \"boutiqueBay\"\n | \"fitnessClub\"\n | \"clinic\"\n | \"nightclub\"\n | \"spa\"\n | \"skyBar\"\n | \"aquaticCenter\"\n | \"daycare\"\n | \"stairs\"\n | \"escalator\"\n | \"elevatorStandard\"\n | \"elevatorService\"\n | \"elevatorExpress\"\n | \"parkingRamp\"\n | \"parking\"\n | \"security\"\n | \"medical\"\n | \"housekeeping\"\n | \"recycling\"\n | \"metro\"\n | \"weddingHall\";\n\n/** Occupancy / activity state of a unit. */\nexport type UnitState =\n | \"construction\" // under construction, not yet usable\n | \"empty\" // built, awaiting a tenant\n | \"occupied\" // has a tenant / in service\n | \"moving_in\"\n | \"vacating\" // tenant leaving due to dissatisfaction\n | \"asleep\" // hotel room with sleeping guest (night)\n | \"dirty\" // hotel room awaiting housekeeping after checkout\n | \"infested\" // hotel room dirty too long: cockroaches. No longer cleanable (Classic: bulldoze; Modern: exterminator). Earns nothing, still spreads.\n | \"fire\" // unit ablaze during a fire emergency\n | \"gutted\"; // burned-out shell — no income, no tenants; must be bulldozed & rebuilt\n\nconst UNIT_STATES: ReadonlySet<string> = new Set([\n \"construction\",\n \"empty\",\n \"occupied\",\n \"moving_in\",\n \"vacating\",\n \"asleep\",\n \"dirty\",\n \"infested\",\n \"fire\",\n \"gutted\",\n] satisfies UnitState[]);\n\n/** Guard for untrusted input (hand-edited / foreign saves): a forged `state`\n * string would otherwise flow into UI innerHTML and state-machine compares. */\nexport function isUnitState(v: unknown): v is UnitState {\n return typeof v === \"string\" && UNIT_STATES.has(v);\n}\n\n/** Why a dissatisfied tenant is leaving, attributed from the dominant\n * satisfaction drain when it bottoms out, so the toast names the real cause\n * rather than always blaming \"poor access\". `noise`: a noise-sensitive room\n * (office, hotel, condo) worn down by a same-floor neighbor over sustained\n * exposure (W2 erosion). `transportFar`: an office whose nearest stairs/elevator\n * sits past the walking tolerance (79 tiles) on its floor (W1). `lobbyFar`: a\n * tenant deep in the very-far band from the nearest (sky)lobby (fix: a sky\n * lobby, not a nearer stair/elevator). `unmetDemand`: a served office/hotel/condo\n * whose reachable shops/eateries can't cover demand (Modern evicts, Classic caps).\n * `noTransport`: the unit's own contiguous floor segment cannot reach the ground\n * lobby through any chain of transports, even though another part of the floor\n * can (a gap-split floor whose transport sits on the far half); distinct from\n * `access`, which is the whole floor being off the network (#647). `trash`:\n * from 3 stars, too few recycling centers for the population. `parking`: from\n * 3 stars, an office without enough parking for its workers. `homeParking`:\n * Modern, from 3 stars, a home without parking for its households (#1973).\n * It holds the home at Good and never empties it. */\nexport type VacateReason =\n | \"access\" | \"noTransport\" | \"congestion\" | \"rent\" | \"noise\" | \"transportFar\" | \"lobbyFar\" | \"unmetDemand\" | \"relocation\" | \"trash\" | \"parking\" | \"homeParking\";\n\n/** Player-facing phrase for each departure cause (toasts + inspector). Kept\n * transport-neutral: a floor is \"served\" by any route to the lobby (elevator,\n * stairs, or escalator) and congestion capacity counts them all, so the copy\n * must not single out elevators. */\nexport const VACATE_REASON_TEXT: Record<VacateReason, string> = sharedVacateReasonText;\n\n/** Guard for a persisted departure cause from an untrusted save. Derived from\n * {@link VACATE_REASON_TEXT} so the two can never drift as causes are added. */\nconst VACATE_REASONS: ReadonlySet<string> = new Set(Object.keys(VACATE_REASON_TEXT));\nexport function isVacateReason(v: unknown): v is VacateReason {\n return typeof v === \"string\" && VACATE_REASONS.has(v);\n}\n\n// The unit-state predicates live in `shared/unitState.ts` so the web can use them\n// without importing this module at runtime; the engine keeps its old names.\nexport { isOperational, isPresent, isTenanted, isDormant } from \"../shared/unitState\";\n\nexport interface Facility {\n kind: FacilityKind;\n category: FacilityCategory;\n name: string;\n /** Width in tiles. */\n width: number;\n /** Height in floors (1 unless the facility spans several stories). */\n floors?: number;\n /** Build cost in dollars. */\n cost: number;\n /** Star rating required to unlock (1..5). */\n minStar: number;\n /** Population this facility contributes when fully occupied. */\n population: number;\n /** Modern-only content: a facility the 1994 game never had. Gated out of\n * Classic entirely (unbuildable, hidden from the Classic palette), so a\n * Classic tower stays pixel-faithful. Absent (falsy) for every canon kind. */\n modernOnly?: boolean;\n /** True for vertical transport (occupies multiple floors). */\n transport?: boolean;\n /** True for transports that carry only tower staff (housekeepers), never\n * tenants or visitors — excluded from passenger routing, serving, capacity\n * and dispatch demand. */\n staffOnly?: boolean;\n /** True if the facility may only be built underground (basement floors). */\n basement?: boolean;\n /** Visible seat capacity for routed attendance visitors at population-0\n * entertainment venues (cinema / party hall / wedding hall). Live\n * attendance (`Unit.customersIn`) is clamped here and mirrored into\n * `occupants` for the occupancy-gated interior art; it never enters the\n * census (the kind's `population` stays 0, keeping `censusCount`'s\n * commercial gate closed). Design tuning, not a canon figure. */\n attendance?: number;\n}\n\n/** A placed facility instance in the tower. */\nexport interface Unit {\n id: number;\n kind: FacilityKind;\n floor: number;\n /** Left-most tile column. */\n x: number;\n width: number;\n state: UnitState;\n /** 0..1 satisfaction; low values cause tenants to leave. */\n satisfaction: number;\n /** Current number of occupants present right now. */\n occupants: number;\n /** Transient count of the people currently at this venue: meal customers\n * eating at a commercial venue (fastFood / restaurant / shop, where the\n * count clamps at the catalog population and feeds the census), or routed\n * attendance visitors at a population-0 entertainment venue (cinema /\n * partyHall / weddingHall, where it clamps at the catalog `attendance`\n * cap, mirrors into `occupants` for the interior art, and never enters\n * the census). Not persisted: the field is omitted from serialization, so\n * after a reload it is `undefined` and census reads treat it as 0 via\n * `?? 0`; round-trippers rebuild the count organically. Incremented when\n * a person enters the `dwelling` state at this venue; decremented when\n * they leave. See {@link isCommercialKind} and `attendanceCap`. */\n customersIn?: number;\n /** Transient subset of {@link customersIn}: how many of the current eaters\n * came from a HOTEL origin. The 4-star-plus rating census excludes hotel\n * guests, so a guest eating at a fastFood must not re-enter it through the\n * venue's customer tally; `occupantPopulation()` subtracts this. Same\n * lifecycle as `customersIn`: not persisted, stripped on load, rebuilt by\n * the live crowd, and always at most `customersIn`. */\n hotelCustomersIn?: number;\n /** Transient count of workers/residents currently out on a meal round-trip\n * originating from THIS unit. Not persisted (a save reload resets it to 0\n * and the next `updatePresence` hour boundary re-baselines `occupants`).\n * The renderer and pop census read\n * `visibleOccupants(u) = max(0, occupants - outForMeal)`. Incremented at\n * meal-round-trip spawn; decremented at return arrival, guarded so a\n * bulldozed origin does not ghost-decrement a fresh unit built on the\n * same floor after. See `arch-person-meal-round-trips-2026-07-09` §1-2. */\n outForMeal?: number;\n /** Household size of a sold condo — the number of people who actually LIVE\n * here, set once when the condo sells. Undefined ⇒ the kind's flat population\n * (the 1994 default of 3), so Classic towers and every pre-variant save read\n * identically. Only Modern towers populate it (a 2–5 person family). For any\n * POPULATION / OCCUPANCY count, read it via {@link residentCount} (which falls\n * back to the flat catalog value) rather than the raw field; the rule-set's\n * pricing/churn and the Households readout read it directly on purpose. */\n residents?: number;\n /** \"Taken\" marker whose lifecycle differs by kind:\n * - **Offices & condos** — the CURRENTLY-leased/sold predicate: set on move-in\n * or sale, and CLEARED again on vacate or gut (and, on load, for any\n * empty/construction/gutted shell), so the unit returns to the market — a\n * re-let office, or a bought-back condo that can re-sell. It gates the\n * one-time condo sale income, blocks repricing a sold condo, exempts a sold\n * condo from overhead, and drives the owner buy-back on eviction.\n * - **Hotels** — set on the first check-in and never cleared (nightly turnover\n * runs through `state`: asleep → dirty → empty), so for a hotel room it reads\n * as \"has ever been booked\", not \"booked right now\".\n * Either way it is NOT a live-occupancy signal — who is present right now is\n * `state` / {@link isTenanted} / {@link isPresent}, never this. */\n everOccupied: boolean;\n /** Accumulated income not yet collected (offices/condos). */\n pendingIncome: number;\n /** Player-set price for this unit — office quarterly rent, hotel nightly\n * rate, or condo sale price. Undefined falls back to the kind's default. */\n rent?: number;\n /** A unit deliberately off the rental market, charging nothing (SimTower's\n * \"No Rate\", rent class 4). `undefined`/`false` = on market at `rent`/default.\n * Routed through `rentOf`, so a No-Rate unit yields $0 for every income site\n * (office rent, hotel checkout, condo sale, condo hold-tax). Any explicit\n * reprice clears it, returning the unit to the market. */\n noRate?: boolean;\n /** Name shown when inspected (e.g. tenant company / guest). */\n label: string;\n /** Why the current tenant gave notice — set while `state === \"vacating\"`, and\n * cleared when they either leave or rescind. Undefined on a settled unit. */\n vacateReason?: VacateReason;\n /** Game-clock minute at which a `vacating` tenant actually leaves unless their\n * satisfaction recovers first (the notice period). */\n vacateAt?: number;\n /** The film a Modern cinema books again once its film is spent, or \"off\"\n * (#1950). `undefined` and the old \"auto\" book a feature. */\n filmPolicy?: \"auto\" | \"feature\" | \"blockbuster\" | \"revival\" | \"off\";\n /** A theatre's film age: the mornings its film has shown (#1932). Its\n * draw falls as it ages; `undefined` is a new film. */\n filmDays?: number;\n /** A Modern theater's ticket price step (#1950); `undefined` is Normal. */\n ticketPrice?: \"low\" | \"high\" | \"premium\";\n /** A Modern theater's second screen, with the keys of the first, saved\n * only while it shows something other than the first (#1950).\n * `undefined` shows the first screen's film on both. */\n screen2?: {\n filmPolicy?: \"auto\" | \"feature\" | \"blockbuster\" | \"revival\" | \"off\";\n filmDays?: number;\n filmClassic?: true;\n filmBlockbuster?: true;\n };\n /** Canon retail variant name for shop / fastFood / restaurant only (per\n * `docs/canon/tdt-format.md` §7 lists). `undefined` on every other kind,\n * and on legacy retail units from saves that predate this field, so they\n * keep the generic name. Cosmetic-only: the economy never reads it. */\n subtype?: string;\n /** Retail-only running totals for today's inspector card: customer estimate\n * and gross traffic income earned so far this day. Reset in `Simulation.onDay`\n * after being rolled into `*Yest`, and by `EventSystem.gut`. `undefined` on\n * every non-retail kind, and on legacy retail units from saves that predate\n * the field. Display-only: the money loop never reads them back. */\n patronageToday?: number;\n patronageYest?: number;\n /** The room's census from the day before (#1500): a shop's, fast food's or\n * restaurant's visitors served yesterday, or a party hall's or theatre's\n * set audience. */\n visitorsYest?: number;\n profitToday?: number;\n profitYest?: number;\n /** Game-clock minute at which construction finishes (for the build phase). */\n completeAt?: number;\n /** Hotel-only: consecutive DAYS `dirty` (counted at checkout); at `INFEST_DAYS`\n * it escalates to `infested`. Absent = 0; persisted so a reload can't reset it. */\n dirtyDays?: number;\n}\n\n/** A vertical transport instance (elevator shaft / stairs / escalator). */\nexport interface Transport {\n id: number;\n kind: FacilityKind;\n x: number;\n width: number;\n /** Lowest floor served (inclusive). */\n bottom: number;\n /** Highest floor served (inclusive). */\n top: number;\n /** Number of cars (elevators only). */\n cars: number;\n /** Animated car positions (continuous floor value) for rendering. */\n carPositions: number[];\n /** Direction of each car: -1 down, 0 idle, 1 up. */\n carDir: number[];\n /** Passengers currently aboard each car (for rendering riders). */\n carLoad?: number[];\n /** Number of riders currently in transit through this transport. */\n load: number;\n /** Floors this transport is configured NOT to stop at (express service). */\n skipFloors?: number[];\n /** An express whose basement skips are its own (the player's or an imported TDT's); a save without it had them set by the old lobby-only rule, and a load clears them. */\n preserveBasementStops?: boolean;\n /** Optional per-shaft manual schedule (elevator-scheduling, #305); absent means today's automatic dispatch. Type and helpers live in the `elevatorSchedule` leaf. */\n schedule?: ElevatorSchedule;\n}\n\n/**\n * A unit as it appears in a save. Since save v3 the writer omits fields whose\n * value equals the loader's fallback (see `serializeUnit` in Simulation.ts, which\n * mirrors the `deserialize` coercion table): `state` \"empty\", `satisfaction` 1,\n * `occupants` 0, `everOccupied` false, `pendingIncome` 0, `label` at the catalog\n * name, and `width` for width-1 floor/lobby tiles only. Every reader must treat\n * these as optional; `Simulation.deserialize` restores the defaults. Older saves\n * (v1/v2) always carry the full shape.\n */\nexport interface SerializedUnit extends Omit<Unit, \"width\" | \"state\" | \"satisfaction\" | \"occupants\" | \"everOccupied\" | \"pendingIncome\" | \"label\"> {\n width?: number;\n state?: UnitState;\n satisfaction?: number;\n occupants?: number;\n everOccupied?: boolean;\n pendingIncome?: number;\n label?: string;\n /** Version 11: on a plain floor tile, how many tiles in a row this entry\n * stands for, with the next ids (see `shared/floorRuns`). */\n run?: number;\n}\n\n/** One bulletin-log line. Lives here (not in Simulation.ts) because the save\n * schema below carries a log tail; Simulation re-exports it for the UI. */\nexport interface LogEntry {\n minute: number;\n text: string;\n kind: \"info\" | \"good\" | \"bad\" | \"money\";\n}\n\n/** Camera zoom bounds. They live in `shared/viewZoom.ts`; the save schema clamps a\n * restored zoom to them at the deserialize trust boundary. */\nexport { VIEW_ZOOM_MIN, VIEW_ZOOM_MAX } from \"../shared/viewZoom\";\n\n/**\n * The camera view carried inside a save: the camera CENTER in grid units\n * (tile across, floor up; fractional values are fine) plus the zoom. Inert\n * UI cargo: the simulation never reads it; it only rides along so a save\n * opened on another device restores the same view. Zoom is optional because\n * the 1994 TDT format has no zoom to bring over.\n */\nexport interface SerializedView {\n tile: number;\n floor: number;\n zoom?: number;\n}\n\n// The save-file wire format lives in serializedGame.ts (this file hit the\n// size ceiling); the re-export keeps \"./types\" the single doorway for it.\nexport type { SerializedGame } from \"./serializedGame\";\n\n/** Result of attempting to place a facility. */\nexport interface PlaceResult {\n ok: boolean;\n reason?: string;\n unitId?: number;\n transportId?: number;\n}\n"],"names":["sharedVacateReasonText"],"mappings":";;;;AAAA;;;;;;;AAOG;AA0BH;AACM,SAAU,UAAU,CAAC,CAAU,EAAA;AACnC,IAAA,OAAO,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,QAAQ;AAC1C;AAoEA,MAAM,WAAW,GAAwB,IAAI,GAAG,CAAC;IAC/C,cAAc;IACd,OAAO;IACP,UAAU;IACV,WAAW;IACX,UAAU;IACV,QAAQ;IACR,OAAO;IACP,UAAU;IACV,MAAM;IACN,QAAQ;AACa,CAAA,CAAC;AAExB;AACgF;AAC1E,SAAU,WAAW,CAAC,CAAU,EAAA;IACpC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD;AAsBA;;;AAGqC;AAC9B,MAAM,kBAAkB,GAAiCA;AAEhE;AACiF;AACjF,MAAM,cAAc,GAAwB,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;AAC9E,SAAU,cAAc,CAAC,CAAU,EAAA;IACvC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACvD;;"}
@@ -0,0 +1,36 @@
1
+ import type { UnitState } from "./types";
2
+ /**
3
+ * The four questions the web asks of a unit's state. The rule belongs to the
4
+ * engine (`Unit::is_operational`, `is_present`, `is_tenanted`, `is_dormant` in
5
+ * `engine-rs/src/tower_query_state.rs`); these are the same checks over the
6
+ * state a frame carries, so drawing code does not import the TypeScript
7
+ * engine at runtime for them (the `UnitState` type below is the only link, and
8
+ * it is erased at build time). `unitState.test.ts` and the Rust test hold one table.
9
+ */
10
+ /** A unit that is live: not under construction, ablaze, or a burned-out shell.
11
+ * Every "is this room working?" check routes through here so a new inert state
12
+ * is honored everywhere at once. */
13
+ export declare function isOperational(u: {
14
+ state: UnitState;
15
+ }): boolean;
16
+ /** People are physically present: a settled or working tenant, a sleeping
17
+ * guest, or a lease on notice (`vacating`), who keeps counting until the
18
+ * departure resolves. `moving_in` is reserved and counts if a move-in phase is
19
+ * ever assigned. */
20
+ export declare function isPresent(u: {
21
+ state: UnitState;
22
+ }): boolean;
23
+ /** A unit that is settled (`occupied`) or on notice (`vacating`): still in
24
+ * residence, not yet gone. Purely a `state` check, so it applies to any unit
25
+ * the caller iterates. A vacating tenant still pays rent and counts toward
26
+ * population; a timely fix can rescind the notice. */
27
+ export declare function isTenanted(u: {
28
+ state: UnitState;
29
+ }): boolean;
30
+ /** Nobody home and nothing to simulate. Not the inverse of {@link isOperational}:
31
+ * an operational `empty` unit is dormant. `infested` is here so a roach-ruined
32
+ * room is skipped by the satisfaction loop and keeps its bulldoze or
33
+ * exterminator recovery. */
34
+ export declare function isDormant(u: {
35
+ state: UnitState;
36
+ }): boolean;