@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 @@
1
+ {"version":3,"file":"fitness.js","sources":["../../../src/render/pixelSprites/fitness.ts"],"sourcesContent":["import type { UnitView } from \"../../simport/view\";\nimport { busyStations, castShadow, hash, personSeated, personStanding, roomOccupants, shade, shell, type RoomCtx } from \"./common\";\nimport { artRow, authoredWidth } from \"./artScale\";\nimport { layerBreak } from \"./layers\";\n\n/**\n * Modern Fitness Club art: a members' gym in one of five formats (a weight\n * floor, a yoga studio, a spin studio, a boxing gym, a climbing wall). Every\n * format keeps one anchor shape, the wall-mirror strip along the top, and its\n * subtype furnishes its own equipment, so a Weight Floor and a Climbing Wall\n * read as clearly different rooms. Modern-only (never exported to the 1994 TDT),\n * so nothing here 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 club reads empty, and a TDT id renumber never reshuffles\n * the figures.\n */\n\nexport interface FitnessLook {\n wall: string;\n floor: string;\n /** The mirror-strip / accent color; the equipment picks its own colors, but\n * the shared anchor reads this. */\n accent: string;\n /** Which format fills the club. 1:1 with the subtype, so the look table stays\n * trivially pairwise-distinct. */\n format: \"weights\" | \"yoga\" | \"spin\" | \"boxing\" | \"climb\";\n}\n\nexport const FITNESS_DEFAULT: FitnessLook = { wall: \"#3A3E48\", floor: \"#2E323A\", accent: \"#C86A3A\", format: \"weights\" };\nexport const FITNESS_LOOKS: Record<string, FitnessLook> = {\n \"Weight Floor\": { wall: \"#3A3E48\", floor: \"#2E323A\", accent: \"#C86A3A\", format: \"weights\" },\n \"Yoga Studio\": { wall: \"#E8E0EC\", floor: \"#C8B8A0\", accent: \"#8AB86A\", format: \"yoga\" },\n \"Spin Studio\": { wall: \"#201828\", floor: \"#2A2030\", accent: \"#E0407A\", format: \"spin\" },\n \"Boxing Gym\": { wall: \"#4A2A2A\", floor: \"#3A2820\", accent: \"#D03A3A\", format: \"boxing\" },\n \"Climbing Wall\": { wall: \"#2A3A44\", floor: \"#24303A\", accent: \"#E0C040\", format: \"climb\" },\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 mirror strip: the shared anchor. A bright glass band with a thin accent\n * frame along the upper wall, the one shape every gym keeps. Returns the Y just\n * below it. */\nfunction mirrorStrip(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, wall: string, accent: string, lit: boolean): number {\n const band = 6;\n ctx.fillStyle = shade(wall, lit ? 30 : 14); // glass\n ctx.fillRect(x + 2, y + 2, w - 4, band);\n ctx.fillStyle = shade(wall, 46); // bright highlight streak\n ctx.fillRect(x + 3, y + 3, Math.max(1, Math.round((w - 6) * 0.4)), 1);\n ctx.fillStyle = accent; // accent frame under the mirror\n ctx.fillRect(x + 2, y + band + 2, w - 4, 1);\n return y + band + 3;\n}\n\nfunction drawWeights(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, look: FitnessLook, occ: number, seed: number): void {\n // A dumbbell rack along the back and a flat bench with a lifter.\n ctx.fillStyle = shade(look.wall, 24); // rack frame\n ctx.fillRect(x + 3, floorY - 12, w - 6, 2);\n for (let dx = x + 5; dx + 4 < x + w - 4; dx += 6) {\n ctx.fillStyle = look.accent; // dumbbell ends\n ctx.fillRect(dx, floorY - 11, 2, 4);\n ctx.fillRect(dx + 3, floorY - 11, 2, 4);\n ctx.fillStyle = shade(look.wall, 40); // bar\n ctx.fillRect(dx + 2, floorY - 10, 1, 2);\n }\n // A flat bench.\n const bX = x + Math.round(w * 0.3);\n ctx.fillStyle = \"#2A2A30\";\n ctx.fillRect(bX, floorY - 5, 14, 3);\n ctx.fillRect(bX + 1, floorY - 2, 2, 2);\n ctx.fillRect(bX + 11, floorY - 2, 2, 2);\n if (occ > 0) personSeated(ctx, bX + 4, floorY - 3, seed); // a lifter on the bench\n castShadow(ctx, bX, floorY, 14);\n}\n\nfunction drawYoga(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, aw: number, look: FitnessLook, occ: number, seed: number): void {\n // A calm studio: mats laid on the floor, standing figures mid-pose, a plant.\n // Mat anchors: the 12px pitch is authored art, counted against the authored\n // run and fitted into the screen run by `artRow`. Read off the room's pixel width\n // the studio lost two mats when the tile narrowed, and two members standing on\n // them went undrawn. A class fills its mats from the front by design, which is\n // why this row counts in order rather than scattering like the others: every\n // mat is drawn either way, so an empty mat still reads as an empty mat.\n // `occ` is already whole (`roomOccupants`), rounded the way every row reads it.\n const members = Math.max(0, occ);\n artRow(aw - 5 - 14, x + 5, x + w - 14, 12, 1, 9).forEach((mx, i) => {\n ctx.fillStyle = i % 2 === 0 ? look.accent : shade(look.accent, 30); // rolled/laid mats\n ctx.fillRect(mx, floorY - 2, 9, 2);\n if (i < members) personStanding(ctx, mx + 2, floorY - 1, seed + i * 7);\n });\n // A potted plant in the corner.\n const pX = x + w - 6;\n ctx.fillStyle = \"#7A5A3A\";\n ctx.fillRect(pX, floorY - 4, 4, 4);\n ctx.fillStyle = \"#4A9A56\";\n ctx.fillRect(pX, floorY - 9, 4, 5);\n}\n\nfunction drawSpin(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, aw: number, look: FitnessLook, occ: number, seed: number): void {\n // A dim room of stationary bikes lit by an accent glow, riders on some.\n ctx.fillStyle = shade(look.accent, -30); // floor light wash\n ctx.fillRect(x + 2, floorY - 1, w - 4, 1);\n // Bike anchors: the 8px pitch is authored art, counted against the authored\n // run and fitted into the screen run by `artRow`, so a narrower tile tightens\n // the row instead of wheeling a bike out of the studio.\n const bikes = artRow(aw - 5 - 9, x + 5, x + w - 9, 8, 1, 6);\n // Which bikes have riders: the hash scatters them, the occupancy says how\n // many. Rolling the hash per bike left riders who were in the class undrawn,\n // so a full studio could show a handful of people on twenty bikes.\n const riding = busyStations(bikes.length, occ, seed * 13);\n bikes.forEach((bx, i) => {\n ctx.fillStyle = \"#14141A\"; // bike frame\n ctx.fillRect(bx, floorY - 9, 5, 9);\n ctx.fillStyle = look.accent; // flywheel accent\n ctx.fillRect(bx + 1, floorY - 7, 3, 3);\n ctx.fillStyle = \"#2A2A32\"; // handlebar\n ctx.fillRect(bx, floorY - 11, 3, 1);\n if (riding.has(i)) personSeated(ctx, bx, floorY - 6, seed + i * 5);\n });\n}\n\nfunction drawBoxing(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, look: FitnessLook, occ: number, seed: number): void {\n // A heavy bag hanging from the ceiling, a ring corner post with ropes, a boxer.\n const bagX = x + Math.round(w * 0.34);\n ctx.fillStyle = \"#4A4A52\"; // chain\n ctx.fillRect(bagX + 2, floorY - 20, 1, 4);\n ctx.fillStyle = shade(look.accent, -10); // the bag\n ctx.fillRect(bagX, floorY - 16, 5, 12);\n ctx.fillStyle = shade(look.accent, 26);\n ctx.fillRect(bagX, floorY - 16, 5, 1);\n if (occ > 0) personStanding(ctx, bagX - 6, floorY, seed); // a boxer working the bag\n // A ring corner: a post and two rope lines.\n const rX = x + w - 5;\n ctx.fillStyle = \"#C8C4B8\"; // post\n ctx.fillRect(rX, floorY - 14, 2, 14);\n ctx.fillStyle = look.accent; // ropes\n ctx.fillRect(x + Math.round(w * 0.6), floorY - 12, rX - (x + Math.round(w * 0.6)), 1);\n ctx.fillRect(x + Math.round(w * 0.6), floorY - 8, rX - (x + Math.round(w * 0.6)), 1);\n castShadow(ctx, bagX, floorY, 5);\n}\n\nfunction drawClimb(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, top: number, look: FitnessLook, occ: number, seed: number): void {\n // A tall bouldering wall studded with colorful holds, a climber part-way up.\n const wallX = x + 4;\n const wallW = Math.round(w * 0.5);\n ctx.fillStyle = shade(look.wall, 18); // the wall panel\n ctx.fillRect(wallX, top, wallW, floorY - top);\n const holdHues = [\"#E0407A\", \"#40C0E0\", \"#E0C040\", \"#60D060\"];\n // The holds key on the room's seed and each hold's row and column on the\n // wall, so the region compositor paints the same wall wherever the room's\n // region starts. The seed goes through `hash` first:\n // taken raw modulo the palette, walls on one floor four columns apart would\n // always match, and a basement room's negative seed would index out of range.\n const holdShift = Math.floor(hash(seed) * holdHues.length);\n for (let hy = top + 3, row = 0; hy < floorY - 3; hy += 5, row++) {\n for (let hx = wallX + 3, col = 0; hx + 2 < wallX + wallW - 1; hx += 7, col++) {\n ctx.fillStyle = holdHues[(row + col + holdShift) % holdHues.length];\n ctx.fillRect(hx + (row % 2), hy, 2, 2);\n }\n }\n if (occ > 0) personStanding(ctx, wallX + Math.round(wallW * 0.5), floorY - Math.round((floorY - top) * 0.35), seed);\n // A crash mat at the base.\n ctx.fillStyle = shade(look.accent, -20);\n ctx.fillRect(wallX - 1, floorY - 2, wallW + 2, 2);\n}\n\n/** The Modern Fitness Club. Reused for every format subtype; the look's `format`\n * discriminant picks the interior so each format renders as its own room. */\nexport function fitnessClub(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void {\n const { ctx } = d;\n const look = (u.subtype !== undefined && FITNESS_LOOKS[u.subtype]) || FITNESS_DEFAULT;\n const floorY = shell(ctx, x, y, w, h, look.wall, look.floor);\n const top = mirrorStrip(ctx, x, y, w, look.wall, look.accent, d.lit);\n layerBreak(ctx); // the shell ends; the equipment and members follow\n const occ = roomOccupants(u);\n const seed = figureSeed(u);\n // The room's authored width comes from its TILES, not its pixels, so a row's\n // capacity is the same whatever scale the caller draws at.\n const aw = authoredWidth(u.width);\n switch (look.format) {\n case \"weights\":\n drawWeights(ctx, x, floorY, w, look, occ, seed);\n break;\n case \"yoga\":\n drawYoga(ctx, x, floorY, w, aw, look, occ, seed);\n break;\n case \"spin\":\n drawSpin(ctx, x, floorY, w, aw, look, occ, seed);\n break;\n case \"boxing\":\n drawBoxing(ctx, x, floorY, w, look, occ, seed);\n break;\n case \"climb\":\n drawClimb(ctx, x, floorY, w, top, look, occ, seed);\n break;\n }\n}\n"],"names":[],"mappings":";;;;MA8Ba,eAAe,GAAgB,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS;AAC9G,MAAM,aAAa,GAAgC;AACxD,IAAA,cAAc,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;AAC3F,IAAA,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE;AACvF,IAAA,aAAa,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAA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MAAM;AACT,YAAA,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC;YAChD;AACF,QAAA,KAAK,QAAQ;AACX,YAAA,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC;YAC9C;AACF,QAAA,KAAK,OAAO;AACV,YAAA,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC;YAClD;;AAEN;;"}
@@ -0,0 +1,27 @@
1
+ import type { UnitView } from "../../simport/view";
2
+ import { type RoomCtx } from "./common";
3
+ import { FASTFOOD_LOOKS, FOODHALL_LOOKS, RESTAURANT_LOOKS } from "./food.looks";
4
+ /**
5
+ * Food and entertainment room art: fast food, restaurant, and cinema. Each KIND
6
+ * keeps one anchor shape (the fast-food sign band, the restaurant's dark dining
7
+ * room), and the subtype furnishes the rest, so each of the five fast foods and
8
+ * five restaurants reads as its own room. The look tables live in `food.looks`
9
+ * and the interior draw bodies in `food.interiors`; these thin dispatchers pick
10
+ * the look, count the real occupants, and hand off. An undefined or unknown
11
+ * subtype falls back to the `_DEFAULT` look, no throw.
12
+ *
13
+ * Occupancy is honest: figures fill in seed order up to `roomOccupants(u)`
14
+ * (driven by `occupants` / `outForMeal`), the look by `subtype`, and each
15
+ * figure's variety by a stable geography seed (`floor`, `x`). All are fixed for
16
+ * a placed unit, so the room stays cacheable, an empty venue reads empty, a
17
+ * full one full, and a TDT id renumber does not reshuffle the crowd.
18
+ */
19
+ export { FASTFOOD_LOOKS, RESTAURANT_LOOKS, FOODHALL_LOOKS };
20
+ export type { FastFoodLook, RestaurantLook } from "./food.looks";
21
+ export declare function fastFood(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
22
+ export declare function restaurant(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
23
+ /** The Modern Food Hall: rendered with the restaurant dining-room drawer, but
24
+ * each stall subtype (Ramen Bar, Taco Stand, ...) supplies its own look so the
25
+ * stalls read as visibly different counters instead of identical restaurants. */
26
+ export declare function foodHall(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
27
+ export declare function cinema(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
@@ -0,0 +1,38 @@
1
+ import type { FastFoodLook, RestaurantLook } from "./food.looks";
2
+ /**
3
+ * Faithful pixel-art interiors for the food and entertainment rooms, ported
4
+ * one rectangle at a time from the committed reference draw code
5
+ * (`_bmad-output/implementation-artifacts/pixelart-figma/build-scripts/page-03-food-entertainment.build.js`)
6
+ * via the `F(A, x, y, w, h, color, opacity)` to `ctx.fillRect` mapping. Each
7
+ * fast-food subtype and each restaurant subtype furnishes its own DISTINCT
8
+ * room under the shared kind anchor (the fast-food sign band, the restaurant's
9
+ * textured dining room). Split out of `food.ts` for the 500-line ceiling; the
10
+ * thin per-kind dispatchers stay in `food.ts`.
11
+ *
12
+ * Occupancy is honest: seated diners, behind-counter staff, and cinema audience
13
+ * heads fill in seed order up to the room's occupant count (never a hash of the
14
+ * unit id), so an empty venue reads empty and a full one reads full, and a TDT
15
+ * import (which renumbers ids) does not reshuffle the crowd. Every figure is a
16
+ * finalized `person()`-family build: food occupants are the seated 15px build
17
+ * (the reference `person()` is legless), which is why the sushi and soba chefs
18
+ * behind their counters are seated too, per the finalized geometry table.
19
+ *
20
+ * Integer coordinates only (`Math.round` before every `fillRect`) and no
21
+ * reserved state color decorates (stress red, vacancy grays, notice amber,
22
+ * dirty tray, ready lamp, closed sign). The one animation on this page is the
23
+ * cinema marquee and screen; every other room is static.
24
+ */
25
+ export declare function drawFastFood(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, look: FastFoodLook, n: number, geoSeed: number): void;
26
+ export declare function drawRestaurant(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, look: RestaurantLook, lit: boolean, n: number, geoSeed: number): void;
27
+ /** Frames the animated screen cycles through (the accepted per-frame exception,
28
+ * shared with `food.ts`). */
29
+ export declare const CINEMA_FRAMES: readonly ["#9FC0FF", "#FFD9A0", "#C0FFD0", "#FFB0C0", "#D0C0FF"];
30
+ /**
31
+ * The two-floor auditorium: a maroon shell, an animated marquee, a
32
+ * curtain-framed animated screen with a projector beam, a balcony rail, raked
33
+ * seat rows with an occupancy-driven audience, aisle lights, and green EXIT
34
+ * signs on BOTH floors. The marquee and screen are the one accepted `d.anim`
35
+ * read; every other element is static. `geoAud` (geoVariant axis 4) varies the
36
+ * audience seating; `geoMar` (geoVariant axis 5) seeds the marquee color phase.
37
+ */
38
+ export declare function drawCinema(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, anim: number, n: number, geoAud: number, geoMar: number): void;
@@ -0,0 +1,516 @@
1
+ import { shade } from './common.js';
2
+ import { mkFill, mkSeat, wtex, pfloor, signBand, pendant, box, glow, boba, twall, wainscot, artF, sconce, exitSign } from './food.kit.js';
3
+ import { layerBreak, layerEnd } from './layers.js';
4
+
5
+ /**
6
+ * Faithful pixel-art interiors for the food and entertainment rooms, ported
7
+ * one rectangle at a time from the committed reference draw code
8
+ * (`_bmad-output/implementation-artifacts/pixelart-figma/build-scripts/page-03-food-entertainment.build.js`)
9
+ * via the `F(A, x, y, w, h, color, opacity)` to `ctx.fillRect` mapping. Each
10
+ * fast-food subtype and each restaurant subtype furnishes its own DISTINCT
11
+ * room under the shared kind anchor (the fast-food sign band, the restaurant's
12
+ * textured dining room). Split out of `food.ts` for the 500-line ceiling; the
13
+ * thin per-kind dispatchers stay in `food.ts`.
14
+ *
15
+ * Occupancy is honest: seated diners, behind-counter staff, and cinema audience
16
+ * heads fill in seed order up to the room's occupant count (never a hash of the
17
+ * unit id), so an empty venue reads empty and a full one reads full, and a TDT
18
+ * import (which renumbers ids) does not reshuffle the crowd. Every figure is a
19
+ * finalized `person()`-family build: food occupants are the seated 15px build
20
+ * (the reference `person()` is legless), which is why the sushi and soba chefs
21
+ * behind their counters are seated too, per the finalized geometry table.
22
+ *
23
+ * Integer coordinates only (`Math.round` before every `fillRect`) and no
24
+ * reserved state color decorates (stress red, vacancy grays, notice amber,
25
+ * dirty tray, ready lamp, closed sign). The one animation on this page is the
26
+ * cinema marquee and screen; every other room is static.
27
+ */
28
+ // ---- Fast food --------------------------------------------------------------
29
+ function drawFastFood(ctx, x, y, w, h, look, n, geoSeed) {
30
+ const f = mkFill(ctx, x, y);
31
+ const fy = h - 6;
32
+ const seat = mkSeat(ctx, x, y, geoSeed, n);
33
+ switch (look.interior) {
34
+ case "counterBar":
35
+ soba(f, w, h, fy, look, seat);
36
+ break;
37
+ case "teahouse":
38
+ teahouse(f, w, h, fy, look, seat);
39
+ break;
40
+ case "parlor":
41
+ parlor(f, w, h, fy, look, seat);
42
+ break;
43
+ case "cafe":
44
+ cafe(f, w, h, fy, look, seat);
45
+ break;
46
+ default:
47
+ burger(f, w, h, fy, look, seat);
48
+ }
49
+ }
50
+ function burger(f, w, h, fy, look, seat) {
51
+ wtex(f, 0, 7, w, fy - 7, look.wall, "tile");
52
+ pfloor(f, 0, fy, w, h - fy, look.floor, look.floorStyle === "checker");
53
+ signBand(f, w, look.band, look.stripe);
54
+ pendant(f, Math.round(w * 0.24), look.band);
55
+ // Menu board (ketchup-red patty, non-reserved).
56
+ box(f, 4, 10, 30, 12, "#22262E");
57
+ f(7, 12, 10, 3, "#E0452C");
58
+ f(7, 15, 10, 1, "#E8C14A");
59
+ f(19, 12, 12, 1, "#F8E2B4");
60
+ f(19, 15, 10, 1, "#DCE8C0");
61
+ f(19, 18, 8, 1, "#F4C0C0");
62
+ glow(f, 20, 16, "#F8E2B4");
63
+ layerBreak(f.ctx); // the shell ends; the counter, tables and people follow
64
+ // Service counter with grill, soda machine, and the cook (seated occupant).
65
+ const cw = Math.round(w * 0.3);
66
+ box(f, 4, fy - 10, cw, 10, "#C87A2E");
67
+ f(4, fy - 10, cw, 1, "#E09A4E");
68
+ f(cw - 6, fy - 13, 4, 3, "#2A2E38");
69
+ seat(10, fy - 10);
70
+ f(16, fy - 16, 10, 4, "#3A3E44");
71
+ f(18, fy - 17, 3, 1, "#8C3A32");
72
+ f(22, fy - 17, 3, 1, "#8C3A32");
73
+ glow(f, 20, fy - 15, "#E8862A");
74
+ f(28, fy - 16, 5, 6, "#8A8A92");
75
+ f(29, fy - 15, 3, 2, "#5db4e8");
76
+ // Round pedestal two-tops with trays and seated couples.
77
+ for (let tx = cw + 18; tx + 16 < w; tx += 32) {
78
+ f(tx - 2, fy - 1, 16, 1, "#000000", 0.16);
79
+ f(tx, fy - 5, 12, 3, "#E8E4DA");
80
+ f(tx, fy - 5, 12, 1, "#FFFFFF");
81
+ f(tx + 5, fy - 2, 2, 2, "#B0A99A");
82
+ f(tx + 2, fy - 7, 2, 2, "#E0452C");
83
+ f(tx + 7, fy - 7, 2, 2, "#E8C14A");
84
+ seat(tx - 5, fy);
85
+ seat(tx + 12, fy);
86
+ }
87
+ }
88
+ function soba(f, w, h, fy, look, seat) {
89
+ wtex(f, 0, 7, w, fy - 7, look.wall, "plank");
90
+ pfloor(f, 0, fy, w, h - fy, look.floor);
91
+ signBand(f, w, look.band, look.stripe);
92
+ // Full-width indigo noren fringe under the sign.
93
+ for (let nx = 2; nx < w - 2; nx += 7) {
94
+ f(nx, 7, 6, 5, "#2E4A7A");
95
+ f(nx, 7, 6, 1, "#3E5A8C");
96
+ }
97
+ f(0, 12, w, 1, "#1E3560");
98
+ // Back shelf with stacked bowls.
99
+ f(6, 15, w * 0.5, 2, "#8A6E48");
100
+ for (let bx = 10; bx < w * 0.5; bx += 8)
101
+ f(bx, 13, 4, 2, "#F4F0E4");
102
+ layerBreak(f.ctx); // the shell ends; the pot, counter, stools and people follow
103
+ // Broth pot with steam, and the chef behind it (seated occupant).
104
+ const px = Math.round(w * 0.6);
105
+ f(px, 13, 10, 6, "#8A8A92");
106
+ f(px + 2, 10, 2, 3, "#F4F0E4", 0.6);
107
+ f(px + 6, 9, 2, 4, "#F4F0E4", 0.5);
108
+ seat(Math.round(w * 0.78), fy - 13);
109
+ // Noodle counter with steaming bowls.
110
+ const cy2 = fy - 8;
111
+ box(f, 4, cy2, w - 8, 4, "#8C6E48");
112
+ f(4, cy2, w - 8, 1, "#A8845C");
113
+ for (let bx = 12; bx < w - 8; bx += 16) {
114
+ f(bx, cy2 - 2, 4, 2, "#F4F0E4");
115
+ f(bx, cy2 - 3, 4, 1, "#FFFFFF", 0.5);
116
+ }
117
+ // Stools with seated diners along the counter.
118
+ for (let sx = 10; sx + 6 < w - 6; sx += 16) {
119
+ f(sx + 1, fy - 3, 3, 3, "#5A4632");
120
+ seat(sx, fy - 3);
121
+ }
122
+ }
123
+ function teahouse(f, w, h, fy, look, seat) {
124
+ const railY = 24;
125
+ wtex(f, 0, 7, w, railY - 7, look.wall, "flat");
126
+ f(0, railY, w, fy - railY, "#3E7D5A");
127
+ f(0, railY - 1, w, 1, "#2E5E42");
128
+ f(0, railY, w, 1, "#4E9A6E"); // jade wainscot
129
+ pfloor(f, 0, fy, w, h - fy, look.floor);
130
+ signBand(f, w, look.band, look.stripe);
131
+ // Hanging lantern.
132
+ f(14, 7, 1, 3, "#6a5040");
133
+ f(11, 10, 7, 5, "#E0554A");
134
+ f(11, 12, 7, 1, "#E8C14A");
135
+ glow(f, 14, 12, "#E85D4A");
136
+ // Drinks menu and a potted plant.
137
+ box(f, 24, 9, 34, 12, "#204030");
138
+ for (let r = 0; r < 3; r++)
139
+ f(27, 11 + r * 3, 20, 1, ["#F4F0E4", "#E8C14A", "#DCE8C0"][r]);
140
+ f(50, 11, 5, 7, "#C8A0D0");
141
+ f(51, 10, 3, 1, "#3A2A24");
142
+ glow(f, 52, 14, "#E8C0E8");
143
+ layerBreak(f.ctx); // the shell ends; the counter, stools, plant and people follow
144
+ // Tea and boba counter: stainless tea urn and colored boba dispensers.
145
+ const cw = Math.round(w * 0.36);
146
+ box(f, 4, fy - 11, cw, 11, "#8A6E48");
147
+ f(4, fy - 11, cw, 1, "#A8845C");
148
+ f(8, fy - 19, 7, 8, "#B8BCC0");
149
+ f(9, fy - 12, 5, 1, "#8A8E92");
150
+ f(11, fy - 11, 3, 2, "#6A6E72");
151
+ f(8, fy - 19, 7, 2, "#D8DCE0");
152
+ [18, 24, 30].forEach((dx, i) => { f(dx, fy - 17, 4, 6, ["#C8A0D0", "#E8C060", "#A8D0B0"][i]); f(dx, fy - 17, 4, 1, "#F4F0E4", 0.5); f(dx, fy - 11, 4, 1, "#6A5A48"); });
153
+ f(cw - 8, fy - 14, 3, 3, "#F4F0E4");
154
+ f(cw - 8, fy - 17, 3, 3, "#F4F0E4");
155
+ f(cw - 4, fy - 14, 3, 2, "#2A2E38");
156
+ // Tea server (seated occupant), then a window stool bar of patrons holding boba.
157
+ seat(10, fy - 11);
158
+ const bx = cw + 8;
159
+ box(f, bx, fy - 6, w - bx - 4, 2, "#6A4A30");
160
+ // The boba cup is held by the patron, so it draws only when the stool fills.
161
+ for (let sx = bx + 3, i = 0; sx + 6 < w - 4; sx += 17, i++) {
162
+ f(sx + 1, fy - 3, 3, 3, "#5A4632");
163
+ if (seat(sx, fy - 3))
164
+ boba(f, sx + 6, fy - 9, ["#C8A0D0", "#E8C060", "#D0A080"][i % 3]);
165
+ }
166
+ // Bamboo plant in the corner.
167
+ f(w - 6, fy - 12, 1, 12, "#4E7A3E");
168
+ f(w - 8, fy - 14, 3, 2, "#5AA85A");
169
+ f(w - 5, fy - 16, 3, 2, "#5AA85A");
170
+ box(f, w - 8, fy - 4, 5, 4, "#8C5A3A");
171
+ }
172
+ function parlor(f, w, h, fy, look, seat) {
173
+ wtex(f, 0, 7, w, fy - 7, look.wall, "flat");
174
+ pfloor(f, 0, fy, w, h - fy, look.floor, look.floorStyle === "checker");
175
+ signBand(f, w, look.band, look.stripe);
176
+ // A wall clock and a scalloped valance.
177
+ f(Math.round(w * 0.5) - 2, 9, 4, 4, "#F4E4B0");
178
+ f(Math.round(w * 0.5) - 1, 13, 2, 3, "#E8A050");
179
+ glow(f, Math.round(w * 0.5), 11, "#FFF0C0");
180
+ for (let vx = 0; vx < w; vx += 6)
181
+ f(vx, 7, 3, 3, vx % 12 ? "#E07AA6" : "#FFFFFF");
182
+ layerBreak(f.ctx); // the shell ends; the freezer, counter, booth and people follow
183
+ // Chrome display freezer with colored tubs and a cone rack.
184
+ box(f, 5, fy - 13, 30, 13, "#F6F4F6");
185
+ f(5, fy - 13, 30, 3, "#BCD8E8");
186
+ for (let k = 0; k < 5; k++)
187
+ f(8 + k * 5, fy - 11, 4, 4, ["#E88AB0", "#F4E4B0", "#8C5A3A", "#A0D8C0", "#F0A0A0"][k]);
188
+ f(7, fy - 17, 1, 4, "#E8B870");
189
+ f(7, fy - 19, 1, 2, "#F4C0D0");
190
+ f(11, fy - 16, 1, 3, "#E8B870");
191
+ f(11, fy - 18, 1, 2, "#F0E0B0");
192
+ // Soda-fountain counter with tall stools and seated kids.
193
+ const cw = Math.round(w * 0.32);
194
+ box(f, cw + 8, fy - 6, w - cw - 14, 2, "#C8DCE8");
195
+ for (let sx = cw + 12, i = 0; sx + 6 < w - 16; sx += 18, i++) {
196
+ f(sx + 1, fy - 5, 3, 5, "#C87A8E");
197
+ f(sx, fy - 5, 5, 1, "#D88AA0");
198
+ seat(sx, fy - 5);
199
+ }
200
+ // Pink booth with a patron.
201
+ f(w - 14, fy - 11, 3, 11, "#D87A9A");
202
+ box(f, w - 11, fy - 6, 8, 2, "#E8A0B8");
203
+ seat(w - 9, fy);
204
+ }
205
+ function cafe(f, w, h, fy, look, seat) {
206
+ wtex(f, 0, 7, w, fy - 7, look.wall, "flat");
207
+ pfloor(f, 0, fy, w, h - fy, look.floor);
208
+ signBand(f, w, look.band, look.stripe);
209
+ // Chalkboard menu and a wall grinder shelf.
210
+ box(f, Math.round(w * 0.4), 9, 26, 11, "#26302A");
211
+ for (let r = 0; r < 3; r++)
212
+ f(Math.round(w * 0.4) + 3, 12 + r * 3, 18, 1, ["#DCE8C0", "#F4F0E4", "#E8C0A0"][r]);
213
+ f(Math.round(w * 0.72), 8, 1, 3, "#3A2E28");
214
+ box(f, Math.round(w * 0.72) - 6, 11, 13, 5, "#5A4632");
215
+ f(Math.round(w * 0.72) - 4, 12, 9, 3, "#E8DCC8");
216
+ pendant(f, Math.round(w * 0.24), look.band);
217
+ layerBreak(f.ctx); // the shell ends; the bar, bench, armchair and people follow
218
+ // Espresso bar with machine, grinder, and a pastry case.
219
+ const cw = Math.round(w * 0.34);
220
+ box(f, 4, fy - 9, cw, 9, "#5A4632");
221
+ f(4, fy - 9, cw, 1, "#7A6248");
222
+ f(8, fy - 14, 7, 5, "#9AA0A8");
223
+ f(9, fy - 13, 2, 3, "#5A5E66");
224
+ f(10, fy - 16, 1, 2, "#F4F0E4", 0.6);
225
+ glow(f, 10, fy - 15, "#F0F4F8");
226
+ f(17, fy - 13, 4, 4, "#3A3E44");
227
+ box(f, cw - 14, fy - 13, 12, 4, "#EEE8DA");
228
+ for (let k = 0; k < 3; k++)
229
+ f(cw - 12 + k * 4, fy - 13, 2, 2, ["#C8905A", "#E8C060", "#B06040"][k]);
230
+ // Barista (seated occupant) behind the bar.
231
+ seat(10, fy - 9);
232
+ // Window bench with seated patrons.
233
+ const bx = cw + 8;
234
+ box(f, bx, fy - 6, Math.round(w * 0.3), 2, "#8C6E48");
235
+ // The takeaway cup belongs to a seated patron, so it gates on the stool fill.
236
+ for (let sx = bx + 2, i = 0; sx + 6 < bx + w * 0.3; sx += 15, i++) {
237
+ f(sx + 1, fy - 3, 3, 3, "#5A4632");
238
+ if (seat(sx, fy - 3))
239
+ f(sx, fy - 9, 3, 2, "#F4F0E4");
240
+ }
241
+ // Lounge armchair (furniture, always drawn); the laptop appears only when a patron sits.
242
+ box(f, w - 24, fy - 9, 10, 9, "#7C5A4A");
243
+ f(w - 24, fy - 11, 10, 3, "#8C6A5A");
244
+ if (seat(w - 22, fy - 1)) {
245
+ box(f, w - 13, fy - 5, 8, 2, "#6B4A2B");
246
+ f(w - 11, fy - 8, 4, 2, "#2A2E38");
247
+ }
248
+ }
249
+ // ---- Restaurants ------------------------------------------------------------
250
+ function drawRestaurant(ctx, x, y, w, h, look, lit, n, geoSeed) {
251
+ const f = mkFill(ctx, x, y);
252
+ const fy = h - 6;
253
+ const railY = 24;
254
+ const seat = mkSeat(ctx, x, y, geoSeed, n);
255
+ // Shared dark dining shell: textured wall, wainscot dado, top trim, floor.
256
+ twall(f, 0, 0, w, fy, look.wall);
257
+ wainscot(f, 0, fy, w, railY, look.wall);
258
+ f(0, 0, w, 2, shade(look.wall, -22));
259
+ f(0, 2, w, 1, shade(look.wall, 16));
260
+ pfloor(f, 0, fy, w, h - fy, look.floor);
261
+ // The warm fixture glow dims when the room is unlit (evening/night flag off).
262
+ const lamp = lit ? "#F8E2B4" : "#8A7A5C";
263
+ switch (look.interior) {
264
+ case "pub":
265
+ pub(f, w, fy, railY, lit, seat);
266
+ break;
267
+ case "banquet":
268
+ banquet(f, w, fy, railY, lit, seat);
269
+ break;
270
+ case "sushi":
271
+ sushi(f, w, fy, seat);
272
+ break;
273
+ case "booths":
274
+ steak(f, w, fy, railY, lit, lamp, seat);
275
+ break;
276
+ default:
277
+ french(f, w, fy, railY, lamp, seat);
278
+ }
279
+ }
280
+ function french(f, w, fy, railY, lamp, seat) {
281
+ // Chandelier, flanking pendants, sconces, framed art, a gilt mirror.
282
+ const cxx = Math.round(w / 2);
283
+ f(cxx - 1, 2, 2, 4, "#6a5040");
284
+ f(cxx - 7, 6, 14, 2, "#C9A24B");
285
+ [-6, -2, 2, 6].forEach((o) => { f(cxx + o, 8, 1, 2, lamp); glow(f, cxx + o, 9, lamp); });
286
+ [Math.round(w * 0.2), Math.round(w * 0.8)].forEach((px) => { f(px, 2, 1, 4, "#6a5040"); f(px - 2, 6, 5, 2, "#C9A24B"); f(px - 1, 8, 3, 2, lamp); glow(f, px, 9, lamp); });
287
+ artF(f, 16, 7, 16, 11, "#3E5A6E");
288
+ artF(f, w - 32, 7, 16, 11, "#6E4A3A");
289
+ box(f, Math.round(w * 0.37), 6, 20, 13, "#C9A24B");
290
+ f(Math.round(w * 0.37) + 2, 8, 16, 9, "#8FB6C8", 0.7);
291
+ sconce(f, 46, 13, lamp);
292
+ sconce(f, w - 48, 13, lamp);
293
+ layerBreak(f.ctx); // the shell ends; the wine rack, tables and diners follow
294
+ // Wine rack.
295
+ box(f, 6, railY + 1, 12, fy - railY - 1, "#3A2418");
296
+ for (let r = 0; r < 3; r++)
297
+ for (let k = 0; k < 3; k++)
298
+ f(8 + k * 3, railY + 3 + r * 4, 2, 3, ["#7A2A2A", "#3A5A3A", "#6A4A2A"][(k + r) % 3]);
299
+ // Dressed white-cloth tables with candles and seated diners.
300
+ for (let tx = 28; tx + 20 < w - 6; tx += 34) {
301
+ f(tx - 5, fy - 13, 3, 13, "#5A3A2A");
302
+ f(tx + 18, fy - 13, 3, 13, "#5A3A2A");
303
+ f(tx, fy - 8, 16, 8, "#F0ECE0");
304
+ f(tx, fy - 8, 16, 1, "#FFFFFF");
305
+ f(tx, fy - 3, 16, 3, "#DCD6C6");
306
+ f(tx + 7, fy - 12, 1, 4, "#E8C14A");
307
+ glow(f, tx + 7, fy - 12, lamp); // candle gold + warm glow, never notice amber
308
+ f(tx + 3, fy - 10, 1, 2, "#C0D8E8");
309
+ f(tx + 12, fy - 10, 1, 2, "#C0D8E8");
310
+ seat(tx - 5, fy - 1);
311
+ seat(tx + 16, fy - 1);
312
+ }
313
+ }
314
+ function pub(f, w, fy, railY, lit, seat) {
315
+ const barW = Math.round(w * 0.3);
316
+ // Hanging pub lamps and a framed print.
317
+ const decor = () => {
318
+ [Math.round(w * 0.5), Math.round(w * 0.78)].forEach((fx) => { f(fx - 1, 6, 2, 3, "#2A1E14"); f(fx - 2, 9, 4, 3, lit ? "#F8E2B4" : "#8A7A5C"); glow(f, fx, 10, lit ? "#FFE69A" : "#8A7A5C"); });
319
+ artF(f, Math.round(w * 0.62), 8, 14, 9, "#2A4A2A");
320
+ };
321
+ // From 45 px wide the lamps and print sit clear of the bar, the regulars and
322
+ // the tables, so drawing them first changes no pixel and keeps them on the
323
+ // shell. A narrower room (only a forged import) keeps the original order.
324
+ const decorFirst = w >= 45;
325
+ if (decorFirst)
326
+ decor();
327
+ layerBreak(f.ctx); // the shell ends; the bars, tables and regulars follow
328
+ // Back bar with a lit bottle wall.
329
+ box(f, 5, 6, barW, railY - 6, "#2A1C10");
330
+ for (let r = 0; r < 3; r++)
331
+ for (let bx = 8, c = 0; bx < barW; bx += 4, c++)
332
+ f(bx, 8 + r * 5, 2, 4, ["#4A7A4A", "#B08A3E", "#8C3A32", "#3A5A7A"][(c + r) % 4]);
333
+ box(f, 4, fy - 9, barW + 2, 6, "#4A3220");
334
+ f(4, fy - 9, barW + 2, 1, "#6A4A30");
335
+ [9, 14, 19].forEach((fx) => f(fx, fy - 12, 1, 3, "#D8B05A")); // brass taps
336
+ // Seated regulars on bar stools.
337
+ for (let sx = barW + 8; sx < barW + 40; sx += 10) {
338
+ f(sx, fy - 4, 2, 4, "#3A2A1A");
339
+ seat(sx - 2, fy);
340
+ }
341
+ if (!decorFirst)
342
+ decor();
343
+ // Wood tables with pints and seated couples.
344
+ for (let tx = barW + 44; tx + 14 < w - 6; tx += 32) {
345
+ f(tx - 3, fy - 10, 3, 10, "#3A2A1A");
346
+ f(tx + 13, fy - 10, 3, 10, "#3A2A1A");
347
+ box(f, tx, fy - 6, 13, 2, "#6A4A30");
348
+ f(tx + 4, fy - 9, 3, 3, "#B08A3E");
349
+ f(tx + 4, fy - 9, 3, 1, "#D8B860");
350
+ seat(tx - 3, fy);
351
+ seat(tx + 13, fy);
352
+ }
353
+ }
354
+ function banquet(f, w, fy, railY, lit, seat) {
355
+ // Red papered wall.
356
+ for (let px = 0; px < w; px += 14)
357
+ f(px, 4, 1, railY - 4, "#7A2A2A", 0.5);
358
+ // Paired glowing lanterns.
359
+ [Math.round(w * 0.28), Math.round(w * 0.72)].forEach((fx) => {
360
+ f(fx, 2, 1, 4, "#6a5040");
361
+ f(fx - 5, 6, 10, 9, lit ? "#E0554A" : "#8a3a34");
362
+ f(fx - 5, 10, 10, 1, "#E8C14A");
363
+ f(fx - 5, 6, 10, 1, lit ? "#F08070" : "#8a3a34");
364
+ glow(f, fx, 10, lit ? "#E85D4A" : "#8a3a34");
365
+ f(fx - 1, 15, 2, 3, "#C8A040");
366
+ });
367
+ // A carved screen.
368
+ box(f, Math.round(w * 0.44), 7, 26, 12, "#7A2A2A");
369
+ for (let k = 0; k < 6; k++)
370
+ f(Math.round(w * 0.44) + 3 + k * 4, 9, 2, 8, "#E8C14A");
371
+ layerBreak(f.ctx); // the shell ends; the tables and diners follow
372
+ // Round banquet tables with a gold lazy-Susan and parties of seated diners.
373
+ for (let tx = 16; tx + 24 < w - 6; tx += 46) {
374
+ f(tx + 10, fy - 1, 3, 1, "#000000", 0.2);
375
+ f(tx, fy - 7, 22, 5, "#E8D8C0");
376
+ f(tx, fy - 7, 22, 1, "#FFF6E8");
377
+ f(tx + 8, fy - 9, 6, 3, "#E8C14A");
378
+ f(tx + 10, fy - 10, 2, 2, "#C0392B");
379
+ seat(tx - 4, fy);
380
+ seat(tx + 22, fy);
381
+ seat(tx + 9, fy);
382
+ }
383
+ }
384
+ function sushi(f, w, fy, seat) {
385
+ // A bottle shelf.
386
+ f(6, 7, w - 12, 3, "#6A4A30");
387
+ for (let k = 0; k < 7; k++)
388
+ f(10 + k * ((w - 24) / 7), 8, 3, 2, ["#3A5A3A", "#7A2A2A", "#B08A3E"][k % 3]);
389
+ layerBreak(f.ctx); // the shell ends; the counter, chef and diners follow
390
+ // The long light-wood counter with a glass case and colored nigiri plates.
391
+ box(f, 6, fy - 11, w - 14, 5, "#E8DCC8");
392
+ f(6, fy - 13, w - 14, 2, "#BCD8E8");
393
+ for (let px = 12, i = 0; px + 3 < w - 12; px += 12, i++) {
394
+ f(px, fy - 12, 4, 1, i % 2 ? "#F4F0E4" : "#E88AB0");
395
+ f(px, fy - 15, 3, 2, ["#E88AB0", "#3A5A7A", "#C0392B"][i % 3]);
396
+ }
397
+ // The chef in whites behind the bar (seated occupant per the finalized
398
+ // geometry table; the people-system note that called this a standing chef is
399
+ // superseded here). Drawn first, then diners seated along the front.
400
+ const chef = Math.round(w * 0.5);
401
+ if (seat(chef, fy - 11))
402
+ f(chef - 1, fy - 21, 6, 2, "#FFFFFF"); // chef's hat, only when the chef is present
403
+ for (let tx = 14; tx + 6 < w - 12; tx += 19) {
404
+ f(tx, fy - 3, 3, 3, "#5A4632");
405
+ seat(tx - 1, fy);
406
+ }
407
+ }
408
+ function steak(f, w, fy, railY, lit, lamp, seat) {
409
+ // A hooded grill glowing orange (ember), framed art.
410
+ box(f, 6, 8, 22, railY - 6, "#1E1614");
411
+ f(8, 15, 18, 3, lit ? "#E8862A" : "#8a4a20");
412
+ f(8, 13, 18, 2, "#3A2A1A");
413
+ glow(f, 17, 16, lit ? "#E8862A" : "#8a4a20");
414
+ f(6, 7, 22, 2, "#2A2018");
415
+ artF(f, Math.round(w * 0.5), 7, 18, 10, "#3A241A");
416
+ layerBreak(f.ctx); // the shell ends; the booths and diners follow
417
+ // High-back leather booths with candlelit tables and seated diners.
418
+ for (let tx = 36; tx + 20 < w - 6; tx += 34) {
419
+ f(tx - 1, fy - 13, 4, 13, "#4A2E22");
420
+ f(tx - 1, fy - 13, 4, 1, "#5E3E2E");
421
+ f(tx + 16, fy - 13, 4, 13, "#4A2E22");
422
+ f(tx + 16, fy - 13, 4, 1, "#5E3E2E");
423
+ box(f, tx + 3, fy - 6, 13, 2, "#6A4A32");
424
+ f(tx + 7, fy - 8, 3, 2, "#F4F0E4");
425
+ f(tx + 7, fy - 10, 2, 2, "#E8C14A");
426
+ glow(f, tx + 8, fy - 10, lamp);
427
+ seat(tx + 2, fy);
428
+ seat(tx + 12, fy);
429
+ }
430
+ }
431
+ // ---- Cinema -----------------------------------------------------------------
432
+ /** Frames the animated screen cycles through (the accepted per-frame exception,
433
+ * shared with `food.ts`). */
434
+ const CINEMA_FRAMES = ["#9FC0FF", "#FFD9A0", "#C0FFD0", "#FFB0C0", "#D0C0FF"];
435
+ /**
436
+ * The two-floor auditorium: a maroon shell, an animated marquee, a
437
+ * curtain-framed animated screen with a projector beam, a balcony rail, raked
438
+ * seat rows with an occupancy-driven audience, aisle lights, and green EXIT
439
+ * signs on BOTH floors. The marquee and screen are the one accepted `d.anim`
440
+ * read; every other element is static. `geoAud` (geoVariant axis 4) varies the
441
+ * audience seating; `geoMar` (geoVariant axis 5) seeds the marquee color phase.
442
+ */
443
+ function drawCinema(ctx, x, y, w, h, anim, n, geoAud, geoMar) {
444
+ const f = mkFill(ctx, x, y);
445
+ const fy = h - 5;
446
+ twall(f, 0, 0, w, h, "#241026");
447
+ // Marquee bulbs: a slow chase, phase-offset per cinema (animated).
448
+ const chase = Math.floor(anim * 4) + geoMar;
449
+ for (let bx = 3, i = 0; bx < w - 2; bx += 7, i++) {
450
+ f(bx, 2, 3, 3, (i + chase) % 2 ? "#FFD24A" : "#FF6B6B");
451
+ }
452
+ f(0, 6, w, 1, "#3A1A3E");
453
+ // Curtain-framed screen.
454
+ const sx = Math.round(w * 0.24), sw = Math.round(w * 0.52), syt = 10, syb = 44;
455
+ f(sx - 6, syt - 2, sw + 12, syb - syt + 4, "#5A1420");
456
+ for (let cxN = sx - 6; cxN < sx + sw + 6; cxN += 5)
457
+ f(cxN, syt - 2, 2, syb - syt + 4, "#7A1E2E");
458
+ f(sx - 6, syt - 3, sw + 12, 3, "#8A2436");
459
+ f(sx - 6, syt - 3, sw + 12, 1, "#A83C4A"); // valance
460
+ // The screen itself, cycling pastel frames (animated).
461
+ box(f, sx, syt, sw, syb - syt, "#0A0E1A");
462
+ const fr = Math.floor(anim * 2.5 + geoMar) % CINEMA_FRAMES.length;
463
+ f(sx + 1, syt + 1, sw - 2, syb - syt - 2, CINEMA_FRAMES[fr]);
464
+ f(sx + 1, syt + 1 + ((fr * 4) % Math.max(1, syb - syt - 2)), sw - 2, 1, "#FFFFFF", 0.4); // scan line
465
+ f(sx + Math.round(sw * 0.6), syt + 3, 4, 4, "#FFF0B0");
466
+ glow(f, sx + Math.round(sw * 0.62), syt + 5, "#FFF0C0");
467
+ glow(f, sx + sw / 2, syt + (syb - syt) / 2, "#9FC0E0");
468
+ // Projector beam.
469
+ f(Math.round(w * 0.5) - 1, syb, 2, fy - syb - 16, "#BFE0F4", 0.05);
470
+ f(Math.round(w * 0.5) - 6, fy - 18, 12, 10, "#BFE0F4", 0.04);
471
+ // Balcony rail.
472
+ f(0, 46, w, 2, "#3A1A2E");
473
+ f(0, 46, w, 1, "#5A2A3E");
474
+ for (let px = 6; px < w; px += 10)
475
+ f(px, 44, 1, 4, "#4A2038");
476
+ layerBreak(ctx); // the shell ends; the seats and the audience follow
477
+ // Occupancy-driven audience: collect every seat-head slot while drawing the
478
+ // seat boxes, then fill exactly the first min(n, seats) heads in seed order,
479
+ // rotated by geoAud (axis 4) so two cinemas never share a crowd; n === 0 is
480
+ // an empty house.
481
+ const heads = [];
482
+ for (let sxn = 6; sxn < w - 4; sxn += 7) {
483
+ f(sxn, 40, 5, 4, "#2A1428");
484
+ f(sxn, 40, 5, 1, "#3E1E38");
485
+ heads.push([sxn + 1, 37]);
486
+ } // balcony row
487
+ for (let r = 0; r < 3; r++) {
488
+ const ry = fy - 4 - r * 6;
489
+ for (let sxn = 5; sxn < w - 4; sxn += 7) {
490
+ f(sxn, ry, 5, 5, "#22101F");
491
+ f(sxn, ry, 5, 1, "#341830");
492
+ heads.push([sxn + 1, ry - 3]);
493
+ }
494
+ } // raked rows
495
+ const seats = heads.length, filledHeads = Math.min(Math.max(0, n), seats);
496
+ for (let j = 0; j < seats; j++)
497
+ if ((j + geoAud) % seats < filledHeads) {
498
+ const [hx, hy] = heads[j];
499
+ f(hx, hy, 3, 3, "#3A2E28");
500
+ f(hx, hy, 3, 1, "#5A4438");
501
+ }
502
+ // The furniture ends here: the aisle lights and EXIT signs belong to the
503
+ // shell, and they draw over the seats, so the depth layers put them there.
504
+ layerEnd(ctx);
505
+ // Aisle lights.
506
+ for (let px = 10; px < w; px += 30)
507
+ f(px, fy - 1, 2, 1, "#E8C14A");
508
+ // Green EXIT signs on BOTH floors (canon), static.
509
+ exitSign(f, 4, 48);
510
+ exitSign(f, w - 14, 48);
511
+ exitSign(f, 4, fy - 14);
512
+ exitSign(f, w - 14, fy - 14);
513
+ }
514
+
515
+ export { CINEMA_FRAMES, drawCinema, drawFastFood, drawRestaurant };
516
+ //# sourceMappingURL=food.interiors.js.map