@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,222 @@
1
+ import { bake } from './bake.js';
2
+ import { roomJobs } from './catalog.js';
3
+ import { structureJobs, transportJobs, peopleJobs, facadeJobs, vehicleJobs, skyJobs, legacyShaftJobs } from './catalogExtras.js';
4
+ import { paint } from './paint.js';
5
+ import { sceneryJobs } from './scenery.js';
6
+ import { LayerError } from './pixels.js';
7
+ import { shellMarks } from './shellMarks.js';
8
+ import { withLayerHook } from '../pixelSprites/layers.js';
9
+ import { SAMPLES } from './samples.js';
10
+ import { verifySample } from './verify.js';
11
+ import { verifyExtras } from './verifyExtras.js';
12
+ import { bindViewWorld } from '../../presentation/viewWorld.js';
13
+ import { bindViewKinds } from '../../presentation/viewKinds.js';
14
+
15
+ /**
16
+ * The atlas bake's browser half, bundled by `scripts/export-atlas.ts` and run
17
+ * inside the pinned Playwright Chromium. It renders every catalog job through
18
+ * a real 2D canvas set up the way Excalibur's `Raster` sets up the web game's
19
+ * bake canvases, and hands the unique images back to Node in chunks.
20
+ */
21
+ /** Every job the atlas bakes, in a fixed order. */
22
+ function allJobs() {
23
+ return [...roomJobs(), ...structureJobs(), ...transportJobs(), ...peopleJobs(), ...facadeJobs(), ...vehicleJobs(), ...skyJobs(), ...sceneryJobs(), ...legacyShaftJobs()];
24
+ }
25
+ /** A 2D context for `canvas` at `w` x `h`, cleared and prepared like an
26
+ * Excalibur raster (quality 1, no padding, smoothing off, 1px butt lines,
27
+ * black fill), with that state saved. */
28
+ function prepare(canvas, w, h) {
29
+ canvas.width = w;
30
+ canvas.height = h;
31
+ const ctx = canvas.getContext("2d");
32
+ if (!ctx)
33
+ throw new Error("no 2d context");
34
+ ctx.clearRect(0, 0, w, h);
35
+ ctx.save();
36
+ ctx.imageSmoothingEnabled = false;
37
+ ctx.lineWidth = 1;
38
+ ctx.setLineDash([]);
39
+ ctx.lineCap = "butt";
40
+ ctx.fillStyle = "#000000";
41
+ return ctx;
42
+ }
43
+ /** Replace every pixel of `dst` with `src`'s, whatever transform, alpha,
44
+ * shadow or filter the paint has set. Canvas to canvas with "copy" moves the
45
+ * stored pixels unchanged, translucent ones included. A clip cannot be lifted
46
+ * without the paint's own `restore`, so the copy stays inside any clip: the
47
+ * bake's only clip is the room's whole canvas (`paintSettledUnit`). */
48
+ function copyPixels(dst, src) {
49
+ dst.save();
50
+ dst.setTransform(1, 0, 0, 1, 0, 0);
51
+ dst.globalAlpha = 1;
52
+ dst.globalCompositeOperation = "copy";
53
+ dst.imageSmoothingEnabled = false;
54
+ dst.shadowColor = "transparent";
55
+ dst.shadowBlur = 0;
56
+ dst.shadowOffsetX = 0;
57
+ dst.shadowOffsetY = 0;
58
+ dst.filter = "none";
59
+ dst.drawImage(src, 0, 0);
60
+ dst.restore();
61
+ }
62
+ /** A fresh canvas per render, prepared like an Excalibur raster. */
63
+ function canvasRenderer(doc) {
64
+ const canvas = doc.createElement("canvas");
65
+ const saved = doc.createElement("canvas");
66
+ const aside = doc.createElement("canvas");
67
+ return {
68
+ render(spec, w, h) {
69
+ const ctx = prepare(canvas, w, h);
70
+ paint(ctx, spec, w, h);
71
+ ctx.restore();
72
+ const data = ctx.getImageData(0, 0, w, h).data;
73
+ return { w, h, data };
74
+ },
75
+ // The same paint, with the layer marks live: at the break the canvas is
76
+ // copied aside; at the end of the furniture (or of the paint) it is put
77
+ // back, so the furniture is gone and anything drawn after the end (the
78
+ // night scrim, the notice badge) lands on the shell. The flat frame comes
79
+ // from `render`, which runs with no hook, so its pixels never depend on
80
+ // this pass.
81
+ renderShell(spec, w, h) {
82
+ const ctx = prepare(canvas, w, h);
83
+ const store = prepare(saved, w, h);
84
+ const spare = prepare(aside, w, h);
85
+ const marks = shellMarks(() => copyPixels(store, canvas), () => copyPixels(ctx, saved),
86
+ // Shell art among the furniture: paint it on the shell kept aside
87
+ // (swapped onto the canvas, since the paint holds the canvas's
88
+ // context), then on the canvas as the flat frame has it.
89
+ (draw) => {
90
+ copyPixels(spare, canvas);
91
+ copyPixels(ctx, saved);
92
+ draw();
93
+ copyPixels(store, canvas);
94
+ copyPixels(ctx, aside);
95
+ draw();
96
+ });
97
+ withLayerHook(marks.hook, () => paint(ctx, spec, w, h));
98
+ const split = marks.finish();
99
+ ctx.restore();
100
+ store.restore();
101
+ spare.restore();
102
+ if (!split)
103
+ return null;
104
+ return { w, h, data: ctx.getImageData(0, 0, w, h).data };
105
+ },
106
+ // For a vehicle: the canvas at the break (the back) and at the end of the
107
+ // furniture (the back plus the riders); what the paint draws after the
108
+ // end is its front, which the bake takes from the flat frame.
109
+ renderSplit(spec, w, h) {
110
+ const ctx = prepare(canvas, w, h);
111
+ const back = prepare(saved, w, h);
112
+ const mid = prepare(aside, w, h);
113
+ const marks = shellMarks(() => copyPixels(back, canvas), () => copyPixels(mid, canvas),
114
+ // No vehicle draws shell art among its riders; it would land on them.
115
+ () => {
116
+ throw new LayerError("layerShell in a vehicle's paint");
117
+ });
118
+ withLayerHook(marks.hook, () => paint(ctx, spec, w, h));
119
+ const split = marks.finish();
120
+ ctx.restore();
121
+ back.restore();
122
+ mid.restore();
123
+ if (!split)
124
+ return null;
125
+ return { back: { w, h, data: back.getImageData(0, 0, w, h).data }, mid: { w, h, data: mid.getImageData(0, 0, w, h).data } };
126
+ },
127
+ // The same paint once more: at the break the canvas is cleared, so the
128
+ // furniture lands on transparency with its own glows and shadows; at the
129
+ // end of the furniture the paint switches to source-atop, so the marks
130
+ // drawn over the room only tint the furniture already there.
131
+ renderSoft(spec, w, h) {
132
+ const ctx = prepare(canvas, w, h);
133
+ // A blank canvas to copy in at the break, so the furniture is painted on
134
+ // transparency (`prepare` clears it; the restore pops its save).
135
+ prepare(saved, w, h).restore();
136
+ // After the end, the marks drawn over the furniture land only on its
137
+ // pixels (source-atop), even past a `restore()` that would bring back
138
+ // source-over: no room routine sets a composite mode of its own.
139
+ const restore = ctx.restore.bind(ctx);
140
+ const atop = () => {
141
+ ctx.globalCompositeOperation = "source-atop";
142
+ ctx.restore = () => {
143
+ restore();
144
+ ctx.globalCompositeOperation = "source-atop";
145
+ };
146
+ };
147
+ // Shell art among the furniture belongs to the shell, so here it only
148
+ // cuts away the furniture it covers (the curb over the machines' feet).
149
+ const onShell = (draw) => {
150
+ const prev = ctx.globalCompositeOperation;
151
+ ctx.globalCompositeOperation = "destination-out";
152
+ try {
153
+ draw();
154
+ }
155
+ finally {
156
+ ctx.globalCompositeOperation = prev;
157
+ }
158
+ };
159
+ const marks = shellMarks(() => copyPixels(ctx, saved), atop, onShell);
160
+ let split;
161
+ try {
162
+ withLayerHook(marks.hook, () => paint(ctx, spec, w, h));
163
+ split = marks.finish();
164
+ }
165
+ finally {
166
+ Reflect.deleteProperty(ctx, "restore");
167
+ }
168
+ ctx.restore();
169
+ if (!split)
170
+ return null;
171
+ return { w, h, data: ctx.getImageData(0, 0, w, h).data };
172
+ },
173
+ };
174
+ }
175
+ function toBase64(bytes) {
176
+ let s = "";
177
+ const step = 0x8000;
178
+ for (let i = 0; i < bytes.length; i += step)
179
+ s += String.fromCharCode(...bytes.subarray(i, i + step));
180
+ return btoa(s);
181
+ }
182
+ let result = null;
183
+ const api = {
184
+ bind(catalog) {
185
+ bindViewWorld(catalog.world);
186
+ bindViewKinds(catalog);
187
+ },
188
+ run(filter) {
189
+ const jobs = filter ? allJobs().filter((j) => j.name.startsWith(filter)) : allJobs();
190
+ const stats = { softDropped: [] };
191
+ result = bake(jobs, canvasRenderer(document), undefined, stats);
192
+ return { images: result.images.length, frames: result.frames.length, animations: result.animations.length, softDropped: stats.softDropped };
193
+ },
194
+ records() {
195
+ if (!result)
196
+ throw new Error("run() first");
197
+ // Everything but the pixels, so a new field of the result reaches Node.
198
+ const { images: _images, normals: _normals, ...records } = result;
199
+ return records;
200
+ },
201
+ images(from, maxBytes) {
202
+ if (!result)
203
+ throw new Error("run() first");
204
+ const out = [];
205
+ let bytes = 0;
206
+ for (let i = from; i < result.images.length && (out.length === 0 || bytes < maxBytes); i++) {
207
+ const img = result.images[i];
208
+ bytes += Math.ceil((img.data.length * 2 * 4) / 3);
209
+ out.push({ w: img.w, h: img.h, b64: toBase64(img.data), normal: toBase64(result.normals[i].data) });
210
+ }
211
+ return out;
212
+ },
213
+ verify(samples = SAMPLES) {
214
+ const jobs = allJobs();
215
+ const renderer = canvasRenderer(document);
216
+ return [...samples.flatMap((s) => verifySample(document, jobs, renderer, s)), ...verifyExtras(document, jobs, renderer)];
217
+ },
218
+ };
219
+ globalThis.__vcAtlas = api;
220
+
221
+ export { allJobs, canvasRenderer };
222
+ //# sourceMappingURL=browserEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browserEntry.js","sources":["../../../src/render/atlas/browserEntry.ts"],"sourcesContent":["import { bake, type BakeResult, type Renderer } from \"./bake\";\nimport { roomJobs, type Job } from \"./catalog\";\nimport { facadeJobs, legacyShaftJobs, peopleJobs, skyJobs, structureJobs, transportJobs, vehicleJobs } from \"./catalogExtras\";\nimport { paint, type PaintSpec } from \"./paint\";\nimport { sceneryJobs } from \"./scenery\";\nimport { LayerError, type Image } from \"./pixels\";\nimport { shellMarks } from \"./shellMarks\";\nimport { withLayerHook } from \"../pixelSprites/layers\";\nimport { SAMPLES, type Sample } from \"./samples\";\nimport { verifySample, type SampleResult } from \"./verify\";\nimport { verifyExtras } from \"./verifyExtras\";\nimport type { Catalog } from \"../../catalog/catalogTypes\";\nimport { bindViewWorld } from \"../../presentation/viewWorld\";\nimport { bindViewKinds } from \"../../presentation/viewKinds\";\n\n/**\n * The atlas bake's browser half, bundled by `scripts/export-atlas.ts` and run\n * inside the pinned Playwright Chromium. It renders every catalog job through\n * a real 2D canvas set up the way Excalibur's `Raster` sets up the web game's\n * bake canvases, and hands the unique images back to Node in chunks.\n */\n\n/** Every job the atlas bakes, in a fixed order. */\nexport function allJobs(): Job[] {\n return [...roomJobs(), ...structureJobs(), ...transportJobs(), ...peopleJobs(), ...facadeJobs(), ...vehicleJobs(), ...skyJobs(), ...sceneryJobs(), ...legacyShaftJobs()];\n}\n\n/** A 2D context for `canvas` at `w` x `h`, cleared and prepared like an\n * Excalibur raster (quality 1, no padding, smoothing off, 1px butt lines,\n * black fill), with that state saved. */\nfunction prepare(canvas: HTMLCanvasElement, w: number, h: number): CanvasRenderingContext2D {\n canvas.width = w;\n canvas.height = h;\n const ctx = canvas.getContext(\"2d\");\n if (!ctx) throw new Error(\"no 2d context\");\n ctx.clearRect(0, 0, w, h);\n ctx.save();\n ctx.imageSmoothingEnabled = false;\n ctx.lineWidth = 1;\n ctx.setLineDash([]);\n ctx.lineCap = \"butt\";\n ctx.fillStyle = \"#000000\";\n return ctx;\n}\n\n/** Replace every pixel of `dst` with `src`'s, whatever transform, alpha,\n * shadow or filter the paint has set. Canvas to canvas with \"copy\" moves the\n * stored pixels unchanged, translucent ones included. A clip cannot be lifted\n * without the paint's own `restore`, so the copy stays inside any clip: the\n * bake's only clip is the room's whole canvas (`paintSettledUnit`). */\nfunction copyPixels(dst: CanvasRenderingContext2D, src: HTMLCanvasElement): void {\n dst.save();\n dst.setTransform(1, 0, 0, 1, 0, 0);\n dst.globalAlpha = 1;\n dst.globalCompositeOperation = \"copy\";\n dst.imageSmoothingEnabled = false;\n dst.shadowColor = \"transparent\";\n dst.shadowBlur = 0;\n dst.shadowOffsetX = 0;\n dst.shadowOffsetY = 0;\n dst.filter = \"none\";\n dst.drawImage(src, 0, 0);\n dst.restore();\n}\n\n/** A fresh canvas per render, prepared like an Excalibur raster. */\nexport function canvasRenderer(doc: Document): Renderer {\n const canvas = doc.createElement(\"canvas\");\n const saved = doc.createElement(\"canvas\");\n const aside = doc.createElement(\"canvas\");\n return {\n render(spec: PaintSpec, w: number, h: number): Image {\n const ctx = prepare(canvas, w, h);\n paint(ctx, spec, w, h);\n ctx.restore();\n const data = ctx.getImageData(0, 0, w, h).data;\n return { w, h, data };\n },\n // The same paint, with the layer marks live: at the break the canvas is\n // copied aside; at the end of the furniture (or of the paint) it is put\n // back, so the furniture is gone and anything drawn after the end (the\n // night scrim, the notice badge) lands on the shell. The flat frame comes\n // from `render`, which runs with no hook, so its pixels never depend on\n // this pass.\n renderShell(spec: PaintSpec, w: number, h: number): Image | null {\n const ctx = prepare(canvas, w, h);\n const store = prepare(saved, w, h);\n const spare = prepare(aside, w, h);\n const marks = shellMarks(\n () => copyPixels(store, canvas),\n () => copyPixels(ctx, saved),\n // Shell art among the furniture: paint it on the shell kept aside\n // (swapped onto the canvas, since the paint holds the canvas's\n // context), then on the canvas as the flat frame has it.\n (draw) => {\n copyPixels(spare, canvas);\n copyPixels(ctx, saved);\n draw();\n copyPixels(store, canvas);\n copyPixels(ctx, aside);\n draw();\n },\n );\n withLayerHook(marks.hook, () => paint(ctx, spec, w, h));\n const split = marks.finish();\n ctx.restore();\n store.restore();\n spare.restore();\n if (!split) return null;\n return { w, h, data: ctx.getImageData(0, 0, w, h).data };\n },\n // For a vehicle: the canvas at the break (the back) and at the end of the\n // furniture (the back plus the riders); what the paint draws after the\n // end is its front, which the bake takes from the flat frame.\n renderSplit(spec: PaintSpec, w: number, h: number): { back: Image; mid: Image } | null {\n const ctx = prepare(canvas, w, h);\n const back = prepare(saved, w, h);\n const mid = prepare(aside, w, h);\n const marks = shellMarks(\n () => copyPixels(back, canvas),\n () => copyPixels(mid, canvas),\n // No vehicle draws shell art among its riders; it would land on them.\n () => {\n throw new LayerError(\"layerShell in a vehicle's paint\");\n },\n );\n withLayerHook(marks.hook, () => paint(ctx, spec, w, h));\n const split = marks.finish();\n ctx.restore();\n back.restore();\n mid.restore();\n if (!split) return null;\n return { back: { w, h, data: back.getImageData(0, 0, w, h).data }, mid: { w, h, data: mid.getImageData(0, 0, w, h).data } };\n },\n // The same paint once more: at the break the canvas is cleared, so the\n // furniture lands on transparency with its own glows and shadows; at the\n // end of the furniture the paint switches to source-atop, so the marks\n // drawn over the room only tint the furniture already there.\n renderSoft(spec: PaintSpec, w: number, h: number): Image | null {\n const ctx = prepare(canvas, w, h);\n // A blank canvas to copy in at the break, so the furniture is painted on\n // transparency (`prepare` clears it; the restore pops its save).\n prepare(saved, w, h).restore();\n // After the end, the marks drawn over the furniture land only on its\n // pixels (source-atop), even past a `restore()` that would bring back\n // source-over: no room routine sets a composite mode of its own.\n const restore = ctx.restore.bind(ctx);\n const atop = () => {\n ctx.globalCompositeOperation = \"source-atop\";\n ctx.restore = () => {\n restore();\n ctx.globalCompositeOperation = \"source-atop\";\n };\n };\n // Shell art among the furniture belongs to the shell, so here it only\n // cuts away the furniture it covers (the curb over the machines' feet).\n const onShell = (draw: () => void) => {\n const prev = ctx.globalCompositeOperation;\n ctx.globalCompositeOperation = \"destination-out\";\n try {\n draw();\n } finally {\n ctx.globalCompositeOperation = prev;\n }\n };\n const marks = shellMarks(() => copyPixels(ctx, saved), atop, onShell);\n let split: boolean;\n try {\n withLayerHook(marks.hook, () => paint(ctx, spec, w, h));\n split = marks.finish();\n } finally {\n Reflect.deleteProperty(ctx, \"restore\");\n }\n ctx.restore();\n if (!split) return null;\n return { w, h, data: ctx.getImageData(0, 0, w, h).data };\n },\n };\n}\n\nfunction toBase64(bytes: Uint8ClampedArray): string {\n let s = \"\";\n const step = 0x8000;\n for (let i = 0; i < bytes.length; i += step) s += String.fromCharCode(...bytes.subarray(i, i + step));\n return btoa(s);\n}\n\ninterface AtlasPage {\n /** Binds the view to the engine's Modern catalog before anything draws:\n * the page draws sprites without a tower, so Node hands it the catalog it\n * read from the engine package (`scripts/atlas-catalog.ts`). */\n bind(catalog: Catalog): void;\n run(filter?: string): { images: number; frames: number; animations: number; softDropped: string[] };\n records(): Omit<BakeResult, \"images\" | \"normals\">;\n /** Images from `from` on, at least one, until about `maxBytes` of base64. */\n images(from: number, maxBytes: number): { w: number; h: number; b64: string; normal: string }[];\n verify(samples?: Sample[]): SampleResult[];\n}\n\nlet result: BakeResult | null = null;\nconst api: AtlasPage = {\n bind(catalog) {\n bindViewWorld(catalog.world);\n bindViewKinds(catalog);\n },\n run(filter) {\n const jobs = filter ? allJobs().filter((j) => j.name.startsWith(filter)) : allJobs();\n const stats = { softDropped: [] as string[] };\n result = bake(jobs, canvasRenderer(document), undefined, stats);\n return { images: result.images.length, frames: result.frames.length, animations: result.animations.length, softDropped: stats.softDropped };\n },\n records() {\n if (!result) throw new Error(\"run() first\");\n // Everything but the pixels, so a new field of the result reaches Node.\n const { images: _images, normals: _normals, ...records } = result;\n return records;\n },\n images(from, maxBytes) {\n if (!result) throw new Error(\"run() first\");\n const out: { w: number; h: number; b64: string; normal: string }[] = [];\n let bytes = 0;\n for (let i = from; i < result.images.length && (out.length === 0 || bytes < maxBytes); i++) {\n const img = result.images[i];\n bytes += Math.ceil((img.data.length * 2 * 4) / 3);\n out.push({ w: img.w, h: img.h, b64: toBase64(img.data), normal: toBase64(result.normals[i].data) });\n }\n return out;\n },\n verify(samples = SAMPLES) {\n const jobs = allJobs();\n const renderer = canvasRenderer(document);\n return [...samples.flatMap((s) => verifySample(document, jobs, renderer, s)), ...verifyExtras(document, jobs, renderer)];\n },\n};\n(globalThis as unknown as { __vcAtlas: AtlasPage }).__vcAtlas = api;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAeA;;;;;AAKG;AAEH;SACgB,OAAO,GAAA;AACrB,IAAA,OAAO,CAAC,GAAG,QAAQ,EAAE,EAAE,GAAG,aAAa,EAAE,EAAE,GAAG,aAAa,EAAE,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG,WAAW,EAAE,EAAE,GAAG,OAAO,EAAE,EAAE,GAAG,WAAW,EAAE,EAAE,GAAG,eAAe,EAAE,CAAC;AAC1K;AAEA;;AAE0C;AAC1C,SAAS,OAAO,CAAC,MAAyB,EAAE,CAAS,EAAE,CAAS,EAAA;AAC9D,IAAA,MAAM,CAAC,KAAK,GAAG,CAAC;AAChB,IAAA,MAAM,CAAC,MAAM,GAAG,CAAC;IACjB,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC;AACnC,IAAA,IAAI,CAAC,GAAG;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC;IAC1C,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACzB,GAAG,CAAC,IAAI,EAAE;AACV,IAAA,GAAG,CAAC,qBAAqB,GAAG,KAAK;AACjC,IAAA,GAAG,CAAC,SAAS,GAAG,CAAC;AACjB,IAAA,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACnB,IAAA,GAAG,CAAC,OAAO,GAAG,MAAM;AACpB,IAAA,GAAG,CAAC,SAAS,GAAG,SAAS;AACzB,IAAA,OAAO,GAAG;AACZ;AAEA;;;;AAIwE;AACxE,SAAS,UAAU,CAAC,GAA6B,EAAE,GAAsB,EAAA;IACvE,GAAG,CAAC,IAAI,EAAE;AACV,IAAA,GAAG,CAAC,YA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AK,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC1H,CAAC;CACF;AACA,UAAkD,CAAC,SAAS,GAAG,GAAG;;"}
@@ -0,0 +1,118 @@
1
+ import type { FacilityKind, UnitState } from "../../shared/types";
2
+ import type { PaintSpec } from "./paint";
3
+ /**
4
+ * The room half of the atlas catalog: every facility kind in every unit state,
5
+ * baked on the static inputs of the web's re-bake signature
6
+ * (`excalibur/roomSignature.ts`) and split from the inputs a frontend
7
+ * composes at runtime. Pure data; the bake runs it.
8
+ */
9
+ export type Keys = Record<string, string | number | boolean>;
10
+ /** A still frame, optionally carrying composed layers. */
11
+ export interface StillJob {
12
+ type: "still";
13
+ name: string;
14
+ w: number;
15
+ h: number;
16
+ anchor: {
17
+ x: number;
18
+ y: number;
19
+ };
20
+ keys: Keys;
21
+ paint: PaintSpec;
22
+ /** Ordered steps; layer `k` is what changes from step `k-1` to step `k`.
23
+ * Step 0 is the frame's own paint. `alternativeTo` names the chain this
24
+ * one is drawn instead of (never with it); an alternative came after the
25
+ * first atlas, so its images pack after every older page. */
26
+ chains?: Record<string, {
27
+ input: string;
28
+ steps: PaintSpec[];
29
+ alternativeTo?: string;
30
+ }>;
31
+ /** Looping pictures over the frame, each its own loop (the cinema's marquee
32
+ * and screen): step `k` is what changes from the frame's own paint
33
+ * (`steps[0]`) to picture `k`, and a frontend shows step
34
+ * `floor(clock * rate) % steps.length`. Added after the first atlas, so
35
+ * their images pack after every older page. */
36
+ cycles?: Record<string, {
37
+ rate: number;
38
+ steps: PaintSpec[];
39
+ }>;
40
+ /** Moments the bake recomposes from the frame, its cycles at `at` and its
41
+ * chains at `chains`, and holds to `paint`. */
42
+ cycleChecks?: {
43
+ at: Record<string, number>;
44
+ chains: Record<string, number>;
45
+ paint: PaintSpec;
46
+ }[];
47
+ /** Single overlays: what changes from the frame's paint to this one. */
48
+ overlays?: Record<string, PaintSpec>;
49
+ /** Try a depth split of the frame's paint (a room): a paint that marks a
50
+ * shell break (`pixelSprites/layers.ts`) gets shell and furniture layers. */
51
+ layers?: boolean;
52
+ /** True for a vehicle: with `layers`, what the paint draws after its
53
+ * `layerEnd` becomes a front picture over the riders instead of landing
54
+ * on the shell (`BakedLayers.front`). */
55
+ front?: boolean;
56
+ /** Set for a family added after the first atlas: its new images pack on
57
+ * pages after the first atlas's frame pages (`BakeResult.groups`). A
58
+ * string names the family, so a later family starts pages of its own. */
59
+ ownPages?: boolean | string;
60
+ }
61
+ /** An animation: one frame per paint, `dt` seconds apart. */
62
+ export interface AnimJob {
63
+ type: "anim";
64
+ name: string;
65
+ w: number;
66
+ h: number;
67
+ anchor: {
68
+ x: number;
69
+ y: number;
70
+ };
71
+ keys: Keys;
72
+ dt: number;
73
+ loop: boolean;
74
+ frames: PaintSpec[];
75
+ /** True when every frame should also be split for depth, like a still. */
76
+ layers?: boolean;
77
+ /** Set for a family added after the first atlas: its new images pack on
78
+ * pages after the first atlas's frame pages (`BakeResult.groups`). A
79
+ * string names the family, so a later family starts pages of its own. */
80
+ ownPages?: boolean | string;
81
+ }
82
+ export type Job = StillJob | AnimJob;
83
+ /** Every state the engine names (engine-rs `UnitState::as_str`). Fire and
84
+ * construction ship as animations; the rest bake as stills. */
85
+ export declare const UNIT_STATES: readonly UnitState[];
86
+ /** Kinds whose art ignores `occupants` entirely, so they carry no presence
87
+ * split and no occupant chain. */
88
+ export declare const OCCUPANT_FREE: Set<FacilityKind>;
89
+ /** The web's re-bake bucket for the recycling pile (`r${round(fill * 8)}`). */
90
+ export declare const RECYCLE_STEPS = 8;
91
+ /** Every fill where the recycling center's picture changes, ascending: the
92
+ * exact chain's steps (`recyclingFill.ts`), published as
93
+ * `data.recyclingFillBreaks`. */
94
+ export declare const RECYCLE_BREAKS: readonly number[];
95
+ /** Parked car colors: `ACCENTS[id % 7]` in the garage art. */
96
+ export declare const PARKING_CAR_COLORS = 7;
97
+ /** The sampled per-footprint seeds for variant `v` of `kind`. Above-ground
98
+ * and basement kinds sample floors on their own side of the ground line, and
99
+ * a full-lot kind (the metro) has exactly one placement. */
100
+ export declare function variantPlacements(kind: FacilityKind): {
101
+ floor: number;
102
+ x: number;
103
+ id: number;
104
+ }[];
105
+ /** The kinds that bake as rooms: everything but structure and transport. */
106
+ export declare function roomKinds(): FacilityKind[];
107
+ /** An hour that realizes the requested open/closed and late-night bits for
108
+ * `kind`. `open` is ignored for kinds without business hours. */
109
+ export declare function hourFor(kind: FacilityKind, open: boolean, late: boolean): number;
110
+ /** The most occupants the engine can put in a room of `kind`, which is the
111
+ * occupant chain's length. Leases and stays fill to the catalog population,
112
+ * commercial customers stay under it (`crowd/visits.ts`), venues are clamped
113
+ * to their attendance (`census.syncAttendanceOccupants`), and a Modern
114
+ * household runs up to the largest family size. A frontend clamps a larger
115
+ * (forged) count to the chain's `max`. */
116
+ export declare function occupantCap(kind: FacilityKind): number;
117
+ /** All still and animated room jobs. */
118
+ export declare function roomJobs(): Job[];
@@ -0,0 +1,253 @@
1
+ import { LATE_NIGHT_KINDS, isLateHour } from '../lateNight.js';
2
+ import { TILE, FLOOR } from '../scale.js';
3
+ import { findViewKind, viewKindKeys, hasBusinessHours, isOpenAt } from '../../presentation/viewKinds.js';
4
+ import { ROOM_VARIANTS, FIRE_FRAMES, CONSTRUCTION_FRAMES } from './schema.js';
5
+ import { clockFor, CINEMA_CYCLES } from './cycles.js';
6
+ import { recyclingFillBreaks } from './recyclingFill.js';
7
+
8
+ /** Every state the engine names (engine-rs `UnitState::as_str`). Fire and
9
+ * construction ship as animations; the rest bake as stills. */
10
+ const UNIT_STATES = [
11
+ "construction",
12
+ "empty",
13
+ "occupied",
14
+ "moving_in",
15
+ "vacating",
16
+ "asleep",
17
+ "dirty",
18
+ "infested",
19
+ "fire",
20
+ "gutted",
21
+ ];
22
+ /** Kinds whose art ignores `occupants` entirely, so they carry no presence
23
+ * split and no occupant chain. */
24
+ const OCCUPANT_FREE = new Set(["parking", "parkingRamp", "security", "medical", "housekeeping", "recycling", "metro"]);
25
+ /** The web's re-bake bucket for the recycling pile (`r${round(fill * 8)}`). */
26
+ const RECYCLE_STEPS = 8;
27
+ /** Every fill where the recycling center's picture changes, ascending: the
28
+ * exact chain's steps (`recyclingFill.ts`), published as
29
+ * `data.recyclingFillBreaks`. */
30
+ const RECYCLE_BREAKS = recyclingFillBreaks();
31
+ /** Parked car colors: `ACCENTS[id % 7]` in the garage art. */
32
+ const PARKING_CAR_COLORS = 7;
33
+ function facilityEntry(kind) {
34
+ const f = findViewKind(kind);
35
+ if (!f)
36
+ throw new Error(`the bound catalog lists no facility "${kind}"`);
37
+ return f;
38
+ }
39
+ /** The sampled per-footprint seeds for variant `v` of `kind`. Above-ground
40
+ * and basement kinds sample floors on their own side of the ground line, and
41
+ * a full-lot kind (the metro) has exactly one placement. */
42
+ function variantPlacements(kind) {
43
+ const f = facilityEntry(kind);
44
+ if (kind === "metro")
45
+ return [{ floor: -8, x: 0, id: 1 }];
46
+ const floors = f.basement ? [-1, -2, -4, -6] : [5, 12, 27, 43];
47
+ const xs = [17, 64, 131, 208];
48
+ const ids = [3, 14, 25, 36];
49
+ return Array.from({ length: ROOM_VARIANTS }, (_, v) => ({ floor: floors[v], x: xs[v], id: ids[v] }));
50
+ }
51
+ /** The kinds that bake as rooms: everything but structure and transport. */
52
+ function roomKinds() {
53
+ return viewKindKeys().filter((kind) => kind !== "floor" && kind !== "lobby" && !facilityEntry(kind).transport);
54
+ }
55
+ /** An hour that realizes the requested open/closed and late-night bits for
56
+ * `kind`. `open` is ignored for kinds without business hours. */
57
+ function hourFor(kind, open, late) {
58
+ for (let i = 0; i < 24; i++) {
59
+ const h = (12 + i) % 24;
60
+ if (LATE_NIGHT_KINDS.has(kind) && isLateHour(h) !== late)
61
+ continue;
62
+ if (hasBusinessHours(kind) && isOpenAt(kind, h) !== open)
63
+ continue;
64
+ return h;
65
+ }
66
+ throw new Error(`no hour realizes ${kind} open=${open} late=${late}`);
67
+ }
68
+ /** The most occupants the engine can put in a room of `kind`, which is the
69
+ * occupant chain's length. Leases and stays fill to the catalog population,
70
+ * commercial customers stay under it (`crowd/visits.ts`), venues are clamped
71
+ * to their attendance (`census.syncAttendanceOccupants`), and a Modern
72
+ * household runs up to the largest family size. A frontend clamps a larger
73
+ * (forged) count to the chain's `max`. */
74
+ function occupantCap(kind) {
75
+ const f = facilityEntry(kind);
76
+ const household = f.maxHousehold ?? 0;
77
+ return Math.max(f.population, f.attendance ?? 0, household);
78
+ }
79
+ /** Frame name token for a subtype: the engine's name, or `-` for none. */
80
+ function subtypeToken(s) {
81
+ if (s === undefined)
82
+ return "-";
83
+ if (s.includes("/"))
84
+ throw new Error(`subtype ${s} would break the frame name`);
85
+ return s;
86
+ }
87
+ /** All still and animated room jobs. */
88
+ function roomJobs() {
89
+ const jobs = [];
90
+ for (const kind of roomKinds()) {
91
+ const f = facilityEntry(kind);
92
+ const w = f.width * TILE;
93
+ const h = f.floors * FLOOR;
94
+ jobs.push(...roomAnimations(kind, w, h));
95
+ const subtypes = [undefined, ...(f.subtypes ?? [])];
96
+ const hoursSet = f.openHours !== null ? ["open", "closed"] : ["always"];
97
+ const lateSet = LATE_NIGHT_KINDS.has(kind) ? ["late", "notlate"] : ["any"];
98
+ const placements = variantPlacements(kind);
99
+ for (const state of UNIT_STATES) {
100
+ if (state === "fire" || state === "construction")
101
+ continue;
102
+ for (const subtype of subtypes) {
103
+ for (const lit of [false, true]) {
104
+ for (const hours of hoursSet) {
105
+ for (const late of lateSet) {
106
+ placements.forEach((pl, v) => {
107
+ const base = {
108
+ p: "unit",
109
+ kind,
110
+ state,
111
+ subtype,
112
+ floor: pl.floor,
113
+ x: pl.x,
114
+ id: pl.id,
115
+ width: f.width,
116
+ occupants: 0,
117
+ outForMeal: 0,
118
+ lit,
119
+ hour: hourFor(kind, hours === "open", late === "late"),
120
+ anim: 0,
121
+ };
122
+ const keys = { kind, state, subtype: subtypeToken(subtype), width: f.width, lit, hours, late, variant: v };
123
+ const stem = `room/${kind}/${state}/${subtypeToken(subtype)}/w${f.width}/${lit ? "lit" : "unlit"}/${hours}/${late}/v${v}`;
124
+ jobs.push(...roomStills(kind, stem, w, h, base, keys));
125
+ });
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ return jobs;
133
+ }
134
+ /** The still frames for one static signature, each tried for a depth split
135
+ * (the paint decides whether it has one: a vacancy card, a shutter or a
136
+ * gutted shell paints flat). */
137
+ function roomStills(kind, stem, w, h, base, keys) {
138
+ const jobs = roomStillJobs(kind, stem, w, h, base, keys, { x: 0, y: 0 }).map((j) => ({ ...j, layers: true }));
139
+ return kind === "cinema" ? jobs.map(withCinemaCycles) : jobs;
140
+ }
141
+ /** The cinema's marquee and screen loops on a frame baked at clock 0. Each
142
+ * cycle's picture `k` is painted at a clock that shows step `k` of it and
143
+ * step 0 of the other, and the bake checks every pairing of the two (with
144
+ * no one seated, and with the chain's full house), and every count in
145
+ * between at one pairing, against the paint. */
146
+ function withCinemaCycles(job) {
147
+ const at = (spec, clock) => ({ ...spec, anim: clock });
148
+ const clock = (want) => {
149
+ const t = clockFor(CINEMA_CYCLES, want);
150
+ if (t === null)
151
+ throw new Error(`no clock shows ${JSON.stringify(want)}`);
152
+ return t;
153
+ };
154
+ const cycles = {};
155
+ for (const [key, c] of Object.entries(CINEMA_CYCLES)) {
156
+ cycles[key] = { rate: c.rate, steps: Array.from({ length: c.frames }, (_, k) => (k === 0 ? job.paint : at(job.paint, clock({ [key]: k })))) };
157
+ }
158
+ const [mk, sk] = Object.keys(CINEMA_CYCLES);
159
+ const chain = Object.entries(job.chains ?? {})[0];
160
+ const cycleChecks = [];
161
+ for (let m = 0; m < CINEMA_CYCLES[mk].frames; m++) {
162
+ for (let s = 0; s < CINEMA_CYCLES[sk].frames; s++) {
163
+ const want = { [mk]: m, [sk]: s };
164
+ cycleChecks.push({ at: want, chains: {}, paint: at(job.paint, clock(want)) });
165
+ if (chain) {
166
+ const top = chain[1].steps.length - 1;
167
+ cycleChecks.push({ at: want, chains: { [chain[0]]: top }, paint: at(chain[1].steps[top], clock(want)) });
168
+ }
169
+ }
170
+ }
171
+ // Every count in between, at one pairing with neither cycle at step 0.
172
+ if (chain) {
173
+ const want = { [mk]: 1, [sk]: 3 };
174
+ for (let n = 1; n < chain[1].steps.length - 1; n++)
175
+ cycleChecks.push({ at: want, chains: { [chain[0]]: n }, paint: at(chain[1].steps[n], clock(want)) });
176
+ }
177
+ return { ...job, cycles, cycleChecks };
178
+ }
179
+ /** The presence split and the composed layers each kind carries. */
180
+ function roomStillJobs(kind, stem, w, h, base, keys, anchor) {
181
+ if (kind === "parking") {
182
+ const overlays = { dead: { ...base, dead: true } };
183
+ for (let c = 0; c < PARKING_CAR_COLORS; c++)
184
+ overlays[`car${c}`] = { ...base, id: c, parkingUse: 1 };
185
+ return [{ type: "still", name: stem, w, h, anchor, keys, paint: base, overlays }];
186
+ }
187
+ if (kind === "recycling") {
188
+ const steps = [];
189
+ for (let k = 0; k <= RECYCLE_STEPS; k++)
190
+ steps.push({ ...base, recycleFill: k / RECYCLE_STEPS });
191
+ // The exact chain: one step per fill where the picture changes.
192
+ const exact = [base, ...RECYCLE_BREAKS.map((fill) => ({ ...base, recycleFill: fill }))];
193
+ const chains = { fill: { input: "recyclingFill", steps }, fillExact: { input: "recyclingFillExact", steps: exact, alternativeTo: "fill" } };
194
+ return [{ type: "still", name: stem, w, h, anchor, keys, paint: base, chains }];
195
+ }
196
+ if (OCCUPANT_FREE.has(kind))
197
+ return [{ type: "still", name: stem, w, h, anchor, keys, paint: base }];
198
+ const away = { type: "still", name: `${stem}/away`, w, h, anchor, keys: { ...keys, presence: "away" }, paint: base };
199
+ // Present: raw occupants > 0. The chain walks the VISIBLE count (occupants
200
+ // minus those out for a meal); step 0 is everyone out, which only a meal
201
+ // origin can reach.
202
+ const homeBase = { ...base, occupants: 1, outForMeal: 1 };
203
+ const steps = [homeBase];
204
+ for (let v = 1; v <= occupantCap(kind); v++)
205
+ steps.push({ ...base, occupants: v, outForMeal: 0 });
206
+ const home = {
207
+ type: "still",
208
+ name: `${stem}/home`,
209
+ w,
210
+ h,
211
+ anchor,
212
+ keys: { ...keys, presence: "home" },
213
+ paint: homeBase,
214
+ chains: { occupants: { input: "visibleOccupants", steps } },
215
+ };
216
+ return [away, home];
217
+ }
218
+ /** Fire and construction loops for a kind (their art reads only the size and
219
+ * the animation clock). */
220
+ function roomAnimations(kind, w, h) {
221
+ const base = (state, anim) => ({
222
+ p: "unit",
223
+ kind,
224
+ state,
225
+ floor: 5,
226
+ x: 17,
227
+ id: 3,
228
+ width: facilityEntry(kind).width,
229
+ occupants: 0,
230
+ outForMeal: 0,
231
+ lit: false,
232
+ hour: 12,
233
+ anim,
234
+ });
235
+ // drawFlames: sin(anim * 6 + ...), period 2pi/6. drawConstruction: sin(anim).
236
+ const firePeriod = (2 * Math.PI) / 6;
237
+ const buildPeriod = 2 * Math.PI;
238
+ const loop = (state, period, n) => ({
239
+ type: "anim",
240
+ name: `${state}/${kind}`,
241
+ w,
242
+ h,
243
+ anchor: { x: 0, y: 0 },
244
+ keys: { kind, state, width: facilityEntry(kind).width },
245
+ dt: period / n,
246
+ loop: true,
247
+ frames: Array.from({ length: n }, (_, i) => base(state, (period * i) / n)),
248
+ });
249
+ return [loop("fire", firePeriod, FIRE_FRAMES), loop("construction", buildPeriod, CONSTRUCTION_FRAMES)];
250
+ }
251
+
252
+ export { OCCUPANT_FREE, PARKING_CAR_COLORS, RECYCLE_BREAKS, RECYCLE_STEPS, UNIT_STATES, hourFor, occupantCap, roomJobs, roomKinds, variantPlacements };
253
+ //# sourceMappingURL=catalog.js.map