@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.
- package/ASSETS-LICENSE.md +49 -0
- package/LICENSE +21 -0
- package/README.md +121 -2
- package/lib/audio/Audio.d.ts +110 -0
- package/lib/audio/Audio.js +199 -0
- package/lib/audio/Audio.js.map +1 -0
- package/lib/audio/ToneAudioEngine.d.ts +125 -0
- package/lib/audio/ToneAudioEngine.js +452 -0
- package/lib/audio/ToneAudioEngine.js.map +1 -0
- package/lib/audio/audioAssets.d.ts +25 -0
- package/lib/audio/audioAssets.js +28 -0
- package/lib/audio/audioAssets.js.map +1 -0
- package/lib/audio/awayWatch.d.ts +17 -0
- package/lib/audio/awayWatch.js +33 -0
- package/lib/audio/awayWatch.js.map +1 -0
- package/lib/audio/firstCueLatch.d.ts +18 -0
- package/lib/audio/firstCueLatch.js +34 -0
- package/lib/audio/firstCueLatch.js.map +1 -0
- package/lib/audio/lightEnvelope.d.ts +64 -0
- package/lib/audio/lightEnvelope.js +124 -0
- package/lib/audio/lightEnvelope.js.map +1 -0
- package/lib/audio/lightSynth.d.ts +125 -0
- package/lib/audio/lightSynth.js +203 -0
- package/lib/audio/lightSynth.js.map +1 -0
- package/lib/audio/toneContext.d.ts +30 -0
- package/lib/audio/toneContext.js +79 -0
- package/lib/audio/toneContext.js.map +1 -0
- package/lib/audio/toneCrowd.d.ts +62 -0
- package/lib/audio/toneCrowd.js +429 -0
- package/lib/audio/toneCrowd.js.map +1 -0
- package/lib/audio/toneCrowdData.d.ts +144 -0
- package/lib/audio/toneCrowdData.js +317 -0
- package/lib/audio/toneCrowdData.js.map +1 -0
- package/lib/audio/toneCrowdPrograms.d.ts +71 -0
- package/lib/audio/toneCrowdPrograms.js +273 -0
- package/lib/audio/toneCrowdPrograms.js.map +1 -0
- package/lib/audio/toneCrowdVoices.d.ts +49 -0
- package/lib/audio/toneCrowdVoices.js +212 -0
- package/lib/audio/toneCrowdVoices.js.map +1 -0
- package/lib/audio/toneMusicVoices.d.ts +11 -0
- package/lib/audio/toneMusicVoices.js +31 -0
- package/lib/audio/toneMusicVoices.js.map +1 -0
- package/lib/audio/tonePercussion.d.ts +45 -0
- package/lib/audio/tonePercussion.js +97 -0
- package/lib/audio/tonePercussion.js.map +1 -0
- package/lib/audio/toneRain.d.ts +23 -0
- package/lib/audio/toneRain.js +39 -0
- package/lib/audio/toneRain.js.map +1 -0
- package/lib/audio/toneRecordingMock.d.ts +89 -0
- package/lib/audio/toneRecordingMock.js +145 -0
- package/lib/audio/toneRecordingMock.js.map +1 -0
- package/lib/audio/toneRoomTone.d.ts +11 -0
- package/lib/audio/toneRoomTone.js +27 -0
- package/lib/audio/toneRoomTone.js.map +1 -0
- package/lib/audio/toneScenes.d.ts +57 -0
- package/lib/audio/toneScenes.js +208 -0
- package/lib/audio/toneScenes.js.map +1 -0
- package/lib/audio/toneTracks.d.ts +50 -0
- package/lib/audio/toneTracks.js +356 -0
- package/lib/audio/toneTracks.js.map +1 -0
- package/lib/audio/toneVoices.d.ts +57 -0
- package/lib/audio/toneVoices.js +208 -0
- package/lib/audio/toneVoices.js.map +1 -0
- package/lib/catalog/catalogTypes.d.ts +428 -0
- package/lib/catalog/catalogTypes.js +102 -0
- package/lib/catalog/catalogTypes.js.map +1 -0
- package/lib/catalog/skyBridgeTypes.d.ts +25 -0
- package/lib/catalog/skyBridgeTypes.js +7 -0
- package/lib/catalog/skyBridgeTypes.js.map +1 -0
- package/lib/catalog/starDutyTypes.d.ts +22 -0
- package/lib/catalog/starDutyTypes.js +7 -0
- package/lib/catalog/starDutyTypes.js.map +1 -0
- package/lib/catalog/towerCatalog.d.ts +32 -0
- package/lib/catalog/towerCatalog.js +44 -0
- package/lib/catalog/towerCatalog.js.map +1 -0
- package/lib/engineBinding/binding.d.ts +36 -0
- package/lib/engineBinding/binding.js +90 -0
- package/lib/engineBinding/binding.js.map +1 -0
- package/lib/engineBinding/catalog.d.ts +24 -0
- package/lib/engineBinding/catalog.js +267 -0
- package/lib/engineBinding/catalog.js.map +1 -0
- package/lib/engineBinding/engine.d.ts +866 -0
- package/lib/engineBinding/exportTiers.d.ts +289 -0
- package/lib/engineBinding/exportTiers.js +283 -0
- package/lib/engineBinding/exportTiers.js.map +1 -0
- package/lib/engineBinding/toolingMethods.d.ts +12 -0
- package/lib/engineBinding/toolingMethods.js +20 -0
- package/lib/engineBinding/toolingMethods.js.map +1 -0
- package/lib/events/gameplayCatalog.d.ts +57 -0
- package/lib/events/gameplayCatalog.js +214 -0
- package/lib/events/gameplayCatalog.js.map +1 -0
- package/lib/events/gameplayEventRules.d.ts +4 -0
- package/lib/events/gameplayEventRules.js +32 -0
- package/lib/events/gameplayEventRules.js.map +1 -0
- package/lib/events/gameplayEvents.d.ts +284 -0
- package/lib/presentation/clockText.d.ts +28 -0
- package/lib/presentation/clockText.js +38 -0
- package/lib/presentation/clockText.js.map +1 -0
- package/lib/presentation/facilityPresentation.d.ts +20 -0
- package/lib/presentation/facilityPresentation.js +164 -0
- package/lib/presentation/facilityPresentation.js.map +1 -0
- package/lib/presentation/statsCopy.d.ts +20 -0
- package/lib/presentation/statsCopy.js +37 -0
- package/lib/presentation/statsCopy.js.map +1 -0
- package/lib/presentation/traffic.d.ts +75 -0
- package/lib/presentation/traffic.js +79 -0
- package/lib/presentation/traffic.js.map +1 -0
- package/lib/presentation/viewKinds.d.ts +33 -0
- package/lib/presentation/viewKinds.js +88 -0
- package/lib/presentation/viewKinds.js.map +1 -0
- package/lib/presentation/viewWorld.d.ts +29 -0
- package/lib/presentation/viewWorld.js +31 -0
- package/lib/presentation/viewWorld.js.map +1 -0
- package/lib/render/atlas/archive.d.ts +78 -0
- package/lib/render/atlas/archive.js +427 -0
- package/lib/render/atlas/archive.js.map +1 -0
- package/lib/render/atlas/bake.d.ts +132 -0
- package/lib/render/atlas/bake.js +331 -0
- package/lib/render/atlas/bake.js.map +1 -0
- package/lib/render/atlas/bakeAdditions.d.ts +24 -0
- package/lib/render/atlas/bakeAdditions.js +46 -0
- package/lib/render/atlas/bakeAdditions.js.map +1 -0
- package/lib/render/atlas/browserEntry.d.ts +12 -0
- package/lib/render/atlas/browserEntry.js +222 -0
- package/lib/render/atlas/browserEntry.js.map +1 -0
- package/lib/render/atlas/catalog.d.ts +118 -0
- package/lib/render/atlas/catalog.js +253 -0
- package/lib/render/atlas/catalog.js.map +1 -0
- package/lib/render/atlas/catalogExtras.d.ts +45 -0
- package/lib/render/atlas/catalogExtras.js +217 -0
- package/lib/render/atlas/catalogExtras.js.map +1 -0
- package/lib/render/atlas/compose.d.ts +30 -0
- package/lib/render/atlas/compose.js +125 -0
- package/lib/render/atlas/compose.js.map +1 -0
- package/lib/render/atlas/cycles.d.ts +25 -0
- package/lib/render/atlas/cycles.js +41 -0
- package/lib/render/atlas/cycles.js.map +1 -0
- package/lib/render/atlas/lookup.d.ts +65 -0
- package/lib/render/atlas/lookup.js +83 -0
- package/lib/render/atlas/lookup.js.map +1 -0
- package/lib/render/atlas/pack.d.ts +23 -0
- package/lib/render/atlas/pack.js +50 -0
- package/lib/render/atlas/pack.js.map +1 -0
- package/lib/render/atlas/paint.d.ts +120 -0
- package/lib/render/atlas/paint.js +154 -0
- package/lib/render/atlas/paint.js.map +1 -0
- package/lib/render/atlas/pixels.d.ts +46 -0
- package/lib/render/atlas/pixels.js +158 -0
- package/lib/render/atlas/pixels.js.map +1 -0
- package/lib/render/atlas/png.d.ts +3 -0
- package/lib/render/atlas/png.js +102 -0
- package/lib/render/atlas/png.js.map +1 -0
- package/lib/render/atlas/raster.d.ts +34 -0
- package/lib/render/atlas/raster.js +114 -0
- package/lib/render/atlas/raster.js.map +1 -0
- package/lib/render/atlas/recyclingFill.d.ts +5 -0
- package/lib/render/atlas/recyclingFill.js +65 -0
- package/lib/render/atlas/recyclingFill.js.map +1 -0
- package/lib/render/atlas/samples.d.ts +24 -0
- package/lib/render/atlas/samples.js +75 -0
- package/lib/render/atlas/samples.js.map +1 -0
- package/lib/render/atlas/scenery.d.ts +230 -0
- package/lib/render/atlas/scenery.js +242 -0
- package/lib/render/atlas/scenery.js.map +1 -0
- package/lib/render/atlas/schema.d.ts +189 -0
- package/lib/render/atlas/schema.js +31 -0
- package/lib/render/atlas/schema.js.map +1 -0
- package/lib/render/atlas/shellMarks.d.ts +16 -0
- package/lib/render/atlas/shellMarks.js +72 -0
- package/lib/render/atlas/shellMarks.js.map +1 -0
- package/lib/render/atlas/store.d.ts +75 -0
- package/lib/render/atlas/store.js +127 -0
- package/lib/render/atlas/store.js.map +1 -0
- package/lib/render/atlas/verify.d.ts +43 -0
- package/lib/render/atlas/verify.js +87 -0
- package/lib/render/atlas/verify.js.map +1 -0
- package/lib/render/atlas/verifyExtras.d.ts +19 -0
- package/lib/render/atlas/verifyExtras.js +310 -0
- package/lib/render/atlas/verifyExtras.js.map +1 -0
- package/lib/render/cameraBounds.d.ts +71 -0
- package/lib/render/cameraBounds.js +107 -0
- package/lib/render/cameraBounds.js.map +1 -0
- package/lib/render/carIndicator.d.ts +41 -0
- package/lib/render/carIndicator.js +45 -0
- package/lib/render/carIndicator.js.map +1 -0
- package/lib/render/carMotion.d.ts +33 -0
- package/lib/render/carMotion.js +42 -0
- package/lib/render/carMotion.js.map +1 -0
- package/lib/render/catalogScale.d.ts +40 -0
- package/lib/render/catalogScale.js +33 -0
- package/lib/render/catalogScale.js.map +1 -0
- package/lib/render/climbPath.d.ts +59 -0
- package/lib/render/climbPath.js +115 -0
- package/lib/render/climbPath.js.map +1 -0
- package/lib/render/depthPlanes.d.ts +55 -0
- package/lib/render/depthPlanes.js +58 -0
- package/lib/render/depthPlanes.js.map +1 -0
- package/lib/render/excalibur/TowerEngine.d.ts +348 -0
- package/lib/render/excalibur/TowerEngine.js +415 -0
- package/lib/render/excalibur/TowerEngine.js.map +1 -0
- package/lib/render/excalibur/cabGraphics.d.ts +75 -0
- package/lib/render/excalibur/cabGraphics.js +108 -0
- package/lib/render/excalibur/cabGraphics.js.map +1 -0
- package/lib/render/excalibur/cabParts.d.ts +32 -0
- package/lib/render/excalibur/cabParts.js +79 -0
- package/lib/render/excalibur/cabParts.js.map +1 -0
- package/lib/render/excalibur/cabRiders.d.ts +72 -0
- package/lib/render/excalibur/cabRiders.js +176 -0
- package/lib/render/excalibur/cabRiders.js.map +1 -0
- package/lib/render/excalibur/crowdCull.d.ts +34 -0
- package/lib/render/excalibur/crowdCull.js +72 -0
- package/lib/render/excalibur/crowdCull.js.map +1 -0
- package/lib/render/excalibur/crowdFigure.d.ts +42 -0
- package/lib/render/excalibur/crowdFigure.js +99 -0
- package/lib/render/excalibur/crowdFigure.js.map +1 -0
- package/lib/render/excalibur/crowdLook.d.ts +137 -0
- package/lib/render/excalibur/crowdLook.js +186 -0
- package/lib/render/excalibur/crowdLook.js.map +1 -0
- package/lib/render/excalibur/frameHold.d.ts +23 -0
- package/lib/render/excalibur/frameHold.js +30 -0
- package/lib/render/excalibur/frameHold.js.map +1 -0
- package/lib/render/excalibur/guardPosition.d.ts +17 -0
- package/lib/render/excalibur/guardPosition.js +37 -0
- package/lib/render/excalibur/guardPosition.js.map +1 -0
- package/lib/render/excalibur/keyboardHost.d.ts +15 -0
- package/lib/render/excalibur/keyboardHost.js +22 -0
- package/lib/render/excalibur/keyboardHost.js.map +1 -0
- package/lib/render/excalibur/longPress.d.ts +16 -0
- package/lib/render/excalibur/longPress.js +71 -0
- package/lib/render/excalibur/longPress.js.map +1 -0
- package/lib/render/excalibur/peopleGfx.d.ts +16 -0
- package/lib/render/excalibur/peopleGfx.js +46 -0
- package/lib/render/excalibur/peopleGfx.js.map +1 -0
- package/lib/render/excalibur/peopleWindow.d.ts +35 -0
- package/lib/render/excalibur/peopleWindow.js +38 -0
- package/lib/render/excalibur/peopleWindow.js.map +1 -0
- package/lib/render/excalibur/personFocus.d.ts +36 -0
- package/lib/render/excalibur/personFocus.js +169 -0
- package/lib/render/excalibur/personFocus.js.map +1 -0
- package/lib/render/excalibur/pointerButtonGuard.d.ts +35 -0
- package/lib/render/excalibur/pointerButtonGuard.js +86 -0
- package/lib/render/excalibur/pointerButtonGuard.js.map +1 -0
- package/lib/render/excalibur/pressLifecycle.d.ts +26 -0
- package/lib/render/excalibur/pressLifecycle.js +66 -0
- package/lib/render/excalibur/pressLifecycle.js.map +1 -0
- package/lib/render/excalibur/rainShelter.d.ts +16 -0
- package/lib/render/excalibur/rainShelter.js +94 -0
- package/lib/render/excalibur/rainShelter.js.map +1 -0
- package/lib/render/excalibur/roomSignature.d.ts +30 -0
- package/lib/render/excalibur/roomSignature.js +49 -0
- package/lib/render/excalibur/roomSignature.js.map +1 -0
- package/lib/render/excalibur/sceneBake.d.ts +9 -0
- package/lib/render/excalibur/sceneBake.js +12 -0
- package/lib/render/excalibur/sceneBake.js.map +1 -0
- package/lib/render/excalibur/thiefSpan.d.ts +18 -0
- package/lib/render/excalibur/thiefSpan.js +51 -0
- package/lib/render/excalibur/thiefSpan.js.map +1 -0
- package/lib/render/excalibur/towerBridgeTiles.d.ts +30 -0
- package/lib/render/excalibur/towerBridgeTiles.js +43 -0
- package/lib/render/excalibur/towerBridgeTiles.js.map +1 -0
- package/lib/render/excalibur/towerCrowd.d.ts +73 -0
- package/lib/render/excalibur/towerCrowd.js +464 -0
- package/lib/render/excalibur/towerCrowd.js.map +1 -0
- package/lib/render/excalibur/towerCrowdLayout.d.ts +40 -0
- package/lib/render/excalibur/towerCrowdLayout.js +77 -0
- package/lib/render/excalibur/towerCrowdLayout.js.map +1 -0
- package/lib/render/excalibur/towerFireResponse.d.ts +25 -0
- package/lib/render/excalibur/towerFireResponse.js +89 -0
- package/lib/render/excalibur/towerFireResponse.js.map +1 -0
- package/lib/render/excalibur/towerFrame.d.ts +8 -0
- package/lib/render/excalibur/towerFrame.js +57 -0
- package/lib/render/excalibur/towerFrame.js.map +1 -0
- package/lib/render/excalibur/towerGhostLabel.d.ts +9 -0
- package/lib/render/excalibur/towerGhostLabel.js +37 -0
- package/lib/render/excalibur/towerGhostLabel.js.map +1 -0
- package/lib/render/excalibur/towerHallDoors.d.ts +42 -0
- package/lib/render/excalibur/towerHallDoors.js +129 -0
- package/lib/render/excalibur/towerHallDoors.js.map +1 -0
- package/lib/render/excalibur/towerHaloRings.d.ts +34 -0
- package/lib/render/excalibur/towerHaloRings.js +45 -0
- package/lib/render/excalibur/towerHaloRings.js.map +1 -0
- package/lib/render/excalibur/towerInputCamera.d.ts +90 -0
- package/lib/render/excalibur/towerInputCamera.js +480 -0
- package/lib/render/excalibur/towerInputCamera.js.map +1 -0
- package/lib/render/excalibur/towerMetro.d.ts +31 -0
- package/lib/render/excalibur/towerMetro.js +115 -0
- package/lib/render/excalibur/towerMetro.js.map +1 -0
- package/lib/render/excalibur/towerNoiseReach.d.ts +32 -0
- package/lib/render/excalibur/towerNoiseReach.js +75 -0
- package/lib/render/excalibur/towerNoiseReach.js.map +1 -0
- package/lib/render/excalibur/towerOverlay.d.ts +59 -0
- package/lib/render/excalibur/towerOverlay.js +453 -0
- package/lib/render/excalibur/towerOverlay.js.map +1 -0
- package/lib/render/excalibur/towerReconcile.d.ts +17 -0
- package/lib/render/excalibur/towerReconcile.js +404 -0
- package/lib/render/excalibur/towerReconcile.js.map +1 -0
- package/lib/render/excalibur/towerRegions.d.ts +61 -0
- package/lib/render/excalibur/towerRegions.js +193 -0
- package/lib/render/excalibur/towerRegions.js.map +1 -0
- package/lib/render/excalibur/towerScene.d.ts +66 -0
- package/lib/render/excalibur/towerScene.js +443 -0
- package/lib/render/excalibur/towerScene.js.map +1 -0
- package/lib/render/excalibur/towerScenery.d.ts +12 -0
- package/lib/render/excalibur/towerScenery.js +299 -0
- package/lib/render/excalibur/towerScenery.js.map +1 -0
- package/lib/render/excalibur/towerSceneryDraw.d.ts +86 -0
- package/lib/render/excalibur/towerSceneryDraw.js +288 -0
- package/lib/render/excalibur/towerSceneryDraw.js.map +1 -0
- package/lib/render/excalibur/towerShaftNumbers.d.ts +23 -0
- package/lib/render/excalibur/towerShaftNumbers.js +90 -0
- package/lib/render/excalibur/towerShaftNumbers.js.map +1 -0
- package/lib/render/excalibur/towerStructTiles.d.ts +56 -0
- package/lib/render/excalibur/towerStructTiles.js +238 -0
- package/lib/render/excalibur/towerStructTiles.js.map +1 -0
- package/lib/render/excalibur/towerSyncSchedule.d.ts +84 -0
- package/lib/render/excalibur/towerSyncSchedule.js +137 -0
- package/lib/render/excalibur/towerSyncSchedule.js.map +1 -0
- package/lib/render/excalibur/towerWalkerBuild.d.ts +30 -0
- package/lib/render/excalibur/towerWalkerBuild.js +126 -0
- package/lib/render/excalibur/towerWalkerBuild.js.map +1 -0
- package/lib/render/excalibur/trafficSpotlight.d.ts +29 -0
- package/lib/render/excalibur/trafficSpotlight.js +64 -0
- package/lib/render/excalibur/trafficSpotlight.js.map +1 -0
- package/lib/render/facadeGeometry.d.ts +50 -0
- package/lib/render/facadeGeometry.js +79 -0
- package/lib/render/facadeGeometry.js.map +1 -0
- package/lib/render/groundEntrances.d.ts +44 -0
- package/lib/render/groundEntrances.js +118 -0
- package/lib/render/groundEntrances.js.map +1 -0
- package/lib/render/lateNight.d.ts +14 -0
- package/lib/render/lateNight.js +18 -0
- package/lib/render/lateNight.js.map +1 -0
- package/lib/render/lobbyHalls.d.ts +44 -0
- package/lib/render/lobbyHalls.js +63 -0
- package/lib/render/lobbyHalls.js.map +1 -0
- package/lib/render/metroTrainSchedule.d.ts +20 -0
- package/lib/render/metroTrainSchedule.js +65 -0
- package/lib/render/metroTrainSchedule.js.map +1 -0
- package/lib/render/overviewMap/drawList.d.ts +67 -0
- package/lib/render/overviewMap/drawList.js +103 -0
- package/lib/render/overviewMap/drawList.js.map +1 -0
- package/lib/render/overviewMap/extent.d.ts +70 -0
- package/lib/render/overviewMap/extent.js +155 -0
- package/lib/render/overviewMap/extent.js.map +1 -0
- package/lib/render/overviewMap/floorSpans.d.ts +27 -0
- package/lib/render/overviewMap/floorSpans.js +32 -0
- package/lib/render/overviewMap/floorSpans.js.map +1 -0
- package/lib/render/overviewMap/gaps.d.ts +48 -0
- package/lib/render/overviewMap/gaps.js +148 -0
- package/lib/render/overviewMap/gaps.js.map +1 -0
- package/lib/render/overviewMap/geometry.d.ts +139 -0
- package/lib/render/overviewMap/geometry.js +245 -0
- package/lib/render/overviewMap/geometry.js.map +1 -0
- package/lib/render/overviewMap/heatView.d.ts +91 -0
- package/lib/render/overviewMap/heatView.js +143 -0
- package/lib/render/overviewMap/heatView.js.map +1 -0
- package/lib/render/overviewMap/hotelView.d.ts +82 -0
- package/lib/render/overviewMap/hotelView.js +136 -0
- package/lib/render/overviewMap/hotelView.js.map +1 -0
- package/lib/render/overviewMap/model.d.ts +97 -0
- package/lib/render/overviewMap/model.js +116 -0
- package/lib/render/overviewMap/model.js.map +1 -0
- package/lib/render/overviewMap/paint.d.ts +63 -0
- package/lib/render/overviewMap/paint.js +168 -0
- package/lib/render/overviewMap/paint.js.map +1 -0
- package/lib/render/overviewMap/style.d.ts +46 -0
- package/lib/render/overviewMap/style.js +117 -0
- package/lib/render/overviewMap/style.js.map +1 -0
- package/lib/render/overviewMap/tierView.d.ts +103 -0
- package/lib/render/overviewMap/tierView.js +209 -0
- package/lib/render/overviewMap/tierView.js.map +1 -0
- package/lib/render/overviewMap/viewMark.d.ts +69 -0
- package/lib/render/overviewMap/viewMark.js +103 -0
- package/lib/render/overviewMap/viewMark.js.map +1 -0
- package/lib/render/overviewMap/views.d.ts +24 -0
- package/lib/render/overviewMap/views.js +29 -0
- package/lib/render/overviewMap/views.js.map +1 -0
- package/lib/render/pinchTracker.d.ts +91 -0
- package/lib/render/pinchTracker.js +145 -0
- package/lib/render/pinchTracker.js.map +1 -0
- package/lib/render/pixelSprites/amusements.d.ts +32 -0
- package/lib/render/pixelSprites/amusements.js +243 -0
- package/lib/render/pixelSprites/amusements.js.map +1 -0
- package/lib/render/pixelSprites/artScale.d.ts +97 -0
- package/lib/render/pixelSprites/artScale.js +151 -0
- package/lib/render/pixelSprites/artScale.js.map +1 -0
- package/lib/render/pixelSprites/boutique.d.ts +30 -0
- package/lib/render/pixelSprites/boutique.js +244 -0
- package/lib/render/pixelSprites/boutique.js.map +1 -0
- package/lib/render/pixelSprites/clinic.d.ts +30 -0
- package/lib/render/pixelSprites/clinic.js +184 -0
- package/lib/render/pixelSprites/clinic.js.map +1 -0
- package/lib/render/pixelSprites/common.d.ts +185 -0
- package/lib/render/pixelSprites/common.js +449 -0
- package/lib/render/pixelSprites/common.js.map +1 -0
- package/lib/render/pixelSprites/daycare.d.ts +3 -0
- package/lib/render/pixelSprites/daycare.js +99 -0
- package/lib/render/pixelSprites/daycare.js.map +1 -0
- package/lib/render/pixelSprites/dollhouse.d.ts +45 -0
- package/lib/render/pixelSprites/dollhouse.js +110 -0
- package/lib/render/pixelSprites/dollhouse.js.map +1 -0
- package/lib/render/pixelSprites/fitness.d.ts +30 -0
- package/lib/render/pixelSprites/fitness.js +176 -0
- package/lib/render/pixelSprites/fitness.js.map +1 -0
- package/lib/render/pixelSprites/food.d.ts +27 -0
- package/lib/render/pixelSprites/food.interiors.d.ts +38 -0
- package/lib/render/pixelSprites/food.interiors.js +516 -0
- package/lib/render/pixelSprites/food.interiors.js.map +1 -0
- package/lib/render/pixelSprites/food.js +36 -0
- package/lib/render/pixelSprites/food.js.map +1 -0
- package/lib/render/pixelSprites/food.kit.d.ts +50 -0
- package/lib/render/pixelSprites/food.kit.js +140 -0
- package/lib/render/pixelSprites/food.kit.js.map +1 -0
- package/lib/render/pixelSprites/food.looks.d.ts +45 -0
- package/lib/render/pixelSprites/food.looks.js +56 -0
- package/lib/render/pixelSprites/food.looks.js.map +1 -0
- package/lib/render/pixelSprites/layers.d.ts +49 -0
- package/lib/render/pixelSprites/layers.js +61 -0
- package/lib/render/pixelSprites/layers.js.map +1 -0
- package/lib/render/pixelSprites/nightclub.d.ts +3 -0
- package/lib/render/pixelSprites/nightclub.js +108 -0
- package/lib/render/pixelSprites/nightclub.js.map +1 -0
- package/lib/render/pixelSprites/people.d.ts +168 -0
- package/lib/render/pixelSprites/people.js +431 -0
- package/lib/render/pixelSprites/people.js.map +1 -0
- package/lib/render/pixelSprites/residential.d.ts +5 -0
- package/lib/render/pixelSprites/residential.js +506 -0
- package/lib/render/pixelSprites/residential.js.map +1 -0
- package/lib/render/pixelSprites/residential.looks.d.ts +40 -0
- package/lib/render/pixelSprites/residential.looks.js +43 -0
- package/lib/render/pixelSprites/residential.looks.js.map +1 -0
- package/lib/render/pixelSprites/residential.roaches.d.ts +38 -0
- package/lib/render/pixelSprites/residential.roaches.js +88 -0
- package/lib/render/pixelSprites/residential.roaches.js.map +1 -0
- package/lib/render/pixelSprites/residentialRentalSprites.d.ts +11 -0
- package/lib/render/pixelSprites/residentialRentalSprites.js +19 -0
- package/lib/render/pixelSprites/residentialRentalSprites.js.map +1 -0
- package/lib/render/pixelSprites/shop.d.ts +14 -0
- package/lib/render/pixelSprites/shop.interiors.d.ts +50 -0
- package/lib/render/pixelSprites/shop.interiors.js +382 -0
- package/lib/render/pixelSprites/shop.interiors.js.map +1 -0
- package/lib/render/pixelSprites/shop.js +72 -0
- package/lib/render/pixelSprites/shop.js.map +1 -0
- package/lib/render/pixelSprites/shop.looks.d.ts +17 -0
- package/lib/render/pixelSprites/shop.looks.js +24 -0
- package/lib/render/pixelSprites/shop.looks.js.map +1 -0
- package/lib/render/pixelSprites/skyBar.d.ts +11 -0
- package/lib/render/pixelSprites/skyBar.js +125 -0
- package/lib/render/pixelSprites/skyBar.js.map +1 -0
- package/lib/render/pixelSprites/spa.d.ts +3 -0
- package/lib/render/pixelSprites/spa.js +88 -0
- package/lib/render/pixelSprites/spa.js.map +1 -0
- package/lib/render/pixelSprites.d.ts +33 -0
- package/lib/render/pixelSprites.js +167 -0
- package/lib/render/pixelSprites.js.map +1 -0
- package/lib/render/regionGrid.d.ts +49 -0
- package/lib/render/regionGrid.js +82 -0
- package/lib/render/regionGrid.js.map +1 -0
- package/lib/render/regionPaint.d.ts +15 -0
- package/lib/render/regionPaint.js +33 -0
- package/lib/render/regionPaint.js.map +1 -0
- package/lib/render/renderSim.d.ts +104 -0
- package/lib/render/renderSim.js +2 -0
- package/lib/render/renderSim.js.map +1 -0
- package/lib/render/roomPortrait.d.ts +35 -0
- package/lib/render/roomPortrait.js +142 -0
- package/lib/render/roomPortrait.js.map +1 -0
- package/lib/render/roomShading.d.ts +29 -0
- package/lib/render/roomShading.js +43 -0
- package/lib/render/roomShading.js.map +1 -0
- package/lib/render/scale.d.ts +31 -0
- package/lib/render/scale.js +34 -0
- package/lib/render/scale.js.map +1 -0
- package/lib/render/sceneryLayout.d.ts +234 -0
- package/lib/render/sceneryLayout.js +199 -0
- package/lib/render/sceneryLayout.js.map +1 -0
- package/lib/render/sprites/common.d.ts +41 -0
- package/lib/render/sprites/common.js +46 -0
- package/lib/render/sprites/common.js.map +1 -0
- package/lib/render/sprites/escalator.d.ts +27 -0
- package/lib/render/sprites/escalator.js +156 -0
- package/lib/render/sprites/escalator.js.map +1 -0
- package/lib/render/sprites/events.d.ts +56 -0
- package/lib/render/sprites/events.js +280 -0
- package/lib/render/sprites/events.js.map +1 -0
- package/lib/render/sprites/facilities/garage.d.ts +23 -0
- package/lib/render/sprites/facilities/garage.js +230 -0
- package/lib/render/sprites/facilities/garage.js.map +1 -0
- package/lib/render/sprites/facilities/recycling.d.ts +3 -0
- package/lib/render/sprites/facilities/recycling.js +210 -0
- package/lib/render/sprites/facilities/recycling.js.map +1 -0
- package/lib/render/sprites/facilities/recyclingLook.d.ts +49 -0
- package/lib/render/sprites/facilities/recyclingLook.js +52 -0
- package/lib/render/sprites/facilities/recyclingLook.js.map +1 -0
- package/lib/render/sprites/facilities/service.d.ts +14 -0
- package/lib/render/sprites/facilities/service.js +437 -0
- package/lib/render/sprites/facilities/service.js.map +1 -0
- package/lib/render/sprites/facilities/serviceKit.d.ts +61 -0
- package/lib/render/sprites/facilities/serviceKit.js +113 -0
- package/lib/render/sprites/facilities/serviceKit.js.map +1 -0
- package/lib/render/sprites/facilities/vehicles.d.ts +38 -0
- package/lib/render/sprites/facilities/vehicles.js +276 -0
- package/lib/render/sprites/facilities/vehicles.js.map +1 -0
- package/lib/render/sprites/facilities/venue.d.ts +28 -0
- package/lib/render/sprites/facilities/venue.js +211 -0
- package/lib/render/sprites/facilities/venue.js.map +1 -0
- package/lib/render/sprites/facilities/weddingHall.d.ts +9 -0
- package/lib/render/sprites/facilities/weddingHall.js +410 -0
- package/lib/render/sprites/facilities/weddingHall.js.map +1 -0
- package/lib/render/sprites/facilities.d.ts +22 -0
- package/lib/render/sprites/facilities.js +24 -0
- package/lib/render/sprites/facilities.js.map +1 -0
- package/lib/render/sprites/helicopter.d.ts +11 -0
- package/lib/render/sprites/helicopter.js +60 -0
- package/lib/render/sprites/helicopter.js.map +1 -0
- package/lib/render/sprites/sky.d.ts +67 -0
- package/lib/render/sprites/sky.js +85 -0
- package/lib/render/sprites/sky.js.map +1 -0
- package/lib/render/sprites/spiralStair.d.ts +19 -0
- package/lib/render/sprites/spiralStair.js +111 -0
- package/lib/render/sprites/spiralStair.js.map +1 -0
- package/lib/render/sprites/structure/entrance.d.ts +35 -0
- package/lib/render/sprites/structure/entrance.js +347 -0
- package/lib/render/sprites/structure/entrance.js.map +1 -0
- package/lib/render/sprites/structure/lobby.d.ts +88 -0
- package/lib/render/sprites/structure/lobby.js +350 -0
- package/lib/render/sprites/structure/lobby.js.map +1 -0
- package/lib/render/sprites/structure/revolvingDoor.d.ts +53 -0
- package/lib/render/sprites/structure/revolvingDoor.js +184 -0
- package/lib/render/sprites/structure/revolvingDoor.js.map +1 -0
- package/lib/render/sprites/structure/rooftop.d.ts +93 -0
- package/lib/render/sprites/structure/rooftop.js +302 -0
- package/lib/render/sprites/structure/rooftop.js.map +1 -0
- package/lib/render/sprites/structure/shell.d.ts +19 -0
- package/lib/render/sprites/structure/shell.js +142 -0
- package/lib/render/sprites/structure/shell.js.map +1 -0
- package/lib/render/sprites/structure/skyBridge.d.ts +28 -0
- package/lib/render/sprites/structure/skyBridge.js +259 -0
- package/lib/render/sprites/structure/skyBridge.js.map +1 -0
- package/lib/render/sprites/structure/tallLobby.d.ts +8 -0
- package/lib/render/sprites/structure/tallLobby.js +166 -0
- package/lib/render/sprites/structure/tallLobby.js.map +1 -0
- package/lib/render/sprites/structure/tallLobbyPieces.d.ts +18 -0
- package/lib/render/sprites/structure/tallLobbyPieces.js +82 -0
- package/lib/render/sprites/structure/tallLobbyPieces.js.map +1 -0
- package/lib/render/sprites/structure.d.ts +15 -0
- package/lib/render/sprites/structure.js +16 -0
- package/lib/render/sprites/structure.js.map +1 -0
- package/lib/render/sprites/transport.d.ts +30 -0
- package/lib/render/sprites/transport.js +376 -0
- package/lib/render/sprites/transport.js.map +1 -0
- package/lib/render/sprites.d.ts +16 -0
- package/lib/render/sprites.js +108 -0
- package/lib/render/sprites.js.map +1 -0
- package/lib/render/venueFlights.d.ts +61 -0
- package/lib/render/venueFlights.js +50 -0
- package/lib/render/venueFlights.js.map +1 -0
- package/lib/shared/engineTypes.d.ts +256 -0
- package/lib/shared/engineTypes.js +8 -0
- package/lib/shared/engineTypes.js.map +1 -0
- package/lib/shared/floorRuns.d.ts +22 -0
- package/lib/shared/floorRuns.js +39 -0
- package/lib/shared/floorRuns.js.map +1 -0
- package/lib/shared/inputEvents.d.ts +18 -0
- package/lib/shared/inputEvents.js +23 -0
- package/lib/shared/inputEvents.js.map +1 -0
- package/lib/shared/serializedGame.d.ts +142 -0
- package/lib/shared/serializedGame.js +2 -0
- package/lib/shared/serializedGame.js.map +1 -0
- package/lib/shared/types.d.ts +298 -0
- package/lib/shared/types.js +47 -0
- package/lib/shared/types.js.map +1 -0
- package/lib/shared/unitState.d.ts +36 -0
- package/lib/shared/unitState.js +42 -0
- package/lib/shared/unitState.js.map +1 -0
- package/lib/shared/vacateReasonText.d.ts +20 -0
- package/lib/shared/vacateReasonText.js +23 -0
- package/lib/shared/vacateReasonText.js.map +1 -0
- package/lib/shared/viewZoom.d.ts +14 -0
- package/lib/shared/viewZoom.js +17 -0
- package/lib/shared/viewZoom.js.map +1 -0
- package/lib/shared/wellFormed.d.ts +14 -0
- package/lib/shared/wellFormed.js +19 -0
- package/lib/shared/wellFormed.js.map +1 -0
- package/lib/simport/cards.d.ts +26 -0
- package/lib/simport/cards.js +138 -0
- package/lib/simport/cards.js.map +1 -0
- package/lib/simport/clockView.d.ts +24 -0
- package/lib/simport/clockView.js +43 -0
- package/lib/simport/clockView.js.map +1 -0
- package/lib/simport/commands.d.ts +215 -0
- package/lib/simport/commands.js +2 -0
- package/lib/simport/commands.js.map +1 -0
- package/lib/simport/emergencyReads.d.ts +19 -0
- package/lib/simport/emergencyReads.js +47 -0
- package/lib/simport/emergencyReads.js.map +1 -0
- package/lib/simport/enginePort.d.ts +433 -0
- package/lib/simport/enginePort.js +11 -0
- package/lib/simport/enginePort.js.map +1 -0
- package/lib/simport/fixtures/catalog.classic.json +2137 -0
- package/lib/simport/fixtures/catalog.modern.json +2515 -0
- package/lib/simport/fixtures/viewLayout.json +927 -0
- package/lib/simport/headerClock.d.ts +31 -0
- package/lib/simport/headerClock.js +29 -0
- package/lib/simport/headerClock.js.map +1 -0
- package/lib/simport/panels.d.ts +243 -0
- package/lib/simport/panels.js +2 -0
- package/lib/simport/panels.js.map +1 -0
- package/lib/simport/personCards.d.ts +63 -0
- package/lib/simport/personCards.js +55 -0
- package/lib/simport/personCards.js.map +1 -0
- package/lib/simport/portCodes.d.ts +41 -0
- package/lib/simport/portCodes.js +49 -0
- package/lib/simport/portCodes.js.map +1 -0
- package/lib/simport/portEvents.d.ts +39 -0
- package/lib/simport/portEvents.js +43 -0
- package/lib/simport/portEvents.js.map +1 -0
- package/lib/simport/portRenderSim.d.ts +70 -0
- package/lib/simport/portRenderSim.js +129 -0
- package/lib/simport/portRenderSim.js.map +1 -0
- package/lib/simport/queries.d.ts +64 -0
- package/lib/simport/queries.js +30 -0
- package/lib/simport/queries.js.map +1 -0
- package/lib/simport/recyclingPort.d.ts +13 -0
- package/lib/simport/recyclingPort.js +2 -0
- package/lib/simport/recyclingPort.js.map +1 -0
- package/lib/simport/request.d.ts +44 -0
- package/lib/simport/request.js +214 -0
- package/lib/simport/request.js.map +1 -0
- package/lib/simport/roomTiers.d.ts +102 -0
- package/lib/simport/roomTiers.js +122 -0
- package/lib/simport/roomTiers.js.map +1 -0
- package/lib/simport/scheduleSlots.d.ts +19 -0
- package/lib/simport/scheduleSlots.js +87 -0
- package/lib/simport/scheduleSlots.js.map +1 -0
- package/lib/simport/skyBridgePort.d.ts +20 -0
- package/lib/simport/skyBridgePort.js +2 -0
- package/lib/simport/skyBridgePort.js.map +1 -0
- package/lib/simport/skyBridgeView.d.ts +15 -0
- package/lib/simport/skyBridgeView.js +42 -0
- package/lib/simport/skyBridgeView.js.map +1 -0
- package/lib/simport/statsSheet.d.ts +15 -0
- package/lib/simport/statsSheet.js +101 -0
- package/lib/simport/statsSheet.js.map +1 -0
- package/lib/simport/tdtRecords.d.ts +9 -0
- package/lib/simport/tdtRecords.js +112 -0
- package/lib/simport/tdtRecords.js.map +1 -0
- package/lib/simport/tdtReportFacts.d.ts +110 -0
- package/lib/simport/tdtReportFacts.js +8 -0
- package/lib/simport/tdtReportFacts.js.map +1 -0
- package/lib/simport/trafficPort.d.ts +22 -0
- package/lib/simport/trafficPort.js +2 -0
- package/lib/simport/trafficPort.js.map +1 -0
- package/lib/simport/view.d.ts +275 -0
- package/lib/simport/view.js +2 -0
- package/lib/simport/view.js.map +1 -0
- package/lib/simport/viewReader.d.ts +89 -0
- package/lib/simport/viewReader.js +426 -0
- package/lib/simport/viewReader.js.map +1 -0
- package/lib/styles/game/appearance.css +108 -0
- package/lib/styles/game/base.css +68 -0
- package/lib/styles/game/components.css +69 -0
- package/lib/styles/game/desk-title.css +183 -0
- package/lib/styles/game/desk.css +487 -0
- package/lib/styles/game/dialogs.css +360 -0
- package/lib/styles/game/editor-sidebar.css +116 -0
- package/lib/styles/game/elevator-schedule.css +217 -0
- package/lib/styles/game/file-dialog.css +470 -0
- package/lib/styles/game/help.css +141 -0
- package/lib/styles/game/launch-fireworks.css +17 -0
- package/lib/styles/game/media-landscape.css +333 -0
- package/lib/styles/game/media-phone.css +303 -0
- package/lib/styles/game/media-tablet-touch.css +177 -0
- package/lib/styles/game/menubar.css +158 -0
- package/lib/styles/game/new-tower.css +219 -0
- package/lib/styles/game/onboarding.css +32 -0
- package/lib/styles/game/screen-saver.css +85 -0
- package/lib/styles/game/splash.css +413 -0
- package/lib/styles/game/stats-saves.css +106 -0
- package/lib/styles/game/tools-stage.css +340 -0
- package/lib/styles/game/topbar.css +191 -0
- package/lib/styles/menu-bar.css +108 -0
- package/lib/styles/not-found.css +335 -0
- package/lib/styles/overview-map-views.css +88 -0
- package/lib/styles/overview-map.css +195 -0
- package/lib/styles/retro-components.css +179 -0
- package/lib/styles/retro-page.css +254 -0
- package/lib/styles/retro-tokens.css +122 -0
- package/lib/styles/schemes/high-contrast.css +173 -0
- package/lib/styles/schemes/skyline.css +134 -0
- package/lib/styles.css +66 -0
- package/lib/ui/desk/deskGeometry.d.ts +59 -0
- package/lib/ui/desk/deskGeometry.js +106 -0
- package/lib/ui/desk/deskGeometry.js.map +1 -0
- package/lib/ui/desk/deskWindow.d.ts +90 -0
- package/lib/ui/desk/deskWindow.js +253 -0
- package/lib/ui/desk/deskWindow.js.map +1 -0
- package/lib/ui/desk/deskWindowMenu.d.ts +55 -0
- package/lib/ui/desk/deskWindowMenu.js +143 -0
- package/lib/ui/desk/deskWindowMenu.js.map +1 -0
- package/lib/ui/escape.d.ts +1 -0
- package/lib/ui/escape.js +14 -0
- package/lib/ui/escape.js.map +1 -0
- package/lib/ui/format.d.ts +14 -0
- package/lib/ui/format.js +36 -0
- package/lib/ui/format.js.map +1 -0
- package/lib/ui/iconPaths.generated.d.ts +4 -0
- package/lib/ui/iconPaths.generated.js +68 -0
- package/lib/ui/iconPaths.generated.js.map +1 -0
- package/lib/ui/icons.d.ts +83 -0
- package/lib/ui/icons.js +156 -0
- package/lib/ui/icons.js.map +1 -0
- package/lib/ui/menuBar.d.ts +94 -0
- package/lib/ui/menuBar.js +361 -0
- package/lib/ui/menuBar.js.map +1 -0
- package/lib/ui/modalPrecedence.d.ts +108 -0
- package/lib/ui/modalPrecedence.js +165 -0
- package/lib/ui/modalPrecedence.js.map +1 -0
- package/lib/ui/movableWindow.d.ts +124 -0
- package/lib/ui/movableWindow.js +247 -0
- package/lib/ui/movableWindow.js.map +1 -0
- package/lib/ui/overviewMapInput.d.ts +109 -0
- package/lib/ui/overviewMapInput.js +135 -0
- package/lib/ui/overviewMapInput.js.map +1 -0
- package/lib/ui/uiModal.d.ts +38 -0
- package/lib/ui/uiModal.js +70 -0
- package/lib/ui/uiModal.js.map +1 -0
- package/lib/wasmhost/buildSection.d.ts +54 -0
- package/lib/wasmhost/buildSection.js +143 -0
- package/lib/wasmhost/buildSection.js.map +1 -0
- package/lib/wasmhost/catalogCheck.d.ts +11 -0
- package/lib/wasmhost/catalogCheck.js +43 -0
- package/lib/wasmhost/catalogCheck.js.map +1 -0
- package/lib/wasmhost/engineAssets.d.ts +57 -0
- package/lib/wasmhost/engineAssets.js +63 -0
- package/lib/wasmhost/engineAssets.js.map +1 -0
- package/lib/wasmhost/engineBoot.d.ts +165 -0
- package/lib/wasmhost/engineBoot.js +254 -0
- package/lib/wasmhost/engineBoot.js.map +1 -0
- package/lib/wasmhost/engineChoice.d.ts +6 -0
- package/lib/wasmhost/engineChoice.js +2 -0
- package/lib/wasmhost/engineChoice.js.map +1 -0
- package/lib/wasmhost/engineDiagnostics.d.ts +66 -0
- package/lib/wasmhost/engineDiagnostics.js +189 -0
- package/lib/wasmhost/engineDiagnostics.js.map +1 -0
- package/lib/wasmhost/engineDiagnosticsLive.d.ts +15 -0
- package/lib/wasmhost/engineDiagnosticsLive.js +31 -0
- package/lib/wasmhost/engineDiagnosticsLive.js.map +1 -0
- package/lib/wasmhost/engineIdentity.d.ts +30 -0
- package/lib/wasmhost/engineIdentity.js +59 -0
- package/lib/wasmhost/engineIdentity.js.map +1 -0
- package/lib/wasmhost/engineLabel.d.ts +40 -0
- package/lib/wasmhost/engineLabel.js +50 -0
- package/lib/wasmhost/engineLabel.js.map +1 -0
- package/lib/wasmhost/engineLoad.d.ts +48 -0
- package/lib/wasmhost/engineLoad.js +53 -0
- package/lib/wasmhost/engineLoad.js.map +1 -0
- package/lib/wasmhost/enginePackageCheck.d.ts +77 -0
- package/lib/wasmhost/enginePackageCheck.js +274 -0
- package/lib/wasmhost/enginePackageCheck.js.map +1 -0
- package/lib/wasmhost/enginePackageNames.d.ts +25 -0
- package/lib/wasmhost/enginePackageNames.js +28 -0
- package/lib/wasmhost/enginePackageNames.js.map +1 -0
- package/lib/wasmhost/enginePackageRecord.d.ts +78 -0
- package/lib/wasmhost/enginePackageRecord.js +108 -0
- package/lib/wasmhost/enginePackageRecord.js.map +1 -0
- package/lib/wasmhost/engineRepair.d.ts +55 -0
- package/lib/wasmhost/engineRepair.js +183 -0
- package/lib/wasmhost/engineRepair.js.map +1 -0
- package/lib/wasmhost/frameView.d.ts +87 -0
- package/lib/wasmhost/frameView.js +133 -0
- package/lib/wasmhost/frameView.js.map +1 -0
- package/lib/wasmhost/hostFault.d.ts +40 -0
- package/lib/wasmhost/hostFault.js +94 -0
- package/lib/wasmhost/hostFault.js.map +1 -0
- package/lib/wasmhost/loadEngineModule.d.ts +79 -0
- package/lib/wasmhost/loadEngineModule.js +66 -0
- package/lib/wasmhost/loadEngineModule.js.map +1 -0
- package/lib/wasmhost/packageHash.d.ts +48 -0
- package/lib/wasmhost/packageHash.js +436 -0
- package/lib/wasmhost/packageHash.js.map +1 -0
- package/lib/wasmhost/rustEngine.d.ts +49 -0
- package/lib/wasmhost/rustEngine.js +63 -0
- package/lib/wasmhost/rustEngine.js.map +1 -0
- package/lib/wasmhost/slotPopulation.d.ts +19 -0
- package/lib/wasmhost/slotPopulation.js +69 -0
- package/lib/wasmhost/slotPopulation.js.map +1 -0
- package/lib/wasmhost/telemetry.d.ts +31 -0
- package/lib/wasmhost/telemetry.js +13 -0
- package/lib/wasmhost/telemetry.js.map +1 -0
- package/package.json +80 -4
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { strToU8, zipSync } from 'fflate';
|
|
2
|
+
import { PARKING_CAR_COLORS, RECYCLE_STEPS, roomKinds, variantPlacements, RECYCLE_BREAKS } from './catalog.js';
|
|
3
|
+
import { CINEMA_CYCLES } from './cycles.js';
|
|
4
|
+
import { STREET_CAR_SEEDS, CAR_SEEDS, BUILDS, SKY_COLUMNS } from './catalogExtras.js';
|
|
5
|
+
import { pack } from './pack.js';
|
|
6
|
+
import { depthData, skyData, sceneryData } from './scenery.js';
|
|
7
|
+
import { blank, over, crop, sameImage } from './pixels.js';
|
|
8
|
+
import { encodePng } from './png.js';
|
|
9
|
+
import { blit, scaleNearest } from './raster.js';
|
|
10
|
+
import { ATLAS_PADDING, ATLAS_PAGE_BASE, ATLAS_SCALES, ATLAS_SCHEMA_VERSION } from './schema.js';
|
|
11
|
+
import { FLOOR, TILE } from '../scale.js';
|
|
12
|
+
import { skyColor } from '../sprites/sky.js';
|
|
13
|
+
import { SHIRTS } from '../pixelSprites/common.js';
|
|
14
|
+
import { bindViewWorld } from '../../presentation/viewWorld.js';
|
|
15
|
+
import { bindViewKinds } from '../../presentation/viewKinds.js';
|
|
16
|
+
import { SKYLINE_FILLS } from '../sceneryLayout.js';
|
|
17
|
+
|
|
18
|
+
const ARCHIVE_ROOT = "verticopolis-atlas";
|
|
19
|
+
/** Fixed zip timestamp (built from local fields, which is how the zip format
|
|
20
|
+
* stores it), so the archive bytes never depend on the clock. */
|
|
21
|
+
const ZIP_TIME = new Date(1980, 0, 2, 0, 0, 0);
|
|
22
|
+
function signature() {
|
|
23
|
+
return {
|
|
24
|
+
baked: ["kind", "state", "subtype", "width", "lit", "hours", "late", "presence", "variant"],
|
|
25
|
+
composed: ["visibleOccupants", "riders", "recyclingFill", "parkingCar", "deadParking", "recyclingFillExact"],
|
|
26
|
+
animated: ["fire", "construction", "entranceDoorman", "crane", "cinema"],
|
|
27
|
+
sampled: ["variant"],
|
|
28
|
+
rules: {
|
|
29
|
+
hours: "open or closed by the kind's business hours at the current hour; 'always' for kinds without hours",
|
|
30
|
+
late: "condo, studio and apartment: 'late' from 23:00 to 06:00, else 'notlate'; 'any' for every other kind",
|
|
31
|
+
presence: "'home' when the unit's occupants is above 0, else 'away'; kinds whose art ignores occupants (the garage, ramp, services, recycling, metro) carry no presence segment",
|
|
32
|
+
width: "room frames exist for each kind's catalog width only. A room at another width (a TDT import or an old save keeps its original width) uses the catalog-width frame or animation, composed as usual, then scaled horizontally to its real width, nearest neighbor from the left edge (the reference reader's stretchTo); it approximates the web game, which redraws the room at its real width. Legacy shaft widths (stairs and escalators 4, standard elevator 3, express 4) have frames of their own, named with a w<tiles> segment after the kind; a shaft at any other width stretches its catalog frames the same way",
|
|
33
|
+
subtype: "a subtype the engine does not list for the kind draws the default look, the '-' frame",
|
|
34
|
+
visibleOccupants: "occupants minus outForMeal, rounded up and clamped at 0. Read outForMeal as between 0 and occupants: a negative or non-finite value is nobody out, and a value over occupants is everybody out; a non-finite occupants is nobody. Draw chain steps 1..min(n, max) over the 'home' frame. Chains cover every count the engine produces (population, venue attendance, the largest household)",
|
|
35
|
+
riders: "the cab's rider indicator (0..4, the game's load quantized to quarters); draw chain steps 1..min(n, max) over the car frame",
|
|
36
|
+
recyclingFill: `round(fill * ${RECYCLE_STEPS}) for the tower's recycling fill in 0..1; draw chain steps over the frame. The web re-bakes on the same eighths but paints the exact fill, so a pile between steps can differ by a bag or a gauge pixel`,
|
|
37
|
+
recyclingFillExact: "the 'fillExact' chain, drawn instead of 'fill' (never with it): n is how many entries of data.recyclingFillBreaks are at or below the fill, read as the game reads it (clamped to 0..1, a non-finite fill as 0). Each break is a fill where the picture changes (a bag, a gauge row, the second row past 0.5, amber past 0.7, red and FULL at 1), so every fill matches the game's paint exactly",
|
|
38
|
+
parkingCar: `overlay 'car<i>' with i = unit id % ${PARKING_CAR_COLORS} when the space holds a car; never on a dead space. The game re-paints a space when the garage's use crosses a sixth, so its cars can trail the live use slightly`,
|
|
39
|
+
deadParking: "overlay 'dead' when the space is not chained to a ramp (not on a burning or unbuilt space)",
|
|
40
|
+
fire: "state 'fire' plays the animation fire/<kind>",
|
|
41
|
+
construction: "state 'construction' plays the animation construction/<kind>",
|
|
42
|
+
variant: "the web seeds room variety from the room's floor, column and id; the atlas ships a fixed sample (see 'variants'), pick one per room and keep it",
|
|
43
|
+
sky: "sky/gradient has one column per quarter hour from 00:00; the web's color is a cosine blend, t = cos((hour - 13) / 24 * 2 * pi) * 0.5 + 0.5, from #1c2246 (t 0) to #82afe0 (t 1) per channel, rounded",
|
|
44
|
+
parkingRoll: "a space holds a car when hash(int32(id * 31)) < parkingUse, where hash(n) is: x = int32(n * 2654435761) with the product taken as a float64 (IEEE double) multiply; x = imul32(x ^ (x >>> 15), 0x2c1b3c6d); x = imul32(x ^ (x >>> 13), 0x297a2d39); (x ^ (x >>> 16)) as unsigned / 2^32. int32(v) truncates v toward zero and wraps it modulo 2^32 to a signed 32-bit integer (JavaScript's v | 0); imul32 is a 32-bit integer multiply; ^ is a 32-bit xor and >>> a logical (zero-filling) right shift on the 32-bit pattern, so a negative x shifts in zeros. The first step is not imul32: the two can differ once the product's magnitude passes 2^53",
|
|
45
|
+
cinema: `the cinema's marquee and screen read the animation clock. Its frames are baked at clock 0 and carry 'cycles': at t seconds draw ${Object.entries(CINEMA_CYCLES)
|
|
46
|
+
.map(([k, c]) => `'${k}' step floor(t * ${c.rate}) % ${c.frames}`)
|
|
47
|
+
.join(" and ")} (a cycle a frame does not carry never changes it); this matches the game's paint except within rounding of a screen step, where the game adds the room's seed before rounding down. The web itself keeps whatever moment its last re-bake caught`,
|
|
48
|
+
layers: "a room frame, a lobby tile, an entrance frame, an elevator cab or the metro train may carry 'layers' for drawing with depth. To draw it with its chain at n (the frame's one chain, if any: 'occupants', 'riders' or 'fill', or the chain marked 'alternativeTo' it, drawn instead), draw the 'shell' parts and the chain's 'shell' steps 1..min(n, len - 1), then any 'cycles' steps, then the 'furniture' parts and the chain's 'furniture' steps the same way, then any overlay the frame shows (a parking space's car or dead mark), each source-over; an elevator cab or the metro train also has a 'front' picture (and, for the cab's riders, 'front' chain steps), drawn after the furniture and before any overlay; the result equals the frame's parts, its chain steps 1..n and the overlay exactly. 'soft' (with the chain's 'soft' steps) is an optional furniture picture that keeps glows and soft shadows translucent; over the shell it rounds a step or two away from the frame's parts. A frame without 'layers' (vacancy, closed and gutted rooms, and every family outside the ones named here) is drawn flat",
|
|
49
|
+
depth: "data.depth names the game's draw planes back to front ('z', higher in front; equal planes draw in the order the game adds their actors) and the frame families on each",
|
|
50
|
+
skyMotion: "data.sky gives the sun's arc and each cloud's drift in the game's own terms; both are screen-space, sized to the view",
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function placedOf(ref, slices) {
|
|
55
|
+
return slices.map((s) => ({ rect: s.rect, dx: ref.dx + s.sx, dy: ref.dy }));
|
|
56
|
+
}
|
|
57
|
+
function layerOf(ref, placements) {
|
|
58
|
+
if (!ref)
|
|
59
|
+
return null;
|
|
60
|
+
const parts = placedOf(ref, placements[ref.id]);
|
|
61
|
+
if (parts.length !== 1)
|
|
62
|
+
throw new Error(`layer image ${ref.id} needs ${parts.length} slices; layers must fit one page`);
|
|
63
|
+
return parts[0];
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Pack the frame images, then the depth layers' own images on pages of their
|
|
67
|
+
* own after them, then the added images (`BakeResult.addedImages`) after
|
|
68
|
+
* those. The frame images pack exactly as they would in a bake with no
|
|
69
|
+
* layers, so adding layers never moves a frame's part or changes a byte of
|
|
70
|
+
* its pages, and the added images move nothing at all.
|
|
71
|
+
*/
|
|
72
|
+
function packGroups(bake, pageSize) {
|
|
73
|
+
const split = bake.frameImages ?? bake.images.length;
|
|
74
|
+
if (!(Number.isInteger(split) && split >= 0 && split <= bake.images.length))
|
|
75
|
+
throw new Error(`frameImages ${split} is outside 0..${bake.images.length}`);
|
|
76
|
+
const starts = bake.groups ?? [];
|
|
77
|
+
if (starts.some((s, i) => !Number.isInteger(s) || s < (starts[i - 1] ?? 0) || s > split))
|
|
78
|
+
throw new Error(`groups ${starts.join(", ")} are outside 0..${split} or out of order`);
|
|
79
|
+
const addedFrom = bake.addedImages ?? bake.images.length;
|
|
80
|
+
if (!(Number.isInteger(addedFrom) && addedFrom >= split && addedFrom <= bake.images.length))
|
|
81
|
+
throw new Error(`addedImages ${addedFrom} is outside ${split}..${bake.images.length}`);
|
|
82
|
+
// Each group packs on its own pages, in order: the first families' frame
|
|
83
|
+
// images, each later family's, the depth layers' own images, then the
|
|
84
|
+
// images added to frames that already shipped.
|
|
85
|
+
const bounds = [0, ...starts, split, ...(bake.addedImages === undefined ? [] : [addedFrom]), bake.images.length];
|
|
86
|
+
let pages = 0;
|
|
87
|
+
const placements = [];
|
|
88
|
+
for (let g = 0; g + 1 < bounds.length; g++) {
|
|
89
|
+
const from = bounds[g];
|
|
90
|
+
const packed = pack(bake.images.slice(from, bounds[g + 1]).map((img, i) => ({ id: from + i, w: img.w, h: img.h })), pageSize, ATLAS_PADDING);
|
|
91
|
+
for (const list of packed.placements)
|
|
92
|
+
placements.push(list.map((sl) => ({ ...sl, rect: { ...sl.rect, page: sl.rect.page + pages } })));
|
|
93
|
+
pages += packed.pages;
|
|
94
|
+
}
|
|
95
|
+
return { pages, placements };
|
|
96
|
+
}
|
|
97
|
+
function buildArchive(bake, info, onProgress, pageSize = ATLAS_PAGE_BASE) {
|
|
98
|
+
bindViewWorld(info.catalog.world);
|
|
99
|
+
bindViewKinds(info.catalog);
|
|
100
|
+
const packed = packGroups(bake, pageSize);
|
|
101
|
+
onProgress?.(`packed ${bake.images.length} images into ${packed.pages} pages`);
|
|
102
|
+
const pages = Array.from({ length: packed.pages }, () => blank(pageSize, pageSize));
|
|
103
|
+
const normalPages = Array.from({ length: packed.pages }, () => flatNormals(pageSize));
|
|
104
|
+
bake.images.forEach((img, id) => {
|
|
105
|
+
for (const s of packed.placements[id]) {
|
|
106
|
+
blit(pages[s.rect.page], img, s.sx, 0, s.rect.w, s.rect.h, s.rect.x, s.rect.y);
|
|
107
|
+
blit(normalPages[s.rect.page], bake.normals[id], s.sx, 0, s.rect.w, s.rect.h, s.rect.x, s.rect.y);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
const frames = {};
|
|
111
|
+
for (const f of bake.frames) {
|
|
112
|
+
const rec = { w: f.w, h: f.h, anchor: f.anchor, parts: f.image ? placedOf(f.image, packed.placements[f.image.id]) : [], keys: f.keys };
|
|
113
|
+
if (f.chains) {
|
|
114
|
+
rec.chains = {};
|
|
115
|
+
for (const [k, c] of Object.entries(f.chains)) {
|
|
116
|
+
rec.chains[k] = { input: c.input, max: c.steps.length - 1, steps: c.steps.map((s) => layerOf(s, packed.placements)), ...(c.alternativeTo ? { alternativeTo: c.alternativeTo } : {}) };
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (f.overlays) {
|
|
120
|
+
rec.overlays = {};
|
|
121
|
+
for (const [k, o] of Object.entries(f.overlays))
|
|
122
|
+
rec.overlays[k] = layerOf(o, packed.placements);
|
|
123
|
+
}
|
|
124
|
+
if (f.layers) {
|
|
125
|
+
const parts = (ref) => (ref ? placedOf(ref, packed.placements[ref.id]) : []);
|
|
126
|
+
const steps = (list) => list.map((s) => layerOf(s, packed.placements));
|
|
127
|
+
const layers = { shell: parts(f.layers.shell), furniture: parts(f.layers.furniture) };
|
|
128
|
+
if ("soft" in f.layers)
|
|
129
|
+
layers.soft = parts(f.layers.soft ?? null);
|
|
130
|
+
if ("front" in f.layers)
|
|
131
|
+
layers.front = parts(f.layers.front ?? null);
|
|
132
|
+
if (f.layers.chains) {
|
|
133
|
+
layers.chains = {};
|
|
134
|
+
for (const [k, c] of Object.entries(f.layers.chains)) {
|
|
135
|
+
const chain = { shell: steps(c.shell), furniture: steps(c.furniture) };
|
|
136
|
+
if (c.soft)
|
|
137
|
+
chain.soft = steps(c.soft);
|
|
138
|
+
if (c.front)
|
|
139
|
+
chain.front = steps(c.front);
|
|
140
|
+
layers.chains[k] = chain;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
rec.layers = layers;
|
|
144
|
+
}
|
|
145
|
+
if (f.cycles) {
|
|
146
|
+
rec.cycles = {};
|
|
147
|
+
for (const [k, c] of Object.entries(f.cycles))
|
|
148
|
+
rec.cycles[k] = { rate: c.rate, steps: c.steps.map((s) => layerOf(s, packed.placements)) };
|
|
149
|
+
}
|
|
150
|
+
frames[f.name] = rec;
|
|
151
|
+
}
|
|
152
|
+
const files = {};
|
|
153
|
+
const pageFiles = [];
|
|
154
|
+
pages.forEach((page, i) => {
|
|
155
|
+
const normal = normalPages[i];
|
|
156
|
+
const entry = { index: i, files: {} };
|
|
157
|
+
for (const s of ATLAS_SCALES) {
|
|
158
|
+
const stem = `${s}x/page-${String(i).padStart(3, "0")}`;
|
|
159
|
+
files[`${stem}.png`] = encodePng(scaleNearest(page, s));
|
|
160
|
+
files[`${stem}.normal.png`] = encodePng(scaleNearest(normal, s));
|
|
161
|
+
entry.files[`${s}x`] = { color: `${stem}.png`, normal: `${stem}.normal.png` };
|
|
162
|
+
}
|
|
163
|
+
pageFiles.push(entry);
|
|
164
|
+
onProgress?.(`encoded page ${i + 1}/${pages.length}`);
|
|
165
|
+
});
|
|
166
|
+
const variants = {};
|
|
167
|
+
for (const k of roomKinds())
|
|
168
|
+
variants[k] = variantPlacements(k);
|
|
169
|
+
const manifest = {
|
|
170
|
+
schema: ATLAS_SCHEMA_VERSION,
|
|
171
|
+
game: { version: info.version, commit: info.commit },
|
|
172
|
+
license: { name: "CC BY 4.0", url: "https://creativecommons.org/licenses/by/4.0/", attribution: info.attribution },
|
|
173
|
+
tile: { w: TILE, h: FLOOR },
|
|
174
|
+
scales: [...ATLAS_SCALES],
|
|
175
|
+
pageSize,
|
|
176
|
+
padding: ATLAS_PADDING,
|
|
177
|
+
pages: pageFiles,
|
|
178
|
+
signature: signature(),
|
|
179
|
+
variants,
|
|
180
|
+
frames,
|
|
181
|
+
animations: Object.fromEntries(bake.animations.map((a) => [a.name, { frames: a.frames, dt: a.dt, loop: a.loop, keys: a.keys }])),
|
|
182
|
+
data: {
|
|
183
|
+
skyColors: Array.from({ length: SKY_COLUMNS }, (_, c) => skyColor((c * 24) / SKY_COLUMNS)),
|
|
184
|
+
skylineFills: SKYLINE_FILLS,
|
|
185
|
+
shirts: SHIRTS,
|
|
186
|
+
personBuilds: BUILDS,
|
|
187
|
+
carSeeds: CAR_SEEDS,
|
|
188
|
+
streetCarSeeds: STREET_CAR_SEEDS,
|
|
189
|
+
scenery: sceneryData(),
|
|
190
|
+
sky: skyData(),
|
|
191
|
+
depth: depthData(),
|
|
192
|
+
recyclingFillBreaks: [...RECYCLE_BREAKS],
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
files["manifest.json"] = strToU8(JSON.stringify(manifest) + "\n");
|
|
196
|
+
files["ATTRIBUTION.txt"] = strToU8(attributionText(info));
|
|
197
|
+
files["ASSETS-LICENSE.md"] = strToU8(info.licenseText);
|
|
198
|
+
for (const [name, bytes] of Object.entries(info.icons ?? {}))
|
|
199
|
+
files[`icon/${name}`] = bytes;
|
|
200
|
+
const zippable = {};
|
|
201
|
+
for (const path of Object.keys(files).sort()) {
|
|
202
|
+
zippable[`${ARCHIVE_ROOT}/${path}`] = [files[path], { level: path.endsWith(".png") ? 0 : 9, mtime: ZIP_TIME }];
|
|
203
|
+
}
|
|
204
|
+
return { manifest, pages, normalPages, placements: packed.placements, files, zip: zipSync(zippable) };
|
|
205
|
+
}
|
|
206
|
+
/** Ids of images whose color or normal pixels do not come back out of the
|
|
207
|
+
* pages at their packed slices; empty when every image does. */
|
|
208
|
+
function checkPages(bake, archive) {
|
|
209
|
+
const matches = (id, s) => {
|
|
210
|
+
const img = bake.images[id];
|
|
211
|
+
const normal = bake.normals[id];
|
|
212
|
+
const page = archive.pages[s.rect.page];
|
|
213
|
+
const normalPage = archive.normalPages[s.rect.page];
|
|
214
|
+
for (let y = 0; y < s.rect.h; y++) {
|
|
215
|
+
for (let x = 0; x < s.rect.w; x++) {
|
|
216
|
+
const src = (y * img.w + s.sx + x) * 4;
|
|
217
|
+
const dst = ((s.rect.y + y) * page.w + s.rect.x + x) * 4;
|
|
218
|
+
for (let c = 0; c < 4; c++) {
|
|
219
|
+
if (page.data[dst + c] !== img.data[src + c] || normalPage.data[dst + c] !== normal.data[src + c])
|
|
220
|
+
return false;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return true;
|
|
225
|
+
};
|
|
226
|
+
const bad = [];
|
|
227
|
+
archive.placements.forEach((list, id) => {
|
|
228
|
+
if (list.length === 0 || !list.every((s) => matches(id, s)))
|
|
229
|
+
bad.push(id);
|
|
230
|
+
});
|
|
231
|
+
return bad;
|
|
232
|
+
}
|
|
233
|
+
/** Draw `parts` from the 1x `pages` onto `dst` source-over. */
|
|
234
|
+
function drawParts(dst, pages, parts) {
|
|
235
|
+
for (const p of parts)
|
|
236
|
+
over(dst, crop(pages[p.rect.page], p.rect.x, p.rect.y, p.rect.w, p.rect.h), p.dx, p.dy);
|
|
237
|
+
}
|
|
238
|
+
/** Draw a chain step (or nothing for a null or missing one). */
|
|
239
|
+
function drawStep(dst, pages, step) {
|
|
240
|
+
if (step)
|
|
241
|
+
drawParts(dst, pages, [step]);
|
|
242
|
+
}
|
|
243
|
+
/** Every picture a layered frame can show, read back out of the pages the
|
|
244
|
+
* way a frontend reads them: for each chain input `n` from 0 to the longest
|
|
245
|
+
* of its step lists, the flat frame plus steps `1..n`, the exact depth split
|
|
246
|
+
* (shell and its steps, then furniture and its steps) and, when the frame
|
|
247
|
+
* has one, the soft split. `visit` returns false to stop early. */
|
|
248
|
+
function eachLayeredPicture(archive, visit) {
|
|
249
|
+
const pages = archive.pages;
|
|
250
|
+
for (const [name, rec] of Object.entries(archive.manifest.frames)) {
|
|
251
|
+
const layers = rec.layers;
|
|
252
|
+
if (!layers)
|
|
253
|
+
continue;
|
|
254
|
+
// A frame with no chain still has its own picture at n = 0.
|
|
255
|
+
const keys = Object.keys(rec.chains ?? {});
|
|
256
|
+
for (const key of keys.length > 0 ? keys : [""]) {
|
|
257
|
+
const flatSteps = rec.chains?.[key]?.steps ?? [null];
|
|
258
|
+
const split = layers.chains?.[key] ?? { shell: [null], furniture: [null] };
|
|
259
|
+
const hasSoft = layers.soft !== undefined && (key === "" || split.soft !== undefined);
|
|
260
|
+
const front = blank(rec.w, rec.h);
|
|
261
|
+
if (layers.front)
|
|
262
|
+
drawParts(front, pages, layers.front);
|
|
263
|
+
const top = Math.max(flatSteps.length, split.shell.length, split.furniture.length, split.soft?.length ?? 0, split.front?.length ?? 0) - 1;
|
|
264
|
+
const flat = blank(rec.w, rec.h);
|
|
265
|
+
drawParts(flat, pages, rec.parts);
|
|
266
|
+
const shell = blank(rec.w, rec.h);
|
|
267
|
+
drawParts(shell, pages, layers.shell);
|
|
268
|
+
const furniture = blank(rec.w, rec.h);
|
|
269
|
+
drawParts(furniture, pages, layers.furniture);
|
|
270
|
+
const soft = blank(rec.w, rec.h);
|
|
271
|
+
if (hasSoft)
|
|
272
|
+
drawParts(soft, pages, layers.soft ?? []);
|
|
273
|
+
for (let n = 0; n <= top; n++) {
|
|
274
|
+
if (n > 0) {
|
|
275
|
+
drawStep(flat, pages, flatSteps[n] ?? undefined);
|
|
276
|
+
drawStep(shell, pages, split.shell[n] ?? undefined);
|
|
277
|
+
drawStep(furniture, pages, split.furniture[n] ?? undefined);
|
|
278
|
+
if (hasSoft)
|
|
279
|
+
drawStep(soft, pages, split.soft?.[n] ?? undefined);
|
|
280
|
+
if (layers.front)
|
|
281
|
+
drawStep(front, pages, split.front?.[n] ?? undefined);
|
|
282
|
+
}
|
|
283
|
+
const exact = { w: rec.w, h: rec.h, data: shell.data.slice() };
|
|
284
|
+
over(exact, furniture, 0, 0);
|
|
285
|
+
if (layers.front)
|
|
286
|
+
over(exact, front, 0, 0);
|
|
287
|
+
let softPicture = null;
|
|
288
|
+
if (hasSoft) {
|
|
289
|
+
const picture = { w: rec.w, h: rec.h, data: shell.data.slice() };
|
|
290
|
+
over(picture, soft, 0, 0);
|
|
291
|
+
softPicture = { picture, layer: soft };
|
|
292
|
+
}
|
|
293
|
+
if (!visit(name, n, flat, exact, softPicture))
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
/** Names of the frames whose chains name a missing alternative, or whose
|
|
300
|
+
* depth layers break the manifest's rules (chain
|
|
301
|
+
* keys, at most one chain besides its alternatives, a null step 0, soft steps exactly
|
|
302
|
+
* where there is soft furniture) or, read back out of the packed pages
|
|
303
|
+
* through the manifest the way a frontend reads them, do not give back the
|
|
304
|
+
* frame's own pixels for some occupant count; empty when every layered frame
|
|
305
|
+
* passes. */
|
|
306
|
+
function checkLayers(archive) {
|
|
307
|
+
const bad = new Set();
|
|
308
|
+
// A layered frame has at most one chain (its overlays draw last); its chain has a
|
|
309
|
+
// depth split (and no split lacks its chain), each list starts with a null
|
|
310
|
+
// step 0, and soft furniture comes with soft steps for its chain.
|
|
311
|
+
for (const [name, rec] of Object.entries(archive.manifest.frames)) {
|
|
312
|
+
// An alternative chain, on any frame, names a chain the frame has that is
|
|
313
|
+
// not one itself.
|
|
314
|
+
const chains = rec.chains ?? {};
|
|
315
|
+
const alternativesOk = Object.values(chains).every((c) => c.alternativeTo === undefined || (Object.prototype.hasOwnProperty.call(chains, c.alternativeTo) && chains[c.alternativeTo].alternativeTo === undefined));
|
|
316
|
+
if (!alternativesOk)
|
|
317
|
+
bad.add(name);
|
|
318
|
+
const layers = rec.layers;
|
|
319
|
+
if (!layers)
|
|
320
|
+
continue;
|
|
321
|
+
const flat = JSON.stringify(Object.keys(rec.chains ?? {}).sort());
|
|
322
|
+
const depth = JSON.stringify(Object.keys(layers.chains ?? {}).sort());
|
|
323
|
+
const soft = layers.soft !== undefined;
|
|
324
|
+
const lists = Object.values(layers.chains ?? {}).flatMap((c) => [c.shell, c.furniture, ...(c.soft ? [c.soft] : []), ...(c.front ? [c.front] : [])]);
|
|
325
|
+
const front = layers.front !== undefined;
|
|
326
|
+
// A vehicle's three-way split walks one chain; it carries no alternative.
|
|
327
|
+
if (front && Object.values(chains).some((c) => c.alternativeTo !== undefined))
|
|
328
|
+
bad.add(name);
|
|
329
|
+
if ((front && soft) || Object.values(layers.chains ?? {}).some((c) => (c.front !== undefined) !== front))
|
|
330
|
+
bad.add(name);
|
|
331
|
+
const primary = Object.values(chains).filter((c) => c.alternativeTo === undefined);
|
|
332
|
+
const oneChain = primary.length <= 1 && alternativesOk && (primary.length > 0 || Object.keys(chains).length === 0);
|
|
333
|
+
if (flat !== depth || !oneChain || lists.some((l) => l[0] !== null) || Object.values(layers.chains ?? {}).some((c) => (c.soft !== undefined) !== soft))
|
|
334
|
+
bad.add(name);
|
|
335
|
+
}
|
|
336
|
+
eachLayeredPicture(archive, (name, _n, flat, exact) => {
|
|
337
|
+
if (sameImage(flat, exact))
|
|
338
|
+
return true;
|
|
339
|
+
bad.add(name);
|
|
340
|
+
return false;
|
|
341
|
+
});
|
|
342
|
+
return [...bad];
|
|
343
|
+
}
|
|
344
|
+
/** The largest channel difference (of 255) the soft furniture may show
|
|
345
|
+
* against the flat frame before the export refuses the atlas. Translucent
|
|
346
|
+
* paint over the shell rounds a step or two away from the same paint baked
|
|
347
|
+
* over it; anything far past that means the soft pass drew something else. */
|
|
348
|
+
const SOFT_DRIFT_LIMIT = 4;
|
|
349
|
+
/** How far the soft furniture strays from the flat pictures it stands in
|
|
350
|
+
* for: pictures compared (one per frame and occupant count), the soft
|
|
351
|
+
* furniture's own pixels in them, how many of those differ from the flat
|
|
352
|
+
* picture, how many pixels outside it differ (none, unless the soft pass
|
|
353
|
+
* missed part of the furniture), the largest difference in any channel
|
|
354
|
+
* (0..255) anywhere, and the frame that shows it (or the first with a
|
|
355
|
+
* pixel outside). A pixel counts once per picture it shows in. */
|
|
356
|
+
function softLayerDrift(archive) {
|
|
357
|
+
const frames = new Set();
|
|
358
|
+
const out = { frames: 0, pictures: 0, pixels: 0, differing: 0, outside: 0, maxDelta: 0, worst: "" };
|
|
359
|
+
eachLayeredPicture(archive, (name, _n, flat, _exact, soft) => {
|
|
360
|
+
if (!soft)
|
|
361
|
+
return true;
|
|
362
|
+
frames.add(name);
|
|
363
|
+
out.pictures++;
|
|
364
|
+
for (let i = 0; i < flat.data.length; i += 4) {
|
|
365
|
+
const covered = soft.layer.data[i + 3] > 0;
|
|
366
|
+
if (covered)
|
|
367
|
+
out.pixels++;
|
|
368
|
+
let d = 0;
|
|
369
|
+
for (let c = 0; c < 4; c++)
|
|
370
|
+
d = Math.max(d, Math.abs(flat.data[i + c] - soft.picture.data[i + c]));
|
|
371
|
+
if (d > 0 && covered)
|
|
372
|
+
out.differing++;
|
|
373
|
+
if (d > 0 && !covered && out.outside++ === 0)
|
|
374
|
+
out.worst = name;
|
|
375
|
+
if (d > out.maxDelta && out.outside === 0)
|
|
376
|
+
out.worst = name;
|
|
377
|
+
if (d > out.maxDelta)
|
|
378
|
+
out.maxDelta = d;
|
|
379
|
+
}
|
|
380
|
+
return true;
|
|
381
|
+
});
|
|
382
|
+
out.frames = frames.size;
|
|
383
|
+
return out;
|
|
384
|
+
}
|
|
385
|
+
/** Room kinds whose frames carry depth layers but never any furniture. Shell
|
|
386
|
+
* plus furniture equals the flat frame whatever the shell holds, so a bake
|
|
387
|
+
* that failed to take the furniture out (a shell that still shows it) would
|
|
388
|
+
* pass {@link checkLayers}; every kind that splits has furniture in some
|
|
389
|
+
* frame, so an empty kind means the split did not happen. */
|
|
390
|
+
function kindsWithoutFurniture(manifest) {
|
|
391
|
+
const split = new Set();
|
|
392
|
+
const furnished = new Set();
|
|
393
|
+
for (const rec of Object.values(manifest.frames)) {
|
|
394
|
+
if (!rec.layers)
|
|
395
|
+
continue;
|
|
396
|
+
const kind = String(rec.keys.kind ?? rec.keys.vehicle ?? rec.keys.piece ?? "unkeyed");
|
|
397
|
+
split.add(kind);
|
|
398
|
+
// A parking space's car comes as a 'car<i>' overlay, which draws in
|
|
399
|
+
// front, and an empty elevator cab's riders as its chain's furniture steps.
|
|
400
|
+
const steps = Object.values(rec.layers.chains ?? {}).some((c) => c.furniture.some((s) => s !== null));
|
|
401
|
+
const car = Object.keys(rec.overlays ?? {}).some((o) => /^car\d+$/.test(o));
|
|
402
|
+
if (rec.layers.furniture.length > 0 || steps || car)
|
|
403
|
+
furnished.add(kind);
|
|
404
|
+
}
|
|
405
|
+
return [...split].filter((k) => !furnished.has(k)).sort();
|
|
406
|
+
}
|
|
407
|
+
/** A transparent page whose pixels still decode as the flat normal. */
|
|
408
|
+
function flatNormals(size) {
|
|
409
|
+
const img = blank(size, size);
|
|
410
|
+
for (let i = 0; i < img.data.length; i += 4)
|
|
411
|
+
img.data.set([128, 128, 255, 0], i);
|
|
412
|
+
return img;
|
|
413
|
+
}
|
|
414
|
+
function attributionText(info) {
|
|
415
|
+
return [
|
|
416
|
+
info.attribution,
|
|
417
|
+
"",
|
|
418
|
+
"These sprites are the Verticopolis art, baked once at the game's canonical",
|
|
419
|
+
"size and scaled up by nearest neighbor. If you change them, say so.",
|
|
420
|
+
"License: https://creativecommons.org/licenses/by/4.0/",
|
|
421
|
+
`Built from Verticopolis ${info.version} (${info.commit}).`,
|
|
422
|
+
"",
|
|
423
|
+
].join("\n");
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export { ARCHIVE_ROOT, SOFT_DRIFT_LIMIT, attributionText, buildArchive, checkLayers, checkPages, kindsWithoutFurniture, signature, softLayerDrift };
|
|
427
|
+
//# sourceMappingURL=archive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"archive.js","sources":["../../../src/render/atlas/archive.ts"],"sourcesContent":["import { zipSync, strToU8, type Zippable } from \"fflate\";\nimport type { BakeResult, ImageRef } from \"./bake\";\nimport { variantPlacements, roomKinds, RECYCLE_BREAKS, RECYCLE_STEPS, PARKING_CAR_COLORS } from \"./catalog\";\nimport { CINEMA_CYCLES } from \"./cycles\";\nimport { CAR_SEEDS, SKYLINE_FILLS, SKY_COLUMNS, STREET_CAR_SEEDS, BUILDS } from \"./catalogExtras\";\nimport { pack, type PackedSlice } from \"./pack\";\nimport { depthData, sceneryData, skyData } from \"./scenery\";\nimport { blank, crop, over, sameImage, type Image } from \"./pixels\";\nimport { encodePng } from \"./png\";\nimport { blit, scaleNearest } from \"./raster\";\nimport {\n ATLAS_PADDING,\n ATLAS_PAGE_BASE,\n ATLAS_SCALES,\n ATLAS_SCHEMA_VERSION,\n type AtlasManifest,\n type DepthLayerChain,\n type DepthLayers,\n type FrameRecord,\n type LayerRef,\n type Placed,\n} from \"./schema\";\nimport { FLOOR, TILE } from \"../scale\";\nimport { skyColor } from \"../sprites/sky\";\nimport { SHIRTS } from \"../pixelSprites/common\";\nimport type { Catalog } from \"../../catalog/catalogTypes\";\nimport { bindViewWorld } from \"../../presentation/viewWorld\";\nimport { bindViewKinds } from \"../../presentation/viewKinds\";\n\n/**\n * Turns a bake into the release archive: packs the unique images into 1x\n * pages, derives the 2x and 4x pages by nearest-neighbor scaling, generates a\n * normal map per page, writes the manifest, and zips it all with the license\n * attribution. Deterministic: the same bake gives the same bytes.\n */\n\nexport interface ArchiveInfo {\n version: string;\n commit: string;\n /** The suggested attribution line from ASSETS-LICENSE.md. */\n attribution: string;\n /** ASSETS-LICENSE.md itself, shipped verbatim. */\n licenseText: string;\n /** The app icon files, shipped under `icon/` by name. */\n icons?: Record<string, Uint8Array>;\n /** The engine's Modern catalog the art was drawn with. The archive reads\n * room and scenery facts through the view, and Node's archive builder runs\n * apart from the page that baked the art, so it binds its own view to this. */\n catalog: Catalog;\n}\n\nexport const ARCHIVE_ROOT = \"verticopolis-atlas\";\n\n/** Fixed zip timestamp (built from local fields, which is how the zip format\n * stores it), so the archive bytes never depend on the clock. */\nconst ZIP_TIME = new Date(1980, 0, 2, 0, 0, 0);\n\nexport function signature(): AtlasManifest[\"signature\"] {\n return {\n baked: [\"kind\", \"state\", \"subtype\", \"width\", \"lit\", \"hours\", \"late\", \"presence\", \"variant\"],\n composed: [\"visibleOccupants\", \"riders\", \"recyclingFill\", \"parkingCar\", \"deadParking\", \"recyclingFillExact\"],\n animated: [\"fire\", \"construction\", \"entranceDoorman\", \"crane\", \"cinema\"],\n sampled: [\"variant\"],\n rules: {\n hours: \"open or closed by the kind's business hours at the current hour; 'always' for kinds without hours\",\n late: \"condo, studio and apartment: 'late' from 23:00 to 06:00, else 'notlate'; 'any' for every other kind\",\n presence: \"'home' when the unit's occupants is above 0, else 'away'; kinds whose art ignores occupants (the garage, ramp, services, recycling, metro) carry no presence segment\",\n width: \"room frames exist for each kind's catalog width only. A room at another width (a TDT import or an old save keeps its original width) uses the catalog-width frame or animation, composed as usual, then scaled horizontally to its real width, nearest neighbor from the left edge (the reference reader's stretchTo); it approximates the web game, which redraws the room at its real width. Legacy shaft widths (stairs and escalators 4, standard elevator 3, express 4) have frames of their own, named with a w<tiles> segment after the kind; a shaft at any other width stretches its catalog frames the same way\",\n subtype: \"a subtype the engine does not list for the kind draws the default look, the '-' frame\",\n visibleOccupants: \"occupants minus outForMeal, rounded up and clamped at 0. Read outForMeal as between 0 and occupants: a negative or non-finite value is nobody out, and a value over occupants is everybody out; a non-finite occupants is nobody. Draw chain steps 1..min(n, max) over the 'home' frame. Chains cover every count the engine produces (population, venue attendance, the largest household)\",\n riders: \"the cab's rider indicator (0..4, the game's load quantized to quarters); draw chain steps 1..min(n, max) over the car frame\",\n recyclingFill: `round(fill * ${RECYCLE_STEPS}) for the tower's recycling fill in 0..1; draw chain steps over the frame. The web re-bakes on the same eighths but paints the exact fill, so a pile between steps can differ by a bag or a gauge pixel`,\n recyclingFillExact: \"the 'fillExact' chain, drawn instead of 'fill' (never with it): n is how many entries of data.recyclingFillBreaks are at or below the fill, read as the game reads it (clamped to 0..1, a non-finite fill as 0). Each break is a fill where the picture changes (a bag, a gauge row, the second row past 0.5, amber past 0.7, red and FULL at 1), so every fill matches the game's paint exactly\",\n parkingCar: `overlay 'car<i>' with i = unit id % ${PARKING_CAR_COLORS} when the space holds a car; never on a dead space. The game re-paints a space when the garage's use crosses a sixth, so its cars can trail the live use slightly`,\n deadParking: \"overlay 'dead' when the space is not chained to a ramp (not on a burning or unbuilt space)\",\n fire: \"state 'fire' plays the animation fire/<kind>\",\n construction: \"state 'construction' plays the animation construction/<kind>\",\n variant: \"the web seeds room variety from the room's floor, column and id; the atlas ships a fixed sample (see 'variants'), pick one per room and keep it\",\n sky: \"sky/gradient has one column per quarter hour from 00:00; the web's color is a cosine blend, t = cos((hour - 13) / 24 * 2 * pi) * 0.5 + 0.5, from #1c2246 (t 0) to #82afe0 (t 1) per channel, rounded\",\n parkingRoll: \"a space holds a car when hash(int32(id * 31)) < parkingUse, where hash(n) is: x = int32(n * 2654435761) with the product taken as a float64 (IEEE double) multiply; x = imul32(x ^ (x >>> 15), 0x2c1b3c6d); x = imul32(x ^ (x >>> 13), 0x297a2d39); (x ^ (x >>> 16)) as unsigned / 2^32. int32(v) truncates v toward zero and wraps it modulo 2^32 to a signed 32-bit integer (JavaScript's v | 0); imul32 is a 32-bit integer multiply; ^ is a 32-bit xor and >>> a logical (zero-filling) right shift on the 32-bit pattern, so a negative x shifts in zeros. The first step is not imul32: the two can differ once the product's magnitude passes 2^53\",\n cinema: `the cinema's marquee and screen read the animation clock. Its frames are baked at clock 0 and carry 'cycles': at t seconds draw ${Object.entries(CINEMA_CYCLES)\n .map(([k, c]) => `'${k}' step floor(t * ${c.rate}) % ${c.frames}`)\n .join(\" and \")} (a cycle a frame does not carry never changes it); this matches the game's paint except within rounding of a screen step, where the game adds the room's seed before rounding down. The web itself keeps whatever moment its last re-bake caught`,\n layers: \"a room frame, a lobby tile, an entrance frame, an elevator cab or the metro train may carry 'layers' for drawing with depth. To draw it with its chain at n (the frame's one chain, if any: 'occupants', 'riders' or 'fill', or the chain marked 'alternativeTo' it, drawn instead), draw the 'shell' parts and the chain's 'shell' steps 1..min(n, len - 1), then any 'cycles' steps, then the 'furniture' parts and the chain's 'furniture' steps the same way, then any overlay the frame shows (a parking space's car or dead mark), each source-over; an elevator cab or the metro train also has a 'front' picture (and, for the cab's riders, 'front' chain steps), drawn after the furniture and before any overlay; the result equals the frame's parts, its chain steps 1..n and the overlay exactly. 'soft' (with the chain's 'soft' steps) is an optional furniture picture that keeps glows and soft shadows translucent; over the shell it rounds a step or two away from the frame's parts. A frame without 'layers' (vacancy, closed and gutted rooms, and every family outside the ones named here) is drawn flat\",\n depth: \"data.depth names the game's draw planes back to front ('z', higher in front; equal planes draw in the order the game adds their actors) and the frame families on each\",\n skyMotion: \"data.sky gives the sun's arc and each cloud's drift in the game's own terms; both are screen-space, sized to the view\",\n },\n };\n}\n\nfunction placedOf(ref: ImageRef, slices: PackedSlice[]): Placed[] {\n return slices.map((s) => ({ rect: s.rect, dx: ref.dx + s.sx, dy: ref.dy }));\n}\n\nfunction layerOf(ref: ImageRef | null, placements: PackedSlice[][]): LayerRef {\n if (!ref) return null;\n const parts = placedOf(ref, placements[ref.id]);\n if (parts.length !== 1) throw new Error(`layer image ${ref.id} needs ${parts.length} slices; layers must fit one page`);\n return parts[0];\n}\n\nexport interface Archive {\n manifest: AtlasManifest;\n /** The 1x color and normal pages, for checks before encoding. */\n pages: Image[];\n normalPages: Image[];\n /** Where each image id was packed. */\n placements: PackedSlice[][];\n /** Paths inside the zip (under {@link ARCHIVE_ROOT}) to bytes. */\n files: Record<string, Uint8Array>;\n zip: Uint8Array;\n}\n\n/**\n * Pack the frame images, then the depth layers' own images on pages of their\n * own after them, then the added images (`BakeResult.addedImages`) after\n * those. The frame images pack exactly as they would in a bake with no\n * layers, so adding layers never moves a frame's part or changes a byte of\n * its pages, and the added images move nothing at all.\n */\nfunction packGroups(bake: BakeResult, pageSize: number): { pages: number; placements: PackedSlice[][] } {\n const split = bake.frameImages ?? bake.images.length;\n if (!(Number.isInteger(split) && split >= 0 && split <= bake.images.length)) throw new Error(`frameImages ${split} is outside 0..${bake.images.length}`);\n const starts = bake.groups ?? [];\n if (starts.some((s, i) => !Number.isInteger(s) || s < (starts[i - 1] ?? 0) || s > split)) throw new Error(`groups ${starts.join(\", \")} are outside 0..${split} or out of order`);\n const addedFrom = bake.addedImages ?? bake.images.length;\n if (!(Number.isInteger(addedFrom) && addedFrom >= split && addedFrom <= bake.images.length)) throw new Error(`addedImages ${addedFrom} is outside ${split}..${bake.images.length}`);\n // Each group packs on its own pages, in order: the first families' frame\n // images, each later family's, the depth layers' own images, then the\n // images added to frames that already shipped.\n const bounds = [0, ...starts, split, ...(bake.addedImages === undefined ? [] : [addedFrom]), bake.images.length];\n let pages = 0;\n const placements: PackedSlice[][] = [];\n for (let g = 0; g + 1 < bounds.length; g++) {\n const from = bounds[g];\n const packed = pack(\n bake.images.slice(from, bounds[g + 1]).map((img, i) => ({ id: from + i, w: img.w, h: img.h })),\n pageSize,\n ATLAS_PADDING,\n );\n for (const list of packed.placements) placements.push(list.map((sl) => ({ ...sl, rect: { ...sl.rect, page: sl.rect.page + pages } })));\n pages += packed.pages;\n }\n return { pages, placements };\n}\n\nexport function buildArchive(\n bake: BakeResult,\n info: ArchiveInfo,\n onProgress?: (msg: string) => void,\n pageSize: number = ATLAS_PAGE_BASE,\n): Archive {\n bindViewWorld(info.catalog.world);\n bindViewKinds(info.catalog);\n const packed = packGroups(bake, pageSize);\n onProgress?.(`packed ${bake.images.length} images into ${packed.pages} pages`);\n const pages: Image[] = Array.from({ length: packed.pages }, () => blank(pageSize, pageSize));\n const normalPages: Image[] = Array.from({ length: packed.pages }, () => flatNormals(pageSize));\n bake.images.forEach((img, id) => {\n for (const s of packed.placements[id]) {\n blit(pages[s.rect.page], img, s.sx, 0, s.rect.w, s.rect.h, s.rect.x, s.rect.y);\n blit(normalPages[s.rect.page], bake.normals[id], s.sx, 0, s.rect.w, s.rect.h, s.rect.x, s.rect.y);\n }\n });\n\n const frames: Record<string, FrameRecord> = {};\n for (const f of bake.frames) {\n const rec: FrameRecord = { w: f.w, h: f.h, anchor: f.anchor, parts: f.image ? placedOf(f.image, packed.placements[f.image.id]) : [], keys: f.keys };\n if (f.chains) {\n rec.chains = {};\n for (const [k, c] of Object.entries(f.chains)) {\n rec.chains[k] = { input: c.input, max: c.steps.length - 1, steps: c.steps.map((s) => layerOf(s, packed.placements)), ...(c.alternativeTo ? { alternativeTo: c.alternativeTo } : {}) };\n }\n }\n if (f.overlays) {\n rec.overlays = {};\n for (const [k, o] of Object.entries(f.overlays)) rec.overlays[k] = layerOf(o, packed.placements);\n }\n if (f.layers) {\n const parts = (ref: ImageRef | null): Placed[] => (ref ? placedOf(ref, packed.placements[ref.id]) : []);\n const steps = (list: (ImageRef | null)[]) => list.map((s) => layerOf(s, packed.placements));\n const layers: DepthLayers = { shell: parts(f.layers.shell), furniture: parts(f.layers.furniture) };\n if (\"soft\" in f.layers) layers.soft = parts(f.layers.soft ?? null);\n if (\"front\" in f.layers) layers.front = parts(f.layers.front ?? null);\n if (f.layers.chains) {\n layers.chains = {};\n for (const [k, c] of Object.entries(f.layers.chains)) {\n const chain: DepthLayerChain = { shell: steps(c.shell), furniture: steps(c.furniture) };\n if (c.soft) chain.soft = steps(c.soft);\n if (c.front) chain.front = steps(c.front);\n layers.chains[k] = chain;\n }\n }\n rec.layers = layers;\n }\n if (f.cycles) {\n rec.cycles = {};\n for (const [k, c] of Object.entries(f.cycles)) rec.cycles[k] = { rate: c.rate, steps: c.steps.map((s) => layerOf(s, packed.placements)) };\n }\n frames[f.name] = rec;\n }\n\n const files: Record<string, Uint8Array> = {};\n const pageFiles: AtlasManifest[\"pages\"] = [];\n pages.forEach((page, i) => {\n const normal = normalPages[i];\n const entry: AtlasManifest[\"pages\"][number] = { index: i, files: {} };\n for (const s of ATLAS_SCALES) {\n const stem = `${s}x/page-${String(i).padStart(3, \"0\")}`;\n files[`${stem}.png`] = encodePng(scaleNearest(page, s));\n files[`${stem}.normal.png`] = encodePng(scaleNearest(normal, s));\n entry.files[`${s}x`] = { color: `${stem}.png`, normal: `${stem}.normal.png` };\n }\n pageFiles.push(entry);\n onProgress?.(`encoded page ${i + 1}/${pages.length}`);\n });\n\n const variants: AtlasManifest[\"variants\"] = {};\n for (const k of roomKinds()) variants[k] = variantPlacements(k);\n const manifest: AtlasManifest = {\n schema: ATLAS_SCHEMA_VERSION,\n game: { version: info.version, commit: info.commit },\n license: { name: \"CC BY 4.0\", url: \"https://creativecommons.org/licenses/by/4.0/\", attribution: info.attribution },\n tile: { w: TILE, h: FLOOR },\n scales: [...ATLAS_SCALES],\n pageSize,\n padding: ATLAS_PADDING,\n pages: pageFiles,\n signature: signature(),\n variants,\n frames,\n animations: Object.fromEntries(bake.animations.map((a) => [a.name, { frames: a.frames, dt: a.dt, loop: a.loop, keys: a.keys }])),\n data: {\n skyColors: Array.from({ length: SKY_COLUMNS }, (_, c) => skyColor((c * 24) / SKY_COLUMNS)),\n skylineFills: SKYLINE_FILLS,\n shirts: SHIRTS,\n personBuilds: BUILDS,\n carSeeds: CAR_SEEDS,\n streetCarSeeds: STREET_CAR_SEEDS,\n scenery: sceneryData(),\n sky: skyData(),\n depth: depthData(),\n recyclingFillBreaks: [...RECYCLE_BREAKS],\n },\n };\n files[\"manifest.json\"] = strToU8(JSON.stringify(manifest) + \"\\n\");\n files[\"ATTRIBUTION.txt\"] = strToU8(attributionText(info));\n files[\"ASSETS-LICENSE.md\"] = strToU8(info.licenseText);\n for (const [name, bytes] of Object.entries(info.icons ?? {})) files[`icon/${name}`] = bytes;\n\n const zippable: Zippable = {};\n for (const path of Object.keys(files).sort()) {\n zippable[`${ARCHIVE_ROOT}/${path}`] = [files[path], { level: path.endsWith(\".png\") ? 0 : 9, mtime: ZIP_TIME }];\n }\n return { manifest, pages, normalPages, placements: packed.placements, files, zip: zipSync(zippable) };\n}\n\n/** Ids of images whose color or normal pixels do not come back out of the\n * pages at their packed slices; empty when every image does. */\nexport function checkPages(bake: Pick<BakeResult, \"images\" | \"normals\">, archive: Pick<Archive, \"pages\" | \"normalPages\" | \"placements\">): number[] {\n const matches = (id: number, s: PackedSlice): boolean => {\n const img = bake.images[id];\n const normal = bake.normals[id];\n const page = archive.pages[s.rect.page];\n const normalPage = archive.normalPages[s.rect.page];\n for (let y = 0; y < s.rect.h; y++) {\n for (let x = 0; x < s.rect.w; x++) {\n const src = (y * img.w + s.sx + x) * 4;\n const dst = ((s.rect.y + y) * page.w + s.rect.x + x) * 4;\n for (let c = 0; c < 4; c++) {\n if (page.data[dst + c] !== img.data[src + c] || normalPage.data[dst + c] !== normal.data[src + c]) return false;\n }\n }\n }\n return true;\n };\n const bad: number[] = [];\n archive.placements.forEach((list, id) => {\n if (list.length === 0 || !list.every((s) => matches(id, s))) bad.push(id);\n });\n return bad;\n}\n\n/** Draw `parts` from the 1x `pages` onto `dst` source-over. */\nfunction drawParts(dst: Image, pages: readonly Image[], parts: readonly Placed[]): void {\n for (const p of parts) over(dst, crop(pages[p.rect.page], p.rect.x, p.rect.y, p.rect.w, p.rect.h), p.dx, p.dy);\n}\n\n/** Draw a chain step (or nothing for a null or missing one). */\nfunction drawStep(dst: Image, pages: readonly Image[], step: LayerRef | undefined): void {\n if (step) drawParts(dst, pages, [step]);\n}\n\n/** Every picture a layered frame can show, read back out of the pages the\n * way a frontend reads them: for each chain input `n` from 0 to the longest\n * of its step lists, the flat frame plus steps `1..n`, the exact depth split\n * (shell and its steps, then furniture and its steps) and, when the frame\n * has one, the soft split. `visit` returns false to stop early. */\nfunction eachLayeredPicture(\n archive: Pick<Archive, \"manifest\" | \"pages\">,\n visit: (name: string, n: number, flat: Image, exact: Image, soft: { picture: Image; layer: Image } | null) => boolean,\n): void {\n const pages = archive.pages;\n for (const [name, rec] of Object.entries(archive.manifest.frames)) {\n const layers = rec.layers;\n if (!layers) continue;\n // A frame with no chain still has its own picture at n = 0.\n const keys = Object.keys(rec.chains ?? {});\n for (const key of keys.length > 0 ? keys : [\"\"]) {\n const flatSteps = rec.chains?.[key]?.steps ?? [null];\n const split = layers.chains?.[key] ?? { shell: [null], furniture: [null] };\n const hasSoft = layers.soft !== undefined && (key === \"\" || split.soft !== undefined);\n const front = blank(rec.w, rec.h);\n if (layers.front) drawParts(front, pages, layers.front);\n const top = Math.max(flatSteps.length, split.shell.length, split.furniture.length, split.soft?.length ?? 0, split.front?.length ?? 0) - 1;\n const flat = blank(rec.w, rec.h);\n drawParts(flat, pages, rec.parts);\n const shell = blank(rec.w, rec.h);\n drawParts(shell, pages, layers.shell);\n const furniture = blank(rec.w, rec.h);\n drawParts(furniture, pages, layers.furniture);\n const soft = blank(rec.w, rec.h);\n if (hasSoft) drawParts(soft, pages, layers.soft ?? []);\n for (let n = 0; n <= top; n++) {\n if (n > 0) {\n drawStep(flat, pages, flatSteps[n] ?? undefined);\n drawStep(shell, pages, split.shell[n] ?? undefined);\n drawStep(furniture, pages, split.furniture[n] ?? undefined);\n if (hasSoft) drawStep(soft, pages, split.soft?.[n] ?? undefined);\n if (layers.front) drawStep(front, pages, split.front?.[n] ?? undefined);\n }\n const exact = { w: rec.w, h: rec.h, data: shell.data.slice() };\n over(exact, furniture, 0, 0);\n if (layers.front) over(exact, front, 0, 0);\n let softPicture: { picture: Image; layer: Image } | null = null;\n if (hasSoft) {\n const picture = { w: rec.w, h: rec.h, data: shell.data.slice() };\n over(picture, soft, 0, 0);\n softPicture = { picture, layer: soft };\n }\n if (!visit(name, n, flat, exact, softPicture)) break;\n }\n }\n }\n}\n\n/** Names of the frames whose chains name a missing alternative, or whose\n * depth layers break the manifest's rules (chain\n * keys, at most one chain besides its alternatives, a null step 0, soft steps exactly\n * where there is soft furniture) or, read back out of the packed pages\n * through the manifest the way a frontend reads them, do not give back the\n * frame's own pixels for some occupant count; empty when every layered frame\n * passes. */\nexport function checkLayers(archive: Pick<Archive, \"manifest\" | \"pages\">): string[] {\n const bad = new Set<string>();\n // A layered frame has at most one chain (its overlays draw last); its chain has a\n // depth split (and no split lacks its chain), each list starts with a null\n // step 0, and soft furniture comes with soft steps for its chain.\n for (const [name, rec] of Object.entries(archive.manifest.frames)) {\n // An alternative chain, on any frame, names a chain the frame has that is\n // not one itself.\n const chains = rec.chains ?? {};\n const alternativesOk = Object.values(chains).every((c) => c.alternativeTo === undefined || (Object.prototype.hasOwnProperty.call(chains, c.alternativeTo) && chains[c.alternativeTo].alternativeTo === undefined));\n if (!alternativesOk) bad.add(name);\n const layers = rec.layers;\n if (!layers) continue;\n const flat = JSON.stringify(Object.keys(rec.chains ?? {}).sort());\n const depth = JSON.stringify(Object.keys(layers.chains ?? {}).sort());\n const soft = layers.soft !== undefined;\n const lists = Object.values(layers.chains ?? {}).flatMap((c) => [c.shell, c.furniture, ...(c.soft ? [c.soft] : []), ...(c.front ? [c.front] : [])]);\n const front = layers.front !== undefined;\n // A vehicle's three-way split walks one chain; it carries no alternative.\n if (front && Object.values(chains).some((c) => c.alternativeTo !== undefined)) bad.add(name);\n if ((front && soft) || Object.values(layers.chains ?? {}).some((c) => (c.front !== undefined) !== front)) bad.add(name);\n const primary = Object.values(chains).filter((c) => c.alternativeTo === undefined);\n const oneChain = primary.length <= 1 && alternativesOk && (primary.length > 0 || Object.keys(chains).length === 0);\n if (flat !== depth || !oneChain || lists.some((l) => l[0] !== null) || Object.values(layers.chains ?? {}).some((c) => (c.soft !== undefined) !== soft)) bad.add(name);\n }\n eachLayeredPicture(archive, (name, _n, flat, exact) => {\n if (sameImage(flat, exact)) return true;\n bad.add(name);\n return false;\n });\n return [...bad];\n}\n\n/** The largest channel difference (of 255) the soft furniture may show\n * against the flat frame before the export refuses the atlas. Translucent\n * paint over the shell rounds a step or two away from the same paint baked\n * over it; anything far past that means the soft pass drew something else. */\nexport const SOFT_DRIFT_LIMIT = 4;\n\n/** How far the soft furniture strays from the flat pictures it stands in\n * for: pictures compared (one per frame and occupant count), the soft\n * furniture's own pixels in them, how many of those differ from the flat\n * picture, how many pixels outside it differ (none, unless the soft pass\n * missed part of the furniture), the largest difference in any channel\n * (0..255) anywhere, and the frame that shows it (or the first with a\n * pixel outside). A pixel counts once per picture it shows in. */\nexport function softLayerDrift(archive: Pick<Archive, \"manifest\" | \"pages\">): { frames: number; pictures: number; pixels: number; differing: number; outside: number; maxDelta: number; worst: string } {\n const frames = new Set<string>();\n const out = { frames: 0, pictures: 0, pixels: 0, differing: 0, outside: 0, maxDelta: 0, worst: \"\" };\n eachLayeredPicture(archive, (name, _n, flat, _exact, soft) => {\n if (!soft) return true;\n frames.add(name);\n out.pictures++;\n for (let i = 0; i < flat.data.length; i += 4) {\n const covered = soft.layer.data[i + 3] > 0;\n if (covered) out.pixels++;\n let d = 0;\n for (let c = 0; c < 4; c++) d = Math.max(d, Math.abs(flat.data[i + c] - soft.picture.data[i + c]));\n if (d > 0 && covered) out.differing++;\n if (d > 0 && !covered && out.outside++ === 0) out.worst = name;\n if (d > out.maxDelta && out.outside === 0) out.worst = name;\n if (d > out.maxDelta) out.maxDelta = d;\n }\n return true;\n });\n out.frames = frames.size;\n return out;\n}\n\n/** Room kinds whose frames carry depth layers but never any furniture. Shell\n * plus furniture equals the flat frame whatever the shell holds, so a bake\n * that failed to take the furniture out (a shell that still shows it) would\n * pass {@link checkLayers}; every kind that splits has furniture in some\n * frame, so an empty kind means the split did not happen. */\nexport function kindsWithoutFurniture(manifest: Pick<AtlasManifest, \"frames\">): string[] {\n const split = new Set<string>();\n const furnished = new Set<string>();\n for (const rec of Object.values(manifest.frames)) {\n if (!rec.layers) continue;\n const kind = String(rec.keys.kind ?? rec.keys.vehicle ?? rec.keys.piece ?? \"unkeyed\");\n split.add(kind);\n // A parking space's car comes as a 'car<i>' overlay, which draws in\n // front, and an empty elevator cab's riders as its chain's furniture steps.\n const steps = Object.values(rec.layers.chains ?? {}).some((c) => c.furniture.some((s) => s !== null));\n const car = Object.keys(rec.overlays ?? {}).some((o) => /^car\\d+$/.test(o));\n if (rec.layers.furniture.length > 0 || steps || car) furnished.add(kind);\n }\n return [...split].filter((k) => !furnished.has(k)).sort();\n}\n\n/** A transparent page whose pixels still decode as the flat normal. */\nfunction flatNormals(size: number): Image {\n const img = blank(size, size);\n for (let i = 0; i < img.data.length; i += 4) img.data.set([128, 128, 255, 0], i);\n return img;\n}\n\nexport function attributionText(info: ArchiveInfo): string {\n return [\n info.attribution,\n \"\",\n \"These sprites are the Verticopolis art, baked once at the game's canonical\",\n \"size and scaled up by nearest neighbor. If you change them, say so.\",\n \"License: https://creativecommons.org/licenses/by/4.0/\",\n `Built from Verticopolis ${info.version} (${info.commit}).`,\n \"\",\n ].join(\"\\n\");\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAmDO,MAAM,YAAY,GAAG;AAE5B;AACkE;AAClE,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;SAE9B,SAAS,GAAA;IACvB,OAAO;AACL,QAAA,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC;AAC3F,QAAA,QAAQ,EAAE,CAAC,kBAAkB,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,oBAAoB,CAAC;QAC5G,QAAQ,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,EAAE,QAAQ,CAAC;QACxE,OAAO,EAAE,CAAC,SAAS,CAAC;AACpB,QAAA,KAAK,EAAE;AACL,YAAA,KAAK,EAAE,mGAAmG;AAC1G,YAAA,IAAI,EAAE,qGAAqG;AAC3G,YAAA,QAAQ,EAAE,sKAAsK;AAChL,YAAA,KAAK,EAAE,2lBAA2lB;AAClmB,YAAA,OAAO,EAAE,uFAAuF;AAChG,YAAA,gBAAgB,EAAE,6XAA6X;A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