@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,244 @@
1
+ import { shade, personSeated, castShadow, hash, shell, roomOccupants, personStanding } from './common.js';
2
+ import { artRow, authoredWidth } from './artScale.js';
3
+ import { layerBreak } from './layers.js';
4
+
5
+ const BOUTIQUE_DEFAULT = { wall: "#E8F0E0", floor: "#C8B89A", accent: "#E86A8A", trade: "florist" };
6
+ const BOUTIQUE_LOOKS = {
7
+ "Florist": { wall: "#E8F0E0", floor: "#C8B89A", accent: "#E86A8A", trade: "florist" },
8
+ "Barber": { wall: "#E0E4EC", floor: "#8A6E50", accent: "#C0392B", trade: "barber" },
9
+ "Phone Repair": { wall: "#DCE4EC", floor: "#B0B4BC", accent: "#3AC0E0", trade: "phone" },
10
+ "Vintage": { wall: "#EBE0D0", floor: "#9A7A5A", accent: "#A85A8C", trade: "vintage" },
11
+ "Tattoo": { wall: "#2A2A32", floor: "#3A3A42", accent: "#C83A5A", trade: "tattoo" },
12
+ "Record Store": { wall: "#E4DAC8", floor: "#6A5A48", accent: "#E08A3A", trade: "records" },
13
+ "Gallery": { wall: "#F0EEE8", floor: "#C4BCB0", accent: "#4A6A9A", trade: "gallery" },
14
+ };
15
+ /** A stable per-room seed from GEOGRAPHY (floor, x), so the figures and prop
16
+ * colors survive a save/export/import (which renumbers `u.id`). */
17
+ function figureSeed(u) {
18
+ return (u.floor * 131 + u.x * 17) >>> 0;
19
+ }
20
+ const GARMENT_HUES = ["#C0506A", "#4A7AA8", "#5AA868", "#D8A03A", "#8A5AB0", "#D06A3A"];
21
+ const BLOOM_HUES = ["#E85A7A", "#F0A030", "#E0D040", "#C060A0", "#F07050"];
22
+ /** The fascia band: the shared anchor shape. A colored shopfront sign strip with
23
+ * a lit under-edge, so every trade is unmistakably part of the bay. Returns the
24
+ * Y just below the band. */
25
+ function fascia(ctx, x, y, w, accent, lit) {
26
+ const band = 5;
27
+ ctx.fillStyle = shade(accent, -40);
28
+ ctx.fillRect(x, y, w, band);
29
+ ctx.fillStyle = accent;
30
+ ctx.fillRect(x, y, w, 2);
31
+ ctx.fillStyle = lit ? shade(accent, 70) : shade(accent, 20); // lit under-edge
32
+ ctx.fillRect(x, y + band - 1, w, 1);
33
+ return y + band;
34
+ }
35
+ /** A tidy display counter along the floor line, the shared retail cue. */
36
+ function counter(ctx, x, floorY, w, wood) {
37
+ const h = 6;
38
+ const top = floorY - h;
39
+ ctx.fillStyle = shade(wood, -20);
40
+ ctx.fillRect(x + 3, top, w - 6, h);
41
+ ctx.fillStyle = shade(wood, 24); // lit top edge
42
+ ctx.fillRect(x + 3, top, w - 6, 1);
43
+ return top;
44
+ }
45
+ function drawFlorist(ctx, x, floorY, w, top, seed) {
46
+ // Buckets of cut flowers along the floor, a hanging planter above.
47
+ for (let bx = x + 4, i = 0; bx + 6 < x + w - 2; bx += 9, i++) {
48
+ ctx.fillStyle = "#5A6E5A"; // zinc bucket
49
+ ctx.fillRect(bx, floorY - 6, 6, 6);
50
+ for (let s = 0; s < 3; s++) {
51
+ const sx = bx + 1 + s * 2;
52
+ ctx.fillStyle = "#3A7A46"; // stem
53
+ ctx.fillRect(sx, floorY - 12, 1, 6);
54
+ ctx.fillStyle = BLOOM_HUES[(i + s + seed) % BLOOM_HUES.length]; // bloom
55
+ ctx.fillRect(sx - 1, floorY - 14, 3, 3);
56
+ }
57
+ }
58
+ // A hanging planter with trailing green.
59
+ const px = x + Math.round(w * 0.5);
60
+ ctx.fillStyle = "#7A5A3A";
61
+ ctx.fillRect(px - 4, top + 2, 8, 3);
62
+ ctx.fillStyle = "#4A9A56";
63
+ for (let i = 0; i < 5; i++)
64
+ ctx.fillRect(px - 4 + i * 2, top + 5, 1, 3 + (i % 2) * 2);
65
+ }
66
+ function drawBarber(ctx, x, floorY, w, top, accent, occ, seed) {
67
+ // A barber chair facing a wall mirror, and the striped pole.
68
+ const chX = x + Math.round(w * 0.34);
69
+ ctx.fillStyle = "#3A3A44"; // chair base + seat
70
+ ctx.fillRect(chX, floorY - 10, 10, 10);
71
+ ctx.fillStyle = shade(accent, -10); // red leather seat
72
+ ctx.fillRect(chX + 1, floorY - 11, 8, 3);
73
+ if (occ > 0)
74
+ personSeated(ctx, chX + 2, floorY - 8, seed); // seated client, lifted onto the chair
75
+ // Wall mirror.
76
+ ctx.fillStyle = "#B8C4C8";
77
+ ctx.fillRect(chX - 1, top + 3, 5, 12);
78
+ ctx.fillStyle = "#8A9498";
79
+ ctx.fillRect(chX - 1, top + 3, 5, 1);
80
+ // The barber pole by the door.
81
+ const pX = x + w - 6;
82
+ for (let py = top + 2; py < floorY - 2; py += 3) {
83
+ ctx.fillStyle = (Math.floor((py - top) / 3) % 2 === 0) ? accent : "#F0F0F0";
84
+ ctx.fillRect(pX, py, 3, 3);
85
+ }
86
+ castShadow(ctx, chX, floorY, 10);
87
+ }
88
+ function drawPhone(ctx, x, floorY, w, top, accent, seed) {
89
+ // A glass counter of glowing devices, and a wall of parts bins.
90
+ const cTop = counter(ctx, x, floorY, w, "#3A4048");
91
+ for (let dx = x + 6, i = 0; dx + 3 < x + w - 4; dx += 6, i++) {
92
+ ctx.fillStyle = "#14181E"; // device body
93
+ ctx.fillRect(dx, cTop - 4, 3, 4);
94
+ ctx.fillStyle = (i % 2 === 0) ? accent : shade(accent, 30); // lit screen
95
+ ctx.fillRect(dx, cTop - 4, 3, 2);
96
+ }
97
+ // Parts bins on the back wall. The shade keys on the room's seed and each
98
+ // bin's row and column, so the region compositor paints the same wall
99
+ // wherever the room's region starts.
100
+ for (let by = top + 3, r = 0; by + 3 < cTop - 6; by += 5, r++) {
101
+ for (let bx = x + 4, c = 0; bx + 3 < x + w - 3; bx += 6, c++) {
102
+ ctx.fillStyle = shade("#8A929A", (hash(seed * 31 + r * 131 + c * 17) > 0.5 ? 12 : -12));
103
+ ctx.fillRect(bx, by, 4, 3);
104
+ }
105
+ }
106
+ }
107
+ function drawVintage(ctx, x, floorY, w, top, seed) {
108
+ // Racks of hanging garments and a mannequin.
109
+ const railY = top + 4;
110
+ for (let rx = x + 4, i = 0; rx + 4 < x + w - 8; rx += 5, i++) {
111
+ ctx.fillStyle = "#7A6A58"; // hanger
112
+ ctx.fillRect(rx, railY, 1, 2);
113
+ ctx.fillStyle = GARMENT_HUES[(i + seed) % GARMENT_HUES.length]; // garment
114
+ ctx.fillRect(rx - 1, railY + 2, 4, Math.min(floorY - railY - 4, 12));
115
+ }
116
+ ctx.fillStyle = "#5A4A3A"; // rail bar
117
+ ctx.fillRect(x + 3, railY - 1, Math.round(w * 0.6), 1);
118
+ // A mannequin on a stand near the door.
119
+ const mX = x + w - 7;
120
+ ctx.fillStyle = "#D8CEC0";
121
+ ctx.fillRect(mX, floorY - 14, 4, 9); // torso
122
+ ctx.fillRect(mX + 1, floorY - 5, 1, 5); // stand
123
+ ctx.fillStyle = GARMENT_HUES[(seed + 3) % GARMENT_HUES.length];
124
+ ctx.fillRect(mX, floorY - 12, 4, 4); // dressed top
125
+ }
126
+ function drawTattoo(ctx, x, floorY, w, top, accent, occ, seed) {
127
+ // A reclined bench under an articulated lamp, framed flash art on the wall.
128
+ const bX = x + 4;
129
+ ctx.fillStyle = "#1E1E26"; // bench
130
+ ctx.fillRect(bX, floorY - 6, Math.round(w * 0.42), 4);
131
+ ctx.fillStyle = shade(accent, -20);
132
+ ctx.fillRect(bX, floorY - 6, Math.round(w * 0.42), 1);
133
+ if (occ > 0)
134
+ personSeated(ctx, bX + 4, floorY - 4, seed); // reclined client on the bench
135
+ // Articulated lamp arm.
136
+ ctx.fillStyle = "#6A6A72";
137
+ ctx.fillRect(bX + 2, top + 2, 1, 6);
138
+ ctx.fillRect(bX + 2, top + 2, 8, 1);
139
+ ctx.fillStyle = "#F8E2A4";
140
+ ctx.fillRect(bX + 9, top + 3, 2, 2);
141
+ // Framed flash-art designs on the back wall.
142
+ for (let fx = x + Math.round(w * 0.56), i = 0; fx + 5 < x + w - 2; fx += 7, i++) {
143
+ ctx.fillStyle = "#0E0E14";
144
+ ctx.fillRect(fx, top + 3, 5, 6);
145
+ ctx.fillStyle = i % 2 === 0 ? accent : "#C0C0C8";
146
+ ctx.fillRect(fx + 1, top + 4, 3, 4);
147
+ }
148
+ }
149
+ function drawRecords(ctx, x, floorY, w, top, accent, seed) {
150
+ // Crates of record spines, a wall poster, a turntable station.
151
+ for (let cx = x + 4, i = 0; cx + 10 < x + w - 2; cx += 12, i++) {
152
+ ctx.fillStyle = "#4A3A2A"; // crate
153
+ ctx.fillRect(cx, floorY - 9, 10, 9);
154
+ for (let s = 0; s < 8; s++) {
155
+ ctx.fillStyle = shade(GARMENT_HUES[(s + i + seed) % GARMENT_HUES.length], -6); // leaning spines
156
+ ctx.fillRect(cx + 1 + s, floorY - 8, 1, 7);
157
+ }
158
+ }
159
+ // A poster on the back wall.
160
+ ctx.fillStyle = shade(accent, -10);
161
+ ctx.fillRect(x + 4, top + 3, 8, 9);
162
+ ctx.fillStyle = shade(accent, 40);
163
+ ctx.fillRect(x + 5, top + 4, 6, 3);
164
+ // Turntable disc.
165
+ const tX = x + w - 8;
166
+ ctx.fillStyle = "#1A1A20";
167
+ ctx.fillRect(tX, top + 5, 6, 6);
168
+ ctx.fillStyle = accent;
169
+ ctx.fillRect(tX + 2, top + 7, 2, 2);
170
+ }
171
+ function drawGallery(ctx, x, floorY, w, top, accent, seed) {
172
+ // Framed artworks under track-lighting spots, a viewing bench.
173
+ for (let fx = x + 4, i = 0; fx + 8 < x + w - 3; fx += 11, i++) {
174
+ ctx.fillStyle = "#2A2A2E"; // frame
175
+ ctx.fillRect(fx, top + 4, 8, 9);
176
+ ctx.fillStyle = "#F4F2EC"; // mat
177
+ ctx.fillRect(fx + 1, top + 5, 6, 7);
178
+ ctx.fillStyle = i % 3 === 0 ? accent : GARMENT_HUES[(i + seed) % GARMENT_HUES.length]; // the art
179
+ ctx.fillRect(fx + 2, top + 6, 4, 5);
180
+ ctx.fillStyle = "#F8E8C0"; // spotlight dot above
181
+ ctx.fillRect(fx + 3, top + 1, 2, 1);
182
+ }
183
+ // A minimal viewing bench.
184
+ ctx.fillStyle = "#8A8A90";
185
+ ctx.fillRect(x + Math.round(w * 0.4), floorY - 3, Math.round(w * 0.25), 2);
186
+ }
187
+ /** The Modern Boutique Bay. Reused for every trade subtype; the look's `trade`
188
+ * discriminant picks the shopfront so each trade renders as its own room. */
189
+ function boutiqueBay(d, u, x, y, w, h) {
190
+ const { ctx } = d;
191
+ const look = (u.subtype !== undefined && BOUTIQUE_LOOKS[u.subtype]) || BOUTIQUE_DEFAULT;
192
+ const floorY = shell(ctx, x, y, w, h, look.wall, look.floor);
193
+ const top = fascia(ctx, x, y, w, look.accent, d.lit);
194
+ layerBreak(ctx); // the shell ends; the trade's fittings and customers follow
195
+ const occ = roomOccupants(u);
196
+ const seed = figureSeed(u);
197
+ switch (look.trade) {
198
+ case "florist":
199
+ drawFlorist(ctx, x, floorY, w, top, seed);
200
+ break;
201
+ case "barber":
202
+ drawBarber(ctx, x, floorY, w, top, look.accent, occ, seed);
203
+ break;
204
+ case "phone":
205
+ drawPhone(ctx, x, floorY, w, top, look.accent, seed);
206
+ break;
207
+ case "vintage":
208
+ drawVintage(ctx, x, floorY, w, top, seed);
209
+ break;
210
+ case "tattoo":
211
+ drawTattoo(ctx, x, floorY, w, top, look.accent, occ, seed);
212
+ break;
213
+ case "records":
214
+ drawRecords(ctx, x, floorY, w, top, look.accent, seed);
215
+ break;
216
+ case "gallery":
217
+ drawGallery(ctx, x, floorY, w, top, look.accent, seed);
218
+ break;
219
+ }
220
+ // Browsing customers filling back from the door when the shop is busy,
221
+ // bounded by width (inset like the other containers so every figure stays
222
+ // inside the room rect). The 7px shoulder-to-shoulder pitch is authored art,
223
+ // so the row is counted against the authored run and fitted into the screen run.
224
+ // Counted off the pixel width, the bay lost two standing spots when the tile
225
+ // narrowed and two customers who were in the shop went undrawn.
226
+ // The door-side figure sits a pixel further in than the shopfront chrome does:
227
+ // a figure is 6px of body between two 1px contact-shadow columns, so at the
228
+ // chrome's own `w - 6` its shadow fell outside the bay, where both draw paths
229
+ // clip it away and the figure reads a column short of the others.
230
+ // The barber's chair and the tattoo bench each seat one of these same people,
231
+ // so that client comes off the browsing row. Counting them separately drew a
232
+ // one-customer bay as two figures, a ghost, which is the failure the honest
233
+ // occupancy rule forbids in the other direction.
234
+ const seatedClient = occ > 0 && (look.trade === "barber" || look.trade === "tattoo") ? 1 : 0;
235
+ const spots = artRow(authoredWidth(u.width) - 7 - 3, x + w - 7, x + 3, 7, -1, 6);
236
+ // `occ` is already whole (`roomOccupants`).
237
+ const browsing = Math.min(Math.max(0, occ - seatedClient), spots.length);
238
+ for (let i = 0; i < browsing; i++) {
239
+ personStanding(ctx, spots[i], floorY, seed + i * 11);
240
+ }
241
+ }
242
+
243
+ export { BOUTIQUE_DEFAULT, BOUTIQUE_LOOKS, boutiqueBay };
244
+ //# sourceMappingURL=boutique.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boutique.js","sources":["../../../src/render/pixelSprites/boutique.ts"],"sourcesContent":["import type { UnitView } from \"../../simport/view\";\nimport { castShadow, hash, personSeated, personStanding, roomOccupants, shade, shell, type RoomCtx } from \"./common\";\nimport { artRow, authoredWidth } from \"./artScale\";\nimport { layerBreak } from \"./layers\";\n\n/**\n * Modern Boutique Bay art: a bay of small independent trades (florist, barber,\n * phone repair, vintage, tattoo, record store, gallery). Every trade keeps one\n * anchor shape, the shopfront fascia band across the top, and its subtype\n * furnishes its own shopfront, so a Florist and a Tattoo parlor read as clearly\n * different rooms. Modern-only (never exported to the 1994 TDT), so nothing here\n * carries an ordinal.\n *\n * Drawing reads only bake-signature inputs (subtype via the look, the real\n * occupant count, `lit`, and a stable geography seed), so a placed room stays\n * cacheable, an empty shop reads empty, and a TDT id renumber never reshuffles\n * the figures.\n */\n\nexport interface BoutiqueLook {\n wall: string;\n floor: string;\n /** The fascia / sign accent; the interior props pick their own colors, but the\n * shared shopfront band reads this. */\n accent: string;\n /** Which trade fills the shop. 1:1 with the subtype, so the look table stays\n * trivially pairwise-distinct. */\n trade: \"florist\" | \"barber\" | \"phone\" | \"vintage\" | \"tattoo\" | \"records\" | \"gallery\";\n}\n\nexport const BOUTIQUE_DEFAULT: BoutiqueLook = { wall: \"#E8F0E0\", floor: \"#C8B89A\", accent: \"#E86A8A\", trade: \"florist\" };\nexport const BOUTIQUE_LOOKS: Record<string, BoutiqueLook> = {\n \"Florist\": { wall: \"#E8F0E0\", floor: \"#C8B89A\", accent: \"#E86A8A\", trade: \"florist\" },\n \"Barber\": { wall: \"#E0E4EC\", floor: \"#8A6E50\", accent: \"#C0392B\", trade: \"barber\" },\n \"Phone Repair\": { wall: \"#DCE4EC\", floor: \"#B0B4BC\", accent: \"#3AC0E0\", trade: \"phone\" },\n \"Vintage\": { wall: \"#EBE0D0\", floor: \"#9A7A5A\", accent: \"#A85A8C\", trade: \"vintage\" },\n \"Tattoo\": { wall: \"#2A2A32\", floor: \"#3A3A42\", accent: \"#C83A5A\", trade: \"tattoo\" },\n \"Record Store\": { wall: \"#E4DAC8\", floor: \"#6A5A48\", accent: \"#E08A3A\", trade: \"records\" },\n \"Gallery\": { wall: \"#F0EEE8\", floor: \"#C4BCB0\", accent: \"#4A6A9A\", trade: \"gallery\" },\n};\n\n/** A stable per-room seed from GEOGRAPHY (floor, x), so the figures and prop\n * colors survive a save/export/import (which renumbers `u.id`). */\nfunction figureSeed(u: Pick<UnitView, \"floor\" | \"x\">): number {\n return (u.floor * 131 + u.x * 17) >>> 0;\n}\n\nconst GARMENT_HUES = [\"#C0506A\", \"#4A7AA8\", \"#5AA868\", \"#D8A03A\", \"#8A5AB0\", \"#D06A3A\"];\nconst BLOOM_HUES = [\"#E85A7A\", \"#F0A030\", \"#E0D040\", \"#C060A0\", \"#F07050\"];\n\n/** The fascia band: the shared anchor shape. A colored shopfront sign strip with\n * a lit under-edge, so every trade is unmistakably part of the bay. Returns the\n * Y just below the band. */\nfunction fascia(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, accent: string, lit: boolean): number {\n const band = 5;\n ctx.fillStyle = shade(accent, -40);\n ctx.fillRect(x, y, w, band);\n ctx.fillStyle = accent;\n ctx.fillRect(x, y, w, 2);\n ctx.fillStyle = lit ? shade(accent, 70) : shade(accent, 20); // lit under-edge\n ctx.fillRect(x, y + band - 1, w, 1);\n return y + band;\n}\n\n/** A tidy display counter along the floor line, the shared retail cue. */\nfunction counter(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, wood: string): number {\n const h = 6;\n const top = floorY - h;\n ctx.fillStyle = shade(wood, -20);\n ctx.fillRect(x + 3, top, w - 6, h);\n ctx.fillStyle = shade(wood, 24); // lit top edge\n ctx.fillRect(x + 3, top, w - 6, 1);\n return top;\n}\n\nfunction drawFlorist(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, seed: number): void {\n // Buckets of cut flowers along the floor, a hanging planter above.\n for (let bx = x + 4, i = 0; bx + 6 < x + w - 2; bx += 9, i++) {\n ctx.fillStyle = \"#5A6E5A\"; // zinc bucket\n ctx.fillRect(bx, floorY - 6, 6, 6);\n for (let s = 0; s < 3; s++) {\n const sx = bx + 1 + s * 2;\n ctx.fillStyle = \"#3A7A46\"; // stem\n ctx.fillRect(sx, floorY - 12, 1, 6);\n ctx.fillStyle = BLOOM_HUES[(i + s + seed) % BLOOM_HUES.length]; // bloom\n ctx.fillRect(sx - 1, floorY - 14, 3, 3);\n }\n }\n // A hanging planter with trailing green.\n const px = x + Math.round(w * 0.5);\n ctx.fillStyle = \"#7A5A3A\";\n ctx.fillRect(px - 4, top + 2, 8, 3);\n ctx.fillStyle = \"#4A9A56\";\n for (let i = 0; i < 5; i++) ctx.fillRect(px - 4 + i * 2, top + 5, 1, 3 + (i % 2) * 2);\n}\n\nfunction drawBarber(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, accent: string, occ: number, seed: number): void {\n // A barber chair facing a wall mirror, and the striped pole.\n const chX = x + Math.round(w * 0.34);\n ctx.fillStyle = \"#3A3A44\"; // chair base + seat\n ctx.fillRect(chX, floorY - 10, 10, 10);\n ctx.fillStyle = shade(accent, -10); // red leather seat\n ctx.fillRect(chX + 1, floorY - 11, 8, 3);\n if (occ > 0) personSeated(ctx, chX + 2, floorY - 8, seed); // seated client, lifted onto the chair\n // Wall mirror.\n ctx.fillStyle = \"#B8C4C8\";\n ctx.fillRect(chX - 1, top + 3, 5, 12);\n ctx.fillStyle = \"#8A9498\";\n ctx.fillRect(chX - 1, top + 3, 5, 1);\n // The barber pole by the door.\n const pX = x + w - 6;\n for (let py = top + 2; py < floorY - 2; py += 3) {\n ctx.fillStyle = (Math.floor((py - top) / 3) % 2 === 0) ? accent : \"#F0F0F0\";\n ctx.fillRect(pX, py, 3, 3);\n }\n castShadow(ctx, chX, floorY, 10);\n}\n\nfunction drawPhone(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, accent: string, seed: number): void {\n // A glass counter of glowing devices, and a wall of parts bins.\n const cTop = counter(ctx, x, floorY, w, \"#3A4048\");\n for (let dx = x + 6, i = 0; dx + 3 < x + w - 4; dx += 6, i++) {\n ctx.fillStyle = \"#14181E\"; // device body\n ctx.fillRect(dx, cTop - 4, 3, 4);\n ctx.fillStyle = (i % 2 === 0) ? accent : shade(accent, 30); // lit screen\n ctx.fillRect(dx, cTop - 4, 3, 2);\n }\n // Parts bins on the back wall. The shade keys on the room's seed and each\n // bin's row and column, so the region compositor paints the same wall\n // wherever the room's region starts.\n for (let by = top + 3, r = 0; by + 3 < cTop - 6; by += 5, r++) {\n for (let bx = x + 4, c = 0; bx + 3 < x + w - 3; bx += 6, c++) {\n ctx.fillStyle = shade(\"#8A929A\", (hash(seed * 31 + r * 131 + c * 17) > 0.5 ? 12 : -12));\n ctx.fillRect(bx, by, 4, 3);\n }\n }\n}\n\nfunction drawVintage(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, seed: number): void {\n // Racks of hanging garments and a mannequin.\n const railY = top + 4;\n for (let rx = x + 4, i = 0; rx + 4 < x + w - 8; rx += 5, i++) {\n ctx.fillStyle = \"#7A6A58\"; // hanger\n ctx.fillRect(rx, railY, 1, 2);\n ctx.fillStyle = GARMENT_HUES[(i + seed) % GARMENT_HUES.length]; // garment\n ctx.fillRect(rx - 1, railY + 2, 4, Math.min(floorY - railY - 4, 12));\n }\n ctx.fillStyle = \"#5A4A3A\"; // rail bar\n ctx.fillRect(x + 3, railY - 1, Math.round(w * 0.6), 1);\n // A mannequin on a stand near the door.\n const mX = x + w - 7;\n ctx.fillStyle = \"#D8CEC0\";\n ctx.fillRect(mX, floorY - 14, 4, 9); // torso\n ctx.fillRect(mX + 1, floorY - 5, 1, 5); // stand\n ctx.fillStyle = GARMENT_HUES[(seed + 3) % GARMENT_HUES.length];\n ctx.fillRect(mX, floorY - 12, 4, 4); // dressed top\n}\n\nfunction drawTattoo(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, accent: string, occ: number, seed: number): void {\n // A reclined bench under an articulated lamp, framed flash art on the wall.\n const bX = x + 4;\n ctx.fillStyle = \"#1E1E26\"; // bench\n ctx.fillRect(bX, floorY - 6, Math.round(w * 0.42), 4);\n ctx.fillStyle = shade(accent, -20);\n ctx.fillRect(bX, floorY - 6, Math.round(w * 0.42), 1);\n if (occ > 0) personSeated(ctx, bX + 4, floorY - 4, seed); // reclined client on the bench\n // Articulated lamp arm.\n ctx.fillStyle = \"#6A6A72\";\n ctx.fillRect(bX + 2, top + 2, 1, 6);\n ctx.fillRect(bX + 2, top + 2, 8, 1);\n ctx.fillStyle = \"#F8E2A4\";\n ctx.fillRect(bX + 9, top + 3, 2, 2);\n // Framed flash-art designs on the back wall.\n for (let fx = x + Math.round(w * 0.56), i = 0; fx + 5 < x + w - 2; fx += 7, i++) {\n ctx.fillStyle = \"#0E0E14\";\n ctx.fillRect(fx, top + 3, 5, 6);\n ctx.fillStyle = i % 2 === 0 ? accent : \"#C0C0C8\";\n ctx.fillRect(fx + 1, top + 4, 3, 4);\n }\n}\n\nfunction drawRecords(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, accent: string, seed: number): void {\n // Crates of record spines, a wall poster, a turntable station.\n for (let cx = x + 4, i = 0; cx + 10 < x + w - 2; cx += 12, i++) {\n ctx.fillStyle = \"#4A3A2A\"; // crate\n ctx.fillRect(cx, floorY - 9, 10, 9);\n for (let s = 0; s < 8; s++) {\n ctx.fillStyle = shade(GARMENT_HUES[(s + i + seed) % GARMENT_HUES.length], -6); // leaning spines\n ctx.fillRect(cx + 1 + s, floorY - 8, 1, 7);\n }\n }\n // A poster on the back wall.\n ctx.fillStyle = shade(accent, -10);\n ctx.fillRect(x + 4, top + 3, 8, 9);\n ctx.fillStyle = shade(accent, 40);\n ctx.fillRect(x + 5, top + 4, 6, 3);\n // Turntable disc.\n const tX = x + w - 8;\n ctx.fillStyle = \"#1A1A20\";\n ctx.fillRect(tX, top + 5, 6, 6);\n ctx.fillStyle = accent;\n ctx.fillRect(tX + 2, top + 7, 2, 2);\n}\n\nfunction drawGallery(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, accent: string, seed: number): void {\n // Framed artworks under track-lighting spots, a viewing bench.\n for (let fx = x + 4, i = 0; fx + 8 < x + w - 3; fx += 11, i++) {\n ctx.fillStyle = \"#2A2A2E\"; // frame\n ctx.fillRect(fx, top + 4, 8, 9);\n ctx.fillStyle = \"#F4F2EC\"; // mat\n ctx.fillRect(fx + 1, top + 5, 6, 7);\n ctx.fillStyle = i % 3 === 0 ? accent : GARMENT_HUES[(i + seed) % GARMENT_HUES.length]; // the art\n ctx.fillRect(fx + 2, top + 6, 4, 5);\n ctx.fillStyle = \"#F8E8C0\"; // spotlight dot above\n ctx.fillRect(fx + 3, top + 1, 2, 1);\n }\n // A minimal viewing bench.\n ctx.fillStyle = \"#8A8A90\";\n ctx.fillRect(x + Math.round(w * 0.4), floorY - 3, Math.round(w * 0.25), 2);\n}\n\n/** The Modern Boutique Bay. Reused for every trade subtype; the look's `trade`\n * discriminant picks the shopfront so each trade renders as its own room. */\nexport function boutiqueBay(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void {\n const { ctx } = d;\n const look = (u.subtype !== undefined && BOUTIQUE_LOOKS[u.subtype]) || BOUTIQUE_DEFAULT;\n const floorY = shell(ctx, x, y, w, h, look.wall, look.floor);\n const top = fascia(ctx, x, y, w, look.accent, d.lit);\n layerBreak(ctx); // the shell ends; the trade's fittings and customers follow\n const occ = roomOccupants(u);\n const seed = figureSeed(u);\n switch (look.trade) {\n case \"florist\":\n drawFlorist(ctx, x, floorY, w, top, seed);\n break;\n case \"barber\":\n drawBarber(ctx, x, floorY, w, top, look.accent, occ, seed);\n break;\n case \"phone\":\n drawPhone(ctx, x, floorY, w, top, look.accent, seed);\n break;\n case \"vintage\":\n drawVintage(ctx, x, floorY, w, top, seed);\n break;\n case \"tattoo\":\n drawTattoo(ctx, x, floorY, w, top, look.accent, occ, seed);\n break;\n case \"records\":\n drawRecords(ctx, x, floorY, w, top, look.accent, seed);\n break;\n case \"gallery\":\n drawGallery(ctx, x, floorY, w, top, look.accent, seed);\n break;\n }\n // Browsing customers filling back from the door when the shop is busy,\n // bounded by width (inset like the other containers so every figure stays\n // inside the room rect). The 7px shoulder-to-shoulder pitch is authored art,\n // so the row is counted against the authored run and fitted into the screen run.\n // Counted off the pixel width, the bay lost two standing spots when the tile\n // narrowed and two customers who were in the shop went undrawn.\n // The door-side figure sits a pixel further in than the shopfront chrome does:\n // a figure is 6px of body between two 1px contact-shadow columns, so at the\n // chrome's own `w - 6` its shadow fell outside the bay, where both draw paths\n // clip it away and the figure reads a column short of the others.\n // The barber's chair and the tattoo bench each seat one of these same people,\n // so that client comes off the browsing row. Counting them separately drew a\n // one-customer bay as two figures, a ghost, which is the failure the honest\n // occupancy rule forbids in the other direction.\n const seatedClient = occ > 0 && (look.trade === \"barber\" || look.trade === \"tattoo\") ? 1 : 0;\n const spots = artRow(authoredWidth(u.width) - 7 - 3, x + w - 7, x + 3, 7, -1, 6);\n // `occ` is already whole (`roomOccupants`).\n const browsing = Math.min(Math.max(0, occ - seatedClient), spots.length);\n for (let i = 0; i < browsing; i++) {\n personStanding(ctx, spots[i], floorY, seed + i * 11);\n }\n}\n"],"names":[],"mappings":";;;;MA8Ba,gBAAgB,GAAiB,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS;AAC/G,MAAM,cAAc,GAAiC;AAC1D,IAAA,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;AACrF,IAAA,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,Q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,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;;IAEhF,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,GAAG,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC;AACxE,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,CAAC,EAAE,EAAE;AACjC,QAAA,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;IACtD;AACF;;"}
@@ -0,0 +1,30 @@
1
+ import type { UnitView } from "../../simport/view";
2
+ import { type RoomCtx } from "./common";
3
+ /**
4
+ * Modern Clinic art: a small health clinic in one of five practices (dental,
5
+ * urgent care, optometry, pharmacy, physio). Every practice keeps one anchor
6
+ * shape, the clinical trim band with a small cross along the top, and its
7
+ * subtype furnishes its own room, so a Dental and a Pharmacy read as clearly
8
+ * different. Modern-only (never exported to the 1994 TDT), so nothing here
9
+ * carries an ordinal.
10
+ *
11
+ * Drawing reads only bake-signature inputs (subtype via the look, the real
12
+ * occupant count, `lit`, and a stable geography seed), so a placed room stays
13
+ * cacheable, an empty clinic reads empty, and a TDT id renumber never reshuffles
14
+ * the figures.
15
+ */
16
+ export interface ClinicLook {
17
+ wall: string;
18
+ floor: string;
19
+ /** The trim / cross accent color; the equipment picks its own colors, but the
20
+ * shared clinical band reads this. */
21
+ accent: string;
22
+ /** Which practice fills the clinic. 1:1 with the subtype, so the look table
23
+ * stays trivially pairwise-distinct. */
24
+ practice: "dental" | "urgent" | "optometry" | "pharmacy" | "physio";
25
+ }
26
+ export declare const CLINIC_DEFAULT: ClinicLook;
27
+ export declare const CLINIC_LOOKS: Record<string, ClinicLook>;
28
+ /** The Modern Clinic. Reused for every practice subtype; the look's `practice`
29
+ * discriminant picks the interior so each renders as its own room. */
30
+ export declare function clinic(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
@@ -0,0 +1,184 @@
1
+ import { shade, personSeated, castShadow, hash, personStanding, shell, roomOccupants } from './common.js';
2
+ import { layerBreak } from './layers.js';
3
+
4
+ const CLINIC_DEFAULT = { wall: "#E8F0F2", floor: "#C8D0D4", accent: "#4AB0C0", practice: "dental" };
5
+ const CLINIC_LOOKS = {
6
+ "Dental": { wall: "#E8F0F2", floor: "#C8D0D4", accent: "#4AB0C0", practice: "dental" },
7
+ "Urgent Care": { wall: "#F0ECE4", floor: "#D0C8BC", accent: "#D04A4A", practice: "urgent" },
8
+ "Optometry": { wall: "#E4E8F0", floor: "#C4C8D4", accent: "#5A6AC0", practice: "optometry" },
9
+ "Pharmacy": { wall: "#E8F0E4", floor: "#C8D0C0", accent: "#4AA85A", practice: "pharmacy" },
10
+ "Physio": { wall: "#F0E8EC", floor: "#D0C4C8", accent: "#E08A4A", practice: "physio" },
11
+ };
12
+ /** A stable per-room seed from GEOGRAPHY (floor, x), so the figures survive a
13
+ * save/export/import (which renumbers `u.id`). */
14
+ function figureSeed(u) {
15
+ return (u.floor * 131 + u.x * 17) | 0;
16
+ }
17
+ /** The clinical trim band: the shared anchor. A pale trim rail with a small
18
+ * medical cross, the one shape every practice keeps. Returns the Y below it. */
19
+ function clinicalBand(ctx, x, y, w, accent) {
20
+ const band = 5;
21
+ ctx.fillStyle = shade(accent, 40); // pale trim
22
+ ctx.fillRect(x + 2, y + 2, w - 4, band);
23
+ ctx.fillStyle = accent; // under-rail
24
+ ctx.fillRect(x + 2, y + band + 1, w - 4, 1);
25
+ // A small cross near the left.
26
+ const cx = x + 5;
27
+ const cy = y + 3;
28
+ ctx.fillStyle = accent;
29
+ ctx.fillRect(cx + 1, cy, 1, 3);
30
+ ctx.fillRect(cx, cy + 1, 3, 1);
31
+ return y + band + 2;
32
+ }
33
+ function drawDental(ctx, x, floorY, w, top, look, occ, seed) {
34
+ // A reclined dental chair under an overhead lamp, a tool tray beside it.
35
+ const chX = x + Math.round(w * 0.28);
36
+ ctx.fillStyle = "#B8C4C8"; // chair
37
+ ctx.fillRect(chX, floorY - 6, 12, 4);
38
+ ctx.fillStyle = shade("#B8C4C8", -20);
39
+ ctx.fillRect(chX, floorY - 2, 2, 2);
40
+ if (occ > 0)
41
+ personSeated(ctx, chX + 4, floorY - 4, seed); // reclined patient
42
+ // Overhead lamp on an arm.
43
+ ctx.fillStyle = "#8A9498";
44
+ ctx.fillRect(chX + 4, top + 1, 1, 4);
45
+ ctx.fillStyle = look.accent;
46
+ ctx.fillRect(chX + 2, top + 5, 5, 2);
47
+ // A tool tray on a stand.
48
+ const tX = x + w - 5;
49
+ ctx.fillStyle = "#9AA4A8";
50
+ ctx.fillRect(tX, floorY - 8, 4, 1);
51
+ ctx.fillRect(tX + 1, floorY - 7, 1, 7);
52
+ for (let i = 0; i < 3; i++) {
53
+ ctx.fillStyle = look.accent;
54
+ ctx.fillRect(tX + i, floorY - 9, 1, 1);
55
+ }
56
+ castShadow(ctx, chX, floorY, 12);
57
+ }
58
+ function drawUrgent(ctx, x, floorY, w, top, look, occ, seed) {
59
+ // An exam bed behind a half-drawn curtain, an IV pole, a wall monitor.
60
+ const bX = x + 3;
61
+ ctx.fillStyle = "#DCE0E0"; // bed
62
+ ctx.fillRect(bX, floorY - 5, 13, 3);
63
+ ctx.fillStyle = look.accent; // a blanket stripe
64
+ ctx.fillRect(bX, floorY - 3, 13, 1);
65
+ if (occ > 0)
66
+ personSeated(ctx, bX + 4, floorY - 3, seed); // a patient
67
+ // Curtain rail + curtain on the right half.
68
+ ctx.fillStyle = "#A0A8AC";
69
+ ctx.fillRect(x + Math.round(w * 0.55), top, 1, floorY - top - 1);
70
+ ctx.fillStyle = shade(look.accent, 40);
71
+ ctx.fillRect(x + Math.round(w * 0.55), top, Math.round(w * 0.4), 2);
72
+ // IV pole.
73
+ const iX = bX + 14;
74
+ ctx.fillStyle = "#9AA4A8";
75
+ ctx.fillRect(iX, floorY - 14, 1, 14);
76
+ ctx.fillStyle = "#C8E0EC";
77
+ ctx.fillRect(iX - 1, floorY - 14, 3, 3);
78
+ // Wall monitor with a heartbeat line.
79
+ ctx.fillStyle = "#1A2228";
80
+ ctx.fillRect(x + 3, top + 2, 8, 5);
81
+ ctx.fillStyle = "#4AE07A";
82
+ ctx.fillRect(x + 4, top + 5, 6, 1);
83
+ }
84
+ function drawOptometry(ctx, x, floorY, w, top, look, occ, seed) {
85
+ // A phoropter (the twin-lens device) on a stand, an eye chart, a glasses shelf.
86
+ const pX = x + 4;
87
+ ctx.fillStyle = "#7A8288"; // phoropter body
88
+ ctx.fillRect(pX, floorY - 10, 6, 4);
89
+ ctx.fillStyle = "#2A3238"; // twin lenses
90
+ ctx.fillRect(pX + 1, floorY - 9, 2, 2);
91
+ ctx.fillRect(pX + 3, floorY - 9, 2, 2);
92
+ ctx.fillStyle = "#9AA4A8"; // stand
93
+ ctx.fillRect(pX + 2, floorY - 6, 1, 6);
94
+ if (occ > 0)
95
+ personSeated(ctx, pX + 8, floorY - 4, seed); // patient being tested
96
+ // An eye chart on the back wall (rows of shrinking marks).
97
+ ctx.fillStyle = "#FFFFFF";
98
+ ctx.fillRect(x + w - 8, top + 2, 6, 8);
99
+ for (let r = 0; r < 3; r++) {
100
+ ctx.fillStyle = look.accent;
101
+ const rw = 5 - r * 2;
102
+ ctx.fillRect(x + w - 8 + Math.round((6 - rw) / 2), top + 4 + r * 2, rw, 1);
103
+ }
104
+ }
105
+ function drawPharmacy(ctx, x, floorY, w, top, look, occ, seed) {
106
+ // Back-wall shelves of medicine bottles, a counter, an Rx sign.
107
+ const shelfShift = Math.floor(hash(seed) * 3); // per room, in 0..2
108
+ for (let sy = top + 2, r = 0; sy + 3 < floorY - 6; sy += 4, r++) {
109
+ ctx.fillStyle = "#A0A8A0"; // shelf
110
+ ctx.fillRect(x + 3, sy + 2, w - 6, 1);
111
+ // The bottle shades key on the room's seed and each bottle's row and column
112
+ // on the shelf, so the region compositor paints the same shelves wherever
113
+ // the room's region starts.
114
+ for (let bx = x + 4, c = 0; bx + 1 < x + w - 4; bx += 2, c++) {
115
+ ctx.fillStyle = shade(look.accent, ((c + r + shelfShift) % 3) * 18 - 18); // varied bottles
116
+ ctx.fillRect(bx, sy, 1, 2);
117
+ }
118
+ }
119
+ // The counter.
120
+ ctx.fillStyle = "#B0B8B0";
121
+ ctx.fillRect(x + 3, floorY - 5, w - 6, 5);
122
+ ctx.fillStyle = shade("#B0B8B0", 20);
123
+ ctx.fillRect(x + 3, floorY - 5, w - 6, 1);
124
+ // Rx sign.
125
+ ctx.fillStyle = look.accent;
126
+ ctx.fillRect(x + w - 6, top + 1, 4, 3);
127
+ if (occ > 0)
128
+ personStanding(ctx, x + 5, floorY, seed); // a pharmacist/customer
129
+ }
130
+ function drawPhysio(ctx, x, floorY, w, top, look, occ, seed) {
131
+ // A padded therapy table, a therapy ball, resistance bands on a rack.
132
+ const tX = x + 3;
133
+ ctx.fillStyle = look.accent; // padded table top
134
+ ctx.fillRect(tX, floorY - 5, 12, 2);
135
+ ctx.fillStyle = "#8A8288"; // legs
136
+ ctx.fillRect(tX + 1, floorY - 3, 1, 3);
137
+ ctx.fillRect(tX + 10, floorY - 3, 1, 3);
138
+ if (occ > 0)
139
+ personSeated(ctx, tX + 4, floorY - 3, seed); // a patient on the table
140
+ // A therapy ball.
141
+ const bX = x + w - 6;
142
+ ctx.fillStyle = shade(look.accent, 20);
143
+ ctx.fillRect(bX, floorY - 5, 5, 5);
144
+ ctx.fillStyle = shade(look.accent, -20);
145
+ ctx.fillRect(bX, floorY - 1, 5, 1);
146
+ // Resistance bands hanging on a wall rack.
147
+ ctx.fillStyle = "#8A8288";
148
+ ctx.fillRect(x + 4, top + 2, 6, 1);
149
+ for (let i = 0; i < 3; i++) {
150
+ ctx.fillStyle = ["#D04A4A", "#4AA85A", "#5A6AC0"][i];
151
+ ctx.fillRect(x + 5 + i * 2, top + 3, 1, 4);
152
+ }
153
+ }
154
+ /** The Modern Clinic. Reused for every practice subtype; the look's `practice`
155
+ * discriminant picks the interior so each renders as its own room. */
156
+ function clinic(d, u, x, y, w, h) {
157
+ const { ctx } = d;
158
+ const look = (u.subtype !== undefined && CLINIC_LOOKS[u.subtype]) || CLINIC_DEFAULT;
159
+ const floorY = shell(ctx, x, y, w, h, look.wall, look.floor);
160
+ const top = clinicalBand(ctx, x, y, w, look.accent);
161
+ layerBreak(ctx); // the shell ends; the practice's equipment and patients follow
162
+ const occ = roomOccupants(u);
163
+ const seed = figureSeed(u);
164
+ switch (look.practice) {
165
+ case "dental":
166
+ drawDental(ctx, x, floorY, w, top, look, occ, seed);
167
+ break;
168
+ case "urgent":
169
+ drawUrgent(ctx, x, floorY, w, top, look, occ, seed);
170
+ break;
171
+ case "optometry":
172
+ drawOptometry(ctx, x, floorY, w, top, look, occ, seed);
173
+ break;
174
+ case "pharmacy":
175
+ drawPharmacy(ctx, x, floorY, w, top, look, occ, seed);
176
+ break;
177
+ case "physio":
178
+ drawPhysio(ctx, x, floorY, w, top, look, occ, seed);
179
+ break;
180
+ }
181
+ }
182
+
183
+ export { CLINIC_DEFAULT, CLINIC_LOOKS, clinic };
184
+ //# sourceMappingURL=clinic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clinic.js","sources":["../../../src/render/pixelSprites/clinic.ts"],"sourcesContent":["import type { UnitView } from \"../../simport/view\";\nimport { castShadow, hash, personSeated, personStanding, roomOccupants, shade, shell, type RoomCtx } from \"./common\";\nimport { layerBreak } from \"./layers\";\n\n/**\n * Modern Clinic art: a small health clinic in one of five practices (dental,\n * urgent care, optometry, pharmacy, physio). Every practice keeps one anchor\n * shape, the clinical trim band with a small cross along the top, and its\n * subtype furnishes its own room, so a Dental and a Pharmacy read as clearly\n * different. Modern-only (never exported to the 1994 TDT), so nothing here\n * carries an ordinal.\n *\n * Drawing reads only bake-signature inputs (subtype via the look, the real\n * occupant count, `lit`, and a stable geography seed), so a placed room stays\n * cacheable, an empty clinic reads empty, and a TDT id renumber never reshuffles\n * the figures.\n */\n\nexport interface ClinicLook {\n wall: string;\n floor: string;\n /** The trim / cross accent color; the equipment picks its own colors, but the\n * shared clinical band reads this. */\n accent: string;\n /** Which practice fills the clinic. 1:1 with the subtype, so the look table\n * stays trivially pairwise-distinct. */\n practice: \"dental\" | \"urgent\" | \"optometry\" | \"pharmacy\" | \"physio\";\n}\n\nexport const CLINIC_DEFAULT: ClinicLook = { wall: \"#E8F0F2\", floor: \"#C8D0D4\", accent: \"#4AB0C0\", practice: \"dental\" };\nexport const CLINIC_LOOKS: Record<string, ClinicLook> = {\n \"Dental\": { wall: \"#E8F0F2\", floor: \"#C8D0D4\", accent: \"#4AB0C0\", practice: \"dental\" },\n \"Urgent Care\": { wall: \"#F0ECE4\", floor: \"#D0C8BC\", accent: \"#D04A4A\", practice: \"urgent\" },\n \"Optometry\": { wall: \"#E4E8F0\", floor: \"#C4C8D4\", accent: \"#5A6AC0\", practice: \"optometry\" },\n \"Pharmacy\": { wall: \"#E8F0E4\", floor: \"#C8D0C0\", accent: \"#4AA85A\", practice: \"pharmacy\" },\n \"Physio\": { wall: \"#F0E8EC\", floor: \"#D0C4C8\", accent: \"#E08A4A\", practice: \"physio\" },\n};\n\n/** A stable per-room seed from GEOGRAPHY (floor, x), so the figures survive a\n * save/export/import (which renumbers `u.id`). */\nfunction figureSeed(u: Pick<UnitView, \"floor\" | \"x\">): number {\n return (u.floor * 131 + u.x * 17) | 0;\n}\n\n/** The clinical trim band: the shared anchor. A pale trim rail with a small\n * medical cross, the one shape every practice keeps. Returns the Y below it. */\nfunction clinicalBand(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, accent: string): number {\n const band = 5;\n ctx.fillStyle = shade(accent, 40); // pale trim\n ctx.fillRect(x + 2, y + 2, w - 4, band);\n ctx.fillStyle = accent; // under-rail\n ctx.fillRect(x + 2, y + band + 1, w - 4, 1);\n // A small cross near the left.\n const cx = x + 5;\n const cy = y + 3;\n ctx.fillStyle = accent;\n ctx.fillRect(cx + 1, cy, 1, 3);\n ctx.fillRect(cx, cy + 1, 3, 1);\n return y + band + 2;\n}\n\nfunction drawDental(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, look: ClinicLook, occ: number, seed: number): void {\n // A reclined dental chair under an overhead lamp, a tool tray beside it.\n const chX = x + Math.round(w * 0.28);\n ctx.fillStyle = \"#B8C4C8\"; // chair\n ctx.fillRect(chX, floorY - 6, 12, 4);\n ctx.fillStyle = shade(\"#B8C4C8\", -20);\n ctx.fillRect(chX, floorY - 2, 2, 2);\n if (occ > 0) personSeated(ctx, chX + 4, floorY - 4, seed); // reclined patient\n // Overhead lamp on an arm.\n ctx.fillStyle = \"#8A9498\";\n ctx.fillRect(chX + 4, top + 1, 1, 4);\n ctx.fillStyle = look.accent;\n ctx.fillRect(chX + 2, top + 5, 5, 2);\n // A tool tray on a stand.\n const tX = x + w - 5;\n ctx.fillStyle = \"#9AA4A8\";\n ctx.fillRect(tX, floorY - 8, 4, 1);\n ctx.fillRect(tX + 1, floorY - 7, 1, 7);\n for (let i = 0; i < 3; i++) {\n ctx.fillStyle = look.accent;\n ctx.fillRect(tX + i, floorY - 9, 1, 1);\n }\n castShadow(ctx, chX, floorY, 12);\n}\n\nfunction drawUrgent(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, look: ClinicLook, occ: number, seed: number): void {\n // An exam bed behind a half-drawn curtain, an IV pole, a wall monitor.\n const bX = x + 3;\n ctx.fillStyle = \"#DCE0E0\"; // bed\n ctx.fillRect(bX, floorY - 5, 13, 3);\n ctx.fillStyle = look.accent; // a blanket stripe\n ctx.fillRect(bX, floorY - 3, 13, 1);\n if (occ > 0) personSeated(ctx, bX + 4, floorY - 3, seed); // a patient\n // Curtain rail + curtain on the right half.\n ctx.fillStyle = \"#A0A8AC\";\n ctx.fillRect(x + Math.round(w * 0.55), top, 1, floorY - top - 1);\n ctx.fillStyle = shade(look.accent, 40);\n ctx.fillRect(x + Math.round(w * 0.55), top, Math.round(w * 0.4), 2);\n // IV pole.\n const iX = bX + 14;\n ctx.fillStyle = \"#9AA4A8\";\n ctx.fillRect(iX, floorY - 14, 1, 14);\n ctx.fillStyle = \"#C8E0EC\";\n ctx.fillRect(iX - 1, floorY - 14, 3, 3);\n // Wall monitor with a heartbeat line.\n ctx.fillStyle = \"#1A2228\";\n ctx.fillRect(x + 3, top + 2, 8, 5);\n ctx.fillStyle = \"#4AE07A\";\n ctx.fillRect(x + 4, top + 5, 6, 1);\n}\n\nfunction drawOptometry(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, look: ClinicLook, occ: number, seed: number): void {\n // A phoropter (the twin-lens device) on a stand, an eye chart, a glasses shelf.\n const pX = x + 4;\n ctx.fillStyle = \"#7A8288\"; // phoropter body\n ctx.fillRect(pX, floorY - 10, 6, 4);\n ctx.fillStyle = \"#2A3238\"; // twin lenses\n ctx.fillRect(pX + 1, floorY - 9, 2, 2);\n ctx.fillRect(pX + 3, floorY - 9, 2, 2);\n ctx.fillStyle = \"#9AA4A8\"; // stand\n ctx.fillRect(pX + 2, floorY - 6, 1, 6);\n if (occ > 0) personSeated(ctx, pX + 8, floorY - 4, seed); // patient being tested\n // An eye chart on the back wall (rows of shrinking marks).\n ctx.fillStyle = \"#FFFFFF\";\n ctx.fillRect(x + w - 8, top + 2, 6, 8);\n for (let r = 0; r < 3; r++) {\n ctx.fillStyle = look.accent;\n const rw = 5 - r * 2;\n ctx.fillRect(x + w - 8 + Math.round((6 - rw) / 2), top + 4 + r * 2, rw, 1);\n }\n}\n\nfunction drawPharmacy(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, look: ClinicLook, occ: number, seed: number): void {\n // Back-wall shelves of medicine bottles, a counter, an Rx sign.\n const shelfShift = Math.floor(hash(seed) * 3); // per room, in 0..2\n for (let sy = top + 2, r = 0; sy + 3 < floorY - 6; sy += 4, r++) {\n ctx.fillStyle = \"#A0A8A0\"; // shelf\n ctx.fillRect(x + 3, sy + 2, w - 6, 1);\n // The bottle shades key on the room's seed and each bottle's row and column\n // on the shelf, so the region compositor paints the same shelves wherever\n // the room's region starts.\n for (let bx = x + 4, c = 0; bx + 1 < x + w - 4; bx += 2, c++) {\n ctx.fillStyle = shade(look.accent, ((c + r + shelfShift) % 3) * 18 - 18); // varied bottles\n ctx.fillRect(bx, sy, 1, 2);\n }\n }\n // The counter.\n ctx.fillStyle = \"#B0B8B0\";\n ctx.fillRect(x + 3, floorY - 5, w - 6, 5);\n ctx.fillStyle = shade(\"#B0B8B0\", 20);\n ctx.fillRect(x + 3, floorY - 5, w - 6, 1);\n // Rx sign.\n ctx.fillStyle = look.accent;\n ctx.fillRect(x + w - 6, top + 1, 4, 3);\n if (occ > 0) personStanding(ctx, x + 5, floorY, seed); // a pharmacist/customer\n}\n\nfunction drawPhysio(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, look: ClinicLook, occ: number, seed: number): void {\n // A padded therapy table, a therapy ball, resistance bands on a rack.\n const tX = x + 3;\n ctx.fillStyle = look.accent; // padded table top\n ctx.fillRect(tX, floorY - 5, 12, 2);\n ctx.fillStyle = \"#8A8288\"; // legs\n ctx.fillRect(tX + 1, floorY - 3, 1, 3);\n ctx.fillRect(tX + 10, floorY - 3, 1, 3);\n if (occ > 0) personSeated(ctx, tX + 4, floorY - 3, seed); // a patient on the table\n // A therapy ball.\n const bX = x + w - 6;\n ctx.fillStyle = shade(look.accent, 20);\n ctx.fillRect(bX, floorY - 5, 5, 5);\n ctx.fillStyle = shade(look.accent, -20);\n ctx.fillRect(bX, floorY - 1, 5, 1);\n // Resistance bands hanging on a wall rack.\n ctx.fillStyle = \"#8A8288\";\n ctx.fillRect(x + 4, top + 2, 6, 1);\n for (let i = 0; i < 3; i++) {\n ctx.fillStyle = [\"#D04A4A\", \"#4AA85A\", \"#5A6AC0\"][i];\n ctx.fillRect(x + 5 + i * 2, top + 3, 1, 4);\n }\n}\n\n/** The Modern Clinic. Reused for every practice subtype; the look's `practice`\n * discriminant picks the interior so each renders as its own room. */\nexport function clinic(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void {\n const { ctx } = d;\n const look = (u.subtype !== undefined && CLINIC_LOOKS[u.subtype]) || CLINIC_DEFAULT;\n const floorY = shell(ctx, x, y, w, h, look.wall, look.floor);\n const top = clinicalBand(ctx, x, y, w, look.accent);\n layerBreak(ctx); // the shell ends; the practice's equipment and patients follow\n const occ = roomOccupants(u);\n const seed = figureSeed(u);\n switch (look.practice) {\n case \"dental\":\n drawDental(ctx, x, floorY, w, top, look, occ, seed);\n break;\n case \"urgent\":\n drawUrgent(ctx, x, floorY, w, top, look, occ, seed);\n break;\n case \"optometry\":\n drawOptometry(ctx, x, floorY, w, top, look, occ, seed);\n break;\n case \"pharmacy\":\n drawPharmacy(ctx, x, floorY, w, top, look, occ, seed);\n break;\n case \"physio\":\n drawPhysio(ctx, x, floorY, w, top, look, occ, seed);\n break;\n }\n}\n"],"names":[],"mappings":";;;MA6Ba,cAAc,GAAe,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ;AAC7G,MAAM,YAAY,GAA+B;AACtD,IAAA,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE;AACtF,IAAA,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAC3F,IAAA,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE;AAC5F,IAAA,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,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