@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,410 @@
1
+ import { shade } from '../common.js';
2
+ import { FLOOR } from '../../scale.js';
3
+ import { roomOccupants, personFigure, personSeated } from '../../pixelSprites/common.js';
4
+ import { layerBreak, layerEnd } from '../../pixelSprites/layers.js';
5
+
6
+ /**
7
+ * The wedding hall: a sky garden that crowns a 5-star tower. The ground story
8
+ * is the ceremony hall (floor 100); three stories of glass conservatories with
9
+ * planted terraces and a pair of gold rings on the roof rise above it. The art
10
+ * is religion neutral by design: no crosses, steeples, altars or other
11
+ * religious symbols.
12
+ */
13
+ /** One 3x3 pixel flower for the arch garland and topiary, ported from the
14
+ * board's `bloom` helper: a colored bloom with a lighter top row and a white
15
+ * center highlight. Integer coordinates. */
16
+ function bloom(ctx, x, y, c) {
17
+ const x0 = Math.round(x);
18
+ const y0 = Math.round(y);
19
+ ctx.fillStyle = c;
20
+ ctx.fillRect(x0, y0, 3, 3);
21
+ ctx.fillStyle = shade(c, 24);
22
+ ctx.fillRect(x0, y0, 3, 1);
23
+ ctx.fillStyle = "rgba(255,255,255,0.4)";
24
+ ctx.fillRect(x0 + 1, y0 + 1, 1, 1);
25
+ }
26
+ /**
27
+ * The wedding hall's nave, the bottom story of the wedding hall (floor 100). Ported
28
+ * from page-05's `wedding` build: an ivory-and-blush hall with a floral arch over
29
+ * a white aisle runner, ribboned chairs seating guests, gold pilasters and
30
+ * clear skyline windows, a flower stand, and the couple (a dark-suited figure and
31
+ * a white-gowned figure) on the dais. Guests and the groom are seated occupants
32
+ * (the 15px `seated` build); the bride is a hand-drawn gowned figure. Clear sky windows
33
+ * and a flower stand keep the room religion neutral. Drawn
34
+ * into the full `w x h` rect the caller gives, so it fills whatever story it is
35
+ * handed. Integer coordinates throughout.
36
+ *
37
+ * Honest occupancy, the same contract the party hall keeps: figures fill in
38
+ * order up to `roomOccupants(u)`, so a hall with no wedding in it draws its
39
+ * chairs, arch and flower stand with nobody in them (#552). The couple fills
40
+ * first, because one attendee at a wedding reads as the couple rather than as a
41
+ * lone guest in an empty hall. The room's live attendance arrives through the
42
+ * `customersIn` -> `occupants` mirror, which is already a bake-signature input.
43
+ */
44
+ function drawWeddingNave(d, u, x, y, w, h) {
45
+ const ctx = d.ctx;
46
+ const n = roomOccupants(u);
47
+ let filled = 0;
48
+ /** Draws the next figure only while the hall still has attendees to seat. */
49
+ const takeSeat = () => (filled < n ? (filled++, true) : false);
50
+ const x0 = Math.round(x);
51
+ const y0 = Math.round(y);
52
+ const ww = Math.max(1, Math.round(w));
53
+ const hh = Math.max(1, Math.round(h));
54
+ const fy = y0 + Math.round(hh * 0.86); // floor line: ivory hall above, runner below
55
+ const acx = x0 + Math.round(ww / 2); // aisle center
56
+ // Ivory hall walls, brighter across the top, with faint horizontal courses.
57
+ ctx.fillStyle = "#F5EAD6";
58
+ ctx.fillRect(x0, y0, ww, fy - y0);
59
+ ctx.fillStyle = "#F8EEDC";
60
+ ctx.fillRect(x0, y0, ww, Math.round((fy - y0) * 0.4));
61
+ ctx.fillStyle = "rgba(230,216,190,0.4)";
62
+ for (let py = y0 + 6; py < fy; py += 7)
63
+ ctx.fillRect(x0, py, ww, 1);
64
+ // Cornice with a row of pennants.
65
+ ctx.fillStyle = "#E2D4B8";
66
+ ctx.fillRect(x0, y0, ww, 3);
67
+ ctx.fillStyle = "#D8C8A8";
68
+ for (let px = x0 + 4; px < x0 + ww; px += 16)
69
+ ctx.fillRect(px, y0, 8, 3);
70
+ ctx.fillStyle = "#C8B896";
71
+ ctx.fillRect(x0, y0 + 3, ww, 1);
72
+ // Gold pilasters down the side walls. The step is floored at 1px so a
73
+ // degenerate (near-zero-width) rect can never stall the loop.
74
+ const pilasterStep = Math.max(1, Math.round(ww * 0.36));
75
+ for (let px = x0 + Math.round(ww * 0.32); px < x0 + ww * 0.7; px += pilasterStep) {
76
+ ctx.fillStyle = "#C9A24B";
77
+ ctx.fillRect(px, y0 + 4, 3, fy - y0 - 6);
78
+ ctx.fillStyle = "#E8C860";
79
+ ctx.fillRect(px, y0 + 4, 1, fy - y0 - 6);
80
+ ctx.fillStyle = "#A0802E";
81
+ ctx.fillRect(px + 2, y0 + 4, 1, fy - y0 - 6);
82
+ ctx.fillStyle = "#D8B860";
83
+ ctx.fillRect(px - 1, y0 + 4, 5, 2);
84
+ }
85
+ // Wall lamps, glowing warm.
86
+ for (const scx of [x0 + Math.round(ww * 0.16), acx, x0 + Math.round(ww * 0.84)]) {
87
+ ctx.fillStyle = "#C9A24B";
88
+ ctx.fillRect(scx - 1, y0 + 3, 2, 3);
89
+ ctx.fillRect(scx - 6, y0 + 6, 12, 2);
90
+ ctx.fillRect(scx - 4, y0 + 9, 8, 1);
91
+ ctx.fillStyle = "#F8E2B4";
92
+ for (const o of [-5, -2, 1, 4])
93
+ ctx.fillRect(scx + o, y0 + 7, 1, 2);
94
+ for (const o of [-3, 0, 3])
95
+ ctx.fillRect(scx + o, y0 + 10, 1, 1);
96
+ ctx.fillStyle = "rgba(255,230,154,0.28)";
97
+ ctx.fillRect(scx - 5, y0 + 6, 11, 5);
98
+ }
99
+ // Tall clear windows around the dais: sky and a far skyline behind a gold frame.
100
+ for (let wx = x0 + Math.round(ww * 0.4); wx + 12 < x0 + ww * 0.6; wx += 16) {
101
+ ctx.fillStyle = "#C9A24B";
102
+ ctx.fillRect(wx - 1, y0 + 7, 14, fy - y0 - 14);
103
+ ctx.fillStyle = "#BFE0F2";
104
+ ctx.fillRect(wx, y0 + 8, 12, fy - y0 - 16);
105
+ ctx.fillStyle = "#D8EEF8";
106
+ ctx.fillRect(wx, y0 + 8, 12, 6);
107
+ ctx.fillStyle = "#8FA8C0"; // a far skyline
108
+ ctx.fillRect(wx + 1, fy - 17, 4, 9);
109
+ ctx.fillRect(wx + 7, fy - 20, 4, 12);
110
+ }
111
+ // Floor + the white aisle runner with gold edges (the board's ivory runner
112
+ // the couple walks down, not a red carpet).
113
+ ctx.fillStyle = "#7A5A3A";
114
+ ctx.fillRect(x0, fy, ww, y0 + hh - fy);
115
+ ctx.fillStyle = "#8C6A44";
116
+ ctx.fillRect(x0, fy, ww, 1);
117
+ ctx.fillStyle = "#F4F0EC"; // white runner
118
+ ctx.fillRect(acx - 12, fy, 24, y0 + hh - fy);
119
+ ctx.fillStyle = "#FFFFFF"; // lit near edge
120
+ ctx.fillRect(acx - 12, fy, 24, 1);
121
+ ctx.fillStyle = "#C9A24B"; // gold edges
122
+ ctx.fillRect(acx - 12, fy, 2, y0 + hh - fy);
123
+ ctx.fillRect(acx + 10, fy, 2, y0 + hh - fy);
124
+ layerBreak(ctx); // the shell ends; the arch, dais, chairs, planters and guests follow
125
+ // Floral arch over the dais: two white post bases, a top lintel bar, and a
126
+ // garland of blooms across the top and down the sides.
127
+ const postBase = Math.max(2, y0 + hh - (fy - 2)); // white post rising from the floor
128
+ ctx.fillStyle = "#E8DCC8";
129
+ ctx.fillRect(acx - 16, fy - 2, 3, postBase);
130
+ ctx.fillRect(acx + 13, fy - 2, 3, postBase);
131
+ ctx.fillRect(acx - 16, y0 + 10, 32, 3);
132
+ const garland = ["#E88AB0", "#F4D0A0", "#F0F0F0", "#E0A0C0"];
133
+ for (let ax = acx - 16, gi = 0; ax < acx + 16; ax += 4, gi++) {
134
+ bloom(ctx, ax, y0 + 8, garland[gi % garland.length]);
135
+ }
136
+ for (let ay = y0 + 12; ay < fy - 6; ay += 6) {
137
+ bloom(ctx, acx - 16, ay, "#E88AB0");
138
+ bloom(ctx, acx + 14, ay, "#F0F0F0");
139
+ }
140
+ // A flower stand on the dais.
141
+ ctx.fillStyle = "#E8DCC8";
142
+ ctx.fillRect(acx - 6, fy - 6, 12, 6);
143
+ ctx.fillStyle = "#C9A24B";
144
+ ctx.fillRect(acx - 1, fy - 9, 2, 3);
145
+ bloom(ctx, acx - 5, fy - 11, "#E88AB0");
146
+ bloom(ctx, acx - 1, fy - 12, "#F4D0A0");
147
+ bloom(ctx, acx + 3, fy - 10, "#F0F0F0");
148
+ // The couple on the dais: a dark-suited figure and a white-gowned figure.
149
+ // They seat first, so the smallest real wedding still reads as a wedding.
150
+ if (takeSeat())
151
+ personFigure(ctx, acx - 7, fy, "seated", "#2A2E38");
152
+ if (takeSeat()) {
153
+ ctx.fillStyle = "#F4F0EC"; // gown
154
+ ctx.fillRect(acx + 2, fy - 9, 5, 9);
155
+ ctx.fillStyle = "#FFFFFF";
156
+ ctx.fillRect(acx + 2, fy - 9, 5, 1);
157
+ ctx.fillStyle = "#E8C9A0"; // head
158
+ ctx.fillRect(acx + 2, fy - 14, 4, 5);
159
+ ctx.fillStyle = "#5A4A3A";
160
+ ctx.fillRect(acx + 2, fy - 14, 4, 1);
161
+ ctx.fillStyle = "#F0F0F0"; // veil
162
+ ctx.fillRect(acx + 1, fy - 15, 6, 2);
163
+ }
164
+ // Ribboned guest chairs, either side of the aisle. The chairs always draw
165
+ // (they are furniture); only the guests in them are gated. Guest shirt colors
166
+ // come from the seated build's seed, so a row reads varied.
167
+ for (let sx = x0 + 8, i = 0; sx < acx - 20; sx += 12, i++) {
168
+ ctx.fillStyle = "#F4F0EC";
169
+ ctx.fillRect(sx, fy - 9, 6, 9);
170
+ ctx.fillStyle = "#E88AB0"; // pink chair ribbon
171
+ ctx.fillRect(sx, fy - 9, 6, 1);
172
+ if (takeSeat())
173
+ personSeated(ctx, sx, fy - 2, i * 5 + 1);
174
+ }
175
+ for (let sx = acx + 22, i = 0; sx < x0 + ww - 8; sx += 12, i++) {
176
+ ctx.fillStyle = "#F4F0EC";
177
+ ctx.fillRect(sx, fy - 9, 6, 9);
178
+ ctx.fillStyle = "#E88AB0";
179
+ ctx.fillRect(sx, fy - 9, 6, 1);
180
+ if (takeSeat())
181
+ personSeated(ctx, sx, fy - 2, i * 5 + 4);
182
+ }
183
+ // Topiary planters flanking the dais, with blooms.
184
+ ctx.fillStyle = "#C9A24B";
185
+ ctx.fillRect(acx - 26, fy - 4, 4, 4);
186
+ ctx.fillStyle = "#4E7A3E";
187
+ ctx.fillRect(acx - 30, fy - 16, 8, 12);
188
+ bloom(ctx, acx - 30, fy - 18, "#E88AB0");
189
+ bloom(ctx, acx - 26, fy - 19, "#F0F0F0");
190
+ ctx.fillStyle = "#C9A24B";
191
+ ctx.fillRect(acx + 22, fy - 4, 4, 4);
192
+ ctx.fillStyle = "#4E7A3E";
193
+ ctx.fillRect(acx + 22, fy - 16, 8, 12);
194
+ bloom(ctx, acx + 22, fy - 18, "#F0F0F0");
195
+ bloom(ctx, acx + 26, fy - 19, "#E88AB0");
196
+ // The petal row draws along the top of the wall (y0 + 5), over the sconces,
197
+ // so it belongs to the shell and follows the furniture's end.
198
+ layerEnd(ctx);
199
+ // A row of scattered petals along the top of the wall.
200
+ ctx.fillStyle = "rgba(90,168,90,0.7)";
201
+ for (let gx = x0 + 6; gx < x0 + ww - 6; gx += 8)
202
+ ctx.fillRect(gx, y0 + 5, 4, 1);
203
+ }
204
+ const LEAF = ["#6FAF4E", "#4E8A3E", "#3C6E34"];
205
+ const STONE = "#E9DFC9";
206
+ const STONE_SHADE = "#CFC2A6";
207
+ const FRAME = "#F4F6F2";
208
+ const GLASS = "#CBEAEA";
209
+ const GOLD = "#C9A24B";
210
+ const BLOOM_COLORS = ["#E88AB0", "#F4D060", "#F0F0F0"];
211
+ /** The bloom color for a position along a hedge. Positions can be negative (a sprite is
212
+ * drawn relative to its own origin), so the index is taken from the absolute value. */
213
+ function bloomColor(pos) {
214
+ return BLOOM_COLORS[Math.abs(pos) % BLOOM_COLORS.length];
215
+ }
216
+ /** A filled disc in three green bands, lighter at the top. */
217
+ function leafBlob(ctx, cx, cy, r) {
218
+ for (let dy = -r; dy <= r; dy++) {
219
+ const half = Math.round(Math.sqrt(r * r - dy * dy));
220
+ ctx.fillStyle = LEAF[dy < -r / 3 ? 0 : 1];
221
+ if (dy >= r / 3)
222
+ ctx.fillStyle = LEAF[2];
223
+ ctx.fillRect(cx - half, cy + dy, half * 2, 1);
224
+ }
225
+ }
226
+ /** A tree standing on `base`: a trunk, then a canopy. */
227
+ function tree(ctx, cx, base, r, trunk) {
228
+ ctx.fillStyle = "#6A4A30";
229
+ ctx.fillRect(cx - 1, base - trunk, 2, trunk + 1);
230
+ leafBlob(ctx, cx, base - trunk - r + 2, r);
231
+ }
232
+ /** A story's roof slab, drawn along its top edge: the floor the story above stands on. */
233
+ function roofSlab(ctx, tx, ty, tw) {
234
+ ctx.fillStyle = STONE;
235
+ ctx.fillRect(tx - 2, ty, tw + 4, 3);
236
+ ctx.fillStyle = "rgba(255,255,255,0.5)";
237
+ ctx.fillRect(tx - 2, ty, tw + 4, 1);
238
+ ctx.fillStyle = STONE_SHADE;
239
+ ctx.fillRect(tx - 2, ty + 2, tw + 4, 1);
240
+ }
241
+ /** Hedges and flowers along an exposed strip of roof, standing on the slab at `base`. */
242
+ function roofHedges(ctx, x1, x2, base) {
243
+ for (let hx = x1; hx < x2; hx += 4) {
244
+ ctx.fillStyle = (hx >> 2) % 2 ? LEAF[1] : LEAF[2];
245
+ ctx.fillRect(hx, base - 5, Math.min(4, x2 - hx), 5);
246
+ }
247
+ for (let px = x1 + 1; px + 3 < x2; px += 7)
248
+ bloom(ctx, px, base - 7, bloomColor(px >> 3));
249
+ }
250
+ /** How far a curved glass roof drops from its flat crown down to the wall. */
251
+ const WEDDING_SHOULDER_DROP = 14;
252
+ /** The y of a glass roof at column `px`: flat across `flatHalf` each side of the
253
+ * center, then curving down to `drop` px below the crown at the wall (a quarter
254
+ * ellipse, so it meets the wall straight). */
255
+ function shoulderTop(px, acx, flatHalf, wallHalf, ty, drop) {
256
+ const out = Math.abs(px + 0.5 - acx) - flatHalf;
257
+ if (out <= 0)
258
+ return ty;
259
+ const t = Math.min(1, out / Math.max(1, wallHalf - flatHalf));
260
+ return ty + Math.round(drop * (1 - Math.sqrt(1 - t * t)));
261
+ }
262
+ /**
263
+ * One glass story: trees and flower beds inside, white frames, a pale sheen. With
264
+ * `flatHalf` set the roof has curved shoulders: flat over the middle (where the
265
+ * story above stands) and sweeping down to the walls on both sides.
266
+ */
267
+ function glassStory(ctx, tx, ty, tw, h, trees, flatHalf) {
268
+ const acx = tx + tw / 2;
269
+ const topAt = (px) => (flatHalf === undefined ? ty : shoulderTop(px, acx, flatHalf, tw / 2, ty, WEDDING_SHOULDER_DROP));
270
+ for (let px = tx; px < tx + tw; px++) {
271
+ const top = topAt(px);
272
+ ctx.fillStyle = GLASS;
273
+ ctx.fillRect(px, top, 1, ty + h - top);
274
+ }
275
+ for (let t = 0; t < trees; t++)
276
+ tree(ctx, tx + 12 + t * Math.round((tw - 24) / Math.max(1, trees - 1)), ty + h, 7, 6);
277
+ for (let px = tx + 4; px < tx + tw - 2; px += 6)
278
+ bloom(ctx, px, ty + h - 4, bloomColor(px >> 1));
279
+ for (let px = tx; px < tx + tw; px++) {
280
+ const top = topAt(px);
281
+ ctx.fillStyle = "rgba(255,255,255,0.18)";
282
+ ctx.fillRect(px, top, 1, ty + h - top);
283
+ if ((px - tx) % 10 === 0 || px < tx + 2 || px >= tx + tw - 2) {
284
+ ctx.fillStyle = FRAME;
285
+ ctx.fillRect(px, top, 1, ty + h - top);
286
+ }
287
+ if (flatHalf !== undefined && top > ty) {
288
+ ctx.fillStyle = FRAME; // the curved roof's frame, one pixel thick along the slope
289
+ ctx.fillRect(px, top, 1, Math.max(2, topAt(px + 1) - top + 1));
290
+ }
291
+ }
292
+ if (flatHalf === undefined) {
293
+ ctx.fillStyle = FRAME;
294
+ ctx.fillRect(tx, ty, tw, 2);
295
+ }
296
+ }
297
+ /** Width share of each garden story, floor 101 first: the terraces step in as they rise. */
298
+ const WEDDING_GARDEN_STORIES = [0.92, 0.74, 0.56];
299
+ /** The garden story (0 is floor 101) whose roof has curved shoulders: floor 102. */
300
+ const WEDDING_CURVED_STORY = 1;
301
+ /** Width share of the plinth that carries the rings on floor 104. */
302
+ const WEDDING_PLINTH_SHARE = 0.3;
303
+ /**
304
+ * The wedding hall's upper four stories (floors 101 to 104): a sky garden that
305
+ * steps in as it rises. Three glass conservatories, each roof a planted terrace
306
+ * standing on the story below, and on the top roof two interlocked gold rings in
307
+ * a flower-banked stone plinth. Every piece rests on the slab beneath it. Pure
308
+ * shell, no figures, so it never reads occupancy. Everything outside the tiers
309
+ * is left transparent, so the sky shows beside it.
310
+ */
311
+ function drawWeddingGarden(d, x, y, w, h, story) {
312
+ const ctx = d.ctx;
313
+ const x0 = Math.round(x);
314
+ const y0 = Math.round(y);
315
+ const ww = Math.max(1, Math.round(w));
316
+ const hh = Math.max(1, Math.round(h));
317
+ const acx = x0 + Math.round(ww / 2);
318
+ const evenWidth = (share) => Math.max(8, Math.round((ww * share) / 2) * 2);
319
+ const widths = WEDDING_GARDEN_STORIES.map(evenWidth);
320
+ const plinthW = evenWidth(WEDDING_PLINTH_SHARE);
321
+ widths.forEach((tw, i) => {
322
+ const ty = y0 + hh - (i + 1) * story;
323
+ const tx = acx - tw / 2;
324
+ const above = i < widths.length - 1 ? widths[i + 1] : plinthW;
325
+ const curved = i === WEDDING_CURVED_STORY;
326
+ glassStory(ctx, tx, ty, tw, story, i === widths.length - 1 ? 3 : 4, curved ? above / 2 + 2 : undefined);
327
+ if (curved) {
328
+ // The roof sweeps down from a flat crown under the story above; flowers line the curve.
329
+ roofSlab(ctx, acx - above / 2 - 2, ty, above);
330
+ for (let px = tx + 1; px + 3 < acx - above / 2 - 2; px += 8)
331
+ bloom(ctx, px, shoulderTop(px, acx, above / 2 + 2, tw / 2, ty, WEDDING_SHOULDER_DROP) - 3, bloomColor(px >> 3));
332
+ for (let px = acx + above / 2 + 3; px + 3 < tx + tw; px += 8)
333
+ bloom(ctx, px, shoulderTop(px, acx, above / 2 + 2, tw / 2, ty, WEDDING_SHOULDER_DROP) - 3, bloomColor(px >> 3));
334
+ }
335
+ else {
336
+ roofSlab(ctx, tx, ty, tw);
337
+ // The strip of this roof left outside the story above is a planted terrace.
338
+ roofHedges(ctx, tx, acx - above / 2 - 1, ty);
339
+ roofHedges(ctx, acx + above / 2 + 1, tx + tw, ty);
340
+ }
341
+ if (i === 0) {
342
+ ctx.fillStyle = LEAF[1];
343
+ for (let vx = tx; vx < tx + tw; vx += 7)
344
+ ctx.fillRect(vx, ty + 3, 2, 3 + (Math.abs(vx >> 1) % 5)); // vines over the edge
345
+ }
346
+ });
347
+ // The top story: a stone plinth on floor 103's roof, banked with flowers, with the rings in it.
348
+ const base = y0 + hh - widths.length * story;
349
+ ctx.fillStyle = STONE;
350
+ ctx.fillRect(acx - plinthW / 2, base - 8, plinthW, 8);
351
+ ctx.fillStyle = "rgba(255,255,255,0.5)";
352
+ ctx.fillRect(acx - plinthW / 2, base - 8, plinthW, 1);
353
+ ctx.fillStyle = STONE_SHADE;
354
+ ctx.fillRect(acx - plinthW / 2, base - 2, plinthW, 2);
355
+ const r = 13;
356
+ const cy = base - 8 - r + 3;
357
+ const ring = (cx) => {
358
+ for (let deg = 0; deg < 360; deg += 2) {
359
+ const rad = (deg * Math.PI) / 180;
360
+ const px = cx + Math.cos(rad) * r;
361
+ const py = cy + Math.sin(rad) * r;
362
+ ctx.fillStyle = GOLD;
363
+ ctx.fillRect(Math.round(px) - 1, Math.round(py) - 1, 3, 3);
364
+ if (deg > 190 && deg < 270) {
365
+ ctx.fillStyle = "#F4D878";
366
+ ctx.fillRect(Math.round(px) - 1, Math.round(py) - 1, 2, 1);
367
+ }
368
+ }
369
+ };
370
+ ring(acx - 7);
371
+ ring(acx + 7);
372
+ ctx.fillStyle = "#DDF4FF"; // a small diamond glint on the right ring
373
+ ctx.fillRect(acx + 6, cy - r - 4, 3, 3);
374
+ ctx.fillStyle = "#FFFFFF";
375
+ ctx.fillRect(acx + 7, cy - r - 6, 1, 2);
376
+ ctx.fillStyle = LEAF[2]; // flowers bank the foot of the rings so they sit in the plinth
377
+ ctx.fillRect(acx - plinthW / 2 + 1, base - 11, plinthW - 2, 3);
378
+ for (let bx = acx - plinthW / 2 + 1; bx < acx + plinthW / 2 - 3; bx += 4)
379
+ bloom(ctx, bx, base - 13, (bx >> 2) % 2 ? "#E88AB0" : "#F0F0F0");
380
+ }
381
+ /**
382
+ * The grand wedding hall that crowns a 5-star tower (28 wide, five stories, floors
383
+ * 100 to 104). The ceremony hall with the wedding sits on the bottom story, and
384
+ * four stories of sky garden and a pair of gold rings rise above it. The rect is split into one equal
385
+ * story per floor.
386
+ */
387
+ function drawWeddingHall(d, u, x, y, w, h) {
388
+ // The TypeScript engine's catalog still holds the one-story hall: draw the nave alone.
389
+ const stories = Math.round(h / FLOOR);
390
+ if (stories < 2)
391
+ return drawWeddingNave(d, u, x, y, w, h);
392
+ const story = Math.max(1, Math.round(h / stories));
393
+ const crownH = Math.max(1, Math.round(h) - story);
394
+ // The garden picks hedge and bloom colors from pixel columns, so it draws
395
+ // from the hall's own origin: the same hall then looks the same wherever it
396
+ // falls on the shared region canvas, and the atlas can bake it once.
397
+ const ctx = d.ctx;
398
+ ctx.save();
399
+ ctx.translate(x, y);
400
+ try {
401
+ drawWeddingGarden(d, 0, 0, w, crownH, story);
402
+ drawWeddingNave(d, u, 0, crownH, w, story);
403
+ }
404
+ finally {
405
+ ctx.restore();
406
+ }
407
+ }
408
+
409
+ export { drawWeddingHall };
410
+ //# sourceMappingURL=weddingHall.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weddingHall.js","sources":["../../../../src/render/sprites/facilities/weddingHall.ts"],"sourcesContent":["import type { UnitView } from \"../../../simport/view\";\nimport { shade, type DrawCtx } from \"../common\";\nimport { FLOOR } from \"../../scale\";\nimport { personFigure, personSeated, roomOccupants } from \"../../pixelSprites/common\";\nimport { layerBreak, layerEnd } from \"../../pixelSprites/layers\";\n\n/**\n * The wedding hall: a sky garden that crowns a 5-star tower. The ground story\n * is the ceremony hall (floor 100); three stories of glass conservatories with\n * planted terraces and a pair of gold rings on the roof rise above it. The art\n * is religion neutral by design: no crosses, steeples, altars or other\n * religious symbols.\n */\n\n/** One 3x3 pixel flower for the arch garland and topiary, ported from the\n * board's `bloom` helper: a colored bloom with a lighter top row and a white\n * center highlight. Integer coordinates. */\nfunction bloom(ctx: CanvasRenderingContext2D, x: number, y: number, c: string): void {\n const x0 = Math.round(x);\n const y0 = Math.round(y);\n ctx.fillStyle = c;\n ctx.fillRect(x0, y0, 3, 3);\n ctx.fillStyle = shade(c, 24);\n ctx.fillRect(x0, y0, 3, 1);\n ctx.fillStyle = \"rgba(255,255,255,0.4)\";\n ctx.fillRect(x0 + 1, y0 + 1, 1, 1);\n}\n\n/**\n * The wedding hall's nave, the bottom story of the wedding hall (floor 100). Ported\n * from page-05's `wedding` build: an ivory-and-blush hall with a floral arch over\n * a white aisle runner, ribboned chairs seating guests, gold pilasters and\n * clear skyline windows, a flower stand, and the couple (a dark-suited figure and\n * a white-gowned figure) on the dais. Guests and the groom are seated occupants\n * (the 15px `seated` build); the bride is a hand-drawn gowned figure. Clear sky windows\n * and a flower stand keep the room religion neutral. Drawn\n * into the full `w x h` rect the caller gives, so it fills whatever story it is\n * handed. Integer coordinates throughout.\n *\n * Honest occupancy, the same contract the party hall keeps: figures fill in\n * order up to `roomOccupants(u)`, so a hall with no wedding in it draws its\n * chairs, arch and flower stand with nobody in them (#552). The couple fills\n * first, because one attendee at a wedding reads as the couple rather than as a\n * lone guest in an empty hall. The room's live attendance arrives through the\n * `customersIn` -> `occupants` mirror, which is already a bake-signature input.\n */\nfunction drawWeddingNave(d: DrawCtx, u: UnitView, x: number, y: number, w: number, h: number) {\n const ctx = d.ctx;\n const n = roomOccupants(u);\n let filled = 0;\n /** Draws the next figure only while the hall still has attendees to seat. */\n const takeSeat = (): boolean => (filled < n ? (filled++, true) : false);\n const x0 = Math.round(x);\n const y0 = Math.round(y);\n const ww = Math.max(1, Math.round(w));\n const hh = Math.max(1, Math.round(h));\n const fy = y0 + Math.round(hh * 0.86); // floor line: ivory hall above, runner below\n const acx = x0 + Math.round(ww / 2); // aisle center\n\n // Ivory hall walls, brighter across the top, with faint horizontal courses.\n ctx.fillStyle = \"#F5EAD6\";\n ctx.fillRect(x0, y0, ww, fy - y0);\n ctx.fillStyle = \"#F8EEDC\";\n ctx.fillRect(x0, y0, ww, Math.round((fy - y0) * 0.4));\n ctx.fillStyle = \"rgba(230,216,190,0.4)\";\n for (let py = y0 + 6; py < fy; py += 7) ctx.fillRect(x0, py, ww, 1);\n // Cornice with a row of pennants.\n ctx.fillStyle = \"#E2D4B8\";\n ctx.fillRect(x0, y0, ww, 3);\n ctx.fillStyle = \"#D8C8A8\";\n for (let px = x0 + 4; px < x0 + ww; px += 16) ctx.fillRect(px, y0, 8, 3);\n ctx.fillStyle = \"#C8B896\";\n ctx.fillRect(x0, y0 + 3, ww, 1);\n\n // Gold pilasters down the side walls. The step is floored at 1px so a\n // degenerate (near-zero-width) rect can never stall the loop.\n const pilasterStep = Math.max(1, Math.round(ww * 0.36));\n for (let px = x0 + Math.round(ww * 0.32); px < x0 + ww * 0.7; px += pilasterStep) {\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(px, y0 + 4, 3, fy - y0 - 6);\n ctx.fillStyle = \"#E8C860\";\n ctx.fillRect(px, y0 + 4, 1, fy - y0 - 6);\n ctx.fillStyle = \"#A0802E\";\n ctx.fillRect(px + 2, y0 + 4, 1, fy - y0 - 6);\n ctx.fillStyle = \"#D8B860\";\n ctx.fillRect(px - 1, y0 + 4, 5, 2);\n }\n\n // Wall lamps, glowing warm.\n for (const scx of [x0 + Math.round(ww * 0.16), acx, x0 + Math.round(ww * 0.84)]) {\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(scx - 1, y0 + 3, 2, 3);\n ctx.fillRect(scx - 6, y0 + 6, 12, 2);\n ctx.fillRect(scx - 4, y0 + 9, 8, 1);\n ctx.fillStyle = \"#F8E2B4\";\n for (const o of [-5, -2, 1, 4]) ctx.fillRect(scx + o, y0 + 7, 1, 2);\n for (const o of [-3, 0, 3]) ctx.fillRect(scx + o, y0 + 10, 1, 1);\n ctx.fillStyle = \"rgba(255,230,154,0.28)\";\n ctx.fillRect(scx - 5, y0 + 6, 11, 5);\n }\n\n // Tall clear windows around the dais: sky and a far skyline behind a gold frame.\n for (let wx = x0 + Math.round(ww * 0.4); wx + 12 < x0 + ww * 0.6; wx += 16) {\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(wx - 1, y0 + 7, 14, fy - y0 - 14);\n ctx.fillStyle = \"#BFE0F2\";\n ctx.fillRect(wx, y0 + 8, 12, fy - y0 - 16);\n ctx.fillStyle = \"#D8EEF8\";\n ctx.fillRect(wx, y0 + 8, 12, 6);\n ctx.fillStyle = \"#8FA8C0\"; // a far skyline\n ctx.fillRect(wx + 1, fy - 17, 4, 9);\n ctx.fillRect(wx + 7, fy - 20, 4, 12);\n }\n\n // Floor + the white aisle runner with gold edges (the board's ivory runner\n // the couple walks down, not a red carpet).\n ctx.fillStyle = \"#7A5A3A\";\n ctx.fillRect(x0, fy, ww, y0 + hh - fy);\n ctx.fillStyle = \"#8C6A44\";\n ctx.fillRect(x0, fy, ww, 1);\n ctx.fillStyle = \"#F4F0EC\"; // white runner\n ctx.fillRect(acx - 12, fy, 24, y0 + hh - fy);\n ctx.fillStyle = \"#FFFFFF\"; // lit near edge\n ctx.fillRect(acx - 12, fy, 24, 1);\n ctx.fillStyle = \"#C9A24B\"; // gold edges\n ctx.fillRect(acx - 12, fy, 2, y0 + hh - fy);\n ctx.fillRect(acx + 10, fy, 2, y0 + hh - fy);\n layerBreak(ctx); // the shell ends; the arch, dais, chairs, planters and guests follow\n\n // Floral arch over the dais: two white post bases, a top lintel bar, and a\n // garland of blooms across the top and down the sides.\n const postBase = Math.max(2, y0 + hh - (fy - 2)); // white post rising from the floor\n ctx.fillStyle = \"#E8DCC8\";\n ctx.fillRect(acx - 16, fy - 2, 3, postBase);\n ctx.fillRect(acx + 13, fy - 2, 3, postBase);\n ctx.fillRect(acx - 16, y0 + 10, 32, 3);\n const garland = [\"#E88AB0\", \"#F4D0A0\", \"#F0F0F0\", \"#E0A0C0\"];\n for (let ax = acx - 16, gi = 0; ax < acx + 16; ax += 4, gi++) {\n bloom(ctx, ax, y0 + 8, garland[gi % garland.length]);\n }\n for (let ay = y0 + 12; ay < fy - 6; ay += 6) {\n bloom(ctx, acx - 16, ay, \"#E88AB0\");\n bloom(ctx, acx + 14, ay, \"#F0F0F0\");\n }\n\n // A flower stand on the dais.\n ctx.fillStyle = \"#E8DCC8\";\n ctx.fillRect(acx - 6, fy - 6, 12, 6);\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(acx - 1, fy - 9, 2, 3);\n bloom(ctx, acx - 5, fy - 11, \"#E88AB0\");\n bloom(ctx, acx - 1, fy - 12, \"#F4D0A0\");\n bloom(ctx, acx + 3, fy - 10, \"#F0F0F0\");\n\n // The couple on the dais: a dark-suited figure and a white-gowned figure.\n // They seat first, so the smallest real wedding still reads as a wedding.\n if (takeSeat()) personFigure(ctx, acx - 7, fy, \"seated\", \"#2A2E38\");\n if (takeSeat()) {\n ctx.fillStyle = \"#F4F0EC\"; // gown\n ctx.fillRect(acx + 2, fy - 9, 5, 9);\n ctx.fillStyle = \"#FFFFFF\";\n ctx.fillRect(acx + 2, fy - 9, 5, 1);\n ctx.fillStyle = \"#E8C9A0\"; // head\n ctx.fillRect(acx + 2, fy - 14, 4, 5);\n ctx.fillStyle = \"#5A4A3A\";\n ctx.fillRect(acx + 2, fy - 14, 4, 1);\n ctx.fillStyle = \"#F0F0F0\"; // veil\n ctx.fillRect(acx + 1, fy - 15, 6, 2);\n }\n\n // Ribboned guest chairs, either side of the aisle. The chairs always draw\n // (they are furniture); only the guests in them are gated. Guest shirt colors\n // come from the seated build's seed, so a row reads varied.\n for (let sx = x0 + 8, i = 0; sx < acx - 20; sx += 12, i++) {\n ctx.fillStyle = \"#F4F0EC\";\n ctx.fillRect(sx, fy - 9, 6, 9);\n ctx.fillStyle = \"#E88AB0\"; // pink chair ribbon\n ctx.fillRect(sx, fy - 9, 6, 1);\n if (takeSeat()) personSeated(ctx, sx, fy - 2, i * 5 + 1);\n }\n for (let sx = acx + 22, i = 0; sx < x0 + ww - 8; sx += 12, i++) {\n ctx.fillStyle = \"#F4F0EC\";\n ctx.fillRect(sx, fy - 9, 6, 9);\n ctx.fillStyle = \"#E88AB0\";\n ctx.fillRect(sx, fy - 9, 6, 1);\n if (takeSeat()) personSeated(ctx, sx, fy - 2, i * 5 + 4);\n }\n\n // Topiary planters flanking the dais, with blooms.\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(acx - 26, fy - 4, 4, 4);\n ctx.fillStyle = \"#4E7A3E\";\n ctx.fillRect(acx - 30, fy - 16, 8, 12);\n bloom(ctx, acx - 30, fy - 18, \"#E88AB0\");\n bloom(ctx, acx - 26, fy - 19, \"#F0F0F0\");\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(acx + 22, fy - 4, 4, 4);\n ctx.fillStyle = \"#4E7A3E\";\n ctx.fillRect(acx + 22, fy - 16, 8, 12);\n bloom(ctx, acx + 22, fy - 18, \"#F0F0F0\");\n bloom(ctx, acx + 26, fy - 19, \"#E88AB0\");\n\n // The petal row draws along the top of the wall (y0 + 5), over the sconces,\n // so it belongs to the shell and follows the furniture's end.\n layerEnd(ctx);\n // A row of scattered petals along the top of the wall.\n ctx.fillStyle = \"rgba(90,168,90,0.7)\";\n for (let gx = x0 + 6; gx < x0 + ww - 6; gx += 8) ctx.fillRect(gx, y0 + 5, 4, 1);\n}\n\nconst LEAF = [\"#6FAF4E\", \"#4E8A3E\", \"#3C6E34\"] as const;\nconst STONE = \"#E9DFC9\";\nconst STONE_SHADE = \"#CFC2A6\";\nconst FRAME = \"#F4F6F2\";\nconst GLASS = \"#CBEAEA\";\nconst GOLD = \"#C9A24B\";\nconst BLOOM_COLORS = [\"#E88AB0\", \"#F4D060\", \"#F0F0F0\"] as const;\n\n/** The bloom color for a position along a hedge. Positions can be negative (a sprite is\n * drawn relative to its own origin), so the index is taken from the absolute value. */\nfunction bloomColor(pos: number): string {\n return BLOOM_COLORS[Math.abs(pos) % BLOOM_COLORS.length];\n}\n\n/** A filled disc in three green bands, lighter at the top. */\nfunction leafBlob(ctx: CanvasRenderingContext2D, cx: number, cy: number, r: number): void {\n for (let dy = -r; dy <= r; dy++) {\n const half = Math.round(Math.sqrt(r * r - dy * dy));\n ctx.fillStyle = LEAF[dy < -r / 3 ? 0 : 1];\n if (dy >= r / 3) ctx.fillStyle = LEAF[2];\n ctx.fillRect(cx - half, cy + dy, half * 2, 1);\n }\n}\n\n/** A tree standing on `base`: a trunk, then a canopy. */\nfunction tree(ctx: CanvasRenderingContext2D, cx: number, base: number, r: number, trunk: number): void {\n ctx.fillStyle = \"#6A4A30\";\n ctx.fillRect(cx - 1, base - trunk, 2, trunk + 1);\n leafBlob(ctx, cx, base - trunk - r + 2, r);\n}\n\n/** A story's roof slab, drawn along its top edge: the floor the story above stands on. */\nfunction roofSlab(ctx: CanvasRenderingContext2D, tx: number, ty: number, tw: number): void {\n ctx.fillStyle = STONE;\n ctx.fillRect(tx - 2, ty, tw + 4, 3);\n ctx.fillStyle = \"rgba(255,255,255,0.5)\";\n ctx.fillRect(tx - 2, ty, tw + 4, 1);\n ctx.fillStyle = STONE_SHADE;\n ctx.fillRect(tx - 2, ty + 2, tw + 4, 1);\n}\n\n/** Hedges and flowers along an exposed strip of roof, standing on the slab at `base`. */\nfunction roofHedges(ctx: CanvasRenderingContext2D, x1: number, x2: number, base: number): void {\n for (let hx = x1; hx < x2; hx += 4) {\n ctx.fillStyle = (hx >> 2) % 2 ? LEAF[1] : LEAF[2];\n ctx.fillRect(hx, base - 5, Math.min(4, x2 - hx), 5);\n }\n for (let px = x1 + 1; px + 3 < x2; px += 7) bloom(ctx, px, base - 7, bloomColor(px >> 3));\n}\n\n/** How far a curved glass roof drops from its flat crown down to the wall. */\nconst WEDDING_SHOULDER_DROP = 14;\n\n/** The y of a glass roof at column `px`: flat across `flatHalf` each side of the\n * center, then curving down to `drop` px below the crown at the wall (a quarter\n * ellipse, so it meets the wall straight). */\nfunction shoulderTop(px: number, acx: number, flatHalf: number, wallHalf: number, ty: number, drop: number): number {\n const out = Math.abs(px + 0.5 - acx) - flatHalf;\n if (out <= 0) return ty;\n const t = Math.min(1, out / Math.max(1, wallHalf - flatHalf));\n return ty + Math.round(drop * (1 - Math.sqrt(1 - t * t)));\n}\n\n/**\n * One glass story: trees and flower beds inside, white frames, a pale sheen. With\n * `flatHalf` set the roof has curved shoulders: flat over the middle (where the\n * story above stands) and sweeping down to the walls on both sides.\n */\nfunction glassStory(ctx: CanvasRenderingContext2D, tx: number, ty: number, tw: number, h: number, trees: number, flatHalf?: number): void {\n const acx = tx + tw / 2;\n const topAt = (px: number) => (flatHalf === undefined ? ty : shoulderTop(px, acx, flatHalf, tw / 2, ty, WEDDING_SHOULDER_DROP));\n for (let px = tx; px < tx + tw; px++) {\n const top = topAt(px);\n ctx.fillStyle = GLASS;\n ctx.fillRect(px, top, 1, ty + h - top);\n }\n for (let t = 0; t < trees; t++) tree(ctx, tx + 12 + t * Math.round((tw - 24) / Math.max(1, trees - 1)), ty + h, 7, 6);\n for (let px = tx + 4; px < tx + tw - 2; px += 6) bloom(ctx, px, ty + h - 4, bloomColor(px >> 1));\n for (let px = tx; px < tx + tw; px++) {\n const top = topAt(px);\n ctx.fillStyle = \"rgba(255,255,255,0.18)\";\n ctx.fillRect(px, top, 1, ty + h - top);\n if ((px - tx) % 10 === 0 || px < tx + 2 || px >= tx + tw - 2) {\n ctx.fillStyle = FRAME;\n ctx.fillRect(px, top, 1, ty + h - top);\n }\n if (flatHalf !== undefined && top > ty) {\n ctx.fillStyle = FRAME; // the curved roof's frame, one pixel thick along the slope\n ctx.fillRect(px, top, 1, Math.max(2, topAt(px + 1) - top + 1));\n }\n }\n if (flatHalf === undefined) {\n ctx.fillStyle = FRAME;\n ctx.fillRect(tx, ty, tw, 2);\n }\n}\n\n/** Width share of each garden story, floor 101 first: the terraces step in as they rise. */\nconst WEDDING_GARDEN_STORIES = [0.92, 0.74, 0.56] as const;\n/** The garden story (0 is floor 101) whose roof has curved shoulders: floor 102. */\nconst WEDDING_CURVED_STORY = 1;\n/** Width share of the plinth that carries the rings on floor 104. */\nconst WEDDING_PLINTH_SHARE = 0.3;\n\n/**\n * The wedding hall's upper four stories (floors 101 to 104): a sky garden that\n * steps in as it rises. Three glass conservatories, each roof a planted terrace\n * standing on the story below, and on the top roof two interlocked gold rings in\n * a flower-banked stone plinth. Every piece rests on the slab beneath it. Pure\n * shell, no figures, so it never reads occupancy. Everything outside the tiers\n * is left transparent, so the sky shows beside it.\n */\nfunction drawWeddingGarden(d: DrawCtx, x: number, y: number, w: number, h: number, story: number) {\n const ctx = d.ctx;\n const x0 = Math.round(x);\n const y0 = Math.round(y);\n const ww = Math.max(1, Math.round(w));\n const hh = Math.max(1, Math.round(h));\n const acx = x0 + Math.round(ww / 2);\n const evenWidth = (share: number) => Math.max(8, Math.round((ww * share) / 2) * 2);\n const widths = WEDDING_GARDEN_STORIES.map(evenWidth);\n const plinthW = evenWidth(WEDDING_PLINTH_SHARE);\n\n widths.forEach((tw, i) => {\n const ty = y0 + hh - (i + 1) * story;\n const tx = acx - tw / 2;\n const above = i < widths.length - 1 ? widths[i + 1] : plinthW;\n const curved = i === WEDDING_CURVED_STORY;\n glassStory(ctx, tx, ty, tw, story, i === widths.length - 1 ? 3 : 4, curved ? above / 2 + 2 : undefined);\n if (curved) {\n // The roof sweeps down from a flat crown under the story above; flowers line the curve.\n roofSlab(ctx, acx - above / 2 - 2, ty, above);\n for (let px = tx + 1; px + 3 < acx - above / 2 - 2; px += 8) bloom(ctx, px, shoulderTop(px, acx, above / 2 + 2, tw / 2, ty, WEDDING_SHOULDER_DROP) - 3, bloomColor(px >> 3));\n for (let px = acx + above / 2 + 3; px + 3 < tx + tw; px += 8) bloom(ctx, px, shoulderTop(px, acx, above / 2 + 2, tw / 2, ty, WEDDING_SHOULDER_DROP) - 3, bloomColor(px >> 3));\n } else {\n roofSlab(ctx, tx, ty, tw);\n // The strip of this roof left outside the story above is a planted terrace.\n roofHedges(ctx, tx, acx - above / 2 - 1, ty);\n roofHedges(ctx, acx + above / 2 + 1, tx + tw, ty);\n }\n if (i === 0) {\n ctx.fillStyle = LEAF[1];\n for (let vx = tx; vx < tx + tw; vx += 7) ctx.fillRect(vx, ty + 3, 2, 3 + (Math.abs(vx >> 1) % 5)); // vines over the edge\n }\n });\n\n // The top story: a stone plinth on floor 103's roof, banked with flowers, with the rings in it.\n const base = y0 + hh - widths.length * story;\n ctx.fillStyle = STONE;\n ctx.fillRect(acx - plinthW / 2, base - 8, plinthW, 8);\n ctx.fillStyle = \"rgba(255,255,255,0.5)\";\n ctx.fillRect(acx - plinthW / 2, base - 8, plinthW, 1);\n ctx.fillStyle = STONE_SHADE;\n ctx.fillRect(acx - plinthW / 2, base - 2, plinthW, 2);\n const r = 13;\n const cy = base - 8 - r + 3;\n const ring = (cx: number) => {\n for (let deg = 0; deg < 360; deg += 2) {\n const rad = (deg * Math.PI) / 180;\n const px = cx + Math.cos(rad) * r;\n const py = cy + Math.sin(rad) * r;\n ctx.fillStyle = GOLD;\n ctx.fillRect(Math.round(px) - 1, Math.round(py) - 1, 3, 3);\n if (deg > 190 && deg < 270) {\n ctx.fillStyle = \"#F4D878\";\n ctx.fillRect(Math.round(px) - 1, Math.round(py) - 1, 2, 1);\n }\n }\n };\n ring(acx - 7);\n ring(acx + 7);\n ctx.fillStyle = \"#DDF4FF\"; // a small diamond glint on the right ring\n ctx.fillRect(acx + 6, cy - r - 4, 3, 3);\n ctx.fillStyle = \"#FFFFFF\";\n ctx.fillRect(acx + 7, cy - r - 6, 1, 2);\n ctx.fillStyle = LEAF[2]; // flowers bank the foot of the rings so they sit in the plinth\n ctx.fillRect(acx - plinthW / 2 + 1, base - 11, plinthW - 2, 3);\n for (let bx = acx - plinthW / 2 + 1; bx < acx + plinthW / 2 - 3; bx += 4) bloom(ctx, bx, base - 13, (bx >> 2) % 2 ? \"#E88AB0\" : \"#F0F0F0\");\n}\n\n/**\n * The grand wedding hall that crowns a 5-star tower (28 wide, five stories, floors\n * 100 to 104). The ceremony hall with the wedding sits on the bottom story, and\n * four stories of sky garden and a pair of gold rings rise above it. The rect is split into one equal\n * story per floor.\n */\nexport function drawWeddingHall(d: DrawCtx, u: UnitView, x: number, y: number, w: number, h: number) {\n // The TypeScript engine's catalog still holds the one-story hall: draw the nave alone.\n const stories = Math.round(h / FLOOR);\n if (stories < 2) return drawWeddingNave(d, u, x, y, w, h);\n const story = Math.max(1, Math.round(h / stories));\n const crownH = Math.max(1, Math.round(h) - story);\n // The garden picks hedge and bloom colors from pixel columns, so it draws\n // from the hall's own origin: the same hall then looks the same wherever it\n // falls on the shared region canvas, and the atlas can bake it once.\n const ctx = d.ctx;\n ctx.save();\n ctx.translate(x, y);\n try {\n drawWeddingGarden(d, 0, 0, w, crownH, story);\n drawWeddingNave(d, u, 0, crownH, w, story);\n } finally {\n ctx.restore();\n }\n}\n"],"names":[],"mapp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;IACrC,IAAI,OAAO,GAAG,CAAC;AAAE,QAAA,OAAO,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACzD,IAAA,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;AAClD,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;;;;AAIjD,IAAA,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG;IACjB,GAAG,CAAC,IAAI,EAAE;AACV,IAAA,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC;AACnB,IAAA,IAAI;AACF,QAAA,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;AAC5C,QAAA,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC;IAC5C;YAAU;QACR,GAAG,CAAC,OAAO,EAAE;IACf;AACF;;"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Facility sprites: in-tower services, moving actors, and event venues. This
3
+ * file is a barrel; the draw functions live in cohesive siblings under
4
+ * `facilities/` and are re-exported here so every existing
5
+ * `import { … } from "./sprites/facilities"` (and the `sprites.ts` barrel)
6
+ * keeps working unchanged:
7
+ * - `facilities/service.ts`: security, medical, housekeeping, and metro
8
+ * (the in-tower service kinds), with shared port helpers in
9
+ * `facilities/serviceKit.ts`.
10
+ * - `facilities/recycling.ts`: the recycling center.
11
+ * - `facilities/garage.ts`: the parking space and the parking ramp.
12
+ * - `facilities/vehicles.ts`: the garbage truck, street car, and metro
13
+ * train (the moving actors).
14
+ * - `facilities/venue.ts`: the party hall and aquatic center (the event
15
+ * venues). `facilities/weddingHall.ts` is the wedding hall.
16
+ */
17
+ export { drawHousekeeping, drawMedical, drawMetro, drawMetroTunnel, drawSecurity, METRO_TUNNEL_TILE } from "./facilities/service";
18
+ export { drawRecycling } from "./facilities/recycling";
19
+ export { drawParking, drawParkingRamp } from "./facilities/garage";
20
+ export { drawGarbageTruck, drawMetroTrain, drawStreetCar } from "./facilities/vehicles";
21
+ export { drawAquaticCenter, drawPartyHall } from "./facilities/venue";
22
+ export { drawWeddingHall } from "./facilities/weddingHall";
@@ -0,0 +1,24 @@
1
+ export { METRO_TUNNEL_TILE, drawHousekeeping, drawMedical, drawMetro, drawMetroTunnel, drawSecurity } from './facilities/service.js';
2
+ export { drawRecycling } from './facilities/recycling.js';
3
+ export { drawParking, drawParkingRamp } from './facilities/garage.js';
4
+ export { drawGarbageTruck, drawMetroTrain, drawStreetCar } from './facilities/vehicles.js';
5
+ export { drawAquaticCenter, drawPartyHall } from './facilities/venue.js';
6
+ export { drawWeddingHall } from './facilities/weddingHall.js';
7
+
8
+ /**
9
+ * Facility sprites: in-tower services, moving actors, and event venues. This
10
+ * file is a barrel; the draw functions live in cohesive siblings under
11
+ * `facilities/` and are re-exported here so every existing
12
+ * `import { … } from "./sprites/facilities"` (and the `sprites.ts` barrel)
13
+ * keeps working unchanged:
14
+ * - `facilities/service.ts`: security, medical, housekeeping, and metro
15
+ * (the in-tower service kinds), with shared port helpers in
16
+ * `facilities/serviceKit.ts`.
17
+ * - `facilities/recycling.ts`: the recycling center.
18
+ * - `facilities/garage.ts`: the parking space and the parking ramp.
19
+ * - `facilities/vehicles.ts`: the garbage truck, street car, and metro
20
+ * train (the moving actors).
21
+ * - `facilities/venue.ts`: the party hall and aquatic center (the event
22
+ * venues). `facilities/weddingHall.ts` is the wedding hall.
23
+ */
24
+ //# sourceMappingURL=facilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facilities.js","sources":["../../../src/render/sprites/facilities.ts"],"sourcesContent":["/**\n * Facility sprites: in-tower services, moving actors, and event venues. This\n * file is a barrel; the draw functions live in cohesive siblings under\n * `facilities/` and are re-exported here so every existing\n * `import { … } from \"./sprites/facilities\"` (and the `sprites.ts` barrel)\n * keeps working unchanged:\n * - `facilities/service.ts`: security, medical, housekeeping, and metro\n * (the in-tower service kinds), with shared port helpers in\n * `facilities/serviceKit.ts`.\n * - `facilities/recycling.ts`: the recycling center.\n * - `facilities/garage.ts`: the parking space and the parking ramp.\n * - `facilities/vehicles.ts`: the garbage truck, street car, and metro\n * train (the moving actors).\n * - `facilities/venue.ts`: the party hall and aquatic center (the event\n * venues). `facilities/weddingHall.ts` is the wedding hall.\n */\nexport { drawHousekeeping, drawMedical, drawMetro, drawMetroTunnel, drawSecurity, METRO_TUNNEL_TILE } from \"./facilities/service\";\nexport { drawRecycling } from \"./facilities/recycling\";\nexport { drawParking, drawParkingRamp } from \"./facilities/garage\";\nexport { drawGarbageTruck, drawMetroTrain, drawStreetCar } from \"./facilities/vehicles\";\nexport { drawAquaticCenter, drawPartyHall } from \"./facilities/venue\";\nexport { drawWeddingHall } from \"./facilities/weddingHall\";\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;;AAeG"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The Fire Rescue helicopter (#1889): a red rescue helicopter, drawn on the
3
+ * overlay in screen space, and the water it sprays on a fire. Original art
4
+ * for Verticopolis, drawn with canvas paths like the other event sprites.
5
+ */
6
+ /** The helicopter centered at (x, y), facing left, sized by `s`. `rotor` is
7
+ * the blade's turn from 0 to 1 (held at 0 under reduced motion). */
8
+ export declare function drawHelicopter(ctx: CanvasRenderingContext2D, x: number, y: number, s: number, rotor: number): void;
9
+ /** Water falling from (x, fromY) to the fire at footY, as a few streaks
10
+ * that drift with `phase` (0 to 1, held still under reduced motion). */
11
+ export declare function drawWaterSpray(ctx: CanvasRenderingContext2D, x: number, fromY: number, footY: number, s: number, phase: number): void;
@@ -0,0 +1,60 @@
1
+ /**
2
+ * The Fire Rescue helicopter (#1889): a red rescue helicopter, drawn on the
3
+ * overlay in screen space, and the water it sprays on a fire. Original art
4
+ * for Verticopolis, drawn with canvas paths like the other event sprites.
5
+ */
6
+ /** The helicopter centered at (x, y), facing left, sized by `s`. `rotor` is
7
+ * the blade's turn from 0 to 1 (held at 0 under reduced motion). */
8
+ function drawHelicopter(ctx, x, y, s, rotor) {
9
+ ctx.save();
10
+ // Tail boom and tail rotor.
11
+ ctx.fillStyle = "#b51f1f";
12
+ ctx.fillRect(x + 6 * s, y - 2 * s, 16 * s, 3 * s);
13
+ ctx.fillStyle = "#3a3a3a";
14
+ ctx.fillRect(x + 21 * s, y - 6 * s, 2 * s, 9 * s);
15
+ // Cabin.
16
+ ctx.fillStyle = "#d42a2a";
17
+ ctx.beginPath();
18
+ ctx.ellipse(x, y, 10 * s, 6 * s, 0, 0, Math.PI * 2);
19
+ ctx.fill();
20
+ // Window.
21
+ ctx.fillStyle = "#9fd4f2";
22
+ ctx.beginPath();
23
+ ctx.ellipse(x - 4 * s, y - 1.5 * s, 4 * s, 3 * s, 0, 0, Math.PI * 2);
24
+ ctx.fill();
25
+ // White rescue stripe.
26
+ ctx.fillStyle = "#ffffff";
27
+ ctx.fillRect(x - 2 * s, y + 2 * s, 10 * s, 1.5 * s);
28
+ // Skids.
29
+ ctx.fillStyle = "#3a3a3a";
30
+ ctx.fillRect(x - 9 * s, y + 8 * s, 18 * s, 1.5 * s);
31
+ ctx.fillRect(x - 5 * s, y + 5 * s, 1.5 * s, 3 * s);
32
+ ctx.fillRect(x + 4 * s, y + 5 * s, 1.5 * s, 3 * s);
33
+ // Mast and main rotor: the blade's span narrows and widens as it turns.
34
+ ctx.fillRect(x - 0.75 * s, y - 9 * s, 1.5 * s, 3 * s);
35
+ const span = 18 * s * Math.max(0.15, Math.abs(Math.cos(rotor * Math.PI * 2)));
36
+ ctx.fillRect(x - span, y - 10 * s, span * 2, 1.5 * s);
37
+ ctx.restore();
38
+ }
39
+ /** Water falling from (x, fromY) to the fire at footY, as a few streaks
40
+ * that drift with `phase` (0 to 1, held still under reduced motion). */
41
+ function drawWaterSpray(ctx, x, fromY, footY, s, phase) {
42
+ if (footY <= fromY)
43
+ return;
44
+ ctx.save();
45
+ ctx.strokeStyle = "rgba(120,180,255,0.75)";
46
+ ctx.lineWidth = Math.max(1, s);
47
+ const drop = footY - fromY;
48
+ for (let i = 0; i < 5; i++) {
49
+ const dx = (i - 2) * 4 * s;
50
+ const start = ((phase + i * 0.2) % 1) * drop * 0.4;
51
+ ctx.beginPath();
52
+ ctx.moveTo(x + dx * 0.4, fromY + start);
53
+ ctx.lineTo(x + dx, footY);
54
+ ctx.stroke();
55
+ }
56
+ ctx.restore();
57
+ }
58
+
59
+ export { drawHelicopter, drawWaterSpray };
60
+ //# sourceMappingURL=helicopter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helicopter.js","sources":["../../../src/render/sprites/helicopter.ts"],"sourcesContent":["/**\n * The Fire Rescue helicopter (#1889): a red rescue helicopter, drawn on the\n * overlay in screen space, and the water it sprays on a fire. Original art\n * for Verticopolis, drawn with canvas paths like the other event sprites.\n */\n\n/** The helicopter centered at (x, y), facing left, sized by `s`. `rotor` is\n * the blade's turn from 0 to 1 (held at 0 under reduced motion). */\nexport function drawHelicopter(ctx: CanvasRenderingContext2D, x: number, y: number, s: number, rotor: number): void {\n ctx.save();\n // Tail boom and tail rotor.\n ctx.fillStyle = \"#b51f1f\";\n ctx.fillRect(x + 6 * s, y - 2 * s, 16 * s, 3 * s);\n ctx.fillStyle = \"#3a3a3a\";\n ctx.fillRect(x + 21 * s, y - 6 * s, 2 * s, 9 * s);\n // Cabin.\n ctx.fillStyle = \"#d42a2a\";\n ctx.beginPath();\n ctx.ellipse(x, y, 10 * s, 6 * s, 0, 0, Math.PI * 2);\n ctx.fill();\n // Window.\n ctx.fillStyle = \"#9fd4f2\";\n ctx.beginPath();\n ctx.ellipse(x - 4 * s, y - 1.5 * s, 4 * s, 3 * s, 0, 0, Math.PI * 2);\n ctx.fill();\n // White rescue stripe.\n ctx.fillStyle = \"#ffffff\";\n ctx.fillRect(x - 2 * s, y + 2 * s, 10 * s, 1.5 * s);\n // Skids.\n ctx.fillStyle = \"#3a3a3a\";\n ctx.fillRect(x - 9 * s, y + 8 * s, 18 * s, 1.5 * s);\n ctx.fillRect(x - 5 * s, y + 5 * s, 1.5 * s, 3 * s);\n ctx.fillRect(x + 4 * s, y + 5 * s, 1.5 * s, 3 * s);\n // Mast and main rotor: the blade's span narrows and widens as it turns.\n ctx.fillRect(x - 0.75 * s, y - 9 * s, 1.5 * s, 3 * s);\n const span = 18 * s * Math.max(0.15, Math.abs(Math.cos(rotor * Math.PI * 2)));\n ctx.fillRect(x - span, y - 10 * s, span * 2, 1.5 * s);\n ctx.restore();\n}\n\n/** Water falling from (x, fromY) to the fire at footY, as a few streaks\n * that drift with `phase` (0 to 1, held still under reduced motion). */\nexport function drawWaterSpray(ctx: CanvasRenderingContext2D, x: number, fromY: number, footY: number, s: number, phase: number): void {\n if (footY <= fromY) return;\n ctx.save();\n ctx.strokeStyle = \"rgba(120,180,255,0.75)\";\n ctx.lineWidth = Math.max(1, s);\n const drop = footY - fromY;\n for (let i = 0; i < 5; i++) {\n const dx = (i - 2) * 4 * s;\n const start = ((phase + i * 0.2) % 1) * drop * 0.4;\n ctx.beginPath();\n ctx.moveTo(x + dx * 0.4, fromY + start);\n ctx.lineTo(x + dx, footY);\n ctx.stroke();\n }\n ctx.restore();\n}\n"],"names":[],"mappings":"AAAA;;;;AAIG;AAEH;AACqE;AAC/D,SAAU,cAAc,CAAC,GAA6B,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,KAAa,EAAA;IAC1G,GAAG,CAAC,IAAI,EAAE;;AAEV,IAAA,GAAG,CAAC,SAAS,GAAG,SAAS;IACzB,GAAG,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,E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