@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,70 @@
|
|
|
1
|
+
import type { ElevatorQueueView } from "../shared/engineTypes";
|
|
2
|
+
import type { HeatCell, HeatmapMode } from "../shared/engineTypes";
|
|
3
|
+
import type { GameMode, SerializedView, WeatherKind } from "../shared/types";
|
|
4
|
+
import type { RenderSim, RenderTower } from "../render/renderSim";
|
|
5
|
+
import { ClockReads } from "./clockView";
|
|
6
|
+
import type { EnginePort } from "./enginePort";
|
|
7
|
+
import type { ViewReader } from "./viewReader";
|
|
8
|
+
import type { CrowdView } from "./view";
|
|
9
|
+
/**
|
|
10
|
+
* The renderer's `RenderSim` over the port (facade slice 7, PR 5b): the view
|
|
11
|
+
* reads come from the shared `ViewReader`, the rest from the port's render
|
|
12
|
+
* queries, so the renderer draws either engine through one object. The
|
|
13
|
+
* frame loop updates the reader before the renderer reads it.
|
|
14
|
+
*
|
|
15
|
+
* Costs match the TypeScript engine's: the queue projection is decoded once
|
|
16
|
+
* per tower, game minute and revision (the crowd moves only on a step, and a
|
|
17
|
+
* step moves the clock), so a frame between steps reads the kept one without
|
|
18
|
+
* asking the port; the scene sync's parking set is decoded per call, once
|
|
19
|
+
* per sync.
|
|
20
|
+
*/
|
|
21
|
+
export declare class PortRenderSim implements RenderSim {
|
|
22
|
+
private readonly port;
|
|
23
|
+
private readonly reader;
|
|
24
|
+
private readonly clockReads;
|
|
25
|
+
readonly tower: RenderTower;
|
|
26
|
+
readonly crowd: CrowdView & {
|
|
27
|
+
queueView(tower: RenderTower): ElevatorQueueView;
|
|
28
|
+
};
|
|
29
|
+
private readonly heatModes;
|
|
30
|
+
private readonly heatTints;
|
|
31
|
+
private queueKey;
|
|
32
|
+
private queue;
|
|
33
|
+
constructor(port: EnginePort, reader: ViewReader);
|
|
34
|
+
get mode(): GameMode;
|
|
35
|
+
get rng(): {
|
|
36
|
+
readonly initialSeed: number;
|
|
37
|
+
};
|
|
38
|
+
get view(): SerializedView | null;
|
|
39
|
+
get weather(): WeatherKind;
|
|
40
|
+
get population(): number;
|
|
41
|
+
get santaFxSeq(): number;
|
|
42
|
+
get vipFxSeq(): number;
|
|
43
|
+
get explosionFx(): {
|
|
44
|
+
readonly floor: number;
|
|
45
|
+
readonly x: number;
|
|
46
|
+
readonly seq: number;
|
|
47
|
+
};
|
|
48
|
+
get thiefFx(): {
|
|
49
|
+
readonly caught: boolean;
|
|
50
|
+
readonly floor: number;
|
|
51
|
+
readonly x: number;
|
|
52
|
+
readonly seq: number;
|
|
53
|
+
};
|
|
54
|
+
get treasureFx(): {
|
|
55
|
+
readonly floor: number;
|
|
56
|
+
readonly x: number;
|
|
57
|
+
readonly seq: number;
|
|
58
|
+
};
|
|
59
|
+
get bombSearch(): import("./view").BombSearchView | null;
|
|
60
|
+
get fireResponse(): import("./view").FireResponseView | null;
|
|
61
|
+
/** The reader's clock, set from its header on each read without allocating. */
|
|
62
|
+
get clock(): ClockReads;
|
|
63
|
+
congestion(): number;
|
|
64
|
+
peakCongestion(): number;
|
|
65
|
+
floorHeatmap(mode: HeatmapMode): HeatCell[];
|
|
66
|
+
parkingUsage(spots: number): number;
|
|
67
|
+
recyclingFill(): number;
|
|
68
|
+
positionReachable(floor: number, x: number): boolean;
|
|
69
|
+
private queueView;
|
|
70
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { lobbyHalls } from '../render/lobbyHalls.js';
|
|
2
|
+
import { ClockReads } from './clockView.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The renderer's `RenderSim` over the port (facade slice 7, PR 5b): the view
|
|
6
|
+
* reads come from the shared `ViewReader`, the rest from the port's render
|
|
7
|
+
* queries, so the renderer draws either engine through one object. The
|
|
8
|
+
* frame loop updates the reader before the renderer reads it.
|
|
9
|
+
*
|
|
10
|
+
* Costs match the TypeScript engine's: the queue projection is decoded once
|
|
11
|
+
* per tower, game minute and revision (the crowd moves only on a step, and a
|
|
12
|
+
* step moves the clock), so a frame between steps reads the kept one without
|
|
13
|
+
* asking the port; the scene sync's parking set is decoded per call, once
|
|
14
|
+
* per sync.
|
|
15
|
+
*/
|
|
16
|
+
class PortRenderSim {
|
|
17
|
+
constructor(port, reader) {
|
|
18
|
+
this.port = port;
|
|
19
|
+
this.reader = reader;
|
|
20
|
+
this.clockReads = new ClockReads();
|
|
21
|
+
this.queueKey = { gen: NaN, minutes: NaN, revision: NaN };
|
|
22
|
+
this.queue = { landings: new Map(), boarded: new Map() };
|
|
23
|
+
const l = JSON.parse(port.viewLayout());
|
|
24
|
+
this.heatModes = l.heatModes;
|
|
25
|
+
this.heatTints = l.heatTints;
|
|
26
|
+
const tower = Object.create(reader.tower);
|
|
27
|
+
tower.functionalParkingSet = () => new Set(port.parkingSet().subarray(1));
|
|
28
|
+
tower.tallLobbies = () => lobbyHalls(port.lobbyHeights());
|
|
29
|
+
this.tower = tower;
|
|
30
|
+
this.crowd = { people: reader.crowd.people, queueView: () => this.queueView() };
|
|
31
|
+
}
|
|
32
|
+
get mode() {
|
|
33
|
+
return this.reader.header.mode;
|
|
34
|
+
}
|
|
35
|
+
get rng() {
|
|
36
|
+
return { initialSeed: this.reader.header.sceneSeed };
|
|
37
|
+
}
|
|
38
|
+
get view() {
|
|
39
|
+
return this.reader.header.camera;
|
|
40
|
+
}
|
|
41
|
+
get weather() {
|
|
42
|
+
return this.reader.header.weather;
|
|
43
|
+
}
|
|
44
|
+
get population() {
|
|
45
|
+
return this.reader.header.population;
|
|
46
|
+
}
|
|
47
|
+
get santaFxSeq() {
|
|
48
|
+
return this.reader.header.fx.santaSeq;
|
|
49
|
+
}
|
|
50
|
+
get vipFxSeq() {
|
|
51
|
+
return this.reader.header.fx.vipSeq;
|
|
52
|
+
}
|
|
53
|
+
get explosionFx() {
|
|
54
|
+
return this.reader.header.fx.explosion;
|
|
55
|
+
}
|
|
56
|
+
get thiefFx() {
|
|
57
|
+
return this.reader.header.fx.thief;
|
|
58
|
+
}
|
|
59
|
+
get treasureFx() {
|
|
60
|
+
return this.reader.header.fx.treasure;
|
|
61
|
+
}
|
|
62
|
+
get bombSearch() {
|
|
63
|
+
return this.reader.header.bombSearch;
|
|
64
|
+
}
|
|
65
|
+
get fireResponse() {
|
|
66
|
+
return this.reader.header.fireResponse;
|
|
67
|
+
}
|
|
68
|
+
/** The reader's clock, set from its header on each read without allocating. */
|
|
69
|
+
get clock() {
|
|
70
|
+
return this.clockReads.set(this.reader.header);
|
|
71
|
+
}
|
|
72
|
+
congestion() {
|
|
73
|
+
return this.port.congestion();
|
|
74
|
+
}
|
|
75
|
+
peakCongestion() {
|
|
76
|
+
return this.port.hotspot()[0];
|
|
77
|
+
}
|
|
78
|
+
floorHeatmap(mode) {
|
|
79
|
+
const r = this.port.heatCells(this.heatModes.indexOf(mode));
|
|
80
|
+
const cells = [];
|
|
81
|
+
for (let i = 0; i + 5 <= r.length; i += 5) {
|
|
82
|
+
const cell = { floor: r[i], minX: r[i + 1], maxX: r[i + 2], severity: r[i + 3] };
|
|
83
|
+
if (r[i + 4] > 0)
|
|
84
|
+
cell.tint = this.heatTints[r[i + 4]];
|
|
85
|
+
cells.push(cell);
|
|
86
|
+
}
|
|
87
|
+
return cells;
|
|
88
|
+
}
|
|
89
|
+
parkingUsage(spots) {
|
|
90
|
+
return this.port.parkingUsage(spots);
|
|
91
|
+
}
|
|
92
|
+
recyclingFill() {
|
|
93
|
+
return this.port.recyclingFill();
|
|
94
|
+
}
|
|
95
|
+
positionReachable(floor, x) {
|
|
96
|
+
return this.port.positionReachable(floor, x);
|
|
97
|
+
}
|
|
98
|
+
queueView() {
|
|
99
|
+
const h = this.reader.header;
|
|
100
|
+
const k = this.queueKey;
|
|
101
|
+
const gen = this.port.generation();
|
|
102
|
+
if (k.gen === gen && k.minutes === h.minutes && k.revision === h.revision)
|
|
103
|
+
return this.queue;
|
|
104
|
+
const r = this.port.queueView();
|
|
105
|
+
const landings = new Map();
|
|
106
|
+
const boarded = new Map();
|
|
107
|
+
let at = 2;
|
|
108
|
+
for (let i = 0; i < r[0]; i++, at += 4) {
|
|
109
|
+
let floors = landings.get(r[at]);
|
|
110
|
+
if (!floors)
|
|
111
|
+
landings.set(r[at], (floors = new Map()));
|
|
112
|
+
floors.set(r[at + 1], { count: r[at + 2], tier: r[at + 3] });
|
|
113
|
+
}
|
|
114
|
+
for (let i = 0; i < r[1]; i++, at += 3) {
|
|
115
|
+
let cars = boarded.get(r[at]);
|
|
116
|
+
if (!cars)
|
|
117
|
+
boarded.set(r[at], (cars = new Map()));
|
|
118
|
+
cars.set(r[at + 1], r[at + 2]);
|
|
119
|
+
}
|
|
120
|
+
k.gen = gen;
|
|
121
|
+
k.minutes = h.minutes;
|
|
122
|
+
k.revision = h.revision;
|
|
123
|
+
this.queue = { landings, boarded };
|
|
124
|
+
return this.queue;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export { PortRenderSim };
|
|
129
|
+
//# sourceMappingURL=portRenderSim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portRenderSim.js","sources":["../../src/simport/portRenderSim.ts"],"sourcesContent":["import type { ElevatorQueueView, QueueLanding } from \"../shared/engineTypes\";\nimport type { HeatCell, HeatmapMode } from \"../shared/engineTypes\";\nimport type { GameMode, SerializedView, WeatherKind } from \"../shared/types\";\nimport { lobbyHalls, type LobbyHalls } from \"../render/lobbyHalls\";\nimport type { RenderSim, RenderTower } from \"../render/renderSim\";\nimport { ClockReads } from \"./clockView\";\nimport type { EnginePort } from \"./enginePort\";\nimport type { ViewReader } from \"./viewReader\";\nimport type { CrowdView } from \"./view\";\n\n/**\n * The renderer's `RenderSim` over the port (facade slice 7, PR 5b): the view\n * reads come from the shared `ViewReader`, the rest from the port's render\n * queries, so the renderer draws either engine through one object. The\n * frame loop updates the reader before the renderer reads it.\n *\n * Costs match the TypeScript engine's: the queue projection is decoded once\n * per tower, game minute and revision (the crowd moves only on a step, and a\n * step moves the clock), so a frame between steps reads the kept one without\n * asking the port; the scene sync's parking set is decoded per call, once\n * per sync.\n */\nexport class PortRenderSim implements RenderSim {\n private readonly clockReads = new ClockReads();\n readonly tower: RenderTower;\n readonly crowd: CrowdView & { queueView(tower: RenderTower): ElevatorQueueView };\n private readonly heatModes: readonly HeatmapMode[];\n private readonly heatTints: readonly string[];\n private queueKey = { gen: NaN, minutes: NaN, revision: NaN };\n private queue: ElevatorQueueView = { landings: new Map(), boarded: new Map() };\n\n constructor(\n private readonly port: EnginePort,\n private readonly reader: ViewReader,\n ) {\n const l = JSON.parse(port.viewLayout()) as { heatModes: HeatmapMode[]; heatTints: string[] };\n this.heatModes = l.heatModes;\n this.heatTints = l.heatTints;\n const tower = Object.create(reader.tower) as RenderTower & {\n functionalParkingSet: () => ReadonlySet<number>;\n tallLobbies: () => LobbyHalls;\n };\n tower.functionalParkingSet = () => new Set(port.parkingSet().subarray(1));\n tower.tallLobbies = () => lobbyHalls(port.lobbyHeights());\n this.tower = tower;\n this.crowd = { people: reader.crowd.people, queueView: () => this.queueView() };\n }\n\n get mode(): GameMode {\n return this.reader.header.mode;\n }\n get rng(): { readonly initialSeed: number } {\n return { initialSeed: this.reader.header.sceneSeed };\n }\n get view(): SerializedView | null {\n return this.reader.header.camera;\n }\n get weather(): WeatherKind {\n return this.reader.header.weather;\n }\n get population(): number {\n return this.reader.header.population;\n }\n get santaFxSeq(): number {\n return this.reader.header.fx.santaSeq;\n }\n get vipFxSeq(): number {\n return this.reader.header.fx.vipSeq;\n }\n get explosionFx() {\n return this.reader.header.fx.explosion;\n }\n get thiefFx() {\n return this.reader.header.fx.thief;\n }\n get treasureFx() {\n return this.reader.header.fx.treasure;\n }\n get bombSearch() {\n return this.reader.header.bombSearch;\n }\n get fireResponse() {\n return this.reader.header.fireResponse;\n }\n\n /** The reader's clock, set from its header on each read without allocating. */\n get clock(): ClockReads {\n return this.clockReads.set(this.reader.header);\n }\n\n congestion(): number {\n return this.port.congestion();\n }\n peakCongestion(): number {\n return this.port.hotspot()[0];\n }\n floorHeatmap(mode: HeatmapMode): HeatCell[] {\n const r = this.port.heatCells(this.heatModes.indexOf(mode));\n const cells: HeatCell[] = [];\n for (let i = 0; i + 5 <= r.length; i += 5) {\n const cell: HeatCell = { floor: r[i], minX: r[i + 1], maxX: r[i + 2], severity: r[i + 3] };\n if (r[i + 4] > 0) cell.tint = this.heatTints[r[i + 4]] as HeatCell[\"tint\"];\n cells.push(cell);\n }\n return cells;\n }\n parkingUsage(spots: number): number {\n return this.port.parkingUsage(spots);\n }\n recyclingFill(): number {\n return this.port.recyclingFill();\n }\n positionReachable(floor: number, x: number): boolean {\n return this.port.positionReachable(floor, x);\n }\n\n private queueView(): ElevatorQueueView {\n const h = this.reader.header;\n const k = this.queueKey;\n const gen = this.port.generation();\n if (k.gen === gen && k.minutes === h.minutes && k.revision === h.revision) return this.queue;\n const r = this.port.queueView();\n const landings = new Map<number, Map<number, QueueLanding>>();\n const boarded = new Map<number, Map<number, number>>();\n let at = 2;\n for (let i = 0; i < r[0]; i++, at += 4) {\n let floors = landings.get(r[at]);\n if (!floors) landings.set(r[at], (floors = new Map()));\n floors.set(r[at + 1], { count: r[at + 2], tier: r[at + 3] as QueueLanding[\"tier\"] });\n }\n for (let i = 0; i < r[1]; i++, at += 3) {\n let cars = boarded.get(r[at]);\n if (!cars) boarded.set(r[at], (cars = new Map()));\n cars.set(r[at + 1], r[at + 2]);\n }\n k.gen = gen;\n k.minutes = h.minutes;\n k.revision = h.revision;\n this.queue = { landings, boarded };\n return this.queue;\n }\n}\n\n"],"names":[],"mappings":";;;AAUA;;;;;;;;;;;AAWG;MACU,aAAa,CAAA;IASxB,WAAA,CACmB,IAAgB,EAChB,MAAkB,EAAA;QADlB,IAAA,CAAA,IAAI,GAAJ,IAAI;QACJ,IAAA,CAAA,MAAM,GAAN,MAAM;AAVR,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,UAAU,EAAE;AAKtC,QAAA,IAAA,CAAA,QAA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AC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;QAChC;AACA,QAAA,CAAC,CAAC,GAAG,GAAG,GAAG;AACX,QAAA,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO;AACrB,QAAA,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ;QACvB,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE;QAClC,OAAO,IAAI,CAAC,KAAK;IACnB;AACD;;"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { FacilityKind } from "../shared/types";
|
|
2
|
+
import type { CongestionHotspot, HeatCellView, HeatmapMode, HousekeepingCoverageView, OnboardingFacts, StatsReport, TowerStats, TransportDetail, UnitDetail } from "./panels";
|
|
3
|
+
/**
|
|
4
|
+
* Questions the game asks the engine whose answer the engine decides (the
|
|
5
|
+
* consumer inventory's 1Q table). Slice 1 carries the two the build preview
|
|
6
|
+
* and the palette ask most; slice 4 (#1211) adds one member per panel getter
|
|
7
|
+
* (slice 6b, #1214), each answering that getter's JSON (`panels.ts`).
|
|
8
|
+
*/
|
|
9
|
+
export type Query = {
|
|
10
|
+
op: "canBuild";
|
|
11
|
+
kind: FacilityKind;
|
|
12
|
+
floor: number;
|
|
13
|
+
x: number;
|
|
14
|
+
} | {
|
|
15
|
+
op: "isUnlocked";
|
|
16
|
+
kind: FacilityKind;
|
|
17
|
+
} | {
|
|
18
|
+
op: "towerStats";
|
|
19
|
+
} | {
|
|
20
|
+
op: "statsReport";
|
|
21
|
+
} | {
|
|
22
|
+
op: "housekeepingCoverage";
|
|
23
|
+
} | {
|
|
24
|
+
op: "unitDetail";
|
|
25
|
+
id: number;
|
|
26
|
+
} | {
|
|
27
|
+
op: "transportDetail";
|
|
28
|
+
id: number;
|
|
29
|
+
} | {
|
|
30
|
+
op: "floorHeatmap";
|
|
31
|
+
mode: HeatmapMode;
|
|
32
|
+
} | {
|
|
33
|
+
op: "peakCongestionHotspot";
|
|
34
|
+
} | {
|
|
35
|
+
op: "onboardingFacts";
|
|
36
|
+
};
|
|
37
|
+
export interface QueryResults {
|
|
38
|
+
/** Whether a placement would succeed, with the refusal and the quote. */
|
|
39
|
+
canBuild: {
|
|
40
|
+
readonly ok: boolean;
|
|
41
|
+
readonly reason?: string;
|
|
42
|
+
readonly cost: number;
|
|
43
|
+
};
|
|
44
|
+
isUnlocked: boolean;
|
|
45
|
+
/** The HUD strip's counters. */
|
|
46
|
+
towerStats: TowerStats;
|
|
47
|
+
/** Everything the stats screen shows. */
|
|
48
|
+
statsReport: StatsReport;
|
|
49
|
+
housekeepingCoverage: HousekeepingCoverageView;
|
|
50
|
+
/** The unit's card, or null for an id that names no unit. */
|
|
51
|
+
unitDetail: UnitDetail | null;
|
|
52
|
+
/** The shaft's card, or null for an id that names no shaft. */
|
|
53
|
+
transportDetail: TransportDetail | null;
|
|
54
|
+
/** The overlay's painted runs. */
|
|
55
|
+
floorHeatmap: ReadonlyArray<HeatCellView>;
|
|
56
|
+
peakCongestionHotspot: CongestionHotspot;
|
|
57
|
+
onboardingFacts: OnboardingFacts;
|
|
58
|
+
}
|
|
59
|
+
export type QueryOp = Query["op"];
|
|
60
|
+
export type QueryResult<Q extends Query> = QueryResults[Q["op"]];
|
|
61
|
+
/** The key two equal queries share, so `cached` can find the last answer.
|
|
62
|
+
* Built from the fields in a fixed order, so it does not depend on the
|
|
63
|
+
* order a caller wrote them in. */
|
|
64
|
+
export declare function queryKey(q: Query): string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** The key two equal queries share, so `cached` can find the last answer.
|
|
2
|
+
* Built from the fields in a fixed order, so it does not depend on the
|
|
3
|
+
* order a caller wrote them in. */
|
|
4
|
+
function queryKey(q) {
|
|
5
|
+
switch (q.op) {
|
|
6
|
+
case "canBuild":
|
|
7
|
+
return `canBuild:${q.kind}:${q.floor}:${q.x}`;
|
|
8
|
+
case "isUnlocked":
|
|
9
|
+
return `isUnlocked:${q.kind}`;
|
|
10
|
+
case "unitDetail":
|
|
11
|
+
case "transportDetail":
|
|
12
|
+
return `${q.op}:${q.id}`;
|
|
13
|
+
case "floorHeatmap":
|
|
14
|
+
return `floorHeatmap:${q.mode}`;
|
|
15
|
+
case "towerStats":
|
|
16
|
+
case "statsReport":
|
|
17
|
+
case "housekeepingCoverage":
|
|
18
|
+
case "peakCongestionHotspot":
|
|
19
|
+
case "onboardingFacts":
|
|
20
|
+
return q.op;
|
|
21
|
+
default:
|
|
22
|
+
return unknownQuery(q);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function unknownQuery(q) {
|
|
26
|
+
throw new Error(`simport: unknown query ${JSON.stringify(q)}`);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { queryKey };
|
|
30
|
+
//# sourceMappingURL=queries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queries.js","sources":["../../src/simport/queries.ts"],"sourcesContent":["import type { FacilityKind } from \"../shared/types\";\nimport type {\n CongestionHotspot,\n HeatCellView,\n HeatmapMode,\n HousekeepingCoverageView,\n OnboardingFacts,\n StatsReport,\n TowerStats,\n TransportDetail,\n UnitDetail,\n} from \"./panels\";\n\n/**\n * Questions the game asks the engine whose answer the engine decides (the\n * consumer inventory's 1Q table). Slice 1 carries the two the build preview\n * and the palette ask most; slice 4 (#1211) adds one member per panel getter\n * (slice 6b, #1214), each answering that getter's JSON (`panels.ts`).\n */\nexport type Query =\n | { op: \"canBuild\"; kind: FacilityKind; floor: number; x: number }\n | { op: \"isUnlocked\"; kind: FacilityKind }\n | { op: \"towerStats\" }\n | { op: \"statsReport\" }\n | { op: \"housekeepingCoverage\" }\n | { op: \"unitDetail\"; id: number }\n | { op: \"transportDetail\"; id: number }\n | { op: \"floorHeatmap\"; mode: HeatmapMode }\n | { op: \"peakCongestionHotspot\" }\n | { op: \"onboardingFacts\" };\n\nexport interface QueryResults {\n /** Whether a placement would succeed, with the refusal and the quote. */\n canBuild: { readonly ok: boolean; readonly reason?: string; readonly cost: number };\n isUnlocked: boolean;\n /** The HUD strip's counters. */\n towerStats: TowerStats;\n /** Everything the stats screen shows. */\n statsReport: StatsReport;\n housekeepingCoverage: HousekeepingCoverageView;\n /** The unit's card, or null for an id that names no unit. */\n unitDetail: UnitDetail | null;\n /** The shaft's card, or null for an id that names no shaft. */\n transportDetail: TransportDetail | null;\n /** The overlay's painted runs. */\n floorHeatmap: ReadonlyArray<HeatCellView>;\n peakCongestionHotspot: CongestionHotspot;\n onboardingFacts: OnboardingFacts;\n}\n\nexport type QueryOp = Query[\"op\"];\nexport type QueryResult<Q extends Query> = QueryResults[Q[\"op\"]];\n\n/** The key two equal queries share, so `cached` can find the last answer.\n * Built from the fields in a fixed order, so it does not depend on the\n * order a caller wrote them in. */\nexport function queryKey(q: Query): string {\n switch (q.op) {\n case \"canBuild\":\n return `canBuild:${q.kind}:${q.floor}:${q.x}`;\n case \"isUnlocked\":\n return `isUnlocked:${q.kind}`;\n case \"unitDetail\":\n case \"transportDetail\":\n return `${q.op}:${q.id}`;\n case \"floorHeatmap\":\n return `floorHeatmap:${q.mode}`;\n case \"towerStats\":\n case \"statsReport\":\n case \"housekeepingCoverage\":\n case \"peakCongestionHotspot\":\n case \"onboardingFacts\":\n return q.op;\n default:\n return unknownQuery(q);\n }\n}\n\nfunction unknownQuery(q: never): never {\n throw new Error(`simport: unknown query ${JSON.stringify(q)}`);\n}\n"],"names":[],"mappings":"AAqDA;;AAEoC;AAC9B,SAAU,QAAQ,CAAC,CAAQ,EAAA;AAC/B,IAAA,QAAQ,CAAC,CAAC,EAAE;AACV,QAAA,KAAK,UAAU;AACb,YAAA,OAAO,CAAA,SAAA,EAAY,CAAC,CAAC,IAAI,CAAA,CAAA,EAAI,CAAC,CAAC,KAAK,CAAA,CAAA,EAAI,CAAC,CAAC,CAAC,EAAE;AAC/C,QAAA,KAAK,YAAY;AACf,YAAA,OAAO,CAAA,WAAA,EAAc,CAAC,CAAC,IAAI,EAAE;AAC/B,QAAA,KAAK,YAAY;AACjB,QAAA,KAAK,iBAAiB;YACpB,OAAO,CAAA,EAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAA,CAAE;AAC1B,QAAA,KAAK,cAAc;AACjB,YAAA,OAAO,CAAA,aAAA,EAAgB,CAAC,CAAC,IAAI,EAAE;AACjC,QAAA,KAAK,YAAY;AACjB,QAAA,KAAK,aAAa;AAClB,QAAA,KAAK,sBAAsB;AAC3B,QAAA,KAAK,uBAAuB;AAC5B,QAAA,KAAK,iBAAiB;YACpB,OAAO,CAAC,CAAC,EAAE;AACb,QAAA;AACE,YAAA,OAAO,YAAY,CAAC,CAAC,CAAC;;AAE5B;AAEA,SAAS,YAAY,CAAC,CAAQ,EAAA;AAC5B,IAAA,MAAM,IAAI,KAAK,CAAC,CAAA,uBAAA,EAA0B,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA,CAAE,CAAC;AAChE;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PortRecord } from "./enginePort";
|
|
2
|
+
/** What the working recycling centers serve and process. */
|
|
3
|
+
export interface EnginePortRecycling {
|
|
4
|
+
/** The population the working recycling centers can process. */
|
|
5
|
+
recyclingCapacity(): number;
|
|
6
|
+
/** Whether the working recycling centers can process the whole population. */
|
|
7
|
+
recyclingDemandMet(): boolean;
|
|
8
|
+
/** The recycling card from one read (#1745), as `recyclingCard` slots:
|
|
9
|
+
* the population the centers serve (the one the verdict uses), what they
|
|
10
|
+
* can process, the bins' fill from 0 to 1, and 1 when the demand is met
|
|
11
|
+
* or 0. */
|
|
12
|
+
recyclingCard(): PortRecord;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recyclingPort.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Command } from "./commands";
|
|
2
|
+
/**
|
|
3
|
+
* The port's check of a command's shape, which every adapter runs before the
|
|
4
|
+
* engine sees the command. The web's commands are typed and always well
|
|
5
|
+
* formed; another frontend, a relay or a worker message may hand the port
|
|
6
|
+
* anything, and the two engines read a malformed argument differently (the
|
|
7
|
+
* Rust binding's glue turns NaN into 0 for a whole-number parameter and
|
|
8
|
+
* throws on a kind it does not know, where TypeScript refuses some and
|
|
9
|
+
* applies others). So the port refuses such a command itself, the same way
|
|
10
|
+
* on every adapter, before anything moves.
|
|
11
|
+
*
|
|
12
|
+
* Only the shape is checked here: an id that names nothing, a floor off the
|
|
13
|
+
* lot or a price out of range are well formed, and the engine refuses them
|
|
14
|
+
* with its own reason. A schedule is the engine's to harden whatever its
|
|
15
|
+
* fields say (`tower.setSchedule`); the port checks only that it is plain
|
|
16
|
+
* data the host can copy to the Rust engine (see {@link plain}).
|
|
17
|
+
*/
|
|
18
|
+
/** The refusal reason for a malformed command: the engine's own
|
|
19
|
+
* (`INVALID_REQUEST` in `src/engine/request.ts`; `tsSimCommands.test.ts`
|
|
20
|
+
* pins the two to the same text). */
|
|
21
|
+
export declare const INVALID_COMMAND = "That request is not valid.";
|
|
22
|
+
/** The refusal reason when a build or a car change costs more than the cash on
|
|
23
|
+
* hand. The web compares an outcome's reason against it to tell a money refusal
|
|
24
|
+
* (which speaks) from the others (which stay quiet). The engine's own text is
|
|
25
|
+
* `NOT_ENOUGH_MONEY` in `engine-rs/src/charges.rs`; `request.test.ts` and
|
|
26
|
+
* `charges_tests.rs` pin both to the same words. */
|
|
27
|
+
export declare const NOT_ENOUGH_MONEY = "Not enough money.";
|
|
28
|
+
/** The most tiles one brush command may carry. The web's brush sends
|
|
29
|
+
* `STRUCTURE_BRUSH` (8); the cap keeps a hostile request's repeated passes
|
|
30
|
+
* (at most one per tile) small. Both engines refuse more with the same
|
|
31
|
+
* limit (`BRUSH_TILE_LIMIT`, pinned to this one). */
|
|
32
|
+
export declare const MAX_BRUSH_TILES = 32;
|
|
33
|
+
/** The longest text one command may store (a tower name, a label, a
|
|
34
|
+
* bulletin). The web's own are far shorter (a name box holds 28); the cap
|
|
35
|
+
* keeps a hostile request from growing every save and undo step. The Rust
|
|
36
|
+
* port refuses the same length on `labelUnit`, `nameTower` and `logLine`
|
|
37
|
+
* (`MAX_TEXT` in `engine-rs/src/wasm_port_edit.rs`, #1405). */
|
|
38
|
+
export declare const MAX_TEXT = 4096;
|
|
39
|
+
/** Whether `c` is a command the port knows, with every field of the type its
|
|
40
|
+
* command declares. `isKind` says whether a value names a facility in the
|
|
41
|
+
* tower's catalog. Constant work per command: one check per tile (at most
|
|
42
|
+
* {@link MAX_BRUSH_TILES}) for a brush, and at most {@link MAX_VALUES} values
|
|
43
|
+
* and {@link MAX_TEXT} characters for a schedule or camera. */
|
|
44
|
+
export declare function wellFormed(c: unknown, isKind: (kind: unknown) => boolean): c is Command;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The port's check of a command's shape, which every adapter runs before the
|
|
3
|
+
* engine sees the command. The web's commands are typed and always well
|
|
4
|
+
* formed; another frontend, a relay or a worker message may hand the port
|
|
5
|
+
* anything, and the two engines read a malformed argument differently (the
|
|
6
|
+
* Rust binding's glue turns NaN into 0 for a whole-number parameter and
|
|
7
|
+
* throws on a kind it does not know, where TypeScript refuses some and
|
|
8
|
+
* applies others). So the port refuses such a command itself, the same way
|
|
9
|
+
* on every adapter, before anything moves.
|
|
10
|
+
*
|
|
11
|
+
* Only the shape is checked here: an id that names nothing, a floor off the
|
|
12
|
+
* lot or a price out of range are well formed, and the engine refuses them
|
|
13
|
+
* with its own reason. A schedule is the engine's to harden whatever its
|
|
14
|
+
* fields say (`tower.setSchedule`); the port checks only that it is plain
|
|
15
|
+
* data the host can copy to the Rust engine (see {@link plain}).
|
|
16
|
+
*/
|
|
17
|
+
/** The refusal reason for a malformed command: the engine's own
|
|
18
|
+
* (`INVALID_REQUEST` in `src/engine/request.ts`; `tsSimCommands.test.ts`
|
|
19
|
+
* pins the two to the same text). */
|
|
20
|
+
const INVALID_COMMAND = "That request is not valid.";
|
|
21
|
+
/** The refusal reason when a build or a car change costs more than the cash on
|
|
22
|
+
* hand. The web compares an outcome's reason against it to tell a money refusal
|
|
23
|
+
* (which speaks) from the others (which stay quiet). The engine's own text is
|
|
24
|
+
* `NOT_ENOUGH_MONEY` in `engine-rs/src/charges.rs`; `request.test.ts` and
|
|
25
|
+
* `charges_tests.rs` pin both to the same words. */
|
|
26
|
+
const NOT_ENOUGH_MONEY = "Not enough money.";
|
|
27
|
+
/** The most tiles one brush command may carry. The web's brush sends
|
|
28
|
+
* `STRUCTURE_BRUSH` (8); the cap keeps a hostile request's repeated passes
|
|
29
|
+
* (at most one per tile) small. Both engines refuse more with the same
|
|
30
|
+
* limit (`BRUSH_TILE_LIMIT`, pinned to this one). */
|
|
31
|
+
const MAX_BRUSH_TILES = 32;
|
|
32
|
+
/** The longest text one command may store (a tower name, a label, a
|
|
33
|
+
* bulletin). The web's own are far shorter (a name box holds 28); the cap
|
|
34
|
+
* keeps a hostile request from growing every save and undo step. The Rust
|
|
35
|
+
* port refuses the same length on `labelUnit`, `nameTower` and `logLine`
|
|
36
|
+
* (`MAX_TEXT` in `engine-rs/src/wasm_port_edit.rs`, #1405). */
|
|
37
|
+
const MAX_TEXT = 4096;
|
|
38
|
+
/** A whole number both engines read the same way: the Rust binding takes
|
|
39
|
+
* floors, columns and ids as 32-bit integers and wraps anything wider. */
|
|
40
|
+
const whole = (v) => typeof v === "number" && Number.isInteger(v) && v >= -(2 ** 31) && v <= 2 ** 31 - 1;
|
|
41
|
+
const finite = (v) => typeof v === "number" && Number.isFinite(v);
|
|
42
|
+
const flag = (v) => typeof v === "boolean";
|
|
43
|
+
const text = (v) => typeof v === "string" && v.length <= MAX_TEXT;
|
|
44
|
+
/** One of a string union's values. The record lists every value once, so a
|
|
45
|
+
* value added to the type fails to compile until it is listed here. */
|
|
46
|
+
const member = (values) => (v) => typeof v === "string" && Object.prototype.hasOwnProperty.call(values, v);
|
|
47
|
+
const method = member({ sell: true, bulldoze: true });
|
|
48
|
+
const end = member({ up: true, down: true });
|
|
49
|
+
const policy = member({ auto: true, feature: true, blockbuster: true, revival: true, off: true });
|
|
50
|
+
const logKind = member({ info: true, good: true, bad: true, money: true });
|
|
51
|
+
const brushKind = member({ floor: true, lobby: true });
|
|
52
|
+
const batchTarget = (v) => v === "default" || v === "noRate" || finite(v);
|
|
53
|
+
/** A brush's tiles: a dense array of whole numbers, no longer than
|
|
54
|
+
* {@link MAX_BRUSH_TILES}. An index walk, so a hole counts as a bad tile,
|
|
55
|
+
* and a getter is refused as in {@link plain}, so the check reads the
|
|
56
|
+
* values the engine then copies. */
|
|
57
|
+
function tileList(v) {
|
|
58
|
+
if (!Array.isArray(v) || v.length > MAX_BRUSH_TILES)
|
|
59
|
+
return false;
|
|
60
|
+
for (let i = 0; i < v.length; i++) {
|
|
61
|
+
const at = dataAt(v, i);
|
|
62
|
+
if (at === undefined || !whole(at.value))
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
const none = () => true;
|
|
68
|
+
const id = (c) => whole(c.id);
|
|
69
|
+
/** A camera position the save carries: null, or plain data with a tile and
|
|
70
|
+
* floor and an optional zoom (null reads as absent, as on load). */
|
|
71
|
+
function view(v) {
|
|
72
|
+
if (v === null)
|
|
73
|
+
return true;
|
|
74
|
+
if (!plain(v) || typeof v !== "object" || Array.isArray(v))
|
|
75
|
+
return false;
|
|
76
|
+
const at = v;
|
|
77
|
+
return finite(at.tile) && finite(at.floor) && (at.zoom === undefined || at.zoom === null || finite(at.zoom));
|
|
78
|
+
}
|
|
79
|
+
/** The most values {@link plain} reads in one command: a schedule holds
|
|
80
|
+
* about 60 (two rows of 24 hours, a home floor per car and two settings). */
|
|
81
|
+
const MAX_VALUES = 256;
|
|
82
|
+
const SURROGATE = /[\uD800-\uDFFF]/;
|
|
83
|
+
const SURROGATE_PAIR = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
84
|
+
/** Whether `t` holds a lone UTF-16 surrogate. JSON text carries one as an
|
|
85
|
+
* escape that the Rust engine's parser refuses, so the host would fail to
|
|
86
|
+
* copy the value. Written as "take out every pair, then look for a
|
|
87
|
+
* survivor" (as `towerFileCodec.ts` does) rather than with lookbehind, which
|
|
88
|
+
* is a parse-time SyntaxError on Safari below 16.4; text with no surrogate
|
|
89
|
+
* at all, the usual case, skips the copy. */
|
|
90
|
+
const loneSurrogate = (t) => SURROGATE.test(t) && SURROGATE.test(t.replace(SURROGATE_PAIR, ""));
|
|
91
|
+
/** A property's value when it is plain data (a hole reads as undefined), or
|
|
92
|
+
* `undefined` for a getter, which would run the caller's code during the
|
|
93
|
+
* check and could answer differently when the engine reads it. */
|
|
94
|
+
function dataAt(o, k) {
|
|
95
|
+
const d = Object.getOwnPropertyDescriptor(o, k);
|
|
96
|
+
if (d === undefined)
|
|
97
|
+
return { value: undefined };
|
|
98
|
+
return "value" in d ? { value: d.value } : undefined;
|
|
99
|
+
}
|
|
100
|
+
/** Plain data the host can copy to the Rust engine as JSON: numbers,
|
|
101
|
+
* strings, booleans, null and undefined, in arrays and plain objects at
|
|
102
|
+
* most 4 levels deep, {@link MAX_VALUES} values and {@link MAX_TEXT}
|
|
103
|
+
* characters of strings and keys in all. A BigInt, a function, a class
|
|
104
|
+
* instance (an array subclass included), a getter, an own `toJSON`, a
|
|
105
|
+
* cycle, a huge sparse array or a string with a lone surrogate is
|
|
106
|
+
* refused, since the copy would throw, run caller code, walk every slot or
|
|
107
|
+
* fail to parse in the Rust engine.
|
|
108
|
+
*
|
|
109
|
+
* Three costs fall outside the budget: an object's keys are listed before
|
|
110
|
+
* it counts them, a Proxy's traps still run, and a getter on the command
|
|
111
|
+
* itself (`schedule`, `view`, `tiles`) is read here and again by the
|
|
112
|
+
* handler. Only code in the page can build a Proxy or a getter; a worker
|
|
113
|
+
* message is a structured clone of plain data, whose keys the clone has
|
|
114
|
+
* already paid to copy. */
|
|
115
|
+
function plain(v) {
|
|
116
|
+
let left = MAX_VALUES;
|
|
117
|
+
let chars = MAX_TEXT;
|
|
118
|
+
const str = (t) => (chars -= t.length) >= 0 && !loneSurrogate(t);
|
|
119
|
+
const walk = (x, depth) => {
|
|
120
|
+
if (--left < 0)
|
|
121
|
+
return false;
|
|
122
|
+
switch (typeof x) {
|
|
123
|
+
case "string":
|
|
124
|
+
return str(x);
|
|
125
|
+
case "number":
|
|
126
|
+
case "boolean":
|
|
127
|
+
case "undefined":
|
|
128
|
+
return true;
|
|
129
|
+
case "object":
|
|
130
|
+
break;
|
|
131
|
+
default:
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
if (x === null)
|
|
135
|
+
return true;
|
|
136
|
+
if (depth >= 4)
|
|
137
|
+
return false;
|
|
138
|
+
// The copy calls an own `toJSON` even when no key lists it.
|
|
139
|
+
if (Object.prototype.hasOwnProperty.call(x, "toJSON"))
|
|
140
|
+
return false;
|
|
141
|
+
if (Array.isArray(x)) {
|
|
142
|
+
if (Object.getPrototypeOf(x) !== Array.prototype)
|
|
143
|
+
return false;
|
|
144
|
+
if (x.length > left)
|
|
145
|
+
return false;
|
|
146
|
+
for (let i = 0; i < x.length; i++) {
|
|
147
|
+
const at = dataAt(x, i);
|
|
148
|
+
if (at === undefined || !walk(at.value, depth + 1))
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
return true;
|
|
152
|
+
}
|
|
153
|
+
const proto = Object.getPrototypeOf(x);
|
|
154
|
+
if (proto !== Object.prototype && proto !== null)
|
|
155
|
+
return false;
|
|
156
|
+
const keys = Object.keys(x);
|
|
157
|
+
if (keys.length > left)
|
|
158
|
+
return false;
|
|
159
|
+
for (const k of keys) {
|
|
160
|
+
const at = dataAt(x, k);
|
|
161
|
+
if (at === undefined || !str(k) || !walk(at.value, depth + 1))
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
return true;
|
|
165
|
+
};
|
|
166
|
+
return walk(v, 0);
|
|
167
|
+
}
|
|
168
|
+
/** One check per command, keyed like the command list, so a command added
|
|
169
|
+
* there fails to compile until it is classified here. */
|
|
170
|
+
const CHECKS = {
|
|
171
|
+
build: (c, isKind) => isKind(c.kind) && whole(c.floor) && whole(c.x),
|
|
172
|
+
paintBrush: (c) => brushKind(c.kind) && whole(c.floor) && tileList(c.tiles),
|
|
173
|
+
buildTransport: (c, isKind) => isKind(c.kind) && whole(c.x) && whole(c.bottom) && whole(c.top),
|
|
174
|
+
removeFacility: (c) => whole(c.id) && method(c.method),
|
|
175
|
+
beginExtend: id,
|
|
176
|
+
extendTransport: (c) => whole(c.id) && end(c.end) && whole(c.targetFloor),
|
|
177
|
+
endExtend: none,
|
|
178
|
+
addCar: id,
|
|
179
|
+
removeCar: id,
|
|
180
|
+
setStop: (c) => whole(c.id) && whole(c.floor) && flag(c.stop),
|
|
181
|
+
setExpressStops: id,
|
|
182
|
+
clearStops: id,
|
|
183
|
+
setSchedule: (c) => whole(c.id) && plain(c.schedule),
|
|
184
|
+
setLabel: (c) => whole(c.id) && text(c.label),
|
|
185
|
+
adjustRent: (c) => whole(c.id) && (c.dir === 1 || c.dir === -1),
|
|
186
|
+
setNoRate: id,
|
|
187
|
+
priceUnit: (c) => whole(c.id) && finite(c.target),
|
|
188
|
+
applyRentBatch: (c, isKind) => isKind(c.kind) && batchTarget(c.target) && (c.onlyDefaultPriced === undefined || flag(c.onlyDefaultPriced)),
|
|
189
|
+
setFilmPolicy: (c) => whole(c.id) && policy(c.policy),
|
|
190
|
+
rerollSubtype: id,
|
|
191
|
+
callExterminator: none,
|
|
192
|
+
resolveChoice: (c) => flag(c.accept),
|
|
193
|
+
toggleAutoBridge: none,
|
|
194
|
+
setAutoBridge: (c) => flag(c.value),
|
|
195
|
+
setTowerName: (c) => text(c.name),
|
|
196
|
+
setView: (c) => view(c.view),
|
|
197
|
+
emit: (c) => text(c.text) && (c.kind === undefined || logKind(c.kind)),
|
|
198
|
+
};
|
|
199
|
+
/** Whether `c` is a command the port knows, with every field of the type its
|
|
200
|
+
* command declares. `isKind` says whether a value names a facility in the
|
|
201
|
+
* tower's catalog. Constant work per command: one check per tile (at most
|
|
202
|
+
* {@link MAX_BRUSH_TILES}) for a brush, and at most {@link MAX_VALUES} values
|
|
203
|
+
* and {@link MAX_TEXT} characters for a schedule or camera. */
|
|
204
|
+
function wellFormed(c, isKind) {
|
|
205
|
+
if (typeof c !== "object" || c === null)
|
|
206
|
+
return false;
|
|
207
|
+
const op = c.op;
|
|
208
|
+
if (typeof op !== "string" || !Object.prototype.hasOwnProperty.call(CHECKS, op))
|
|
209
|
+
return false;
|
|
210
|
+
return CHECKS[op](c, isKind);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export { INVALID_COMMAND, MAX_BRUSH_TILES, MAX_TEXT, NOT_ENOUGH_MONEY, wellFormed };
|
|
214
|
+
//# sourceMappingURL=request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sources":["../../src/simport/request.ts"],"sourcesContent":["import type { Command, CommandOp } from \"./commands\";\n\n/**\n * The port's check of a command's shape, which every adapter runs before the\n * engine sees the command. The web's commands are typed and always well\n * formed; another frontend, a relay or a worker message may hand the port\n * anything, and the two engines read a malformed argument differently (the\n * Rust binding's glue turns NaN into 0 for a whole-number parameter and\n * throws on a kind it does not know, where TypeScript refuses some and\n * applies others). So the port refuses such a command itself, the same way\n * on every adapter, before anything moves.\n *\n * Only the shape is checked here: an id that names nothing, a floor off the\n * lot or a price out of range are well formed, and the engine refuses them\n * with its own reason. A schedule is the engine's to harden whatever its\n * fields say (`tower.setSchedule`); the port checks only that it is plain\n * data the host can copy to the Rust engine (see {@link plain}).\n */\n\n/** The refusal reason for a malformed command: the engine's own\n * (`INVALID_REQUEST` in `src/engine/request.ts`; `tsSimCommands.test.ts`\n * pins the two to the same text). */\nexport const INVALID_COMMAND = \"That request is not valid.\";\n\n/** The refusal reason when a build or a car change costs more than the cash on\n * hand. The web compares an outcome's reason against it to tell a money refusal\n * (which speaks) from the others (which stay quiet). The engine's own text is\n * `NOT_ENOUGH_MONEY` in `engine-rs/src/charges.rs`; `request.test.ts` and\n * `charges_tests.rs` pin both to the same words. */\nexport const NOT_ENOUGH_MONEY = \"Not enough money.\";\n\n/** The most tiles one brush command may carry. The web's brush sends\n * `STRUCTURE_BRUSH` (8); the cap keeps a hostile request's repeated passes\n * (at most one per tile) small. Both engines refuse more with the same\n * limit (`BRUSH_TILE_LIMIT`, pinned to this one). */\nexport const MAX_BRUSH_TILES = 32;\n\n/** The longest text one command may store (a tower name, a label, a\n * bulletin). The web's own are far shorter (a name box holds 28); the cap\n * keeps a hostile request from growing every save and undo step. The Rust\n * port refuses the same length on `labelUnit`, `nameTower` and `logLine`\n * (`MAX_TEXT` in `engine-rs/src/wasm_port_edit.rs`, #1405). */\nexport const MAX_TEXT = 4096;\n\ntype Fields = Readonly<Record<string, unknown>>;\ntype Check = (c: Fields, isKind: (kind: unknown) => boolean) => boolean;\n/** The type a command declares for one of its fields. */\ntype Field<O extends CommandOp, K extends string> = Extract<Command, { op: O }>[K & keyof Extract<Command, { op: O }>];\n\n/** A whole number both engines read the same way: the Rust binding takes\n * floors, columns and ids as 32-bit integers and wraps anything wider. */\nconst whole = (v: unknown): boolean => typeof v === \"number\" && Number.isInteger(v) && v >= -(2 ** 31) && v <= 2 ** 31 - 1;\nconst finite = (v: unknown): boolean => typeof v === \"number\" && Number.isFinite(v);\nconst flag = (v: unknown): boolean => typeof v === \"boolean\";\nconst text = (v: unknown): boolean => typeof v === \"string\" && v.length <= MAX_TEXT;\n/** One of a string union's values. The record lists every value once, so a\n * value added to the type fails to compile until it is listed here. */\nconst member =\n <T extends string>(values: Readonly<Record<T, true>>) =>\n (v: unknown): boolean =>\n typeof v === \"string\" && Object.prototype.hasOwnProperty.call(values, v);\n\nconst method = member<Field<\"removeFacility\", \"method\">>({ sell: true, bulldoze: true });\nconst end = member<Field<\"extendTransport\", \"end\">>({ up: true, down: true });\nconst policy = member<Field<\"setFilmPolicy\", \"policy\">>({ auto: true, feature: true, blockbuster: true, revival: true, off: true });\nconst logKind = member<NonNullable<Field<\"emit\", \"kind\">>>({ info: true, good: true, bad: true, money: true });\nconst brushKind = member<Field<\"paintBrush\", \"kind\">>({ floor: true, lobby: true });\nconst batchTarget = (v: unknown): boolean => v === \"default\" || v === \"noRate\" || finite(v);\n\n/** A brush's tiles: a dense array of whole numbers, no longer than\n * {@link MAX_BRUSH_TILES}. An index walk, so a hole counts as a bad tile,\n * and a getter is refused as in {@link plain}, so the check reads the\n * values the engine then copies. */\nfunction tileList(v: unknown): boolean {\n if (!Array.isArray(v) || v.length > MAX_BRUSH_TILES) return false;\n for (let i = 0; i < v.length; i++) {\n const at = dataAt(v, i);\n if (at === undefined || !whole(at.value)) return false;\n }\n return true;\n}\nconst none: Check = () => true;\nconst id: Check = (c) => whole(c.id);\n\n/** A camera position the save carries: null, or plain data with a tile and\n * floor and an optional zoom (null reads as absent, as on load). */\nfunction view(v: unknown): boolean {\n if (v === null) return true;\n if (!plain(v) || typeof v !== \"object\" || Array.isArray(v)) return false;\n const at = v as Fields;\n return finite(at.tile) && finite(at.floor) && (at.zoom === undefined || at.zoom === null || finite(at.zoom));\n}\n\n/** The most values {@link plain} reads in one command: a schedule holds\n * about 60 (two rows of 24 hours, a home floor per car and two settings). */\nconst MAX_VALUES = 256;\n\nconst SURROGATE = /[\\uD800-\\uDFFF]/;\nconst SURROGATE_PAIR = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n\n/** Whether `t` holds a lone UTF-16 surrogate. JSON text carries one as an\n * escape that the Rust engine's parser refuses, so the host would fail to\n * copy the value. Written as \"take out every pair, then look for a\n * survivor\" (as `towerFileCodec.ts` does) rather than with lookbehind, which\n * is a parse-time SyntaxError on Safari below 16.4; text with no surrogate\n * at all, the usual case, skips the copy. */\nconst loneSurrogate = (t: string): boolean => SURROGATE.test(t) && SURROGATE.test(t.replace(SURROGATE_PAIR, \"\"));\n\n/** A property's value when it is plain data (a hole reads as undefined), or\n * `undefined` for a getter, which would run the caller's code during the\n * check and could answer differently when the engine reads it. */\nfunction dataAt(o: object, k: string | number): { readonly value: unknown } | undefined {\n const d = Object.getOwnPropertyDescriptor(o, k);\n if (d === undefined) return { value: undefined };\n return \"value\" in d ? { value: d.value } : undefined;\n}\n\n/** Plain data the host can copy to the Rust engine as JSON: numbers,\n * strings, booleans, null and undefined, in arrays and plain objects at\n * most 4 levels deep, {@link MAX_VALUES} values and {@link MAX_TEXT}\n * characters of strings and keys in all. A BigInt, a function, a class\n * instance (an array subclass included), a getter, an own `toJSON`, a\n * cycle, a huge sparse array or a string with a lone surrogate is\n * refused, since the copy would throw, run caller code, walk every slot or\n * fail to parse in the Rust engine.\n *\n * Three costs fall outside the budget: an object's keys are listed before\n * it counts them, a Proxy's traps still run, and a getter on the command\n * itself (`schedule`, `view`, `tiles`) is read here and again by the\n * handler. Only code in the page can build a Proxy or a getter; a worker\n * message is a structured clone of plain data, whose keys the clone has\n * already paid to copy. */\nfunction plain(v: unknown): boolean {\n let left = MAX_VALUES;\n let chars = MAX_TEXT;\n const str = (t: string): boolean => (chars -= t.length) >= 0 && !loneSurrogate(t);\n const walk = (x: unknown, depth: number): boolean => {\n if (--left < 0) return false;\n switch (typeof x) {\n case \"string\":\n return str(x);\n case \"number\":\n case \"boolean\":\n case \"undefined\":\n return true;\n case \"object\":\n break;\n default:\n return false;\n }\n if (x === null) return true;\n if (depth >= 4) return false;\n // The copy calls an own `toJSON` even when no key lists it.\n if (Object.prototype.hasOwnProperty.call(x, \"toJSON\")) return false;\n if (Array.isArray(x)) {\n if (Object.getPrototypeOf(x) !== Array.prototype) return false;\n if (x.length > left) return false;\n for (let i = 0; i < x.length; i++) {\n const at = dataAt(x, i);\n if (at === undefined || !walk(at.value, depth + 1)) return false;\n }\n return true;\n }\n const proto: unknown = Object.getPrototypeOf(x);\n if (proto !== Object.prototype && proto !== null) return false;\n const keys = Object.keys(x);\n if (keys.length > left) return false;\n for (const k of keys) {\n const at = dataAt(x, k);\n if (at === undefined || !str(k) || !walk(at.value, depth + 1)) return false;\n }\n return true;\n };\n return walk(v, 0);\n}\n\n/** One check per command, keyed like the command list, so a command added\n * there fails to compile until it is classified here. */\nconst CHECKS: { readonly [K in CommandOp]: Check } = {\n build: (c, isKind) => isKind(c.kind) && whole(c.floor) && whole(c.x),\n paintBrush: (c) => brushKind(c.kind) && whole(c.floor) && tileList(c.tiles),\n buildTransport: (c, isKind) => isKind(c.kind) && whole(c.x) && whole(c.bottom) && whole(c.top),\n removeFacility: (c) => whole(c.id) && method(c.method),\n beginExtend: id,\n extendTransport: (c) => whole(c.id) && end(c.end) && whole(c.targetFloor),\n endExtend: none,\n addCar: id,\n removeCar: id,\n setStop: (c) => whole(c.id) && whole(c.floor) && flag(c.stop),\n setExpressStops: id,\n clearStops: id,\n setSchedule: (c) => whole(c.id) && plain(c.schedule),\n setLabel: (c) => whole(c.id) && text(c.label),\n adjustRent: (c) => whole(c.id) && (c.dir === 1 || c.dir === -1),\n setNoRate: id,\n priceUnit: (c) => whole(c.id) && finite(c.target),\n applyRentBatch: (c, isKind) => isKind(c.kind) && batchTarget(c.target) && (c.onlyDefaultPriced === undefined || flag(c.onlyDefaultPriced)),\n setFilmPolicy: (c) => whole(c.id) && policy(c.policy),\n rerollSubtype: id,\n callExterminator: none,\n resolveChoice: (c) => flag(c.accept),\n toggleAutoBridge: none,\n setAutoBridge: (c) => flag(c.value),\n setTowerName: (c) => text(c.name),\n setView: (c) => view(c.view),\n emit: (c) => text(c.text) && (c.kind === undefined || logKind(c.kind)),\n};\n\n/** Whether `c` is a command the port knows, with every field of the type its\n * command declares. `isKind` says whether a value names a facility in the\n * tower's catalog. Constant work per command: one check per tile (at most\n * {@link MAX_BRUSH_TILES}) for a brush, and at most {@link MAX_VALUES} values\n * and {@link MAX_TEXT} characters for a schedule or camera. */\nexport function wellFormed(c: unknown, isKind: (kind: unknown) => boolean): c is Command {\n if (typeof c !== \"object\" || c === null) return false;\n const op = (c as Fields).op;\n if (typeof op !== \"string\" || !Object.prototype.hasOwnProperty.call(CHECKS, op)) return false;\n return CHECKS[op as CommandOp](c as Fields, isKind);\n}\n"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;AAeG;AAEH;;AAEsC;AAC/B,MAAM,eAAe,GAAG;AAE/B;;;;AAIqD;AAC9C,MAAM,gBAAgB,GAAG;AAEhC;;;AAGsD;AAC/C,MAAM,eAAe,GAAG;AAE/B;;;;AAIgE;AACzD,MAAM,QAAQ,GAAG;AAOxB;AAC2E;AAC3E,MAAM,KAAK,GAAG,CAAC,CAAU,KAAc,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;AAC1H,MAAM,MAAM,GAAG,CAAC,CAAU,KAAc,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AACnF,MAAM,IAAI,GAAG,CAAC,CAAU,KAAc,OAAO,CAAC,KAAK,SAAS;AAC5D,MAAM,IAAI,GAAG,CAAC,CAAU,KAAc,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,MAAM,IAAI,QAAQ;AACnF;AACwE;AACxE,MAAM,MAAM,GACV,CAAmB,MAAiC,KACpD,CAAC,CAAU,KACT,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;AAE5E,MAAM,MAAM,GAAG,MAAM,CAAoC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACxF,MAAM,GAAG,GAAG,MAAM,CAAkC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI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