@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,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure waiting line → traffic-tier mapping for the color-blind-safe traffic
|
|
3
|
+
* cue in the HUD. Kept pure and headless so it's unit-testable.
|
|
4
|
+
*
|
|
5
|
+
* The readout follows the tower's worst waiting line right now (owner,
|
|
6
|
+
* 2026-11-17): of every elevator landing where people stand waiting (the
|
|
7
|
+
* engine's `queueView`, the same lines the renderer draws), the one with the
|
|
8
|
+
* most pressure. It names that line's floor, and a tap zooms to that landing,
|
|
9
|
+
* so what the readout says is something the player can see on screen.
|
|
10
|
+
*
|
|
11
|
+
* It no longer reads the floors' congestion ratio (`hotspot`): that blends a
|
|
12
|
+
* transport estimate with each floor's remembered average commute wait, which
|
|
13
|
+
* stays up all night when nobody is waiting, never names a basement line, and
|
|
14
|
+
* cannot say which elevator was slow. That reading still drives the ratings
|
|
15
|
+
* and the Map's Traffic view, and the help explains the two apart.
|
|
16
|
+
*
|
|
17
|
+
* This is NOT the walker-red gate either: a red walker is one person's own
|
|
18
|
+
* wait, the readout is the tower's longest line of them.
|
|
19
|
+
*/
|
|
20
|
+
export type TrafficTier = 0 | 1 | 2 | 3;
|
|
21
|
+
/** The wait tiers a landing's line carries (`QueueLanding.tier`): the
|
|
22
|
+
* engine's worst wait among its riders. Impatient is half the stress wait,
|
|
23
|
+
* fed up the whole of it (`wait_tier`, `engine-rs/src/render_reads.rs`). */
|
|
24
|
+
export declare const LINE_WAIT: {
|
|
25
|
+
readonly content: 0;
|
|
26
|
+
readonly impatient: 1;
|
|
27
|
+
readonly fedUp: 2;
|
|
28
|
+
};
|
|
29
|
+
export type LineWaitTier = (typeof LINE_WAIT)[keyof typeof LINE_WAIT];
|
|
30
|
+
/** One elevator landing's waiting line, as the HUD reads it. */
|
|
31
|
+
export interface WaitingLine {
|
|
32
|
+
readonly shaft: number;
|
|
33
|
+
readonly floor: number;
|
|
34
|
+
readonly count: number;
|
|
35
|
+
readonly tier: LineWaitTier;
|
|
36
|
+
}
|
|
37
|
+
/** How much one person in a line counts toward its pressure, by the line's
|
|
38
|
+
* wait tier. A line nobody has waited long in is mostly a car about to come,
|
|
39
|
+
* so each of its people counts a twentieth: a car's worth reads Smooth, but a
|
|
40
|
+
* crowd of a hundred or more that has just formed reads Busy at once, and
|
|
41
|
+
* four hundred Backed up. An impatient line counts a quarter of a fed up one. */
|
|
42
|
+
export declare const LINE_WEIGHT_BY_WAIT_TIER: Readonly<Record<LineWaitTier, number>>;
|
|
43
|
+
/** A line's pressure: its riders weighted by its wait tier. */
|
|
44
|
+
export declare function linePressure(line: Pick<WaitingLine, "count" | "tier">): number;
|
|
45
|
+
/** Lower edges of Busy / Backed up / Gridlock on the worst line's pressure.
|
|
46
|
+
* Backed up is about a car's worth of fed-up riders (a standard car holds
|
|
47
|
+
* 21), Gridlock four cars' worth; Busy is a handful. The single source of
|
|
48
|
+
* truth: `trafficTier` maps with these, and the HUD's hysteresis
|
|
49
|
+
* (`nextTrafficTier`) reads the same array, so the two cannot desync. */
|
|
50
|
+
export declare const TRAFFIC_BOUNDS: readonly [5, 20, 80];
|
|
51
|
+
/** A tier holds until the pressure falls below this share of its lower edge,
|
|
52
|
+
* so a line that loses a rider or two at the edge does not flicker. */
|
|
53
|
+
export declare const TRAFFIC_HOLD = 0.75;
|
|
54
|
+
export declare function trafficTier(pressure: number): TrafficTier;
|
|
55
|
+
/** The tier the readout shows next, from the one it shows now and the worst
|
|
56
|
+
* line's pressure: up at once, down only once the pressure is below
|
|
57
|
+
* {@link TRAFFIC_HOLD} of the shown tier's lower edge. */
|
|
58
|
+
export declare function nextTrafficTier(shown: TrafficTier, pressure: number): TrafficTier;
|
|
59
|
+
/** The landings a queue projection holds: shaft id → floor → count and tier
|
|
60
|
+
* (`ElevatorQueueView.landings`). */
|
|
61
|
+
export type LandingLines = ReadonlyMap<number, ReadonlyMap<number, {
|
|
62
|
+
readonly count: number;
|
|
63
|
+
readonly tier: LineWaitTier;
|
|
64
|
+
}>>;
|
|
65
|
+
/** The worst waiting line in `landings`: the most pressure, then the most
|
|
66
|
+
* people, then the lowest floor, then the first shaft listed. Null when no
|
|
67
|
+
* line has any pressure, so a line of content riders is never named. One
|
|
68
|
+
* pass over the landings. */
|
|
69
|
+
export declare function worstLine(landings: LandingLines): WaitingLine | null;
|
|
70
|
+
export declare const TRAFFIC_LABELS: readonly ["Smooth", "Busy", "Backed up", "Gridlock"];
|
|
71
|
+
/** Each tier's name as the HUD's meter carries it (`data-level`), in tier
|
|
72
|
+
* order: the stylesheet fills the meter's bars from it. */
|
|
73
|
+
export declare const TRAFFIC_LEVELS: readonly ["smooth", "busy", "backed-up", "gridlock"];
|
|
74
|
+
export type TrafficLevel = (typeof TRAFFIC_LEVELS)[number];
|
|
75
|
+
export declare function trafficLevel(tier: TrafficTier): TrafficLevel;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/** The wait tiers a landing's line carries (`QueueLanding.tier`): the
|
|
2
|
+
* engine's worst wait among its riders. Impatient is half the stress wait,
|
|
3
|
+
* fed up the whole of it (`wait_tier`, `engine-rs/src/render_reads.rs`). */
|
|
4
|
+
const LINE_WAIT = { content: 0, impatient: 1, fedUp: 2 };
|
|
5
|
+
/** How much one person in a line counts toward its pressure, by the line's
|
|
6
|
+
* wait tier. A line nobody has waited long in is mostly a car about to come,
|
|
7
|
+
* so each of its people counts a twentieth: a car's worth reads Smooth, but a
|
|
8
|
+
* crowd of a hundred or more that has just formed reads Busy at once, and
|
|
9
|
+
* four hundred Backed up. An impatient line counts a quarter of a fed up one. */
|
|
10
|
+
const LINE_WEIGHT_BY_WAIT_TIER = {
|
|
11
|
+
[LINE_WAIT.content]: 0.05,
|
|
12
|
+
[LINE_WAIT.impatient]: 0.25,
|
|
13
|
+
[LINE_WAIT.fedUp]: 1,
|
|
14
|
+
};
|
|
15
|
+
/** A line's pressure: its riders weighted by its wait tier. */
|
|
16
|
+
function linePressure(line) {
|
|
17
|
+
return line.count * LINE_WEIGHT_BY_WAIT_TIER[line.tier];
|
|
18
|
+
}
|
|
19
|
+
/** Lower edges of Busy / Backed up / Gridlock on the worst line's pressure.
|
|
20
|
+
* Backed up is about a car's worth of fed-up riders (a standard car holds
|
|
21
|
+
* 21), Gridlock four cars' worth; Busy is a handful. The single source of
|
|
22
|
+
* truth: `trafficTier` maps with these, and the HUD's hysteresis
|
|
23
|
+
* (`nextTrafficTier`) reads the same array, so the two cannot desync. */
|
|
24
|
+
const TRAFFIC_BOUNDS = [5, 20, 80];
|
|
25
|
+
/** A tier holds until the pressure falls below this share of its lower edge,
|
|
26
|
+
* so a line that loses a rider or two at the edge does not flicker. */
|
|
27
|
+
const TRAFFIC_HOLD = 0.75;
|
|
28
|
+
function trafficTier(pressure) {
|
|
29
|
+
const [busy, backedUp, gridlock] = TRAFFIC_BOUNDS;
|
|
30
|
+
if (pressure >= gridlock)
|
|
31
|
+
return 3; // Gridlock: several cars' worth of fed-up riders
|
|
32
|
+
if (pressure >= backedUp)
|
|
33
|
+
return 2; // Backed up: a car's worth of fed-up riders
|
|
34
|
+
if (pressure >= busy)
|
|
35
|
+
return 1; // Busy: a line is starting to wait too long
|
|
36
|
+
return 0; // Smooth
|
|
37
|
+
}
|
|
38
|
+
/** The tier the readout shows next, from the one it shows now and the worst
|
|
39
|
+
* line's pressure: up at once, down only once the pressure is below
|
|
40
|
+
* {@link TRAFFIC_HOLD} of the shown tier's lower edge. */
|
|
41
|
+
function nextTrafficTier(shown, pressure) {
|
|
42
|
+
const raw = trafficTier(pressure);
|
|
43
|
+
if (raw >= shown)
|
|
44
|
+
return raw;
|
|
45
|
+
return pressure < TRAFFIC_BOUNDS[shown - 1] * TRAFFIC_HOLD ? raw : shown;
|
|
46
|
+
}
|
|
47
|
+
/** The worst waiting line in `landings`: the most pressure, then the most
|
|
48
|
+
* people, then the lowest floor, then the first shaft listed. Null when no
|
|
49
|
+
* line has any pressure, so a line of content riders is never named. One
|
|
50
|
+
* pass over the landings. */
|
|
51
|
+
function worstLine(landings) {
|
|
52
|
+
let best = null;
|
|
53
|
+
let bestPressure = 0;
|
|
54
|
+
for (const [shaft, floors] of landings) {
|
|
55
|
+
for (const [floor, { count, tier }] of floors) {
|
|
56
|
+
const pressure = linePressure({ count, tier });
|
|
57
|
+
if (pressure <= 0)
|
|
58
|
+
continue;
|
|
59
|
+
const better = best === null ||
|
|
60
|
+
pressure > bestPressure ||
|
|
61
|
+
(pressure === bestPressure && (count > best.count || (count === best.count && floor < best.floor)));
|
|
62
|
+
if (better) {
|
|
63
|
+
best = { shaft, floor, count, tier };
|
|
64
|
+
bestPressure = pressure;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return best;
|
|
69
|
+
}
|
|
70
|
+
const TRAFFIC_LABELS = ["Smooth", "Busy", "Backed up", "Gridlock"];
|
|
71
|
+
/** Each tier's name as the HUD's meter carries it (`data-level`), in tier
|
|
72
|
+
* order: the stylesheet fills the meter's bars from it. */
|
|
73
|
+
const TRAFFIC_LEVELS = ["smooth", "busy", "backed-up", "gridlock"];
|
|
74
|
+
function trafficLevel(tier) {
|
|
75
|
+
return TRAFFIC_LEVELS[tier];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { LINE_WAIT, LINE_WEIGHT_BY_WAIT_TIER, TRAFFIC_BOUNDS, TRAFFIC_HOLD, TRAFFIC_LABELS, TRAFFIC_LEVELS, linePressure, nextTrafficTier, trafficLevel, trafficTier, worstLine };
|
|
79
|
+
//# sourceMappingURL=traffic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traffic.js","sources":["../../src/presentation/traffic.ts"],"sourcesContent":["/**\n * Pure waiting line → traffic-tier mapping for the color-blind-safe traffic\n * cue in the HUD. Kept pure and headless so it's unit-testable.\n *\n * The readout follows the tower's worst waiting line right now (owner,\n * 2026-11-17): of every elevator landing where people stand waiting (the\n * engine's `queueView`, the same lines the renderer draws), the one with the\n * most pressure. It names that line's floor, and a tap zooms to that landing,\n * so what the readout says is something the player can see on screen.\n *\n * It no longer reads the floors' congestion ratio (`hotspot`): that blends a\n * transport estimate with each floor's remembered average commute wait, which\n * stays up all night when nobody is waiting, never names a basement line, and\n * cannot say which elevator was slow. That reading still drives the ratings\n * and the Map's Traffic view, and the help explains the two apart.\n *\n * This is NOT the walker-red gate either: a red walker is one person's own\n * wait, the readout is the tower's longest line of them.\n */\nexport type TrafficTier = 0 | 1 | 2 | 3;\n\n/** The wait tiers a landing's line carries (`QueueLanding.tier`): the\n * engine's worst wait among its riders. Impatient is half the stress wait,\n * fed up the whole of it (`wait_tier`, `engine-rs/src/render_reads.rs`). */\nexport const LINE_WAIT = { content: 0, impatient: 1, fedUp: 2 } as const;\nexport type LineWaitTier = (typeof LINE_WAIT)[keyof typeof LINE_WAIT];\n\n/** One elevator landing's waiting line, as the HUD reads it. */\nexport interface WaitingLine {\n readonly shaft: number;\n readonly floor: number;\n readonly count: number;\n readonly tier: LineWaitTier;\n}\n\n/** How much one person in a line counts toward its pressure, by the line's\n * wait tier. A line nobody has waited long in is mostly a car about to come,\n * so each of its people counts a twentieth: a car's worth reads Smooth, but a\n * crowd of a hundred or more that has just formed reads Busy at once, and\n * four hundred Backed up. An impatient line counts a quarter of a fed up one. */\nexport const LINE_WEIGHT_BY_WAIT_TIER: Readonly<Record<LineWaitTier, number>> = {\n [LINE_WAIT.content]: 0.05,\n [LINE_WAIT.impatient]: 0.25,\n [LINE_WAIT.fedUp]: 1,\n};\n\n/** A line's pressure: its riders weighted by its wait tier. */\nexport function linePressure(line: Pick<WaitingLine, \"count\" | \"tier\">): number {\n return line.count * LINE_WEIGHT_BY_WAIT_TIER[line.tier];\n}\n\n/** Lower edges of Busy / Backed up / Gridlock on the worst line's pressure.\n * Backed up is about a car's worth of fed-up riders (a standard car holds\n * 21), Gridlock four cars' worth; Busy is a handful. The single source of\n * truth: `trafficTier` maps with these, and the HUD's hysteresis\n * (`nextTrafficTier`) reads the same array, so the two cannot desync. */\nexport const TRAFFIC_BOUNDS = [5, 20, 80] as const;\n\n/** A tier holds until the pressure falls below this share of its lower edge,\n * so a line that loses a rider or two at the edge does not flicker. */\nexport const TRAFFIC_HOLD = 0.75;\n\nexport function trafficTier(pressure: number): TrafficTier {\n const [busy, backedUp, gridlock] = TRAFFIC_BOUNDS;\n if (pressure >= gridlock) return 3; // Gridlock: several cars' worth of fed-up riders\n if (pressure >= backedUp) return 2; // Backed up: a car's worth of fed-up riders\n if (pressure >= busy) return 1; // Busy: a line is starting to wait too long\n return 0; // Smooth\n}\n\n/** The tier the readout shows next, from the one it shows now and the worst\n * line's pressure: up at once, down only once the pressure is below\n * {@link TRAFFIC_HOLD} of the shown tier's lower edge. */\nexport function nextTrafficTier(shown: TrafficTier, pressure: number): TrafficTier {\n const raw = trafficTier(pressure);\n if (raw >= shown) return raw;\n return pressure < TRAFFIC_BOUNDS[shown - 1] * TRAFFIC_HOLD ? raw : shown;\n}\n\n/** The landings a queue projection holds: shaft id → floor → count and tier\n * (`ElevatorQueueView.landings`). */\nexport type LandingLines = ReadonlyMap<number, ReadonlyMap<number, { readonly count: number; readonly tier: LineWaitTier }>>;\n\n/** The worst waiting line in `landings`: the most pressure, then the most\n * people, then the lowest floor, then the first shaft listed. Null when no\n * line has any pressure, so a line of content riders is never named. One\n * pass over the landings. */\nexport function worstLine(landings: LandingLines): WaitingLine | null {\n let best: WaitingLine | null = null;\n let bestPressure = 0;\n for (const [shaft, floors] of landings) {\n for (const [floor, { count, tier }] of floors) {\n const pressure = linePressure({ count, tier });\n if (pressure <= 0) continue;\n const better =\n best === null ||\n pressure > bestPressure ||\n (pressure === bestPressure && (count > best.count || (count === best.count && floor < best.floor)));\n if (better) {\n best = { shaft, floor, count, tier };\n bestPressure = pressure;\n }\n }\n }\n return best;\n}\n\nexport const TRAFFIC_LABELS = [\"Smooth\", \"Busy\", \"Backed up\", \"Gridlock\"] as const;\n\n/** Each tier's name as the HUD's meter carries it (`data-level`), in tier\n * order: the stylesheet fills the meter's bars from it. */\nexport const TRAFFIC_LEVELS = [\"smooth\", \"busy\", \"backed-up\", \"gridlock\"] as const;\nexport type TrafficLevel = (typeof TRAFFIC_LEVELS)[number];\n\nexport function trafficLevel(tier: TrafficTier): TrafficLevel {\n return TRAFFIC_LEVELS[tier];\n}\n"],"names":[],"mappings":"AAqBA;;AAE6E;AACtE,MAAM,SAAS,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;AAW7D;;;;AAIkF;AAC3E,MAAM,wBAAwB,GAA2C;AAC9E,IAAA,CAAC,SAAS,CAAC,OAAO,GAAG,IAAI;AACzB,IAAA,CAAC,SAAS,CAAC,SAAS,GAAG,IAAI;AAC3B,IAAA,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC;;AAGtB;AACM,SAAU,YAAY,CAAC,IAAyC,EAAA;IACpE,OAAO,IAAI,CAAC,KAAK,GAAG,wBAAwB,CAAC,IAAI,CAAC,IAAI,CAAC;AACzD;AAEA;;;;AAI0E;AACnE,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE;AAExC;AACwE;AACjE,MAAM,YAAY,GAAG;AAEtB,SAAU,WAAW,CAAC,QAAgB,EAAA;IAC1C,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,cAAc;IACjD,IAAI,QAAQ,IAAI,QAAQ;QAAE,OAAO,CAAC,CAAC;IACnC,IAAI,QAAQ,IAAI,QAAQ;QAAE,OAAO,CAAC,CAAC;IACnC,IAAI,QAAQ,IAAI,IAAI;QAAE,OAAO,CAAC,CAAC;IAC/B,OAAO,CAAC,CAAC;AACX;AAEA;;AAE2D;AACrD,SAAU,eAAe,CAAC,KAAkB,EAAE,QAAgB,EAAA;AAClE,IAAA,MAAM,GAAG,GAAG,WAAW,CAAC,QAAQ,CAAC;IACjC,IAAI,GAAG,IAAI,KAAK;AAAE,QAAA,OAAO,GAAG;AAC5B,IAAA,OAAO,QAAQ,GAAG,cAAc,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,YAAY,GAAG,GAAG,GAAG,KAAK;AAC1E;AAMA;;;AAG8B;AACxB,SAAU,SAAS,CAAC,QAAsB,EAAA;IAC9C,IAAI,IAAI,GAAuB,IAAI;IACnC,IAAI,YAAY,GAAG,CAAC;IACpB,KAAK,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,QAAQ,EAAE;AACtC,QAAA,KAAK,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,IAAI,MAAM,EAAE;YAC7C,MAAM,QAAQ,GAAG,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;YAC9C,IAAI,QAAQ,IAAI,CAAC;gBAAE;AACnB,YAAA,MAAM,MAAM,GACV,IAAI,KAAK,IAAI;AACb,gBAAA,QAAQ,GAAG,YAAY;iBACtB,QAAQ,KAAK,YAAY,KAAK,KAAK,GAAG,IAAI,CAAC,KAAK,KAAK,KAAK,KAAK,IAAI,CAAC,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YACrG,IAAI,MAAM,EAAE;gBACV,IAAI,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE;gBACpC,YAAY,GAAG,QAAQ;YACzB;QACF;IACF;AACA,IAAA,OAAO,IAAI;AACb;AAEO,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU;AAExE;AAC4D;AACrD,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU;AAGlE,SAAU,YAAY,CAAC,IAAiB,EAAA;AAC5C,IAAA,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type Catalog, type CatalogFacility } from "../catalog/catalogTypes";
|
|
2
|
+
import type { FacilityKind } from "../shared/types";
|
|
3
|
+
/** Binds the view's kind facts to a catalog. A later bind replaces them: both
|
|
4
|
+
* modes' catalogs state the same facts, and a damaged catalog is refused where
|
|
5
|
+
* it is read. */
|
|
6
|
+
export declare function bindViewKinds(catalog: Catalog): void;
|
|
7
|
+
/** The catalog facts for `kind`, or null when the bound catalog lists none.
|
|
8
|
+
* Throws before the first bind. */
|
|
9
|
+
export declare function findViewKind(kind: FacilityKind): CatalogFacility | null;
|
|
10
|
+
/** The kind keys in the bound catalog, in catalog order. */
|
|
11
|
+
export declare function viewKindKeys(): FacilityKind[];
|
|
12
|
+
/** A foot-traffic trading kind (fast food, restaurant, shop, cinema and the
|
|
13
|
+
* Modern venues that draw shoppers). */
|
|
14
|
+
export declare function isCommercialKind(kind: FacilityKind): boolean;
|
|
15
|
+
/** A hotel room of any size. */
|
|
16
|
+
export declare function isHotelKind(kind: FacilityKind): boolean;
|
|
17
|
+
/** A Modern lease amenity (fitness club, clinic). */
|
|
18
|
+
export declare function isLeaseAmenityKind(kind: FacilityKind): boolean;
|
|
19
|
+
/** A demand tenant whose unmet local coverage drains satisfaction. */
|
|
20
|
+
export declare function isUnmetDemandKind(kind: FacilityKind): boolean;
|
|
21
|
+
/** An elevator of any kind: the only transports with cars. */
|
|
22
|
+
export declare function isElevatorKind(kind: FacilityKind): boolean;
|
|
23
|
+
/** Whether the kind keeps posted business hours (it can be closed). */
|
|
24
|
+
export declare function hasBusinessHours(kind: FacilityKind): boolean;
|
|
25
|
+
/** The kind's width in tiles, as the bound catalog states it. */
|
|
26
|
+
export declare function kindWidth(kind: FacilityKind): number;
|
|
27
|
+
/** The kind's height in floors, as the bound catalog states it. */
|
|
28
|
+
export declare function kindFloors(kind: FacilityKind): number;
|
|
29
|
+
/** Whether the kind is open in `hour`, read as the engines read it (a fraction
|
|
30
|
+
* or 24 wraps onto its hour); a kind with no posted hours is always open. */
|
|
31
|
+
export declare function isOpenAt(kind: FacilityKind, hour: number): boolean;
|
|
32
|
+
/** Test hook: forget the bound facts. */
|
|
33
|
+
export declare function resetViewKindsForTests(): void;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { catalogOpenAt } from '../catalog/catalogTypes.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* What the view knows about each kind, read from the engine's catalog: which
|
|
5
|
+
* kinds are commercial, hotel rooms, lease amenities, demand tenants or
|
|
6
|
+
* elevators, and which keep business hours and when they are open. The view
|
|
7
|
+
* asks these here instead of keeping kind lists of its own, so a kind the
|
|
8
|
+
* engine adds lands on the right side of every check with no frontend edit.
|
|
9
|
+
*
|
|
10
|
+
* The facts are the same in both modes, so a catalog of either one binds them.
|
|
11
|
+
* Like the view's world, they must be bound before anything draws: all lookups
|
|
12
|
+
* throw if no catalog is bound. Once bound, findViewKind returns null for an
|
|
13
|
+
* unknown kind so legacy/unknown-kind rendering can fall back; strict helpers
|
|
14
|
+
* throw for unknown kinds rather than silently inventing simulation rules.
|
|
15
|
+
*/
|
|
16
|
+
let bound = null;
|
|
17
|
+
/** Binds the view's kind facts to a catalog. A later bind replaces them: both
|
|
18
|
+
* modes' catalogs state the same facts, and a damaged catalog is refused where
|
|
19
|
+
* it is read. */
|
|
20
|
+
function bindViewKinds(catalog) {
|
|
21
|
+
bound = new Map(catalog.facilities.map((f) => [f.key, f]));
|
|
22
|
+
}
|
|
23
|
+
function entry(kind) {
|
|
24
|
+
if (!bound)
|
|
25
|
+
throw new Error("the view's kind facts are not bound yet: bind them from the tower's catalog before drawing");
|
|
26
|
+
const f = bound.get(kind);
|
|
27
|
+
if (!f)
|
|
28
|
+
throw new Error(`the catalog lists no ${kind}`);
|
|
29
|
+
return f;
|
|
30
|
+
}
|
|
31
|
+
/** The catalog facts for `kind`, or null when the bound catalog lists none.
|
|
32
|
+
* Throws before the first bind. */
|
|
33
|
+
function findViewKind(kind) {
|
|
34
|
+
if (!bound)
|
|
35
|
+
throw new Error("the view's kind facts are not bound yet: bind them from the tower's catalog before drawing");
|
|
36
|
+
return bound.get(kind) ?? null;
|
|
37
|
+
}
|
|
38
|
+
/** The kind keys in the bound catalog, in catalog order. */
|
|
39
|
+
function viewKindKeys() {
|
|
40
|
+
if (!bound)
|
|
41
|
+
throw new Error("the view's kind facts are not bound yet: bind them from the tower's catalog before drawing");
|
|
42
|
+
return [...bound.keys()];
|
|
43
|
+
}
|
|
44
|
+
/** A foot-traffic trading kind (fast food, restaurant, shop, cinema and the
|
|
45
|
+
* Modern venues that draw shoppers). */
|
|
46
|
+
function isCommercialKind(kind) {
|
|
47
|
+
return entry(kind).commercial;
|
|
48
|
+
}
|
|
49
|
+
/** A hotel room of any size. */
|
|
50
|
+
function isHotelKind(kind) {
|
|
51
|
+
return entry(kind).hotel;
|
|
52
|
+
}
|
|
53
|
+
/** A Modern lease amenity (fitness club, clinic). */
|
|
54
|
+
function isLeaseAmenityKind(kind) {
|
|
55
|
+
return entry(kind).leaseAmenity;
|
|
56
|
+
}
|
|
57
|
+
/** A demand tenant whose unmet local coverage drains satisfaction. */
|
|
58
|
+
function isUnmetDemandKind(kind) {
|
|
59
|
+
return entry(kind).unmetDemand;
|
|
60
|
+
}
|
|
61
|
+
/** An elevator of any kind: the only transports with cars. */
|
|
62
|
+
function isElevatorKind(kind) {
|
|
63
|
+
return entry(kind).maxCars !== null;
|
|
64
|
+
}
|
|
65
|
+
/** Whether the kind keeps posted business hours (it can be closed). */
|
|
66
|
+
function hasBusinessHours(kind) {
|
|
67
|
+
return entry(kind).openHours !== null;
|
|
68
|
+
}
|
|
69
|
+
/** The kind's width in tiles, as the bound catalog states it. */
|
|
70
|
+
function kindWidth(kind) {
|
|
71
|
+
return entry(kind).width;
|
|
72
|
+
}
|
|
73
|
+
/** The kind's height in floors, as the bound catalog states it. */
|
|
74
|
+
function kindFloors(kind) {
|
|
75
|
+
return entry(kind).floors;
|
|
76
|
+
}
|
|
77
|
+
/** Whether the kind is open in `hour`, read as the engines read it (a fraction
|
|
78
|
+
* or 24 wraps onto its hour); a kind with no posted hours is always open. */
|
|
79
|
+
function isOpenAt(kind, hour) {
|
|
80
|
+
return catalogOpenAt(entry(kind), hour);
|
|
81
|
+
}
|
|
82
|
+
/** Test hook: forget the bound facts. */
|
|
83
|
+
function resetViewKindsForTests() {
|
|
84
|
+
bound = null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { bindViewKinds, findViewKind, hasBusinessHours, isCommercialKind, isElevatorKind, isHotelKind, isLeaseAmenityKind, isOpenAt, isUnmetDemandKind, kindFloors, kindWidth, resetViewKindsForTests, viewKindKeys };
|
|
88
|
+
//# sourceMappingURL=viewKinds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewKinds.js","sources":["../../src/presentation/viewKinds.ts"],"sourcesContent":["import { catalogOpenAt, type Catalog, type CatalogFacility } from \"../catalog/catalogTypes\";\nimport type { FacilityKind } from \"../shared/types\";\n\n/**\n * What the view knows about each kind, read from the engine's catalog: which\n * kinds are commercial, hotel rooms, lease amenities, demand tenants or\n * elevators, and which keep business hours and when they are open. The view\n * asks these here instead of keeping kind lists of its own, so a kind the\n * engine adds lands on the right side of every check with no frontend edit.\n *\n * The facts are the same in both modes, so a catalog of either one binds them.\n * Like the view's world, they must be bound before anything draws: all lookups\n * throw if no catalog is bound. Once bound, findViewKind returns null for an\n * unknown kind so legacy/unknown-kind rendering can fall back; strict helpers\n * throw for unknown kinds rather than silently inventing simulation rules.\n */\n\nlet bound: ReadonlyMap<FacilityKind, CatalogFacility> | null = null;\n\n/** Binds the view's kind facts to a catalog. A later bind replaces them: both\n * modes' catalogs state the same facts, and a damaged catalog is refused where\n * it is read. */\nexport function bindViewKinds(catalog: Catalog): void {\n bound = new Map(catalog.facilities.map((f) => [f.key, f]));\n}\n\nfunction entry(kind: FacilityKind): CatalogFacility {\n if (!bound) throw new Error(\"the view's kind facts are not bound yet: bind them from the tower's catalog before drawing\");\n const f = bound.get(kind);\n if (!f) throw new Error(`the catalog lists no ${kind}`);\n return f;\n}\n\n/** The catalog facts for `kind`, or null when the bound catalog lists none.\n * Throws before the first bind. */\nexport function findViewKind(kind: FacilityKind): CatalogFacility | null {\n if (!bound) throw new Error(\"the view's kind facts are not bound yet: bind them from the tower's catalog before drawing\");\n return bound.get(kind) ?? null;\n}\n\n/** The kind keys in the bound catalog, in catalog order. */\nexport function viewKindKeys(): FacilityKind[] {\n if (!bound) throw new Error(\"the view's kind facts are not bound yet: bind them from the tower's catalog before drawing\");\n return [...bound.keys()];\n}\n\n/** A foot-traffic trading kind (fast food, restaurant, shop, cinema and the\n * Modern venues that draw shoppers). */\nexport function isCommercialKind(kind: FacilityKind): boolean {\n return entry(kind).commercial;\n}\n\n/** A hotel room of any size. */\nexport function isHotelKind(kind: FacilityKind): boolean {\n return entry(kind).hotel;\n}\n\n/** A Modern lease amenity (fitness club, clinic). */\nexport function isLeaseAmenityKind(kind: FacilityKind): boolean {\n return entry(kind).leaseAmenity;\n}\n\n/** A demand tenant whose unmet local coverage drains satisfaction. */\nexport function isUnmetDemandKind(kind: FacilityKind): boolean {\n return entry(kind).unmetDemand;\n}\n\n/** An elevator of any kind: the only transports with cars. */\nexport function isElevatorKind(kind: FacilityKind): boolean {\n return entry(kind).maxCars !== null;\n}\n\n/** Whether the kind keeps posted business hours (it can be closed). */\nexport function hasBusinessHours(kind: FacilityKind): boolean {\n return entry(kind).openHours !== null;\n}\n\n/** The kind's width in tiles, as the bound catalog states it. */\nexport function kindWidth(kind: FacilityKind): number {\n return entry(kind).width;\n}\n\n/** The kind's height in floors, as the bound catalog states it. */\nexport function kindFloors(kind: FacilityKind): number {\n return entry(kind).floors;\n}\n\n/** Whether the kind is open in `hour`, read as the engines read it (a fraction\n * or 24 wraps onto its hour); a kind with no posted hours is always open. */\nexport function isOpenAt(kind: FacilityKind, hour: number): boolean {\n return catalogOpenAt(entry(kind), hour);\n}\n\n/** Test hook: forget the bound facts. */\nexport function resetViewKindsForTests(): void {\n bound = null;\n}\n"],"names":[],"mappings":";;AAGA;;;;;;;;;;;;AAYG;AAEH,IAAI,KAAK,GAAsD,IAAI;AAEnE;;AAEkB;AACZ,SAAU,aAAa,CAAC,OAAgB,EAAA;IAC5C,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAC5D;AAEA,SAAS,KAAK,CAAC,IAAkB,EAAA;AAC/B,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,4FAA4F,CAAC;IACzH,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;AACzB,IAAA,IAAI,CAAC,CAAC;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,wBAAwB,IAAI,CAAA,CAAE,CAAC;AACvD,IAAA,OAAO,CAAC;AACV;AAEA;AACoC;AAC9B,SAAU,YAAY,CAAC,IAAkB,EAAA;AAC7C,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,4FAA4F,CAAC;IACzH,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,IAAI;AAChC;AAEA;SACgB,YAAY,GAAA;AAC1B,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,4FAA4F,CAAC;AACzH,IAAA,OAAO,CAAC,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;AAC1B;AAEA;AACyC;AACnC,SAAU,gBAAgB,CAAC,IAAkB,EAAA;AACjD,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,UAAU;AAC/B;AAEA;AACM,SAAU,WAAW,CAAC,IAAkB,EAAA;AAC5C,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK;AAC1B;AAEA;AACM,SAAU,kBAAkB,CAAC,IAAkB,EAAA;AACnD,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,YAAY;AACjC;AAEA;AACM,SAAU,iBAAiB,CAAC,IAAkB,EAAA;AAClD,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,WAAW;AAChC;AAEA;AACM,SAAU,cAAc,CAAC,IAAkB,EAAA;IAC/C,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,IAAI;AACrC;AAEA;AACM,SAAU,gBAAgB,CAAC,IAAkB,EAAA;IACjD,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,IAAI;AACvC;AAEA;AACM,SAAU,SAAS,CAAC,IAAkB,EAAA;AAC1C,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,KAAK;AAC1B;AAEA;AACM,SAAU,UAAU,CAAC,IAAkB,EAAA;AAC3C,IAAA,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM;AAC3B;AAEA;AAC8E;AACxE,SAAU,QAAQ,CAAC,IAAkB,EAAE,IAAY,EAAA;IACvD,OAAO,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;AACzC;AAEA;SACgB,sBAAsB,GAAA;IACpC,KAAK,GAAG,IAAI;AACd;;"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { CatalogWorld } from "../catalog/catalogTypes";
|
|
2
|
+
/**
|
|
3
|
+
* The world geometry the view is built for: the lot width and the floor range
|
|
4
|
+
* that size the tile maps, the region grid, the scenery and the cursor clamps
|
|
5
|
+
* (#921). It comes from the tower's catalog when the scene is built, so the
|
|
6
|
+
* view reads the engine's world rather than the TypeScript tables.
|
|
7
|
+
*
|
|
8
|
+
* The ground, the scenery and the region grid are built once for the lot's
|
|
9
|
+
* width and basement, so a later bind must state the same ones: a different
|
|
10
|
+
* lot width or lowest floor means a damaged or mismatched catalog, and it
|
|
11
|
+
* throws instead of drawing a lot of the wrong size. The top floor may move
|
|
12
|
+
* between towers (a taller lot, #1985): every reader takes it live, and the
|
|
13
|
+
* scene resizes its structure map when it swaps to such a tower (towerScene
|
|
14
|
+
* `setSim`).
|
|
15
|
+
*/
|
|
16
|
+
/** The fields the view reads. */
|
|
17
|
+
export type ViewWorld = Pick<CatalogWorld, "lotWidth" | "minFloor" | "maxFloor">;
|
|
18
|
+
/** Binds the view to a catalog's world. A second bind must state the same
|
|
19
|
+
* lot width and lowest floor; a different one throws and leaves the bound
|
|
20
|
+
* world in place. The top floor may change. */
|
|
21
|
+
export declare function bindViewWorld(world: ViewWorld): void;
|
|
22
|
+
/** The bound world. Throws before the first bind: nothing in the view may
|
|
23
|
+
* guess the lot's size. */
|
|
24
|
+
export declare function viewWorld(): ViewWorld;
|
|
25
|
+
/** Whether a world is bound yet, for a reader that waits for it instead of
|
|
26
|
+
* throwing (the overview map before the scene is built). */
|
|
27
|
+
export declare function viewWorldBound(): boolean;
|
|
28
|
+
/** Test hook: forget the bound world. */
|
|
29
|
+
export declare function resetViewWorldForTests(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
let bound = null;
|
|
2
|
+
/** Binds the view to a catalog's world. A second bind must state the same
|
|
3
|
+
* lot width and lowest floor; a different one throws and leaves the bound
|
|
4
|
+
* world in place. The top floor may change. */
|
|
5
|
+
function bindViewWorld(world) {
|
|
6
|
+
const next = { lotWidth: world.lotWidth, minFloor: world.minFloor, maxFloor: world.maxFloor };
|
|
7
|
+
const otherLot = bound !== null && (bound.lotWidth !== next.lotWidth || bound.minFloor !== next.minFloor);
|
|
8
|
+
if (bound && otherLot) {
|
|
9
|
+
throw new Error(`the catalog's lot (${next.lotWidth} tiles, lowest floor ${next.minFloor}) differs from the one the view was built for (${bound.lotWidth} tiles, lowest floor ${bound.minFloor})`);
|
|
10
|
+
}
|
|
11
|
+
bound = next;
|
|
12
|
+
}
|
|
13
|
+
/** The bound world. Throws before the first bind: nothing in the view may
|
|
14
|
+
* guess the lot's size. */
|
|
15
|
+
function viewWorld() {
|
|
16
|
+
if (!bound)
|
|
17
|
+
throw new Error("the view world is not bound yet: bind it from the tower's catalog before drawing");
|
|
18
|
+
return bound;
|
|
19
|
+
}
|
|
20
|
+
/** Whether a world is bound yet, for a reader that waits for it instead of
|
|
21
|
+
* throwing (the overview map before the scene is built). */
|
|
22
|
+
function viewWorldBound() {
|
|
23
|
+
return bound !== null;
|
|
24
|
+
}
|
|
25
|
+
/** Test hook: forget the bound world. */
|
|
26
|
+
function resetViewWorldForTests() {
|
|
27
|
+
bound = null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { bindViewWorld, resetViewWorldForTests, viewWorld, viewWorldBound };
|
|
31
|
+
//# sourceMappingURL=viewWorld.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewWorld.js","sources":["../../src/presentation/viewWorld.ts"],"sourcesContent":["import type { CatalogWorld } from \"../catalog/catalogTypes\";\n\n/**\n * The world geometry the view is built for: the lot width and the floor range\n * that size the tile maps, the region grid, the scenery and the cursor clamps\n * (#921). It comes from the tower's catalog when the scene is built, so the\n * view reads the engine's world rather than the TypeScript tables.\n *\n * The ground, the scenery and the region grid are built once for the lot's\n * width and basement, so a later bind must state the same ones: a different\n * lot width or lowest floor means a damaged or mismatched catalog, and it\n * throws instead of drawing a lot of the wrong size. The top floor may move\n * between towers (a taller lot, #1985): every reader takes it live, and the\n * scene resizes its structure map when it swaps to such a tower (towerScene\n * `setSim`).\n */\n\n/** The fields the view reads. */\nexport type ViewWorld = Pick<CatalogWorld, \"lotWidth\" | \"minFloor\" | \"maxFloor\">;\n\nlet bound: ViewWorld | null = null;\n\n/** Binds the view to a catalog's world. A second bind must state the same\n * lot width and lowest floor; a different one throws and leaves the bound\n * world in place. The top floor may change. */\nexport function bindViewWorld(world: ViewWorld): void {\n const next = { lotWidth: world.lotWidth, minFloor: world.minFloor, maxFloor: world.maxFloor };\n const otherLot = bound !== null && (bound.lotWidth !== next.lotWidth || bound.minFloor !== next.minFloor);\n if (bound && otherLot) {\n throw new Error(\n `the catalog's lot (${next.lotWidth} tiles, lowest floor ${next.minFloor}) differs from the one the view was built for (${bound.lotWidth} tiles, lowest floor ${bound.minFloor})`,\n );\n }\n bound = next;\n}\n\n/** The bound world. Throws before the first bind: nothing in the view may\n * guess the lot's size. */\nexport function viewWorld(): ViewWorld {\n if (!bound) throw new Error(\"the view world is not bound yet: bind it from the tower's catalog before drawing\");\n return bound;\n}\n\n/** Whether a world is bound yet, for a reader that waits for it instead of\n * throwing (the overview map before the scene is built). */\nexport function viewWorldBound(): boolean {\n return bound !== null;\n}\n\n/** Test hook: forget the bound world. */\nexport function resetViewWorldForTests(): void {\n bound = null;\n}\n"],"names":[],"mappings":"AAoBA,IAAI,KAAK,GAAqB,IAAI;AAElC;;AAEgD;AAC1C,SAAU,aAAa,CAAC,KAAgB,EAAA;IAC5C,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;IAC7F,MAAM,QAAQ,GAAG,KAAK,KAAK,IAAI,KAAK,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ,CAAC;AACzG,IAAA,IAAI,KAAK,IAAI,QAAQ,EAAE;QACrB,MAAM,IAAI,KAAK,CACb,CAAA,mBAAA,EAAsB,IAAI,CAAC,QAAQ,wBAAwB,IAAI,CAAC,QAAQ,CAAA,+CAAA,EAAkD,KAAK,CAAC,QAAQ,CAAA,qBAAA,EAAwB,KAAK,CAAC,QAAQ,CAAA,CAAA,CAAG,CAClL;IACH;IACA,KAAK,GAAG,IAAI;AACd;AAEA;AAC4B;SACZ,SAAS,GAAA;AACvB,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,kFAAkF,CAAC;AAC/G,IAAA,OAAO,KAAK;AACd;AAEA;AAC6D;SAC7C,cAAc,GAAA;IAC5B,OAAO,KAAK,KAAK,IAAI;AACvB;AAEA;SACgB,sBAAsB,GAAA;IACpC,KAAK,GAAG,IAAI;AACd;;"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { BakeResult } from "./bake";
|
|
2
|
+
import { type PackedSlice } from "./pack";
|
|
3
|
+
import { type Image } from "./pixels";
|
|
4
|
+
import { type AtlasManifest } from "./schema";
|
|
5
|
+
import type { Catalog } from "../../catalog/catalogTypes";
|
|
6
|
+
/**
|
|
7
|
+
* Turns a bake into the release archive: packs the unique images into 1x
|
|
8
|
+
* pages, derives the 2x and 4x pages by nearest-neighbor scaling, generates a
|
|
9
|
+
* normal map per page, writes the manifest, and zips it all with the license
|
|
10
|
+
* attribution. Deterministic: the same bake gives the same bytes.
|
|
11
|
+
*/
|
|
12
|
+
export interface ArchiveInfo {
|
|
13
|
+
version: string;
|
|
14
|
+
commit: string;
|
|
15
|
+
/** The suggested attribution line from ASSETS-LICENSE.md. */
|
|
16
|
+
attribution: string;
|
|
17
|
+
/** ASSETS-LICENSE.md itself, shipped verbatim. */
|
|
18
|
+
licenseText: string;
|
|
19
|
+
/** The app icon files, shipped under `icon/` by name. */
|
|
20
|
+
icons?: Record<string, Uint8Array>;
|
|
21
|
+
/** The engine's Modern catalog the art was drawn with. The archive reads
|
|
22
|
+
* room and scenery facts through the view, and Node's archive builder runs
|
|
23
|
+
* apart from the page that baked the art, so it binds its own view to this. */
|
|
24
|
+
catalog: Catalog;
|
|
25
|
+
}
|
|
26
|
+
export declare const ARCHIVE_ROOT = "verticopolis-atlas";
|
|
27
|
+
export declare function signature(): AtlasManifest["signature"];
|
|
28
|
+
export interface Archive {
|
|
29
|
+
manifest: AtlasManifest;
|
|
30
|
+
/** The 1x color and normal pages, for checks before encoding. */
|
|
31
|
+
pages: Image[];
|
|
32
|
+
normalPages: Image[];
|
|
33
|
+
/** Where each image id was packed. */
|
|
34
|
+
placements: PackedSlice[][];
|
|
35
|
+
/** Paths inside the zip (under {@link ARCHIVE_ROOT}) to bytes. */
|
|
36
|
+
files: Record<string, Uint8Array>;
|
|
37
|
+
zip: Uint8Array;
|
|
38
|
+
}
|
|
39
|
+
export declare function buildArchive(bake: BakeResult, info: ArchiveInfo, onProgress?: (msg: string) => void, pageSize?: number): Archive;
|
|
40
|
+
/** Ids of images whose color or normal pixels do not come back out of the
|
|
41
|
+
* pages at their packed slices; empty when every image does. */
|
|
42
|
+
export declare function checkPages(bake: Pick<BakeResult, "images" | "normals">, archive: Pick<Archive, "pages" | "normalPages" | "placements">): number[];
|
|
43
|
+
/** Names of the frames whose chains name a missing alternative, or whose
|
|
44
|
+
* depth layers break the manifest's rules (chain
|
|
45
|
+
* keys, at most one chain besides its alternatives, a null step 0, soft steps exactly
|
|
46
|
+
* where there is soft furniture) or, read back out of the packed pages
|
|
47
|
+
* through the manifest the way a frontend reads them, do not give back the
|
|
48
|
+
* frame's own pixels for some occupant count; empty when every layered frame
|
|
49
|
+
* passes. */
|
|
50
|
+
export declare function checkLayers(archive: Pick<Archive, "manifest" | "pages">): string[];
|
|
51
|
+
/** The largest channel difference (of 255) the soft furniture may show
|
|
52
|
+
* against the flat frame before the export refuses the atlas. Translucent
|
|
53
|
+
* paint over the shell rounds a step or two away from the same paint baked
|
|
54
|
+
* over it; anything far past that means the soft pass drew something else. */
|
|
55
|
+
export declare const SOFT_DRIFT_LIMIT = 4;
|
|
56
|
+
/** How far the soft furniture strays from the flat pictures it stands in
|
|
57
|
+
* for: pictures compared (one per frame and occupant count), the soft
|
|
58
|
+
* furniture's own pixels in them, how many of those differ from the flat
|
|
59
|
+
* picture, how many pixels outside it differ (none, unless the soft pass
|
|
60
|
+
* missed part of the furniture), the largest difference in any channel
|
|
61
|
+
* (0..255) anywhere, and the frame that shows it (or the first with a
|
|
62
|
+
* pixel outside). A pixel counts once per picture it shows in. */
|
|
63
|
+
export declare function softLayerDrift(archive: Pick<Archive, "manifest" | "pages">): {
|
|
64
|
+
frames: number;
|
|
65
|
+
pictures: number;
|
|
66
|
+
pixels: number;
|
|
67
|
+
differing: number;
|
|
68
|
+
outside: number;
|
|
69
|
+
maxDelta: number;
|
|
70
|
+
worst: string;
|
|
71
|
+
};
|
|
72
|
+
/** Room kinds whose frames carry depth layers but never any furniture. Shell
|
|
73
|
+
* plus furniture equals the flat frame whatever the shell holds, so a bake
|
|
74
|
+
* that failed to take the furniture out (a shell that still shows it) would
|
|
75
|
+
* pass {@link checkLayers}; every kind that splits has furniture in some
|
|
76
|
+
* frame, so an empty kind means the split did not happen. */
|
|
77
|
+
export declare function kindsWithoutFurniture(manifest: Pick<AtlasManifest, "frames">): string[];
|
|
78
|
+
export declare function attributionText(info: ArchiveInfo): string;
|