@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,189 @@
1
+ /**
2
+ * The sprite atlas archive's contract: its constants and the manifest shape
3
+ * any frontend on the open engine reads. Bump {@link ATLAS_SCHEMA_VERSION} on
4
+ * any change a reader could notice (a renamed frame, a moved field, a new
5
+ * meaning); adding frames or optional fields keeps the version.
6
+ *
7
+ * The full reader's guide lives in `docs/atlas.md`.
8
+ */
9
+ /** Manifest schema version, a single integer. A reader rejects a version it
10
+ * does not know. */
11
+ export declare const ATLAS_SCHEMA_VERSION = 1;
12
+ /** Integer upscales shipped next to the canonical 1x bake. */
13
+ export declare const ATLAS_SCALES: readonly [1, 2, 4];
14
+ export type AtlasScale = (typeof ATLAS_SCALES)[number];
15
+ /** Page edge at 1x. Every scale's pages are this times the scale, so the 4x
16
+ * pages stay at 2048 px, inside the smallest mobile GPU texture limit. */
17
+ export declare const ATLAS_PAGE_BASE = 512;
18
+ /** Transparent gutter around every packed image, in 1x pixels. */
19
+ export declare const ATLAS_PADDING = 1;
20
+ /** Sampled per-footprint placements per room kind (see `variants` in the
21
+ * manifest): the web seeds room variety from the room's floor, column and id,
22
+ * so a finite atlas carries a fixed sample of those seeds. */
23
+ export declare const ROOM_VARIANTS = 4;
24
+ /** Animation frames sampled per loop. */
25
+ export declare const FIRE_FRAMES = 12;
26
+ export declare const CONSTRUCTION_FRAMES = 24;
27
+ export declare const CRANE_FRAMES = 16;
28
+ /** Seconds between sampled crane frames (the crane's motion is aperiodic). */
29
+ export declare const CRANE_DT = 0.5;
30
+ /** Where an image sits in the atlas, in 1x pixels. Multiply every number but
31
+ * `page` by the scale to address the same image in a 2x or 4x page. */
32
+ export interface AtlasRect {
33
+ page: number;
34
+ x: number;
35
+ y: number;
36
+ w: number;
37
+ h: number;
38
+ }
39
+ /** A packed image placed inside a frame: `dx`/`dy` is its offset from the
40
+ * frame's top-left (transparent borders are trimmed before packing). */
41
+ export interface Placed {
42
+ rect: AtlasRect;
43
+ dx: number;
44
+ dy: number;
45
+ }
46
+ /** One composed layer: drawn over its frame with ordinary source-over
47
+ * blending at the layer's own offset. Every layer pixel is either opaque or
48
+ * lands on a transparent pixel, so the blend reproduces the web's bake. */
49
+ export type LayerRef = Placed | null;
50
+ /** A run of layers indexed by an engine number (occupants, fill steps). To
51
+ * show input `n`, draw the base frame then layers `1..min(n, max)` in order;
52
+ * a `null` entry draws nothing. `steps[0]` is always null (the base). */
53
+ export interface LayerChain {
54
+ input: string;
55
+ max: number;
56
+ steps: LayerRef[];
57
+ /** Present on a chain drawn instead of another (never with it): the other
58
+ * chain's key. The recycling center's `fillExact` is the exact alternative
59
+ * to its `fill` eighths. */
60
+ alternativeTo?: string;
61
+ }
62
+ /** A looping picture over a frame (the cinema's marquee and screen), one of
63
+ * possibly several that loop on their own. At `t` seconds of the game's
64
+ * animation clock, draw step `floor(t * rate) % steps.length` over the frame
65
+ * source-over; step 0, the frame's own picture, is null. */
66
+ export interface LayerCycle {
67
+ /** Steps a second. */
68
+ rate: number;
69
+ steps: LayerRef[];
70
+ }
71
+ export interface FrameRecord {
72
+ /** Frame size in 1x pixels (the full rectangle, trimming undone). */
73
+ w: number;
74
+ h: number;
75
+ /** The point, in 1x pixels from the frame's top-left corner, that sits on
76
+ * the frame's grid origin (see docs/atlas.md). It can lie on the frame's
77
+ * far edge: the crane stands on its bottom edge. */
78
+ anchor: {
79
+ x: number;
80
+ y: number;
81
+ };
82
+ /** The packed pieces. One piece normally; a frame wider than a page is cut
83
+ * into column slices laid side by side at their `dx`. Empty when the frame
84
+ * is fully transparent. */
85
+ parts: Placed[];
86
+ /** Structured keys (kind, state, subtype, lit, ...), the same values the
87
+ * frame name spells, so nobody has to parse names. */
88
+ keys: Record<string, string | number | boolean>;
89
+ /** Composed layers that ride on this frame, by input name. */
90
+ chains?: Record<string, LayerChain>;
91
+ /** Named single overlays (the dead-parking mark, a parked car color). */
92
+ overlays?: Record<string, LayerRef>;
93
+ /** Looping pictures by name (docs/atlas.md, Reading a room): drawn after
94
+ * the frame's parts (or its depth shell and shell steps) and before its
95
+ * chain steps (or its furniture). Absent when nothing on the frame
96
+ * loops. */
97
+ cycles?: Record<string, LayerCycle>;
98
+ /** A room split for depth (docs/atlas.md, Depth layers). Absent when the
99
+ * room's art marks no split (vacancy, closed and gutted rooms, and the
100
+ * kinds listed in docs/atlas.md); a frontend then draws the frame flat. */
101
+ layers?: DepthLayers;
102
+ }
103
+ /**
104
+ * A room frame split for depth. To show chain input `n` (the visible
105
+ * occupants), draw `shell`, its chain's `shell` steps `1..min(n, len - 1)`,
106
+ * then `furniture`, then its chain's `furniture` steps the same way, each
107
+ * source-over: the result equals the frame's `parts` plus its chain steps
108
+ * `1..n` exactly. Draw a frontend's own in-between content (walkers, a depth
109
+ * offset) between the two halves. Any picture list is empty when that
110
+ * picture is fully transparent.
111
+ *
112
+ * `soft` is an optional alternative to `furniture` (with its own chain steps
113
+ * in `chains[k].soft`): the furniture painted on a transparent background, so
114
+ * glows and soft shadows keep their transparency instead of carrying the wall
115
+ * behind them. Over the shell it looks the same to the eye, but translucent
116
+ * pixels round a step or two differently than in the flat frame; it is absent
117
+ * where it cannot be stepped by source-over or its soft paint failed.
118
+ */
119
+ export interface DepthLayers {
120
+ shell: Placed[];
121
+ furniture: Placed[];
122
+ soft?: Placed[];
123
+ /** A vehicle's front (its body around the windows, a cab's door frames),
124
+ * drawn after the furniture. Frames with a front carry no `soft`. */
125
+ front?: Placed[];
126
+ chains?: Record<string, DepthLayerChain>;
127
+ }
128
+ /** One chain split for depth; each list is trimmed on its own and starts
129
+ * with a null step 0. A list can run past the chain's `max` when a step
130
+ * changes only pixels the flat frame hides, so clamp `n` to each list. */
131
+ export interface DepthLayerChain {
132
+ shell: LayerRef[];
133
+ furniture: LayerRef[];
134
+ soft?: LayerRef[];
135
+ /** Steps over the front; present with it. */
136
+ front?: LayerRef[];
137
+ }
138
+ export interface AnimationRecord {
139
+ /** Frame names in play order. */
140
+ frames: string[];
141
+ /** Seconds each frame holds. */
142
+ dt: number;
143
+ /** True when the last frame flows back into the first. */
144
+ loop: boolean;
145
+ keys: Record<string, string | number | boolean>;
146
+ }
147
+ export interface AtlasManifest {
148
+ schema: number;
149
+ game: {
150
+ version: string;
151
+ commit: string;
152
+ };
153
+ license: {
154
+ name: string;
155
+ url: string;
156
+ attribution: string;
157
+ };
158
+ tile: {
159
+ w: number;
160
+ h: number;
161
+ };
162
+ scales: number[];
163
+ pageSize: number;
164
+ padding: number;
165
+ pages: {
166
+ index: number;
167
+ files: Record<string, {
168
+ color: string;
169
+ normal: string;
170
+ }>;
171
+ }[];
172
+ /** Which inputs of the web's re-bake signature are baked into frames, which
173
+ * are composed at runtime, and which are animated or sampled. */
174
+ signature: {
175
+ baked: string[];
176
+ composed: string[];
177
+ animated: string[];
178
+ sampled: string[];
179
+ rules: Record<string, string>;
180
+ };
181
+ variants: Record<string, {
182
+ floor: number;
183
+ x: number;
184
+ id: number;
185
+ }[]>;
186
+ frames: Record<string, FrameRecord>;
187
+ animations: Record<string, AnimationRecord>;
188
+ data: Record<string, unknown>;
189
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The sprite atlas archive's contract: its constants and the manifest shape
3
+ * any frontend on the open engine reads. Bump {@link ATLAS_SCHEMA_VERSION} on
4
+ * any change a reader could notice (a renamed frame, a moved field, a new
5
+ * meaning); adding frames or optional fields keeps the version.
6
+ *
7
+ * The full reader's guide lives in `docs/atlas.md`.
8
+ */
9
+ /** Manifest schema version, a single integer. A reader rejects a version it
10
+ * does not know. */
11
+ const ATLAS_SCHEMA_VERSION = 1;
12
+ /** Integer upscales shipped next to the canonical 1x bake. */
13
+ const ATLAS_SCALES = [1, 2, 4];
14
+ /** Page edge at 1x. Every scale's pages are this times the scale, so the 4x
15
+ * pages stay at 2048 px, inside the smallest mobile GPU texture limit. */
16
+ const ATLAS_PAGE_BASE = 512;
17
+ /** Transparent gutter around every packed image, in 1x pixels. */
18
+ const ATLAS_PADDING = 1;
19
+ /** Sampled per-footprint placements per room kind (see `variants` in the
20
+ * manifest): the web seeds room variety from the room's floor, column and id,
21
+ * so a finite atlas carries a fixed sample of those seeds. */
22
+ const ROOM_VARIANTS = 4;
23
+ /** Animation frames sampled per loop. */
24
+ const FIRE_FRAMES = 12;
25
+ const CONSTRUCTION_FRAMES = 24;
26
+ const CRANE_FRAMES = 16;
27
+ /** Seconds between sampled crane frames (the crane's motion is aperiodic). */
28
+ const CRANE_DT = 0.5;
29
+
30
+ export { ATLAS_PADDING, ATLAS_PAGE_BASE, ATLAS_SCALES, ATLAS_SCHEMA_VERSION, CONSTRUCTION_FRAMES, CRANE_DT, CRANE_FRAMES, FIRE_FRAMES, ROOM_VARIANTS };
31
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sources":["../../../src/render/atlas/schema.ts"],"sourcesContent":["/**\n * The sprite atlas archive's contract: its constants and the manifest shape\n * any frontend on the open engine reads. Bump {@link ATLAS_SCHEMA_VERSION} on\n * any change a reader could notice (a renamed frame, a moved field, a new\n * meaning); adding frames or optional fields keeps the version.\n *\n * The full reader's guide lives in `docs/atlas.md`.\n */\n\n/** Manifest schema version, a single integer. A reader rejects a version it\n * does not know. */\nexport const ATLAS_SCHEMA_VERSION = 1;\n\n/** Integer upscales shipped next to the canonical 1x bake. */\nexport const ATLAS_SCALES = [1, 2, 4] as const;\nexport type AtlasScale = (typeof ATLAS_SCALES)[number];\n\n/** Page edge at 1x. Every scale's pages are this times the scale, so the 4x\n * pages stay at 2048 px, inside the smallest mobile GPU texture limit. */\nexport const ATLAS_PAGE_BASE = 512;\n\n/** Transparent gutter around every packed image, in 1x pixels. */\nexport const ATLAS_PADDING = 1;\n\n/** Sampled per-footprint placements per room kind (see `variants` in the\n * manifest): the web seeds room variety from the room's floor, column and id,\n * so a finite atlas carries a fixed sample of those seeds. */\nexport const ROOM_VARIANTS = 4;\n\n/** Animation frames sampled per loop. */\nexport const FIRE_FRAMES = 12;\nexport const CONSTRUCTION_FRAMES = 24;\nexport const CRANE_FRAMES = 16;\n/** Seconds between sampled crane frames (the crane's motion is aperiodic). */\nexport const CRANE_DT = 0.5;\n\n/** Where an image sits in the atlas, in 1x pixels. Multiply every number but\n * `page` by the scale to address the same image in a 2x or 4x page. */\nexport interface AtlasRect {\n page: number;\n x: number;\n y: number;\n w: number;\n h: number;\n}\n\n/** A packed image placed inside a frame: `dx`/`dy` is its offset from the\n * frame's top-left (transparent borders are trimmed before packing). */\nexport interface Placed {\n rect: AtlasRect;\n dx: number;\n dy: number;\n}\n\n/** One composed layer: drawn over its frame with ordinary source-over\n * blending at the layer's own offset. Every layer pixel is either opaque or\n * lands on a transparent pixel, so the blend reproduces the web's bake. */\nexport type LayerRef = Placed | null;\n\n/** A run of layers indexed by an engine number (occupants, fill steps). To\n * show input `n`, draw the base frame then layers `1..min(n, max)` in order;\n * a `null` entry draws nothing. `steps[0]` is always null (the base). */\nexport interface LayerChain {\n input: string;\n max: number;\n steps: LayerRef[];\n /** Present on a chain drawn instead of another (never with it): the other\n * chain's key. The recycling center's `fillExact` is the exact alternative\n * to its `fill` eighths. */\n alternativeTo?: string;\n}\n\n/** A looping picture over a frame (the cinema's marquee and screen), one of\n * possibly several that loop on their own. At `t` seconds of the game's\n * animation clock, draw step `floor(t * rate) % steps.length` over the frame\n * source-over; step 0, the frame's own picture, is null. */\nexport interface LayerCycle {\n /** Steps a second. */\n rate: number;\n steps: LayerRef[];\n}\n\nexport interface FrameRecord {\n /** Frame size in 1x pixels (the full rectangle, trimming undone). */\n w: number;\n h: number;\n /** The point, in 1x pixels from the frame's top-left corner, that sits on\n * the frame's grid origin (see docs/atlas.md). It can lie on the frame's\n * far edge: the crane stands on its bottom edge. */\n anchor: { x: number; y: number };\n /** The packed pieces. One piece normally; a frame wider than a page is cut\n * into column slices laid side by side at their `dx`. Empty when the frame\n * is fully transparent. */\n parts: Placed[];\n /** Structured keys (kind, state, subtype, lit, ...), the same values the\n * frame name spells, so nobody has to parse names. */\n keys: Record<string, string | number | boolean>;\n /** Composed layers that ride on this frame, by input name. */\n chains?: Record<string, LayerChain>;\n /** Named single overlays (the dead-parking mark, a parked car color). */\n overlays?: Record<string, LayerRef>;\n /** Looping pictures by name (docs/atlas.md, Reading a room): drawn after\n * the frame's parts (or its depth shell and shell steps) and before its\n * chain steps (or its furniture). Absent when nothing on the frame\n * loops. */\n cycles?: Record<string, LayerCycle>;\n /** A room split for depth (docs/atlas.md, Depth layers). Absent when the\n * room's art marks no split (vacancy, closed and gutted rooms, and the\n * kinds listed in docs/atlas.md); a frontend then draws the frame flat. */\n layers?: DepthLayers;\n}\n\n/**\n * A room frame split for depth. To show chain input `n` (the visible\n * occupants), draw `shell`, its chain's `shell` steps `1..min(n, len - 1)`,\n * then `furniture`, then its chain's `furniture` steps the same way, each\n * source-over: the result equals the frame's `parts` plus its chain steps\n * `1..n` exactly. Draw a frontend's own in-between content (walkers, a depth\n * offset) between the two halves. Any picture list is empty when that\n * picture is fully transparent.\n *\n * `soft` is an optional alternative to `furniture` (with its own chain steps\n * in `chains[k].soft`): the furniture painted on a transparent background, so\n * glows and soft shadows keep their transparency instead of carrying the wall\n * behind them. Over the shell it looks the same to the eye, but translucent\n * pixels round a step or two differently than in the flat frame; it is absent\n * where it cannot be stepped by source-over or its soft paint failed.\n */\nexport interface DepthLayers {\n shell: Placed[];\n furniture: Placed[];\n soft?: Placed[];\n /** A vehicle's front (its body around the windows, a cab's door frames),\n * drawn after the furniture. Frames with a front carry no `soft`. */\n front?: Placed[];\n chains?: Record<string, DepthLayerChain>;\n}\n\n/** One chain split for depth; each list is trimmed on its own and starts\n * with a null step 0. A list can run past the chain's `max` when a step\n * changes only pixels the flat frame hides, so clamp `n` to each list. */\nexport interface DepthLayerChain {\n shell: LayerRef[];\n furniture: LayerRef[];\n soft?: LayerRef[];\n /** Steps over the front; present with it. */\n front?: LayerRef[];\n}\n\nexport interface AnimationRecord {\n /** Frame names in play order. */\n frames: string[];\n /** Seconds each frame holds. */\n dt: number;\n /** True when the last frame flows back into the first. */\n loop: boolean;\n keys: Record<string, string | number | boolean>;\n}\n\nexport interface AtlasManifest {\n schema: number;\n game: { version: string; commit: string };\n license: { name: string; url: string; attribution: string };\n tile: { w: number; h: number };\n scales: number[];\n pageSize: number;\n padding: number;\n pages: { index: number; files: Record<string, { color: string; normal: string }> }[];\n /** Which inputs of the web's re-bake signature are baked into frames, which\n * are composed at runtime, and which are animated or sampled. */\n signature: {\n baked: string[];\n composed: string[];\n animated: string[];\n sampled: string[];\n rules: Record<string, string>;\n };\n variants: Record<string, { floor: number; x: number; id: number }[]>;\n frames: Record<string, FrameRecord>;\n animations: Record<string, AnimationRecord>;\n data: Record<string, unknown>;\n}\n"],"names":[],"mappings":"AAAA;;;;;;;AAOG;AAEH;AACqB;AACd,MAAM,oBAAoB,GAAG;AAEpC;AACO,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AAGpC;AAC2E;AACpE,MAAM,eAAe,GAAG;AAE/B;AACO,MAAM,aAAa,GAAG;AAE7B;;AAE+D;AACxD,MAAM,aAAa,GAAG;AAE7B;AACO,MAAM,WAAW,GAAG;AACpB,MAAM,mBAAmB,GAAG;AAC5B,MAAM,YAAY,GAAG;AAC5B;AACO,MAAM,QAAQ,GAAG;;"}
@@ -0,0 +1,16 @@
1
+ import type { LayerHook } from "../pixelSprites/layers";
2
+ /**
3
+ * The layer marks of one shell pass (`browserEntry.ts` `renderShell`), apart
4
+ * from the canvas so the rules are testable: `save` runs at the break, and
5
+ * `restore` at the first end after it (or when the paint finishes without
6
+ * one), so whatever the paint draws after the end lands on the shell, and
7
+ * `onShell` paints a `layerShell` draw made between the two.
8
+ *
9
+ * A paint with no split (a vacancy card, a shutter) still passes its
10
+ * wrapper's end (`drawRoom`, `drawUnit`); that end is ignored. A second
11
+ * break, or a break after such an end, is a misplaced mark and throws.
12
+ */
13
+ export declare function shellMarks(save: () => void, restore: () => void, onShell?: (draw: () => void) => void): {
14
+ hook: LayerHook;
15
+ finish(): boolean;
16
+ };
@@ -0,0 +1,72 @@
1
+ import { LayerError } from './pixels.js';
2
+
3
+ /**
4
+ * The layer marks of one shell pass (`browserEntry.ts` `renderShell`), apart
5
+ * from the canvas so the rules are testable: `save` runs at the break, and
6
+ * `restore` at the first end after it (or when the paint finishes without
7
+ * one), so whatever the paint draws after the end lands on the shell, and
8
+ * `onShell` paints a `layerShell` draw made between the two.
9
+ *
10
+ * A paint with no split (a vacancy card, a shutter) still passes its
11
+ * wrapper's end (`drawRoom`, `drawUnit`); that end is ignored. A second
12
+ * break, or a break after such an end, is a misplaced mark and throws.
13
+ */
14
+ function shellMarks(save, restore, onShell = (draw) => draw()) {
15
+ let broke = false;
16
+ let ended = false;
17
+ let endedFlat = false;
18
+ let inShell = false;
19
+ return {
20
+ hook: {
21
+ shellEnd() {
22
+ if (inShell)
23
+ throw new LayerError("a layer mark inside layerShell");
24
+ if (broke)
25
+ throw new LayerError("two layer breaks in one paint");
26
+ if (endedFlat)
27
+ throw new LayerError("a layer break after a layer end");
28
+ broke = true;
29
+ save();
30
+ },
31
+ furnitureEnd() {
32
+ if (inShell)
33
+ throw new LayerError("a layer mark inside layerShell");
34
+ if (ended)
35
+ return; // a routine's own end, then its wrapper's: the first counts
36
+ if (!broke) {
37
+ endedFlat = true;
38
+ return;
39
+ }
40
+ ended = true;
41
+ restore();
42
+ },
43
+ // Shell art drawn among the furniture: before the break or after the
44
+ // end it is on the shell already.
45
+ shellPaint(_ctx, draw) {
46
+ if (inShell)
47
+ throw new LayerError("a layerShell inside layerShell");
48
+ inShell = true;
49
+ try {
50
+ if (broke && !ended)
51
+ onShell(draw);
52
+ else
53
+ draw();
54
+ }
55
+ finally {
56
+ inShell = false;
57
+ }
58
+ },
59
+ },
60
+ /** Call when the paint returns: true when it split. */
61
+ finish() {
62
+ if (broke && !ended) {
63
+ ended = true;
64
+ restore();
65
+ }
66
+ return broke;
67
+ },
68
+ };
69
+ }
70
+
71
+ export { shellMarks };
72
+ //# sourceMappingURL=shellMarks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shellMarks.js","sources":["../../../src/render/atlas/shellMarks.ts"],"sourcesContent":["import type { LayerHook } from \"../pixelSprites/layers\";\nimport { LayerError } from \"./pixels\";\n\n/**\n * The layer marks of one shell pass (`browserEntry.ts` `renderShell`), apart\n * from the canvas so the rules are testable: `save` runs at the break, and\n * `restore` at the first end after it (or when the paint finishes without\n * one), so whatever the paint draws after the end lands on the shell, and\n * `onShell` paints a `layerShell` draw made between the two.\n *\n * A paint with no split (a vacancy card, a shutter) still passes its\n * wrapper's end (`drawRoom`, `drawUnit`); that end is ignored. A second\n * break, or a break after such an end, is a misplaced mark and throws.\n */\nexport function shellMarks(\n save: () => void,\n restore: () => void,\n onShell: (draw: () => void) => void = (draw) => draw(),\n): { hook: LayerHook; finish(): boolean } {\n let broke = false;\n let ended = false;\n let endedFlat = false;\n let inShell = false;\n return {\n hook: {\n shellEnd() {\n if (inShell) throw new LayerError(\"a layer mark inside layerShell\");\n if (broke) throw new LayerError(\"two layer breaks in one paint\");\n if (endedFlat) throw new LayerError(\"a layer break after a layer end\");\n broke = true;\n save();\n },\n furnitureEnd() {\n if (inShell) throw new LayerError(\"a layer mark inside layerShell\");\n if (ended) return; // a routine's own end, then its wrapper's: the first counts\n if (!broke) {\n endedFlat = true;\n return;\n }\n ended = true;\n restore();\n },\n // Shell art drawn among the furniture: before the break or after the\n // end it is on the shell already.\n shellPaint(_ctx, draw) {\n if (inShell) throw new LayerError(\"a layerShell inside layerShell\");\n inShell = true;\n try {\n if (broke && !ended) onShell(draw);\n else draw();\n } finally {\n inShell = false;\n }\n },\n },\n /** Call when the paint returns: true when it split. */\n finish() {\n if (broke && !ended) {\n ended = true;\n restore();\n }\n return broke;\n },\n };\n}\n"],"names":[],"mappings":";;AAGA;;;;;;;;;;AAUG;AACG,SAAU,UAAU,CACxB,IAAgB,EAChB,OAAmB,EACnB,OAAA,GAAsC,CAAC,IAAI,KAAK,IAAI,EAAE,EAAA;IAEtD,IAAI,KAAK,GAAG,KAAK;IACjB,IAAI,KAAK,GAAG,KAAK;IACjB,IAAI,SAAS,GAAG,KAAK;IACrB,IAAI,OAAO,GAAG,KAAK;IACnB,OAAO;AACL,QAAA,IAAI,EAAE;YACJ,QAAQ,GAAA;AACN,gBAAA,IAAI,OAAO;AAAE,oBAAA,MAAM,IAAI,UAAU,CAAC,gCAAgC,CAAC;AACnE,gBAAA,IAAI,KAAK;AAAE,oBAAA,MAAM,IAAI,UAAU,CAAC,+BAA+B,CAAC;AAChE,gBAAA,IAAI,SAAS;AAAE,oBAAA,MAAM,IAAI,UAAU,CAAC,iCAAiC,CAAC;gBACtE,KAAK,GAAG,IAAI;AACZ,gBAAA,IAAI,EAAE;YACR,CAAC;YACD,YAAY,GAAA;AACV,gBAAA,IAAI,OAAO;AAAE,oBAAA,MAAM,IAAI,UAAU,CAAC,gCAAgC,CAAC;AACnE,gBAAA,IAAI,KAAK;AAAE,oBAAA,OAAO;gBAClB,IAAI,CAAC,KAAK,EAAE;oBACV,SAAS,GAAG,IAAI;oBAChB;gBACF;gBACA,KAAK,GAAG,IAAI;AACZ,gBAAA,OAAO,EAAE;YACX,CAAC;;;YAGD,UAAU,CAAC,IAAI,EAAE,IAAI,EAAA;AACnB,gBAAA,IAAI,OAAO;AAAE,oBAAA,MAAM,IAAI,UAAU,CAAC,gCAAgC,CAAC;gBACnE,OAAO,GAAG,IAAI;AACd,gBAAA,IAAI;oBACF,IAAI,KAAK,IAAI,CAAC,KAAK;wBAAE,OAAO,CAAC,IAAI,CAAC;;AAC7B,wBAAA,IAAI,EAAE;gBACb;wBAAU;oBACR,OAAO,GAAG,KAAK;gBACjB;YACF,CAAC;AACF,SAAA;;QAED,MAAM,GAAA;AACJ,YAAA,IAAI,KAAK,IAAI,CAAC,KAAK,EAAE;gBACnB,KAAK,GAAG,IAAI;AACZ,gBAAA,OAAO,EAAE;YACX;AACA,YAAA,OAAO,KAAK;QACd,CAAC;KACF;AACH;;"}
@@ -0,0 +1,75 @@
1
+ import { type Image, type Piece } from "./pixels";
2
+ /**
3
+ * Where the bake keeps its unique images. Frame images, the depth layers' own
4
+ * images and the images added to frames that already shipped live in three
5
+ * stores, numbered in that order once the bake is done, so a bake that adds
6
+ * layers or later data stores every older image under the same id, in the
7
+ * same order, as a bake without them (the archive packs each group on pages
8
+ * of its own).
9
+ */
10
+ /** An image placed inside a frame: the unique image's id and its offset. */
11
+ export interface ImageRef {
12
+ id: number;
13
+ dx: number;
14
+ dy: number;
15
+ }
16
+ /** Unique color-and-normal pairs by content. A normal map is taken over a
17
+ * whole frame before anything is cut from it, so trimming, slicing and
18
+ * layering never leave a false bevel at a cut. */
19
+ export declare class ImageStore {
20
+ readonly images: Image[];
21
+ readonly normals: Image[];
22
+ private readonly byHash;
23
+ /** The id of a stored pair equal to this one, or -1. */
24
+ find(img: Image, normal: Image): number;
25
+ add(img: Image, normal: Image): number;
26
+ /** Trim a whole frame and store it; null for a fully transparent frame. */
27
+ ref(img: Image): ImageRef | null;
28
+ /** Store a layer cut from the whole frame `next`; its normals come from
29
+ * that frame, masked to the layer's own pixels. */
30
+ layer(piece: Piece | null, next: Image): ImageRef | null;
31
+ }
32
+ /** A depth-layer image: a frame image's id, or (`own`) an id in the layer
33
+ * store, which the bake moves past the frame images once it is done. */
34
+ export interface PendingRef extends ImageRef {
35
+ own: boolean;
36
+ }
37
+ /** The depth layers' images, kept apart from the frame images so a bake with
38
+ * layers stores every frame image under the same id, in the same order, as a
39
+ * bake without them. A layer equal to a frame image already stored reuses it
40
+ * (one equal to a later frame's image is stored twice, which costs only
41
+ * space). */
42
+ export declare class LayerStore {
43
+ private readonly frames;
44
+ readonly own: ImageStore;
45
+ constructor(frames: ImageStore);
46
+ private put;
47
+ /** A whole shell picture, trimmed; its normals are its own (the shell is a
48
+ * picture of its own, drawn without the furniture). */
49
+ shell(img: Image): PendingRef | null;
50
+ /** A piece (the furniture, or one depth step) cut from the whole picture
51
+ * `next`; its normals come from that picture, masked to its own pixels,
52
+ * like any other layer. */
53
+ piece(piece: Piece | null, next: Image): PendingRef | null;
54
+ }
55
+ /**
56
+ * The images added to frames that already shipped (an alternative chain, a
57
+ * frame's cycles), flat and depth alike. An image equal to one in the frame
58
+ * or layer store reuses it; the rest are stored here and numbered after every
59
+ * older image once the bake knows how many there are ({@link finish}), so the
60
+ * archive packs them on pages after all the older pages.
61
+ */
62
+ export declare class AddedStore {
63
+ private readonly frames;
64
+ private readonly layers;
65
+ readonly own: ImageStore;
66
+ private readonly later;
67
+ constructor(frames: ImageStore, layers: ImageStore);
68
+ /** A piece cut from the whole picture `next`, like {@link LayerStore.piece}.
69
+ * Its id is final only after {@link finish}. */
70
+ piece(piece: Piece | null, next: Image): PendingRef | null;
71
+ /** Give every reference its final id: the depth layers' own images follow
72
+ * the frame images, and the added images follow those. Runs once, before
73
+ * the depth layers' references are resolved. */
74
+ finish(frameImages: number, layerImages: number): void;
75
+ }
@@ -0,0 +1,127 @@
1
+ import { contentHash, sameImage, trim, crop } from './pixels.js';
2
+ import { normalMap, maskTo } from './raster.js';
3
+
4
+ /** Unique color-and-normal pairs by content. A normal map is taken over a
5
+ * whole frame before anything is cut from it, so trimming, slicing and
6
+ * layering never leave a false bevel at a cut. */
7
+ class ImageStore {
8
+ constructor() {
9
+ this.images = [];
10
+ this.normals = [];
11
+ this.byHash = new Map();
12
+ }
13
+ /** The id of a stored pair equal to this one, or -1. */
14
+ find(img, normal) {
15
+ for (const id of this.byHash.get(`${contentHash(img)}|${contentHash(normal)}`) ?? []) {
16
+ if (sameImage(this.images[id], img) && sameImage(this.normals[id], normal))
17
+ return id;
18
+ }
19
+ return -1;
20
+ }
21
+ add(img, normal) {
22
+ const key = `${contentHash(img)}|${contentHash(normal)}`;
23
+ const ids = this.byHash.get(key) ?? [];
24
+ for (const id of ids)
25
+ if (sameImage(this.images[id], img) && sameImage(this.normals[id], normal))
26
+ return id;
27
+ const id = this.images.length;
28
+ this.images.push(img);
29
+ this.normals.push(normal);
30
+ ids.push(id);
31
+ this.byHash.set(key, ids);
32
+ return id;
33
+ }
34
+ /** Trim a whole frame and store it; null for a fully transparent frame. */
35
+ ref(img) {
36
+ const t = trim(img);
37
+ if (!t)
38
+ return null;
39
+ const normal = crop(normalMap(img), t.x, t.y, t.w, t.h);
40
+ return { id: this.add({ w: t.w, h: t.h, data: t.data }, normal), dx: t.x, dy: t.y };
41
+ }
42
+ /** Store a layer cut from the whole frame `next`; its normals come from
43
+ * that frame, masked to the layer's own pixels. */
44
+ layer(piece, next) {
45
+ if (!piece)
46
+ return null;
47
+ const normal = maskTo(crop(normalMap(next), piece.x, piece.y, piece.w, piece.h), piece);
48
+ return { id: this.add({ w: piece.w, h: piece.h, data: piece.data }, normal), dx: piece.x, dy: piece.y };
49
+ }
50
+ }
51
+ /** A layer's normals: those of the whole picture `next` it was cut from,
52
+ * masked to its own pixels. */
53
+ function pieceNormal(piece, next) {
54
+ return maskTo(crop(normalMap(next), piece.x, piece.y, piece.w, piece.h), piece);
55
+ }
56
+ /** The depth layers' images, kept apart from the frame images so a bake with
57
+ * layers stores every frame image under the same id, in the same order, as a
58
+ * bake without them. A layer equal to a frame image already stored reuses it
59
+ * (one equal to a later frame's image is stored twice, which costs only
60
+ * space). */
61
+ class LayerStore {
62
+ constructor(frames) {
63
+ this.frames = frames;
64
+ this.own = new ImageStore();
65
+ }
66
+ put(img, normal, dx, dy) {
67
+ const hit = this.frames.find(img, normal);
68
+ return hit >= 0 ? { id: hit, dx, dy, own: false } : { id: this.own.add(img, normal), dx, dy, own: true };
69
+ }
70
+ /** A whole shell picture, trimmed; its normals are its own (the shell is a
71
+ * picture of its own, drawn without the furniture). */
72
+ shell(img) {
73
+ const t = trim(img);
74
+ if (!t)
75
+ return null;
76
+ return this.put({ w: t.w, h: t.h, data: t.data }, crop(normalMap(img), t.x, t.y, t.w, t.h), t.x, t.y);
77
+ }
78
+ /** A piece (the furniture, or one depth step) cut from the whole picture
79
+ * `next`; its normals come from that picture, masked to its own pixels,
80
+ * like any other layer. */
81
+ piece(piece, next) {
82
+ if (!piece)
83
+ return null;
84
+ return this.put({ w: piece.w, h: piece.h, data: piece.data }, pieceNormal(piece, next), piece.x, piece.y);
85
+ }
86
+ }
87
+ /**
88
+ * The images added to frames that already shipped (an alternative chain, a
89
+ * frame's cycles), flat and depth alike. An image equal to one in the frame
90
+ * or layer store reuses it; the rest are stored here and numbered after every
91
+ * older image once the bake knows how many there are ({@link finish}), so the
92
+ * archive packs them on pages after all the older pages.
93
+ */
94
+ class AddedStore {
95
+ constructor(frames, layers) {
96
+ this.frames = frames;
97
+ this.layers = layers;
98
+ this.own = new ImageStore();
99
+ this.later = [];
100
+ }
101
+ /** A piece cut from the whole picture `next`, like {@link LayerStore.piece}.
102
+ * Its id is final only after {@link finish}. */
103
+ piece(piece, next) {
104
+ if (!piece)
105
+ return null;
106
+ const img = { w: piece.w, h: piece.h, data: piece.data };
107
+ const normal = pieceNormal(piece, next);
108
+ const hit = this.frames.find(img, normal);
109
+ if (hit >= 0)
110
+ return { id: hit, dx: piece.x, dy: piece.y, own: false };
111
+ const layer = this.layers.find(img, normal);
112
+ const ref = { id: layer >= 0 ? layer : this.own.add(img, normal), dx: piece.x, dy: piece.y, own: false };
113
+ this.later.push({ ref, after: layer >= 0 ? "frames" : "layers" });
114
+ return ref;
115
+ }
116
+ /** Give every reference its final id: the depth layers' own images follow
117
+ * the frame images, and the added images follow those. Runs once, before
118
+ * the depth layers' references are resolved. */
119
+ finish(frameImages, layerImages) {
120
+ for (const { ref, after } of this.later)
121
+ ref.id += after === "frames" ? frameImages : frameImages + layerImages;
122
+ this.later.length = 0;
123
+ }
124
+ }
125
+
126
+ export { AddedStore, ImageStore, LayerStore };
127
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sources":["../../../src/render/atlas/store.ts"],"sourcesContent":["import { contentHash, crop, sameImage, trim, type Image, type Piece } from \"./pixels\";\nimport { maskTo, normalMap } from \"./raster\";\n\n/**\n * Where the bake keeps its unique images. Frame images, the depth layers' own\n * images and the images added to frames that already shipped live in three\n * stores, numbered in that order once the bake is done, so a bake that adds\n * layers or later data stores every older image under the same id, in the\n * same order, as a bake without them (the archive packs each group on pages\n * of its own).\n */\n\n/** An image placed inside a frame: the unique image's id and its offset. */\nexport interface ImageRef {\n id: number;\n dx: number;\n dy: number;\n}\n\n/** Unique color-and-normal pairs by content. A normal map is taken over a\n * whole frame before anything is cut from it, so trimming, slicing and\n * layering never leave a false bevel at a cut. */\nexport class ImageStore {\n readonly images: Image[] = [];\n readonly normals: Image[] = [];\n private readonly byHash = new Map<string, number[]>();\n\n /** The id of a stored pair equal to this one, or -1. */\n find(img: Image, normal: Image): number {\n for (const id of this.byHash.get(`${contentHash(img)}|${contentHash(normal)}`) ?? []) {\n if (sameImage(this.images[id], img) && sameImage(this.normals[id], normal)) return id;\n }\n return -1;\n }\n\n add(img: Image, normal: Image): number {\n const key = `${contentHash(img)}|${contentHash(normal)}`;\n const ids = this.byHash.get(key) ?? [];\n for (const id of ids) if (sameImage(this.images[id], img) && sameImage(this.normals[id], normal)) return id;\n const id = this.images.length;\n this.images.push(img);\n this.normals.push(normal);\n ids.push(id);\n this.byHash.set(key, ids);\n return id;\n }\n\n /** Trim a whole frame and store it; null for a fully transparent frame. */\n ref(img: Image): ImageRef | null {\n const t = trim(img);\n if (!t) return null;\n const normal = crop(normalMap(img), t.x, t.y, t.w, t.h);\n return { id: this.add({ w: t.w, h: t.h, data: t.data }, normal), dx: t.x, dy: t.y };\n }\n\n /** Store a layer cut from the whole frame `next`; its normals come from\n * that frame, masked to the layer's own pixels. */\n layer(piece: Piece | null, next: Image): ImageRef | null {\n if (!piece) return null;\n const normal = maskTo(crop(normalMap(next), piece.x, piece.y, piece.w, piece.h), piece);\n return { id: this.add({ w: piece.w, h: piece.h, data: piece.data }, normal), dx: piece.x, dy: piece.y };\n }\n}\n\n/** A depth-layer image: a frame image's id, or (`own`) an id in the layer\n * store, which the bake moves past the frame images once it is done. */\nexport interface PendingRef extends ImageRef {\n own: boolean;\n}\n\n/** A layer's normals: those of the whole picture `next` it was cut from,\n * masked to its own pixels. */\nfunction pieceNormal(piece: Piece, next: Image): Image {\n return maskTo(crop(normalMap(next), piece.x, piece.y, piece.w, piece.h), piece);\n}\n\n/** The depth layers' images, kept apart from the frame images so a bake with\n * layers stores every frame image under the same id, in the same order, as a\n * bake without them. A layer equal to a frame image already stored reuses it\n * (one equal to a later frame's image is stored twice, which costs only\n * space). */\nexport class LayerStore {\n readonly own = new ImageStore();\n constructor(private readonly frames: ImageStore) {}\n\n private put(img: Image, normal: Image, dx: number, dy: number): PendingRef {\n const hit = this.frames.find(img, normal);\n return hit >= 0 ? { id: hit, dx, dy, own: false } : { id: this.own.add(img, normal), dx, dy, own: true };\n }\n\n /** A whole shell picture, trimmed; its normals are its own (the shell is a\n * picture of its own, drawn without the furniture). */\n shell(img: Image): PendingRef | null {\n const t = trim(img);\n if (!t) return null;\n return this.put({ w: t.w, h: t.h, data: t.data }, crop(normalMap(img), t.x, t.y, t.w, t.h), t.x, t.y);\n }\n\n /** A piece (the furniture, or one depth step) cut from the whole picture\n * `next`; its normals come from that picture, masked to its own pixels,\n * like any other layer. */\n piece(piece: Piece | null, next: Image): PendingRef | null {\n if (!piece) return null;\n return this.put({ w: piece.w, h: piece.h, data: piece.data }, pieceNormal(piece, next), piece.x, piece.y);\n }\n}\n\n/**\n * The images added to frames that already shipped (an alternative chain, a\n * frame's cycles), flat and depth alike. An image equal to one in the frame\n * or layer store reuses it; the rest are stored here and numbered after every\n * older image once the bake knows how many there are ({@link finish}), so the\n * archive packs them on pages after all the older pages.\n */\nexport class AddedStore {\n readonly own = new ImageStore();\n private readonly later: { ref: PendingRef; after: \"frames\" | \"layers\" }[] = [];\n\n constructor(\n private readonly frames: ImageStore,\n private readonly layers: ImageStore,\n ) {}\n\n /** A piece cut from the whole picture `next`, like {@link LayerStore.piece}.\n * Its id is final only after {@link finish}. */\n piece(piece: Piece | null, next: Image): PendingRef | null {\n if (!piece) return null;\n const img = { w: piece.w, h: piece.h, data: piece.data };\n const normal = pieceNormal(piece, next);\n const hit = this.frames.find(img, normal);\n if (hit >= 0) return { id: hit, dx: piece.x, dy: piece.y, own: false };\n const layer = this.layers.find(img, normal);\n const ref: PendingRef = { id: layer >= 0 ? layer : this.own.add(img, normal), dx: piece.x, dy: piece.y, own: false };\n this.later.push({ ref, after: layer >= 0 ? \"frames\" : \"layers\" });\n return ref;\n }\n\n /** Give every reference its final id: the depth layers' own images follow\n * the frame images, and the added images follow those. Runs once, before\n * the depth layers' references are resolved. */\n finish(frameImages: number, layerImages: number): void {\n for (const { ref, after } of this.later) ref.id += after === \"frames\" ? frameImages : frameImages + layerImages;\n this.later.length = 0;\n }\n}\n"],"names":[],"mappings":"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"}
@@ -0,0 +1,43 @@
1
+ import { type Renderer } from "./bake";
2
+ import { type Job } from "./catalog";
3
+ import type { Sample } from "./samples";
4
+ /**
5
+ * The comparison the e2e spec and the export's pre-flight run in a real
6
+ * browser. For a live room signature it composes the atlas frame and its
7
+ * layers the way a frontend would ({@link lookupRoom}, `compose.ts`) and paints
8
+ * the same room through the game's own paint functions (`regionPaint.ts`, the
9
+ * ones `towerRegions` and `towerReconcile` call) with the scene the game
10
+ * threads through its `DrawCtx`. The two must match pixel for pixel.
11
+ *
12
+ * A room frame with depth layers is also composed through them (the shell
13
+ * and its occupant steps, then its cycles, then the furniture and its
14
+ * occupant steps) and held to the same paint. A cinema sample at a clock
15
+ * other than 0 checks its marquee and screen cycles.
16
+ *
17
+ * Settled rooms are painted at two different offsets inside a larger region
18
+ * canvas, so any art that depends on where its region starts fails here.
19
+ * Every sampled settled kind is held to that: room details seed from the
20
+ * room's floor and column (`src/render/originSeedsSweep.integration.test.ts`
21
+ * sweeps every room kind and subtype for it).
22
+ */
23
+ export interface SampleResult {
24
+ label: string;
25
+ frame: string;
26
+ pixels: number;
27
+ mismatches: number;
28
+ /** Where in the region the room was painted for this comparison. */
29
+ offset: {
30
+ x: number;
31
+ y: number;
32
+ };
33
+ /** A control compares two different pictures on purpose and must report
34
+ * a mismatch; one that does not means the comparison itself is broken. */
35
+ control?: boolean;
36
+ box?: {
37
+ x0: number;
38
+ y0: number;
39
+ x1: number;
40
+ y1: number;
41
+ };
42
+ }
43
+ export declare function verifySample(doc: Document, jobs: readonly Job[], renderer: Renderer, sample: Sample): SampleResult[];