@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,350 @@
1
+ import { hash } from '../../pixelSprites/common.js';
2
+ import { layerBreak } from '../../pixelSprites/layers.js';
3
+ import { drawGrandFacadeLeft, drawGrandFacadeRight, drawGrandCompact, drawServiceEntrance } from './entrance.js';
4
+
5
+ /**
6
+ * The lobby concourse: the repeating pattern tiles (column, reception desk,
7
+ * chandelier/planter, sconce/art) plus the ground-floor entrance dispatch.
8
+ * Extracted verbatim from `structure.ts`; the entrance-variant tiles dispatch
9
+ * to `entrance.ts`. The per-tile art is ported from page-05's `lobbyGround`
10
+ * and `skyLobby` build scripts: warm veined marble, a gilded cornice, a red
11
+ * carpet and reception desk downstairs; airy skyline windows and an info desk
12
+ * upstairs.
13
+ */
14
+ /** The lobby pattern repeats on this many structural tiles: column, reception
15
+ * desk, centerpiece (chandelier / planter), sconce / art. The engine bakes one
16
+ * shared graphic per variant and picks by {@link lobbyVariant}, so adjacent
17
+ * tiles always line up into one continuous concourse. */
18
+ const LOBBY_VARIANTS = 4;
19
+ /** Which pattern slot a lobby tile at grid x occupies. Defense-in-depth on
20
+ * top of deserialize's geometry clamps: a fractional, negative or non-finite
21
+ * x from any other caller (previews, tools, future fake units) still lands
22
+ * on a real variant instead of indexing the engine's baked-graphics array
23
+ * out of bounds. */
24
+ function lobbyVariant(x) {
25
+ const t = Math.trunc(Number.isFinite(x) ? x : 0) % LOBBY_VARIANTS;
26
+ return t < 0 ? t + LOBBY_VARIANTS : t;
27
+ }
28
+ /** Sentinel "variant" for the left half of the wide grand entrance: the
29
+ * left storefront display window. Outside the {@link LOBBY_VARIANTS} range
30
+ * so the engine can address it distinctly from the repeating cycle. */
31
+ const ENTRANCE_GRAND_LEFT = LOBBY_VARIANTS;
32
+ /** Sentinel "variant" for the right half of the wide grand entrance: the
33
+ * doors + doorman + right display window. */
34
+ const ENTRANCE_GRAND_RIGHT = LOBBY_VARIANTS + 1;
35
+ /** Sentinel "variant" for the compact 1-tile grand entrance, used as the
36
+ * narrow-lobby fallback when the lobby is too narrow to fit the wide 2-tile
37
+ * storefront. */
38
+ const ENTRANCE_GRAND_SOLO = LOBBY_VARIANTS + 2;
39
+ /** Sentinel "variant" for the quiet service entrance at the opposite frontage
40
+ * edge. Same-shape door as the grand tile, no glow, no doorman. */
41
+ const ENTRANCE_SERVICE = LOBBY_VARIANTS + 3;
42
+ /** Entrance kind to its baked sentinel variant. */
43
+ const ENTRANCE_VARIANT = {
44
+ "grand-left": ENTRANCE_GRAND_LEFT,
45
+ "grand-right": ENTRANCE_GRAND_RIGHT,
46
+ "grand-solo": ENTRANCE_GRAND_SOLO,
47
+ service: ENTRANCE_SERVICE,
48
+ };
49
+ function drawLobbyEntrance(d, kind, x, y, w, h) {
50
+ // The `??` mirrors the old ladder's fallback: an unlisted kind from an
51
+ // untyped caller still lands on the quiet service door.
52
+ drawLobbyTile(d, x, y, w, h, ENTRANCE_VARIANT[kind] ?? ENTRANCE_SERVICE, true);
53
+ }
54
+ function drawLobby(d, u, x, y, w, h) {
55
+ // One pattern slice per structural tile of the unit, scaled to whatever the
56
+ // caller renders a tile as (the engine bakes at TILE px; the gallery draws
57
+ // bigger). Keyed by absolute tile x so runs stay aligned however sliced.
58
+ // The slice count is capped by the pixel span so a forged width can't turn
59
+ // this into a near-endless loop (deserialize clamps width too, a second belt).
60
+ const tiles = Math.max(1, Math.min(Math.round(u.width) || 1, Math.ceil(w)));
61
+ const pitch = w / tiles;
62
+ for (let t = 0; t < tiles; t++) {
63
+ const x0 = x + t * pitch;
64
+ const tw = t === tiles - 1 ? x + w - x0 : pitch;
65
+ drawLobbyTile(d, x0, y, tw, h, lobbyVariant(u.x + t), u.floor === 1);
66
+ }
67
+ }
68
+ /**
69
+ * One 11px slice of the lobby concourse. The ground lobby (floor 1) is the
70
+ * tower's grand entrance: warm veined marble, a gilded cornice, a red carpet,
71
+ * fluted columns and chandeliers that glow in the evening, and a low console
72
+ * with a lamp. Sky lobbies read as their airy transfer-floor cousins:
73
+ * floor-to-ceiling skyline windows, the same gold trim, planters and framed
74
+ * prints instead of chandeliers, a low bench with a plant. The single staffed
75
+ * reception is NOT a repeating tile: it lives in the grand-entrance tile (see
76
+ * `entrance.ts`), so a wide lobby shows one attendant in its storefront, not one
77
+ * every fourth column. A degenerate 1-tile lobby uses the compact grand-solo
78
+ * fallback and shows none. Decoration reads only `lit`, `variant`, `ground`.
79
+ */
80
+ function drawLobbyTile(d, x, y, w, h, variant, ground) {
81
+ const { ctx, lit } = d;
82
+ const x0 = Math.round(x);
83
+ const y0 = Math.round(y);
84
+ const ww = Math.max(1, Math.round(w));
85
+ const hh = Math.max(1, Math.round(h));
86
+ const floorTop = y0 + hh - 5; // top row of the polished floor band
87
+ const cx = x0 + Math.floor(ww / 2);
88
+ // Back wall: warm veined marble downstairs, floor-to-ceiling skyline glass in
89
+ // the sky lobbies.
90
+ if (ground) {
91
+ const g = ctx.createLinearGradient(0, y0, 0, floorTop);
92
+ g.addColorStop(0, "#F1E8CE");
93
+ g.addColorStop(1, "#E3D7B3");
94
+ ctx.fillStyle = g;
95
+ ctx.fillRect(x0, y0, ww, floorTop - y0);
96
+ // Faint warm veins so the marble reads polished, not flat.
97
+ ctx.fillStyle = "rgba(120,100,60,0.12)";
98
+ ctx.fillRect(x0 + 3, y0 + 6, 1, hh - 16);
99
+ ctx.fillRect(x0 + ww - 4, y0 + 10, 1, hh - 20);
100
+ }
101
+ else {
102
+ // Muted warm stone reveal around the glass. Darker and warmer than the old
103
+ // near-white stone so the sky lobby sits in the same tonal family as the
104
+ // offices and hotels around it, instead of glaring as a bright band at night.
105
+ ctx.fillStyle = "#C4BCA8";
106
+ ctx.fillRect(x0, y0, ww, floorTop - y0);
107
+ // A tall skyline window that recedes into the wall: dark warm glass at night
108
+ // with only sparse, dim city lights (not a bright blue band), a muted day sky
109
+ // otherwise. A dedicated draw so the offices' cooler `windowView` is untouched.
110
+ skyGlass(ctx, x0 + 1, y0 + 5, ww - 2, floorTop - y0 - 8, lit, variant + 1);
111
+ }
112
+ // Gilded cornice along the ceiling (identical on every variant so the top
113
+ // line reads as one continuous concourse).
114
+ ctx.fillStyle = "#C9A24B";
115
+ ctx.fillRect(x0, y0, ww, 3);
116
+ ctx.fillStyle = "#8A7430";
117
+ ctx.fillRect(x0, y0 + 3, ww, 1);
118
+ lobbyFloor(ctx, x0, ww, y0 + hh, ground);
119
+ // Per-variant centerpiece, centered on the slice and kept inside it (each
120
+ // slice is its own baked 11px canvas, so anything past the edge is clipped
121
+ // into a visible seam). For depth, the column, console, bench, chandelier
122
+ // and planter stand in front of the wall, so the shell ends before them; the
123
+ // sconce, the framed print and the console's recessed wall panel hang on it,
124
+ // so it ends after them. The entrance slices mark their own split.
125
+ if (variant === 0) {
126
+ layerBreak(ctx);
127
+ fluteColumn(ctx, cx, y0, hh, ground);
128
+ }
129
+ else if (variant === 1) {
130
+ consolePanel(ctx, x0, ww, y0, floorTop, ground, lit); // marks its own split
131
+ }
132
+ else if (variant === 2) {
133
+ layerBreak(ctx);
134
+ if (ground)
135
+ chandelier(ctx, cx, y0, lit, ww);
136
+ else
137
+ planter(ctx, cx, floorTop);
138
+ }
139
+ else if (variant === 3) {
140
+ if (ground)
141
+ sconce(ctx, cx, y0, lit);
142
+ else
143
+ framedPrint(ctx, cx, y0);
144
+ layerBreak(ctx);
145
+ }
146
+ else if (variant === ENTRANCE_GRAND_LEFT && ground) {
147
+ drawGrandFacadeLeft(d, x, y, w, h);
148
+ }
149
+ else if (variant === ENTRANCE_GRAND_RIGHT && ground) {
150
+ drawGrandFacadeRight(d, x, y, w, h);
151
+ }
152
+ else if (variant === ENTRANCE_GRAND_SOLO && ground) {
153
+ drawGrandCompact(d, x, y, w, h);
154
+ }
155
+ else if (variant === ENTRANCE_SERVICE && ground) {
156
+ drawServiceEntrance(ctx, x, y, w, h);
157
+ }
158
+ }
159
+ /** The lobby's polished floor band, its five rows ending at `bottom`: a sheen
160
+ * line and a dark base, toned down in a sky lobby so it does not add to the
161
+ * bright band, and the ground lobby's red carpet with a gilded edge. */
162
+ function lobbyFloor(ctx, x0, ww, bottom, ground) {
163
+ const floorTop = bottom - 5;
164
+ ctx.fillStyle = ground ? "#DCD2B8" : "#CBC3B0";
165
+ ctx.fillRect(x0, floorTop, ww, 5);
166
+ ctx.fillStyle = ground ? "#F0E8D0" : "#D8D2C2";
167
+ ctx.fillRect(x0, floorTop, ww, 1);
168
+ ctx.fillStyle = ground ? "#8F7A48" : "#8A7E64";
169
+ ctx.fillRect(x0, bottom - 1, ww, 1);
170
+ if (ground) {
171
+ ctx.fillStyle = "#9A2E38";
172
+ ctx.fillRect(x0, bottom - 4, ww, 3);
173
+ ctx.fillStyle = "#B84450";
174
+ ctx.fillRect(x0, bottom - 4, ww, 1);
175
+ ctx.fillStyle = "#D9B356";
176
+ ctx.fillRect(x0, bottom - 5, ww, 1);
177
+ }
178
+ }
179
+ /** Fluted column, cornice to floor, with a gold capital and base. */
180
+ function fluteColumn(ctx, cx, y0, hh, ground) {
181
+ ctx.fillStyle = ground ? "#F1E8CE" : "#E4EAF2";
182
+ ctx.fillRect(cx - 1, y0 + 5, 3, hh - 12);
183
+ ctx.fillStyle = "rgba(255,255,255,0.6)"; // fluted highlight
184
+ ctx.fillRect(cx - 1, y0 + 5, 1, hh - 12);
185
+ ctx.fillStyle = ground ? "rgba(105,90,55,0.4)" : "rgba(70,85,110,0.4)";
186
+ ctx.fillRect(cx + 1, y0 + 5, 1, hh - 12);
187
+ ctx.fillStyle = "#C9A24B"; // gold capital + base
188
+ ctx.fillRect(cx - 2, y0 + 3, 5, 2);
189
+ ctx.fillRect(cx - 2, y0 + hh - 7, 5, 2);
190
+ }
191
+ /** A tall skyline window that recedes into the sky-lobby wall. Dedicated to the
192
+ * sky lobby (the offices and hotels keep their cooler shared `windowView`, which
193
+ * reads well and must not change). At night it is dark warm glass with only a
194
+ * few dim city lights, so the transfer floor no longer glares as a bright blue
195
+ * band against the muted floors around it; by day it is a low-contrast muted
196
+ * sky. A recessed slate mullion grid keeps the glass reading as background. */
197
+ function skyGlass(ctx, x, y, w, h, lit, seed) {
198
+ const x0 = Math.round(x);
199
+ const y0 = Math.round(y);
200
+ const ww = Math.max(1, Math.round(w));
201
+ const hh = Math.max(1, Math.round(h));
202
+ const g = ctx.createLinearGradient(0, y0, 0, y0 + hh);
203
+ if (lit) {
204
+ g.addColorStop(0, "#2E2C34"); // dark warm glass, night
205
+ g.addColorStop(1, "#26242C");
206
+ ctx.fillStyle = g;
207
+ ctx.fillRect(x0, y0, ww, hh);
208
+ ctx.fillStyle = "#B89A62"; // sparse, dim warm city lights
209
+ for (let gx = 2; gx < ww - 1; gx += 4) {
210
+ for (let gy = 2; gy < hh - 2; gy += 4) {
211
+ if (hash(seed * 131 + gx * 17 + gy * 7) > 0.82)
212
+ ctx.fillRect(x0 + gx, y0 + gy, 1, 1);
213
+ }
214
+ }
215
+ }
216
+ else {
217
+ g.addColorStop(0, "#93A6B4"); // muted day sky, low contrast
218
+ g.addColorStop(1, "#A6B2B8");
219
+ ctx.fillStyle = g;
220
+ ctx.fillRect(x0, y0, ww, hh);
221
+ }
222
+ ctx.fillStyle = "rgba(40,42,54,0.55)"; // recessed frame
223
+ ctx.fillRect(x0, y0, ww, 1);
224
+ ctx.fillRect(x0, y0 + hh - 1, ww, 1);
225
+ ctx.fillRect(x0, y0, 1, hh);
226
+ ctx.fillRect(x0 + ww - 1, y0, 1, hh);
227
+ ctx.fillStyle = "rgba(70,74,92,0.5)"; // muted mullion cross
228
+ ctx.fillRect(x0 + (ww >> 1), y0, 1, hh);
229
+ ctx.fillRect(x0, y0 + (hh >> 1), ww, 1);
230
+ }
231
+ /** Variant-1 slice: a tile-friendly architectural element that repeats cleanly
232
+ * across a wide concourse. Ground = a recessed wall panel over the marble with a
233
+ * low walnut console and a warm lamp; sky = a low bench with a small plant in
234
+ * front of the glass. No person: the single staffed reception moved into the
235
+ * grand-entrance tile (ground lobby), so the attendant no longer tiles every
236
+ * fourth column. Sky lobbies have no single-tile placement path, so they now
237
+ * show no attendant at all (a logged followup). */
238
+ function consolePanel(ctx, x0, ww, y0, floorTop, ground, lit) {
239
+ const cx = x0 + Math.floor(ww / 2);
240
+ const topY = floorTop - 5; // top of the console/bench, sitting on the floor
241
+ if (ground) {
242
+ // Recessed wall panel: a quiet framed inset high on the marble back wall
243
+ // (kept short so it reads as wall paneling, not a door), over the console.
244
+ const panelL = x0 + 3;
245
+ const panelW = Math.max(3, ww - 6);
246
+ const panelT = y0 + 8;
247
+ const panelB = Math.min(floorTop - 12, y0 + 22);
248
+ if (panelB > panelT) {
249
+ ctx.fillStyle = "rgba(105,90,55,0.16)"; // recess shadow
250
+ ctx.fillRect(panelL, panelT, panelW, panelB - panelT);
251
+ ctx.fillStyle = "#C9A24B"; // gold panel trim
252
+ ctx.fillRect(panelL, panelT, panelW, 1);
253
+ ctx.fillRect(panelL, panelB - 1, panelW, 1);
254
+ ctx.fillRect(panelL, panelT, 1, panelB - panelT);
255
+ ctx.fillRect(panelL + panelW - 1, panelT, 1, panelB - panelT);
256
+ }
257
+ // The panel is wall; the console in front of it is furniture.
258
+ layerBreak(ctx);
259
+ // Low walnut console with slim legs.
260
+ const cw = Math.min(panelW, 9);
261
+ const cl = cx - Math.floor(cw / 2);
262
+ ctx.fillStyle = "#6B4A2B";
263
+ ctx.fillRect(cl, topY, cw, 2);
264
+ ctx.fillStyle = "#8A6440";
265
+ ctx.fillRect(cl, topY, cw, 1);
266
+ ctx.fillStyle = "#4E3620";
267
+ ctx.fillRect(cl + 1, topY + 2, 1, 3);
268
+ ctx.fillRect(cl + cw - 2, topY + 2, 1, 3);
269
+ // A small brass lamp that glows warm in the evening.
270
+ ctx.fillStyle = "#7A6A50";
271
+ ctx.fillRect(cx, topY - 3, 1, 3);
272
+ ctx.fillStyle = lit ? "#F8E2B4" : "#8A7A5C";
273
+ ctx.fillRect(cx - 1, topY - 4, 3, 2);
274
+ if (lit) {
275
+ ctx.fillStyle = "rgba(248,226,180,0.26)";
276
+ ctx.fillRect(cx - 2, topY - 5, 5, 4);
277
+ }
278
+ }
279
+ else {
280
+ // Sky lobby: a low waiting bench in front of the glass, with a small plant.
281
+ layerBreak(ctx);
282
+ const bw = Math.min(ww - 2, 9);
283
+ const bl = cx - Math.floor(bw / 2);
284
+ ctx.fillStyle = "#5C4A38"; // bench frame
285
+ ctx.fillRect(bl, topY, bw, 4);
286
+ ctx.fillStyle = "#7C6A50"; // seat top
287
+ ctx.fillRect(bl, topY, bw, 1);
288
+ ctx.fillStyle = "#3A2E22"; // base shadow
289
+ ctx.fillRect(bl, topY + 3, bw, 1);
290
+ ctx.fillStyle = "#8C5A3A"; // brass pot at one end
291
+ ctx.fillRect(bl + bw - 3, topY - 3, 3, 3);
292
+ ctx.fillStyle = "#4E7A3E"; // greenery
293
+ ctx.fillRect(bl + bw - 3, topY - 5, 3, 2);
294
+ ctx.fillStyle = "#5AA85A";
295
+ ctx.fillRect(bl + bw - 2, topY - 6, 1, 1);
296
+ }
297
+ }
298
+ /** Chandelier: gold tiers on a chain, aglow after dark. */
299
+ function chandelier(ctx, cx, y0, lit, ww) {
300
+ ctx.fillStyle = "#8A7430";
301
+ ctx.fillRect(cx, y0 + 3, 1, 3); // chain
302
+ ctx.fillStyle = lit ? "#FFD76B" : "#C8A343";
303
+ ctx.fillRect(cx - 2, y0 + 6, 5, 2);
304
+ ctx.fillRect(cx - 3, y0 + 9, 7, 2);
305
+ ctx.fillStyle = lit ? "#F8E2B4" : "#A3873A";
306
+ for (const dx of [-3, 0, 3])
307
+ ctx.fillRect(cx + dx, y0 + 8, 1, 1);
308
+ if (lit) {
309
+ ctx.fillStyle = "rgba(255,214,110,0.28)";
310
+ ctx.beginPath();
311
+ ctx.arc(cx + 0.5, y0 + 9, Math.min(6.5, ww / 2 - 0.5), 0, Math.PI * 2);
312
+ ctx.fill();
313
+ }
314
+ }
315
+ /** Sky-lobby planter: a potted shrub standing on the floor. */
316
+ function planter(ctx, cx, floorTop) {
317
+ ctx.fillStyle = "#8C5A3A"; // brass pot
318
+ ctx.fillRect(cx - 2, floorTop - 4, 5, 4);
319
+ ctx.fillStyle = "rgba(255,255,255,0.3)";
320
+ ctx.fillRect(cx - 2, floorTop - 4, 5, 1);
321
+ ctx.fillStyle = "#4E7A3E"; // shrub
322
+ ctx.beginPath();
323
+ ctx.arc(cx + 0.5, floorTop - 6, 3.5, 0, Math.PI * 2);
324
+ ctx.fill();
325
+ ctx.fillStyle = "#5AA85A";
326
+ ctx.fillRect(cx - 1, floorTop - 8, 2, 2);
327
+ }
328
+ /** Wall sconce, warm when the evening lights come on. */
329
+ function sconce(ctx, cx, y0, lit) {
330
+ ctx.fillStyle = "#C9A24B";
331
+ ctx.fillRect(cx - 1, y0 + 12, 3, 1);
332
+ ctx.fillStyle = lit ? "#F8E2B4" : "#8A7A5C";
333
+ ctx.fillRect(cx, y0 + 10, 1, 2);
334
+ if (lit) {
335
+ ctx.fillStyle = "rgba(248,226,180,0.26)";
336
+ ctx.fillRect(cx - 2, y0 + 9, 5, 5);
337
+ }
338
+ }
339
+ /** Framed print between the sky-lobby windows. */
340
+ function framedPrint(ctx, cx, y0) {
341
+ ctx.fillStyle = "#8A7430";
342
+ ctx.fillRect(cx - 2, y0 + 9, 5, 7);
343
+ ctx.fillStyle = "#B9CADB";
344
+ ctx.fillRect(cx - 1, y0 + 10, 3, 5);
345
+ ctx.fillStyle = "#5D7A95";
346
+ ctx.fillRect(cx - 1, y0 + 13, 3, 2);
347
+ }
348
+
349
+ export { ENTRANCE_GRAND_LEFT, ENTRANCE_GRAND_RIGHT, ENTRANCE_GRAND_SOLO, ENTRANCE_SERVICE, LOBBY_VARIANTS, chandelier, consolePanel, drawLobby, drawLobbyEntrance, drawLobbyTile, fluteColumn, framedPrint, lobbyFloor, lobbyVariant, planter, skyGlass };
350
+ //# sourceMappingURL=lobby.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lobby.js","sources":["../../../../src/render/sprites/structure/lobby.ts"],"sourcesContent":["import type { UnitView } from \"../../../simport/view\";\nimport type { DrawCtx } from \"../common\";\nimport { hash } from \"../../pixelSprites/common\";\nimport { layerBreak } from \"../../pixelSprites/layers\";\nimport { drawGrandCompact, drawGrandFacadeLeft, drawGrandFacadeRight, drawServiceEntrance } from \"./entrance\";\n\n/**\n * The lobby concourse: the repeating pattern tiles (column, reception desk,\n * chandelier/planter, sconce/art) plus the ground-floor entrance dispatch.\n * Extracted verbatim from `structure.ts`; the entrance-variant tiles dispatch\n * to `entrance.ts`. The per-tile art is ported from page-05's `lobbyGround`\n * and `skyLobby` build scripts: warm veined marble, a gilded cornice, a red\n * carpet and reception desk downstairs; airy skyline windows and an info desk\n * upstairs.\n */\n\n/** The lobby pattern repeats on this many structural tiles: column, reception\n * desk, centerpiece (chandelier / planter), sconce / art. The engine bakes one\n * shared graphic per variant and picks by {@link lobbyVariant}, so adjacent\n * tiles always line up into one continuous concourse. */\nexport const LOBBY_VARIANTS = 4;\n\n/** Which pattern slot a lobby tile at grid x occupies. Defense-in-depth on\n * top of deserialize's geometry clamps: a fractional, negative or non-finite\n * x from any other caller (previews, tools, future fake units) still lands\n * on a real variant instead of indexing the engine's baked-graphics array\n * out of bounds. */\nexport function lobbyVariant(x: number): number {\n const t = Math.trunc(Number.isFinite(x) ? x : 0) % LOBBY_VARIANTS;\n return t < 0 ? t + LOBBY_VARIANTS : t;\n}\n\n/** Sentinel \"variant\" for the left half of the wide grand entrance: the\n * left storefront display window. Outside the {@link LOBBY_VARIANTS} range\n * so the engine can address it distinctly from the repeating cycle. */\nexport const ENTRANCE_GRAND_LEFT = LOBBY_VARIANTS;\n/** Sentinel \"variant\" for the right half of the wide grand entrance: the\n * doors + doorman + right display window. */\nexport const ENTRANCE_GRAND_RIGHT = LOBBY_VARIANTS + 1;\n/** Sentinel \"variant\" for the compact 1-tile grand entrance, used as the\n * narrow-lobby fallback when the lobby is too narrow to fit the wide 2-tile\n * storefront. */\nexport const ENTRANCE_GRAND_SOLO = LOBBY_VARIANTS + 2;\n/** Sentinel \"variant\" for the quiet service entrance at the opposite frontage\n * edge. Same-shape door as the grand tile, no glow, no doorman. */\nexport const ENTRANCE_SERVICE = LOBBY_VARIANTS + 3;\n\n/** Bake-target entry point for the ground-floor entrance tiles. `lobbyVariant`\n * never returns the sentinel variants (they're outside its 0..LOBBY_VARIANTS\n * cycle), so the engine bakes the entrance tiles by calling this directly.\n *\n * `grand-left` / `grand-right` are the two 11-wide slices of the wide 2-tile\n * storefront (glass display window with chandelier + double doors + doorman\n * visible through the right window). `grand-solo` is the compact 1-tile\n * fallback for lobbies too narrow to fit the wide version. `service` is the\n * quiet mirrored door at the opposite frontage edge. */\nexport type EntranceKind = \"grand-left\" | \"grand-right\" | \"grand-solo\" | \"service\";\n\n/** Entrance kind to its baked sentinel variant. */\nconst ENTRANCE_VARIANT: Record<EntranceKind, number> = {\n \"grand-left\": ENTRANCE_GRAND_LEFT,\n \"grand-right\": ENTRANCE_GRAND_RIGHT,\n \"grand-solo\": ENTRANCE_GRAND_SOLO,\n service: ENTRANCE_SERVICE,\n};\n\nexport function drawLobbyEntrance(\n d: DrawCtx,\n kind: EntranceKind,\n x: number,\n y: number,\n w: number,\n h: number,\n): void {\n // The `??` mirrors the old ladder's fallback: an unlisted kind from an\n // untyped caller still lands on the quiet service door.\n drawLobbyTile(d, x, y, w, h, ENTRANCE_VARIANT[kind] ?? ENTRANCE_SERVICE, true);\n}\n\nexport function drawLobby(d: DrawCtx, u: UnitView, x: number, y: number, w: number, h: number) {\n // One pattern slice per structural tile of the unit, scaled to whatever the\n // caller renders a tile as (the engine bakes at TILE px; the gallery draws\n // bigger). Keyed by absolute tile x so runs stay aligned however sliced.\n // The slice count is capped by the pixel span so a forged width can't turn\n // this into a near-endless loop (deserialize clamps width too, a second belt).\n const tiles = Math.max(1, Math.min(Math.round(u.width) || 1, Math.ceil(w)));\n const pitch = w / tiles;\n for (let t = 0; t < tiles; t++) {\n const x0 = x + t * pitch;\n const tw = t === tiles - 1 ? x + w - x0 : pitch;\n drawLobbyTile(d, x0, y, tw, h, lobbyVariant(u.x + t), u.floor === 1);\n }\n}\n\n/**\n * One 11px slice of the lobby concourse. The ground lobby (floor 1) is the\n * tower's grand entrance: warm veined marble, a gilded cornice, a red carpet,\n * fluted columns and chandeliers that glow in the evening, and a low console\n * with a lamp. Sky lobbies read as their airy transfer-floor cousins:\n * floor-to-ceiling skyline windows, the same gold trim, planters and framed\n * prints instead of chandeliers, a low bench with a plant. The single staffed\n * reception is NOT a repeating tile: it lives in the grand-entrance tile (see\n * `entrance.ts`), so a wide lobby shows one attendant in its storefront, not one\n * every fourth column. A degenerate 1-tile lobby uses the compact grand-solo\n * fallback and shows none. Decoration reads only `lit`, `variant`, `ground`.\n */\nexport function drawLobbyTile(d: DrawCtx, x: number, y: number, w: number, h: number, variant: number, ground: boolean) {\n const { ctx, lit } = d;\n const x0 = Math.round(x);\n const y0 = Math.round(y);\n const ww = Math.max(1, Math.round(w));\n const hh = Math.max(1, Math.round(h));\n const floorTop = y0 + hh - 5; // top row of the polished floor band\n const cx = x0 + Math.floor(ww / 2);\n\n // Back wall: warm veined marble downstairs, floor-to-ceiling skyline glass in\n // the sky lobbies.\n if (ground) {\n const g = ctx.createLinearGradient(0, y0, 0, floorTop);\n g.addColorStop(0, \"#F1E8CE\");\n g.addColorStop(1, \"#E3D7B3\");\n ctx.fillStyle = g;\n ctx.fillRect(x0, y0, ww, floorTop - y0);\n // Faint warm veins so the marble reads polished, not flat.\n ctx.fillStyle = \"rgba(120,100,60,0.12)\";\n ctx.fillRect(x0 + 3, y0 + 6, 1, hh - 16);\n ctx.fillRect(x0 + ww - 4, y0 + 10, 1, hh - 20);\n } else {\n // Muted warm stone reveal around the glass. Darker and warmer than the old\n // near-white stone so the sky lobby sits in the same tonal family as the\n // offices and hotels around it, instead of glaring as a bright band at night.\n ctx.fillStyle = \"#C4BCA8\";\n ctx.fillRect(x0, y0, ww, floorTop - y0);\n // A tall skyline window that recedes into the wall: dark warm glass at night\n // with only sparse, dim city lights (not a bright blue band), a muted day sky\n // otherwise. A dedicated draw so the offices' cooler `windowView` is untouched.\n skyGlass(ctx, x0 + 1, y0 + 5, ww - 2, floorTop - y0 - 8, lit, variant + 1);\n }\n\n // Gilded cornice along the ceiling (identical on every variant so the top\n // line reads as one continuous concourse).\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(x0, y0, ww, 3);\n ctx.fillStyle = \"#8A7430\";\n ctx.fillRect(x0, y0 + 3, ww, 1);\n\n lobbyFloor(ctx, x0, ww, y0 + hh, ground);\n\n // Per-variant centerpiece, centered on the slice and kept inside it (each\n // slice is its own baked 11px canvas, so anything past the edge is clipped\n // into a visible seam). For depth, the column, console, bench, chandelier\n // and planter stand in front of the wall, so the shell ends before them; the\n // sconce, the framed print and the console's recessed wall panel hang on it,\n // so it ends after them. The entrance slices mark their own split.\n if (variant === 0) {\n layerBreak(ctx);\n fluteColumn(ctx, cx, y0, hh, ground);\n } else if (variant === 1) {\n consolePanel(ctx, x0, ww, y0, floorTop, ground, lit); // marks its own split\n } else if (variant === 2) {\n layerBreak(ctx);\n if (ground) chandelier(ctx, cx, y0, lit, ww);\n else planter(ctx, cx, floorTop);\n } else if (variant === 3) {\n if (ground) sconce(ctx, cx, y0, lit);\n else framedPrint(ctx, cx, y0);\n layerBreak(ctx);\n } else if (variant === ENTRANCE_GRAND_LEFT && ground) {\n drawGrandFacadeLeft(d, x, y, w, h);\n } else if (variant === ENTRANCE_GRAND_RIGHT && ground) {\n drawGrandFacadeRight(d, x, y, w, h);\n } else if (variant === ENTRANCE_GRAND_SOLO && ground) {\n drawGrandCompact(d, x, y, w, h);\n } else if (variant === ENTRANCE_SERVICE && ground) {\n drawServiceEntrance(ctx, x, y, w, h);\n }\n}\n\n/** The lobby's polished floor band, its five rows ending at `bottom`: a sheen\n * line and a dark base, toned down in a sky lobby so it does not add to the\n * bright band, and the ground lobby's red carpet with a gilded edge. */\nexport function lobbyFloor(ctx: CanvasRenderingContext2D, x0: number, ww: number, bottom: number, ground: boolean): void {\n const floorTop = bottom - 5;\n ctx.fillStyle = ground ? \"#DCD2B8\" : \"#CBC3B0\";\n ctx.fillRect(x0, floorTop, ww, 5);\n ctx.fillStyle = ground ? \"#F0E8D0\" : \"#D8D2C2\";\n ctx.fillRect(x0, floorTop, ww, 1);\n ctx.fillStyle = ground ? \"#8F7A48\" : \"#8A7E64\";\n ctx.fillRect(x0, bottom - 1, ww, 1);\n if (ground) {\n ctx.fillStyle = \"#9A2E38\";\n ctx.fillRect(x0, bottom - 4, ww, 3);\n ctx.fillStyle = \"#B84450\";\n ctx.fillRect(x0, bottom - 4, ww, 1);\n ctx.fillStyle = \"#D9B356\";\n ctx.fillRect(x0, bottom - 5, ww, 1);\n }\n}\n\n/** Fluted column, cornice to floor, with a gold capital and base. */\nexport function fluteColumn(ctx: CanvasRenderingContext2D, cx: number, y0: number, hh: number, ground: boolean): void {\n ctx.fillStyle = ground ? \"#F1E8CE\" : \"#E4EAF2\";\n ctx.fillRect(cx - 1, y0 + 5, 3, hh - 12);\n ctx.fillStyle = \"rgba(255,255,255,0.6)\"; // fluted highlight\n ctx.fillRect(cx - 1, y0 + 5, 1, hh - 12);\n ctx.fillStyle = ground ? \"rgba(105,90,55,0.4)\" : \"rgba(70,85,110,0.4)\";\n ctx.fillRect(cx + 1, y0 + 5, 1, hh - 12);\n ctx.fillStyle = \"#C9A24B\"; // gold capital + base\n ctx.fillRect(cx - 2, y0 + 3, 5, 2);\n ctx.fillRect(cx - 2, y0 + hh - 7, 5, 2);\n}\n\n/** A tall skyline window that recedes into the sky-lobby wall. Dedicated to the\n * sky lobby (the offices and hotels keep their cooler shared `windowView`, which\n * reads well and must not change). At night it is dark warm glass with only a\n * few dim city lights, so the transfer floor no longer glares as a bright blue\n * band against the muted floors around it; by day it is a low-contrast muted\n * sky. A recessed slate mullion grid keeps the glass reading as background. */\nexport function skyGlass(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, lit: boolean, seed: number): void {\n const x0 = Math.round(x);\n const y0 = Math.round(y);\n const ww = Math.max(1, Math.round(w));\n const hh = Math.max(1, Math.round(h));\n const g = ctx.createLinearGradient(0, y0, 0, y0 + hh);\n if (lit) {\n g.addColorStop(0, \"#2E2C34\"); // dark warm glass, night\n g.addColorStop(1, \"#26242C\");\n ctx.fillStyle = g;\n ctx.fillRect(x0, y0, ww, hh);\n ctx.fillStyle = \"#B89A62\"; // sparse, dim warm city lights\n for (let gx = 2; gx < ww - 1; gx += 4) {\n for (let gy = 2; gy < hh - 2; gy += 4) {\n if (hash(seed * 131 + gx * 17 + gy * 7) > 0.82) ctx.fillRect(x0 + gx, y0 + gy, 1, 1);\n }\n }\n } else {\n g.addColorStop(0, \"#93A6B4\"); // muted day sky, low contrast\n g.addColorStop(1, \"#A6B2B8\");\n ctx.fillStyle = g;\n ctx.fillRect(x0, y0, ww, hh);\n }\n ctx.fillStyle = \"rgba(40,42,54,0.55)\"; // recessed frame\n ctx.fillRect(x0, y0, ww, 1);\n ctx.fillRect(x0, y0 + hh - 1, ww, 1);\n ctx.fillRect(x0, y0, 1, hh);\n ctx.fillRect(x0 + ww - 1, y0, 1, hh);\n ctx.fillStyle = \"rgba(70,74,92,0.5)\"; // muted mullion cross\n ctx.fillRect(x0 + (ww >> 1), y0, 1, hh);\n ctx.fillRect(x0, y0 + (hh >> 1), ww, 1);\n}\n\n/** Variant-1 slice: a tile-friendly architectural element that repeats cleanly\n * across a wide concourse. Ground = a recessed wall panel over the marble with a\n * low walnut console and a warm lamp; sky = a low bench with a small plant in\n * front of the glass. No person: the single staffed reception moved into the\n * grand-entrance tile (ground lobby), so the attendant no longer tiles every\n * fourth column. Sky lobbies have no single-tile placement path, so they now\n * show no attendant at all (a logged followup). */\nexport function consolePanel(ctx: CanvasRenderingContext2D, x0: number, ww: number, y0: number, floorTop: number, ground: boolean, lit: boolean): void {\n const cx = x0 + Math.floor(ww / 2);\n const topY = floorTop - 5; // top of the console/bench, sitting on the floor\n if (ground) {\n // Recessed wall panel: a quiet framed inset high on the marble back wall\n // (kept short so it reads as wall paneling, not a door), over the console.\n const panelL = x0 + 3;\n const panelW = Math.max(3, ww - 6);\n const panelT = y0 + 8;\n const panelB = Math.min(floorTop - 12, y0 + 22);\n if (panelB > panelT) {\n ctx.fillStyle = \"rgba(105,90,55,0.16)\"; // recess shadow\n ctx.fillRect(panelL, panelT, panelW, panelB - panelT);\n ctx.fillStyle = \"#C9A24B\"; // gold panel trim\n ctx.fillRect(panelL, panelT, panelW, 1);\n ctx.fillRect(panelL, panelB - 1, panelW, 1);\n ctx.fillRect(panelL, panelT, 1, panelB - panelT);\n ctx.fillRect(panelL + panelW - 1, panelT, 1, panelB - panelT);\n }\n // The panel is wall; the console in front of it is furniture.\n layerBreak(ctx);\n // Low walnut console with slim legs.\n const cw = Math.min(panelW, 9);\n const cl = cx - Math.floor(cw / 2);\n ctx.fillStyle = \"#6B4A2B\";\n ctx.fillRect(cl, topY, cw, 2);\n ctx.fillStyle = \"#8A6440\";\n ctx.fillRect(cl, topY, cw, 1);\n ctx.fillStyle = \"#4E3620\";\n ctx.fillRect(cl + 1, topY + 2, 1, 3);\n ctx.fillRect(cl + cw - 2, topY + 2, 1, 3);\n // A small brass lamp that glows warm in the evening.\n ctx.fillStyle = \"#7A6A50\";\n ctx.fillRect(cx, topY - 3, 1, 3);\n ctx.fillStyle = lit ? \"#F8E2B4\" : \"#8A7A5C\";\n ctx.fillRect(cx - 1, topY - 4, 3, 2);\n if (lit) {\n ctx.fillStyle = \"rgba(248,226,180,0.26)\";\n ctx.fillRect(cx - 2, topY - 5, 5, 4);\n }\n } else {\n // Sky lobby: a low waiting bench in front of the glass, with a small plant.\n layerBreak(ctx);\n const bw = Math.min(ww - 2, 9);\n const bl = cx - Math.floor(bw / 2);\n ctx.fillStyle = \"#5C4A38\"; // bench frame\n ctx.fillRect(bl, topY, bw, 4);\n ctx.fillStyle = \"#7C6A50\"; // seat top\n ctx.fillRect(bl, topY, bw, 1);\n ctx.fillStyle = \"#3A2E22\"; // base shadow\n ctx.fillRect(bl, topY + 3, bw, 1);\n ctx.fillStyle = \"#8C5A3A\"; // brass pot at one end\n ctx.fillRect(bl + bw - 3, topY - 3, 3, 3);\n ctx.fillStyle = \"#4E7A3E\"; // greenery\n ctx.fillRect(bl + bw - 3, topY - 5, 3, 2);\n ctx.fillStyle = \"#5AA85A\";\n ctx.fillRect(bl + bw - 2, topY - 6, 1, 1);\n }\n}\n\n/** Chandelier: gold tiers on a chain, aglow after dark. */\nexport function chandelier(ctx: CanvasRenderingContext2D, cx: number, y0: number, lit: boolean, ww: number): void {\n ctx.fillStyle = \"#8A7430\";\n ctx.fillRect(cx, y0 + 3, 1, 3); // chain\n ctx.fillStyle = lit ? \"#FFD76B\" : \"#C8A343\";\n ctx.fillRect(cx - 2, y0 + 6, 5, 2);\n ctx.fillRect(cx - 3, y0 + 9, 7, 2);\n ctx.fillStyle = lit ? \"#F8E2B4\" : \"#A3873A\";\n for (const dx of [-3, 0, 3]) ctx.fillRect(cx + dx, y0 + 8, 1, 1);\n if (lit) {\n ctx.fillStyle = \"rgba(255,214,110,0.28)\";\n ctx.beginPath();\n ctx.arc(cx + 0.5, y0 + 9, Math.min(6.5, ww / 2 - 0.5), 0, Math.PI * 2);\n ctx.fill();\n }\n}\n\n/** Sky-lobby planter: a potted shrub standing on the floor. */\nexport function planter(ctx: CanvasRenderingContext2D, cx: number, floorTop: number): void {\n ctx.fillStyle = \"#8C5A3A\"; // brass pot\n ctx.fillRect(cx - 2, floorTop - 4, 5, 4);\n ctx.fillStyle = \"rgba(255,255,255,0.3)\";\n ctx.fillRect(cx - 2, floorTop - 4, 5, 1);\n ctx.fillStyle = \"#4E7A3E\"; // shrub\n ctx.beginPath();\n ctx.arc(cx + 0.5, floorTop - 6, 3.5, 0, Math.PI * 2);\n ctx.fill();\n ctx.fillStyle = \"#5AA85A\";\n ctx.fillRect(cx - 1, floorTop - 8, 2, 2);\n}\n\n/** Wall sconce, warm when the evening lights come on. */\nfunction sconce(ctx: CanvasRenderingContext2D, cx: number, y0: number, lit: boolean): void {\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(cx - 1, y0 + 12, 3, 1);\n ctx.fillStyle = lit ? \"#F8E2B4\" : \"#8A7A5C\";\n ctx.fillRect(cx, y0 + 10, 1, 2);\n if (lit) {\n ctx.fillStyle = \"rgba(248,226,180,0.26)\";\n ctx.fillRect(cx - 2, y0 + 9, 5, 5);\n }\n}\n\n/** Framed print between the sky-lobby windows. */\nexport function framedPrint(ctx: CanvasRenderingContext2D, cx: number, y0: number): void {\n ctx.fillStyle = \"#8A7430\";\n ctx.fillRect(cx - 2, y0 + 9, 5, 7);\n ctx.fillStyle = \"#B9CADB\";\n ctx.fillRect(cx - 1, y0 + 10, 3, 5);\n ctx.fillStyle = \"#5D7A95\";\n ctx.fillRect(cx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CAAC,CAAC;AACnC,IAAA,GAAG,CAAC,SAAS,GAAG,SAAS;AACzB,IAAA,GAAG,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;AACrC;;"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * The wooden revolving door between two lobby halls of different heights
3
+ * (#2068). Four wooden wings with glass in the upper panels turn on a center
4
+ * post inside a drum, under a wooden canopy with brass trim. The drum straddles
5
+ * the wall between the halls; the wall runs from the taller hall's ceiling down
6
+ * to the canopy.
7
+ *
8
+ * The door turns one way only: seen from the street side, its front half moves
9
+ * to the right. So a person walking right passes through the front of the drum
10
+ * and a person walking left passes through the back, and two people can cross
11
+ * in opposite directions at the same time, each in their own compartment.
12
+ *
13
+ * Draw order, so each person sits in the right compartment:
14
+ * 1. `drawRevolvingDoorBack`: the wall, the drum's back, the back wings.
15
+ * 2. The people walking left (they pass behind the center post).
16
+ * 3. `drawRevolvingDoorMiddle`: the center post and the front wings.
17
+ * 4. The people walking right.
18
+ * 5. `drawRevolvingDoorFront`: the drum's front glass, its posts and canopy.
19
+ *
20
+ * Every piece keys on `angle` and `lit` only. Integer pixels.
21
+ */
22
+ /** The drum's radius in world pixels: wide enough for one walker (7 px) per
23
+ * compartment with room to push. */
24
+ export declare const DOOR_RADIUS = 12;
25
+ /** The height of the wings and the drum, under the canopy. */
26
+ export declare const DOOR_HEIGHT = 30;
27
+ /** A quarter turn: four wings, so the door looks the same every quarter. */
28
+ export declare const QUARTER_TURN: number;
29
+ /** Where the shorter hall's ceiling meets the wall: above `y` the wall
30
+ * stands on the taller hall's side alone (`side` -1 left, 1 right), so it
31
+ * never covers what is built over the shorter hall. */
32
+ export interface WallStep {
33
+ y: number;
34
+ side: -1 | 1;
35
+ }
36
+ /** The wall over the door, the drum's dark back and floor plate, and the
37
+ * wings on the far side of the center post. `wallTop` is the taller hall's
38
+ * ceiling; `foot` is the line people stand on; `step`, where the halls'
39
+ * ceilings differ, is the shorter one's. */
40
+ export declare function drawRevolvingDoorBack(ctx: CanvasRenderingContext2D, cx: number, foot: number, wallTop: number, angle: number, lit: boolean, step?: WallStep): void;
41
+ /** The center post and the wings on the near side of it. People walking left
42
+ * are drawn before this, people walking right after it. */
43
+ export declare function drawRevolvingDoorMiddle(ctx: CanvasRenderingContext2D, cx: number, foot: number, angle: number, lit: boolean): void;
44
+ /** The drum's curved front glass, its two wooden posts, and the wooden
45
+ * canopy with its brass trim. */
46
+ export declare function drawRevolvingDoorFront(ctx: CanvasRenderingContext2D, cx: number, foot: number, lit: boolean): void;
47
+ /** True while a person standing at `personX` (their left edge, `width` wide)
48
+ * is inside the drum centered at `cx`. */
49
+ export declare function insideDrum(cx: number, personX: number, width: number): boolean;
50
+ /** The door's next angle. It turns only while someone is inside, at the pace
51
+ * of a person walking `speed` world pixels a second pushing a wing at its
52
+ * tip, always the same way, and stops the moment the drum is empty. */
53
+ export declare function turnDoor(angle: number, occupied: boolean, speed: number, dt: number): number;
@@ -0,0 +1,184 @@
1
+ /**
2
+ * The wooden revolving door between two lobby halls of different heights
3
+ * (#2068). Four wooden wings with glass in the upper panels turn on a center
4
+ * post inside a drum, under a wooden canopy with brass trim. The drum straddles
5
+ * the wall between the halls; the wall runs from the taller hall's ceiling down
6
+ * to the canopy.
7
+ *
8
+ * The door turns one way only: seen from the street side, its front half moves
9
+ * to the right. So a person walking right passes through the front of the drum
10
+ * and a person walking left passes through the back, and two people can cross
11
+ * in opposite directions at the same time, each in their own compartment.
12
+ *
13
+ * Draw order, so each person sits in the right compartment:
14
+ * 1. `drawRevolvingDoorBack`: the wall, the drum's back, the back wings.
15
+ * 2. The people walking left (they pass behind the center post).
16
+ * 3. `drawRevolvingDoorMiddle`: the center post and the front wings.
17
+ * 4. The people walking right.
18
+ * 5. `drawRevolvingDoorFront`: the drum's front glass, its posts and canopy.
19
+ *
20
+ * Every piece keys on `angle` and `lit` only. Integer pixels.
21
+ */
22
+ /** The drum's radius in world pixels: wide enough for one walker (7 px) per
23
+ * compartment with room to push. */
24
+ const DOOR_RADIUS = 12;
25
+ /** The height of the wings and the drum, under the canopy. */
26
+ const DOOR_HEIGHT = 30;
27
+ /** The canopy's thickness above the drum. */
28
+ const CANOPY = 4;
29
+ /** A quarter turn: four wings, so the door looks the same every quarter. */
30
+ const QUARTER_TURN = Math.PI / 2;
31
+ const DAY = {
32
+ inside: "#3A2614",
33
+ woodFront: "#74492A",
34
+ woodFace: "#8A5A34",
35
+ woodBack: "#4E3220",
36
+ glassFront: "rgba(190,215,225,0.55)",
37
+ glassBack: "rgba(120,140,150,0.55)",
38
+ canopy: "#6B4426",
39
+ brass: "#C9A24B",
40
+ wall: "#D8CDB6",
41
+ wallEdge: "#A89878",
42
+ drumGlass: "rgba(205,228,238,0.16)",
43
+ };
44
+ const NIGHT = {
45
+ inside: "#4A3018",
46
+ woodFront: "#6A4024",
47
+ woodFace: "#7E5230",
48
+ woodBack: "#3E2818",
49
+ glassFront: "rgba(255,214,150,0.38)",
50
+ glassBack: "rgba(150,120,80,0.45)",
51
+ canopy: "#5E3A20",
52
+ brass: "#E2BC5C",
53
+ wall: "#C8BBA0",
54
+ wallEdge: "#968766",
55
+ drumGlass: "rgba(255,220,160,0.12)",
56
+ };
57
+ function colors(lit) {
58
+ return lit ? NIGHT : DAY;
59
+ }
60
+ /** The four wings at `angle`. Angle 0 points a wing straight at the viewer;
61
+ * a rising angle moves the front wing to the right. */
62
+ function wings(angle) {
63
+ const out = [];
64
+ for (let k = 0; k < 4; k++) {
65
+ const a = angle + k * QUARTER_TURN;
66
+ out.push({ tipX: Math.sin(a) * DOOR_RADIUS, depth: Math.cos(a) });
67
+ }
68
+ return out.sort((p, q) => p.depth - q.depth);
69
+ }
70
+ /** One wing, seen from the side: a panel from the center post out to its tip,
71
+ * wood below, glass above, a brass push bar across the middle. A wing that
72
+ * points at the viewer (or away) shows only its edge. */
73
+ function drawWing(ctx, cx, top, w, c) {
74
+ const front = w.depth >= 0;
75
+ const tip = Math.round(cx + w.tipX);
76
+ const x0 = Math.min(cx, tip);
77
+ const span = Math.abs(tip - cx);
78
+ const h = DOOR_HEIGHT - 2;
79
+ const y = top + 1;
80
+ // A near wing turned broadside to the viewer catches the light on its face.
81
+ const broadside = Math.abs(w.tipX) > DOOR_RADIUS * 0.7;
82
+ let wood = c.woodBack;
83
+ if (front)
84
+ wood = broadside ? c.woodFace : c.woodFront;
85
+ if (span < 2) {
86
+ ctx.fillStyle = wood; // edge on: just the stile
87
+ ctx.fillRect(tip, y, 1, h);
88
+ return;
89
+ }
90
+ const glassH = Math.round(h * 0.42);
91
+ ctx.fillStyle = wood;
92
+ ctx.fillRect(x0, y, span + 1, 2); // top rail
93
+ ctx.fillStyle = front ? c.glassFront : c.glassBack;
94
+ ctx.fillRect(x0, y + 2, span + 1, glassH); // glass in the upper panel
95
+ ctx.fillStyle = wood;
96
+ ctx.fillRect(x0, y + 2 + glassH, span + 1, h - 2 - glassH); // wooden lower panel
97
+ ctx.fillRect(tip, y, 1, h); // the stile at the tip
98
+ if (front) {
99
+ ctx.fillStyle = c.brass; // push bar
100
+ ctx.fillRect(x0 + 1, y + 2 + glassH + 2, Math.max(1, span - 1), 1);
101
+ }
102
+ }
103
+ /** One stretch of the marble wall, `w` wide from `x0`, with darker edges. */
104
+ function wallStrip(ctx, c, x0, w, y0, y1) {
105
+ if (y1 <= y0)
106
+ return;
107
+ ctx.fillStyle = c.wall;
108
+ ctx.fillRect(x0, y0, w, y1 - y0);
109
+ ctx.fillStyle = c.wallEdge;
110
+ ctx.fillRect(x0, y0, 1, y1 - y0);
111
+ ctx.fillRect(x0 + w - 1, y0, 1, y1 - y0);
112
+ }
113
+ /** The wall over the door, the drum's dark back and floor plate, and the
114
+ * wings on the far side of the center post. `wallTop` is the taller hall's
115
+ * ceiling; `foot` is the line people stand on; `step`, where the halls'
116
+ * ceilings differ, is the shorter one's. */
117
+ function drawRevolvingDoorBack(ctx, cx, foot, wallTop, angle, lit, step) {
118
+ const c = colors(lit);
119
+ const x = Math.round(cx);
120
+ const top = Math.round(foot) - DOOR_HEIGHT;
121
+ const wallBottom = top - CANOPY;
122
+ const stepY = step ? Math.max(Math.round(wallTop), Math.min(wallBottom, Math.round(step.y))) : Math.round(wallTop);
123
+ if (step)
124
+ wallStrip(ctx, c, step.side < 0 ? x - 2 : x, 3, Math.round(wallTop), stepY); // the taller hall's side
125
+ wallStrip(ctx, c, x - 2, 5, stepY, wallBottom); // marble wall between the halls
126
+ ctx.fillStyle = c.inside; // the dark inside of the drum
127
+ ctx.fillRect(x - DOOR_RADIUS, top, 2 * DOOR_RADIUS + 1, DOOR_HEIGHT);
128
+ ctx.fillStyle = c.canopy; // the round floor plate
129
+ ctx.fillRect(x - DOOR_RADIUS, Math.round(foot) - 1, 2 * DOOR_RADIUS + 1, 1);
130
+ for (const w of wings(angle))
131
+ if (w.depth < 0)
132
+ drawWing(ctx, x, top, w, c);
133
+ }
134
+ /** The center post and the wings on the near side of it. People walking left
135
+ * are drawn before this, people walking right after it. */
136
+ function drawRevolvingDoorMiddle(ctx, cx, foot, angle, lit) {
137
+ const c = colors(lit);
138
+ const x = Math.round(cx);
139
+ const top = Math.round(foot) - DOOR_HEIGHT;
140
+ ctx.fillStyle = "#2A1C10"; // center post
141
+ ctx.fillRect(x, top, 1, DOOR_HEIGHT);
142
+ for (const w of wings(angle))
143
+ if (w.depth >= 0)
144
+ drawWing(ctx, x, top, w, c);
145
+ }
146
+ /** The drum's curved front glass, its two wooden posts, and the wooden
147
+ * canopy with its brass trim. */
148
+ function drawRevolvingDoorFront(ctx, cx, foot, lit) {
149
+ const c = colors(lit);
150
+ const x = Math.round(cx);
151
+ const top = Math.round(foot) - DOOR_HEIGHT;
152
+ const left = x - DOOR_RADIUS - 1;
153
+ const width = 2 * DOOR_RADIUS + 3;
154
+ ctx.fillStyle = c.drumGlass; // the curved glass, with one highlight where it turns
155
+ ctx.fillRect(x - DOOR_RADIUS, top, 2 * DOOR_RADIUS + 1, DOOR_HEIGHT);
156
+ ctx.fillStyle = "rgba(255,255,255,0.18)";
157
+ ctx.fillRect(x - DOOR_RADIUS + 3, top + 2, 1, DOOR_HEIGHT - 6);
158
+ ctx.fillStyle = c.canopy;
159
+ ctx.fillRect(left, top - CANOPY, width, CANOPY); // wooden canopy
160
+ ctx.fillRect(left, top, 1, DOOR_HEIGHT); // drum posts
161
+ ctx.fillRect(left + width - 1, top, 1, DOOR_HEIGHT);
162
+ ctx.fillStyle = c.brass;
163
+ ctx.fillRect(left, top - CANOPY, width, 1); // brass trim, top and bottom of the canopy
164
+ ctx.fillRect(left, top - 1, width, 1);
165
+ ctx.fillRect(left, Math.round(foot) - 1, 1, 1); // brass shoes on the posts
166
+ ctx.fillRect(left + width - 1, Math.round(foot) - 1, 1, 1);
167
+ }
168
+ /** True while a person standing at `personX` (their left edge, `width` wide)
169
+ * is inside the drum centered at `cx`. */
170
+ function insideDrum(cx, personX, width) {
171
+ const mid = personX + width / 2;
172
+ return Math.abs(mid - cx) <= DOOR_RADIUS;
173
+ }
174
+ /** The door's next angle. It turns only while someone is inside, at the pace
175
+ * of a person walking `speed` world pixels a second pushing a wing at its
176
+ * tip, always the same way, and stops the moment the drum is empty. */
177
+ function turnDoor(angle, occupied, speed, dt) {
178
+ if (!occupied)
179
+ return angle;
180
+ return (angle + (Math.abs(speed) * dt) / DOOR_RADIUS) % (4 * QUARTER_TURN);
181
+ }
182
+
183
+ export { DOOR_HEIGHT, DOOR_RADIUS, QUARTER_TURN, drawRevolvingDoorBack, drawRevolvingDoorFront, drawRevolvingDoorMiddle, insideDrum, turnDoor };
184
+ //# sourceMappingURL=revolvingDoor.js.map