@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,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The 1994 `.TDT` reports' numbers, read off the port's `loadTdt` and
|
|
3
|
+
* `tdtExport` records by the layout's slot names (`records.loadTdt`,
|
|
4
|
+
* `records.tdtExport`), in the order both engines write them
|
|
5
|
+
* (`engine-rs/src/wasm_port_files.rs`, `src/engine/port/files.ts`). The
|
|
6
|
+
* sentences stay with `tdtImportReport.ts` and `tdtExportReport.ts`. Read once
|
|
7
|
+
* per file, never per frame.
|
|
8
|
+
*/
|
|
9
|
+
const IMPORT_COUNTS = [
|
|
10
|
+
"rooms",
|
|
11
|
+
"offices",
|
|
12
|
+
"occupiedOffices",
|
|
13
|
+
"condos",
|
|
14
|
+
"soldCondos",
|
|
15
|
+
"hotelRooms",
|
|
16
|
+
"hotelAsleep",
|
|
17
|
+
"hotelDirty",
|
|
18
|
+
"hotelBooked",
|
|
19
|
+
"asleepConverted",
|
|
20
|
+
"infested",
|
|
21
|
+
"venues",
|
|
22
|
+
"services",
|
|
23
|
+
"parkingStalls",
|
|
24
|
+
"construction",
|
|
25
|
+
"rentsApplied",
|
|
26
|
+
"twinRooms",
|
|
27
|
+
"secom",
|
|
28
|
+
"cathedral",
|
|
29
|
+
"burned",
|
|
30
|
+
"unknown",
|
|
31
|
+
"droppedFloors",
|
|
32
|
+
"offLot",
|
|
33
|
+
"overlapping",
|
|
34
|
+
"misplaced",
|
|
35
|
+
"clamped",
|
|
36
|
+
"widthMismatch",
|
|
37
|
+
"residentsSeeded",
|
|
38
|
+
];
|
|
39
|
+
const EXPORT_COUNTS = [
|
|
40
|
+
"rooms",
|
|
41
|
+
"rentsSnapped",
|
|
42
|
+
"namesDropped",
|
|
43
|
+
"hotelStates",
|
|
44
|
+
"occupied",
|
|
45
|
+
"construction",
|
|
46
|
+
"parkingStalls",
|
|
47
|
+
"burnedOut",
|
|
48
|
+
"vacancyHistoryLost",
|
|
49
|
+
"outOfRange",
|
|
50
|
+
"retailRowsDropped",
|
|
51
|
+
];
|
|
52
|
+
const ENCODE_STATS = [
|
|
53
|
+
"balance",
|
|
54
|
+
"money",
|
|
55
|
+
"star",
|
|
56
|
+
"shaftsDropped",
|
|
57
|
+
"shaftsColliding",
|
|
58
|
+
"flightsDropped",
|
|
59
|
+
"transportsDropped",
|
|
60
|
+
"elevatorsLen",
|
|
61
|
+
"walkwaysLen",
|
|
62
|
+
"expressLen",
|
|
63
|
+
];
|
|
64
|
+
/** The record's slots by name. */
|
|
65
|
+
function slots(rec, names) {
|
|
66
|
+
return (name) => rec[names.indexOf(name)];
|
|
67
|
+
}
|
|
68
|
+
function pick(at, keys) {
|
|
69
|
+
return Object.fromEntries(keys.map((k) => [k, at(k)]));
|
|
70
|
+
}
|
|
71
|
+
const orNull = (v) => (Number.isNaN(v) ? null : v);
|
|
72
|
+
/** A done `loadTdt`'s import report numbers, with the staged file's notes
|
|
73
|
+
* and name from `tdtNote` and `tdtTowerName`. */
|
|
74
|
+
function importFacts(rec, codes, port) {
|
|
75
|
+
const at = slots(rec, codes.fields("loadTdt"));
|
|
76
|
+
const notes = [];
|
|
77
|
+
const told = at("notes") + at("warnings");
|
|
78
|
+
for (let i = 0; i < told; i++)
|
|
79
|
+
notes.push(port.tdtNote(i) ?? "");
|
|
80
|
+
return {
|
|
81
|
+
towerName: port.tdtTowerName() ?? "",
|
|
82
|
+
counts: pick(at, IMPORT_COUNTS),
|
|
83
|
+
decoded: at("decoded") === 1,
|
|
84
|
+
decodeStats: pick(at, ["droppedShafts", "adjustedShafts", "droppedFlights"]),
|
|
85
|
+
parkingConnected: orNull(at("parkingConnected")),
|
|
86
|
+
peopleCount: orNull(at("peopleCount")),
|
|
87
|
+
floors: at("floors"),
|
|
88
|
+
basements: at("basements"),
|
|
89
|
+
minutes: at("minutes"),
|
|
90
|
+
shafts: at("shafts"),
|
|
91
|
+
flights: at("flights"),
|
|
92
|
+
star: at("star"),
|
|
93
|
+
money: at("money"),
|
|
94
|
+
notes,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
/** A done `tdtExport`'s export report numbers, with the tower's name and
|
|
98
|
+
* the file name the engine gives the download (`tdtFilename`, #1676). */
|
|
99
|
+
function exportFacts(rec, codes, port) {
|
|
100
|
+
const at = slots(rec, codes.fields("tdtExport"));
|
|
101
|
+
return {
|
|
102
|
+
towerName: port.towerName() ?? "",
|
|
103
|
+
filename: port.tdtFilename(),
|
|
104
|
+
counts: pick(at, EXPORT_COUNTS),
|
|
105
|
+
stats: pick(at, ENCODE_STATS),
|
|
106
|
+
topFloor: at("topFloor"),
|
|
107
|
+
basements: at("basements"),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { exportFacts, importFacts };
|
|
112
|
+
//# sourceMappingURL=tdtRecords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tdtRecords.js","sources":["../../src/simport/tdtRecords.ts"],"sourcesContent":["import type { EnginePort, PortRecord } from \"./enginePort\";\nimport type { PortCodes } from \"./portCodes\";\nimport type { EncodeStats, ExportCounts, ExportReportFacts, ImportCounts, ImportReportFacts } from \"./tdtReportFacts\";\n\n/**\n * The 1994 `.TDT` reports' numbers, read off the port's `loadTdt` and\n * `tdtExport` records by the layout's slot names (`records.loadTdt`,\n * `records.tdtExport`), in the order both engines write them\n * (`engine-rs/src/wasm_port_files.rs`, `src/engine/port/files.ts`). The\n * sentences stay with `tdtImportReport.ts` and `tdtExportReport.ts`. Read once\n * per file, never per frame.\n */\n\nconst IMPORT_COUNTS = [\n \"rooms\",\n \"offices\",\n \"occupiedOffices\",\n \"condos\",\n \"soldCondos\",\n \"hotelRooms\",\n \"hotelAsleep\",\n \"hotelDirty\",\n \"hotelBooked\",\n \"asleepConverted\",\n \"infested\",\n \"venues\",\n \"services\",\n \"parkingStalls\",\n \"construction\",\n \"rentsApplied\",\n \"twinRooms\",\n \"secom\",\n \"cathedral\",\n \"burned\",\n \"unknown\",\n \"droppedFloors\",\n \"offLot\",\n \"overlapping\",\n \"misplaced\",\n \"clamped\",\n \"widthMismatch\",\n \"residentsSeeded\",\n] as const satisfies readonly (keyof ImportCounts)[];\n\nconst EXPORT_COUNTS = [\n \"rooms\",\n \"rentsSnapped\",\n \"namesDropped\",\n \"hotelStates\",\n \"occupied\",\n \"construction\",\n \"parkingStalls\",\n \"burnedOut\",\n \"vacancyHistoryLost\",\n \"outOfRange\",\n \"retailRowsDropped\",\n] as const satisfies readonly (keyof ExportCounts)[];\n\nconst ENCODE_STATS = [\n \"balance\",\n \"money\",\n \"star\",\n \"shaftsDropped\",\n \"shaftsColliding\",\n \"flightsDropped\",\n \"transportsDropped\",\n \"elevatorsLen\",\n \"walkwaysLen\",\n \"expressLen\",\n] as const satisfies readonly (keyof EncodeStats)[];\n\n/** The record's slots by name. */\nfunction slots(rec: PortRecord, names: readonly string[]): (name: string) => number {\n return (name) => rec[names.indexOf(name)];\n}\n\nfunction pick<K extends string>(at: (name: string) => number, keys: readonly K[]): Record<K, number> {\n return Object.fromEntries(keys.map((k) => [k, at(k)])) as Record<K, number>;\n}\n\nconst orNull = (v: number): number | null => (Number.isNaN(v) ? null : v);\n\n/** A done `loadTdt`'s import report numbers, with the staged file's notes\n * and name from `tdtNote` and `tdtTowerName`. */\nexport function importFacts(\n rec: PortRecord,\n codes: PortCodes,\n port: Pick<EnginePort, \"tdtNote\" | \"tdtTowerName\">,\n): ImportReportFacts {\n const at = slots(rec, codes.fields(\"loadTdt\"));\n const notes: string[] = [];\n const told = at(\"notes\") + at(\"warnings\");\n for (let i = 0; i < told; i++) notes.push(port.tdtNote(i) ?? \"\");\n return {\n towerName: port.tdtTowerName() ?? \"\",\n counts: pick(at, IMPORT_COUNTS),\n decoded: at(\"decoded\") === 1,\n decodeStats: pick(at, [\"droppedShafts\", \"adjustedShafts\", \"droppedFlights\"]),\n parkingConnected: orNull(at(\"parkingConnected\")),\n peopleCount: orNull(at(\"peopleCount\")),\n floors: at(\"floors\"),\n basements: at(\"basements\"),\n minutes: at(\"minutes\"),\n shafts: at(\"shafts\"),\n flights: at(\"flights\"),\n star: at(\"star\"),\n money: at(\"money\"),\n notes,\n };\n}\n\n/** A done `tdtExport`'s export report numbers, with the tower's name and\n * the file name the engine gives the download (`tdtFilename`, #1676). */\nexport function exportFacts(\n rec: PortRecord,\n codes: PortCodes,\n port: Pick<EnginePort, \"towerName\" | \"tdtFilename\">,\n): ExportReportFacts {\n const at = slots(rec, codes.fields(\"tdtExport\"));\n return {\n towerName: port.towerName() ?? \"\",\n filename: port.tdtFilename(),\n counts: pick(at, EXPORT_COUNTS),\n stats: pick(at, ENCODE_STATS),\n topFloor: at(\"topFloor\"),\n basements: at(\"basements\"),\n };\n}\n"],"names":[],"mappings":"AAIA;;;;;;;AAOG;AAEH,MAAM,aAAa,GAAG;IACpB,OAAO;IACP,SAAS;IACT,iBAAiB;IACjB,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,aAAa;IACb,YAAY;IACZ,aAAa;IACb,iBAAiB;IACjB,UAAU;IACV,QAAQ;IACR,UAAU;IACV,eAAe;IACf,cAAc;IACd,cAAc;IACd,WAAW;IACX,OAAO;IACP,WAAW;IACX,QAAQ;IACR,SAAS;IACT,eAAe;IACf,QAAQ;IACR,aAAa;IACb,WAAW;IACX,SAAS;IACT,eAAe;IACf,iBAAiB;CACiC;AAEpD,MAAM,aAAa,GAAG;IACpB,OAAO;IACP,cAAc;IACd,cAAc;IACd,aAAa;IACb,UAAU;IACV,cAAc;IACd,eAAe;IACf,WAAW;IACX,oBAAoB;IACpB,YAAY;IACZ,mBAAmB;CAC+B;AAEpD,MAAM,YAAY,GAAG;IACnB,SAAS;IACT,OAAO;IACP,MAAM;IACN,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;IACnB,cAAc;IACd,aAAa;IACb,YAAY;CACqC;AAEnD;AACA,SAAS,KAAK,CAAC,GAAe,EAAE,KAAwB,EAAA;AACtD,IAAA,OAAO,CAAC,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC3C;AAEA,SAAS,IAAI,CAAmB,EAA4B,EAAE,IAAkB,EAAA;IAC9E,OAAO,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAsB;AAC7E;AAEA,MAAM,MAAM,GAAG,CAAC,CAAS,MAAqB,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAEzE;AACkD;SAClC,WAAW,CACzB,GAAe,EACf,KAAgB,EAChB,IAAkD,EAAA;AAElD,IAAA,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAa,EAAE;IAC1B,MAAM,IAAI,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC;IACzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE;AAAE,QAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAChE,OAAO;AACL,QAAA,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE;AACpC,QAAA,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,aAAa,CAAC;AAC/B,QAAA,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;AAC5B,QAAA,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;AAC5E,QAAA,gBAAgB,EAAE,MAAM,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC;AAChD,QAAA,WAAW,EAAE,MAAM,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;AACtC,QAAA,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC;AACpB,QAAA,SAAS,EAAE,EAAE,CAAC,WAAW,CAAC;AAC1B,QAAA,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC;AACtB,QAAA,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC;AACpB,QAAA,OAAO,EAAE,EAAE,CAAC,SAAS,CAAC;AACtB,QAAA,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC;AAChB,QAAA,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC;QAClB,KAAK;KACN;AACH;AAEA;AAC0E;SAC1D,WAAW,CACzB,GAAe,EACf,KAAgB,EAChB,IAAmD,EAAA;AAEnD,IAAA,MAAM,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAChD,OAAO;AACL,QAAA,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE;AACjC,QAAA,QAAQ,EAAE,IAAI,CAAC,WAAW,EAAE;AAC5B,QAAA,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,aAAa,CAAC;AAC/B,QAAA,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC;AAC7B,QAAA,QAAQ,EAAE,EAAE,CAAC,UAAU,CAAC;AACxB,QAAA,SAAS,EAAE,EAAE,CAAC,WAAW,CAAC;KAC3B;AACH;;"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The numbers the 1994 `.TDT` reports read: the tallies and stats the Rust
|
|
3
|
+
* codec counts while it decodes (`loadTdt`) and encodes (`tdtExport`), as
|
|
4
|
+
* `tdtRecords.ts` reads them off the port. The sentences the player sees are
|
|
5
|
+
* built from these in `storage/tdtImportReport.ts` and
|
|
6
|
+
* `storage/tdtExportReport.ts`.
|
|
7
|
+
*/
|
|
8
|
+
/** Loss/quirk tally of an export. */
|
|
9
|
+
export interface ExportCounts {
|
|
10
|
+
rooms: number;
|
|
11
|
+
rentsSnapped: number;
|
|
12
|
+
namesDropped: number;
|
|
13
|
+
hotelStates: number;
|
|
14
|
+
occupied: number;
|
|
15
|
+
construction: number;
|
|
16
|
+
parkingStalls: number;
|
|
17
|
+
burnedOut: number;
|
|
18
|
+
vacancyHistoryLost: number;
|
|
19
|
+
outOfRange: number;
|
|
20
|
+
/** Shops, restaurants and fast food past the 512 style rows a 1994 file holds. */
|
|
21
|
+
retailRowsDropped: number;
|
|
22
|
+
}
|
|
23
|
+
/** Numbers the report reads from the encode pass (header money/star + the
|
|
24
|
+
* transport drops counted while writing the tables). */
|
|
25
|
+
export interface EncodeStats {
|
|
26
|
+
balance: number;
|
|
27
|
+
money: number;
|
|
28
|
+
star: number;
|
|
29
|
+
shaftsDropped: number;
|
|
30
|
+
shaftsColliding: number;
|
|
31
|
+
flightsDropped: number;
|
|
32
|
+
transportsDropped: number;
|
|
33
|
+
/** Elevator/walkway counts BEFORE the table caps, for the report's tallies. */
|
|
34
|
+
elevatorsLen: number;
|
|
35
|
+
walkwaysLen: number;
|
|
36
|
+
/** Express shafts written. Every one is sized the way the game sizes it
|
|
37
|
+
* (doc §8), so none is lost; the count stays in the record for the report
|
|
38
|
+
* facts. */
|
|
39
|
+
expressLen: number;
|
|
40
|
+
}
|
|
41
|
+
/** The numbers an export report reads: the engine port answers them as the
|
|
42
|
+
* `tdtExport` record, with the tower's name. */
|
|
43
|
+
export interface ExportReportFacts {
|
|
44
|
+
towerName: string;
|
|
45
|
+
/** The download's name, from the engine (`tdtFilename`). */
|
|
46
|
+
filename: string;
|
|
47
|
+
counts: ExportCounts;
|
|
48
|
+
stats: EncodeStats;
|
|
49
|
+
/** The highest floor and the basement levels the file can contain. */
|
|
50
|
+
topFloor: number;
|
|
51
|
+
basements: number;
|
|
52
|
+
}
|
|
53
|
+
/** The running tally the Rust codec fills while decoding the floor map. */
|
|
54
|
+
export interface ImportCounts {
|
|
55
|
+
rooms: number;
|
|
56
|
+
offices: number;
|
|
57
|
+
occupiedOffices: number;
|
|
58
|
+
condos: number;
|
|
59
|
+
soldCondos: number;
|
|
60
|
+
hotelRooms: number;
|
|
61
|
+
hotelAsleep: number;
|
|
62
|
+
hotelDirty: number;
|
|
63
|
+
hotelBooked: number;
|
|
64
|
+
asleepConverted: number;
|
|
65
|
+
infested: number;
|
|
66
|
+
venues: number;
|
|
67
|
+
services: number;
|
|
68
|
+
parkingStalls: number;
|
|
69
|
+
construction: number;
|
|
70
|
+
rentsApplied: number;
|
|
71
|
+
twinRooms: number;
|
|
72
|
+
secom: number;
|
|
73
|
+
cathedral: number;
|
|
74
|
+
burned: number;
|
|
75
|
+
unknown: number;
|
|
76
|
+
droppedFloors: number;
|
|
77
|
+
offLot: number;
|
|
78
|
+
overlapping: number;
|
|
79
|
+
misplaced: number;
|
|
80
|
+
clamped: number;
|
|
81
|
+
widthMismatch: number;
|
|
82
|
+
/** People placed in offices, condos and hotel rooms from the file's own counts. */
|
|
83
|
+
residentsSeeded: number;
|
|
84
|
+
}
|
|
85
|
+
/** The numbers an import report reads: the engine port answers them as the
|
|
86
|
+
* `loadTdt` record, with the notes from `tdtNote`. */
|
|
87
|
+
export interface ImportReportFacts {
|
|
88
|
+
towerName: string;
|
|
89
|
+
counts: ImportCounts;
|
|
90
|
+
decoded: boolean;
|
|
91
|
+
decodeStats: {
|
|
92
|
+
droppedShafts: number;
|
|
93
|
+
adjustedShafts: number;
|
|
94
|
+
droppedFlights: number;
|
|
95
|
+
};
|
|
96
|
+
/** The save's connected-stall and roster counts, null when it had none. */
|
|
97
|
+
parkingConnected: number | null;
|
|
98
|
+
peopleCount: number | null;
|
|
99
|
+
/** The highest floor built and the basement levels. */
|
|
100
|
+
floors: number;
|
|
101
|
+
basements: number;
|
|
102
|
+
minutes: number;
|
|
103
|
+
/** Elevator shafts, and stairway and escalator flights. */
|
|
104
|
+
shafts: number;
|
|
105
|
+
flights: number;
|
|
106
|
+
star: number;
|
|
107
|
+
money: number;
|
|
108
|
+
/** The header's notes, then the walk's warnings, said as they are. */
|
|
109
|
+
notes: readonly string[];
|
|
110
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The numbers the 1994 `.TDT` reports read: the tallies and stats the Rust
|
|
3
|
+
* codec counts while it decodes (`loadTdt`) and encodes (`tdtExport`), as
|
|
4
|
+
* `tdtRecords.ts` reads them off the port. The sentences the player sees are
|
|
5
|
+
* built from these in `storage/tdtImportReport.ts` and
|
|
6
|
+
* `storage/tdtExportReport.ts`.
|
|
7
|
+
*/
|
|
8
|
+
//# sourceMappingURL=tdtReportFacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tdtReportFacts.js","sources":["../../src/simport/tdtReportFacts.ts"],"sourcesContent":["/**\n * The numbers the 1994 `.TDT` reports read: the tallies and stats the Rust\n * codec counts while it decodes (`loadTdt`) and encodes (`tdtExport`), as\n * `tdtRecords.ts` reads them off the port. The sentences the player sees are\n * built from these in `storage/tdtImportReport.ts` and\n * `storage/tdtExportReport.ts`.\n */\n\n/** Loss/quirk tally of an export. */\nexport interface ExportCounts {\n rooms: number;\n rentsSnapped: number;\n namesDropped: number;\n hotelStates: number;\n occupied: number;\n construction: number;\n parkingStalls: number;\n burnedOut: number;\n vacancyHistoryLost: number;\n outOfRange: number;\n /** Shops, restaurants and fast food past the 512 style rows a 1994 file holds. */\n retailRowsDropped: number;\n}\n\n/** Numbers the report reads from the encode pass (header money/star + the\n * transport drops counted while writing the tables). */\nexport interface EncodeStats {\n balance: number;\n money: number;\n star: number;\n shaftsDropped: number;\n shaftsColliding: number;\n flightsDropped: number;\n transportsDropped: number;\n /** Elevator/walkway counts BEFORE the table caps, for the report's tallies. */\n elevatorsLen: number;\n walkwaysLen: number;\n /** Express shafts written. Every one is sized the way the game sizes it\n * (doc §8), so none is lost; the count stays in the record for the report\n * facts. */\n expressLen: number;\n}\n\n/** The numbers an export report reads: the engine port answers them as the\n * `tdtExport` record, with the tower's name. */\nexport interface ExportReportFacts {\n towerName: string;\n /** The download's name, from the engine (`tdtFilename`). */\n filename: string;\n counts: ExportCounts;\n stats: EncodeStats;\n /** The highest floor and the basement levels the file can contain. */\n topFloor: number;\n basements: number;\n}\n\n/** The running tally the Rust codec fills while decoding the floor map. */\nexport interface ImportCounts {\n rooms: number;\n offices: number;\n occupiedOffices: number;\n condos: number;\n soldCondos: number;\n hotelRooms: number;\n hotelAsleep: number;\n hotelDirty: number;\n hotelBooked: number;\n asleepConverted: number;\n infested: number;\n venues: number; // food, retail, entertainment\n services: number; // security/medical/housekeeping/recycling/parking/ramp/metro/weddingHall\n parkingStalls: number;\n construction: number;\n rentsApplied: number;\n twinRooms: number;\n secom: number;\n cathedral: number;\n burned: number;\n unknown: number;\n droppedFloors: number;\n offLot: number;\n overlapping: number;\n misplaced: number;\n clamped: number;\n widthMismatch: number;\n /** People placed in offices, condos and hotel rooms from the file's own counts. */\n residentsSeeded: number;\n}\n\n/** The numbers an import report reads: the engine port answers them as the\n * `loadTdt` record, with the notes from `tdtNote`. */\nexport interface ImportReportFacts {\n towerName: string;\n counts: ImportCounts;\n decoded: boolean;\n decodeStats: { droppedShafts: number; adjustedShafts: number; droppedFlights: number };\n /** The save's connected-stall and roster counts, null when it had none. */\n parkingConnected: number | null;\n peopleCount: number | null;\n /** The highest floor built and the basement levels. */\n floors: number;\n basements: number;\n minutes: number;\n /** Elevator shafts, and stairway and escalator flights. */\n shafts: number;\n flights: number;\n star: number;\n money: number;\n /** The header's notes, then the walk's warnings, said as they are. */\n notes: readonly string[];\n}\n"],"names":[],"mappings":"AAAA;;;;;;AAMG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PortRecord } from "./enginePort";
|
|
2
|
+
/** One floor's congestion reading and its cause. */
|
|
3
|
+
export interface EnginePortTraffic {
|
|
4
|
+
/** The raw congestion ratio of one floor: the value `hotspot` takes its peak
|
|
5
|
+
* from, 0 for a floor with no reading (empty, stranded, or not a whole
|
|
6
|
+
* number). For tests and tools that need the number itself; the overlay's
|
|
7
|
+
* severity ramp saturates. */
|
|
8
|
+
floorCongestion(floor: number): number;
|
|
9
|
+
/** The ids of the transports behind one floor's reading, in the tower's
|
|
10
|
+
* transport order: the shaft or flight with the highest estimate (every
|
|
11
|
+
* one tied for it), or every passenger elevator stopping there when the
|
|
12
|
+
* floor's real commute wait sets the reading. Empty for a floor with no
|
|
13
|
+
* reading or one that is not a whole number. Read when the player taps
|
|
14
|
+
* the Traffic readout. */
|
|
15
|
+
congestionCause(floor: number): PortRecord;
|
|
16
|
+
/** The stretch of floor the waiting line at elevator `shaft` on `floor`
|
|
17
|
+
* covers, `[from, to]` in tiles with `from <= to`: from the shaft face to
|
|
18
|
+
* the rider standing farthest from it. A line runs across any shaft beside its
|
|
19
|
+
* own, so this is how the Traffic readout's tap tells which riders stand
|
|
20
|
+
* in which line. Empty when nobody waits there. Read on a tap. */
|
|
21
|
+
queueLine(shaft: number, floor: number): PortRecord;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trafficPort.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import type { PersonState } from "../shared/engineTypes";
|
|
2
|
+
import type { CalendarKind } from "../shared/engineTypes";
|
|
3
|
+
import type { FacilityKind, GameMode, UnitState, WeatherKind } from "../shared/types";
|
|
4
|
+
/**
|
|
5
|
+
* What the game reads from the simulation to draw it and to fill the HUD,
|
|
6
|
+
* read-only all the way down (spine AD-9, the facade review's 5.2). The
|
|
7
|
+
* members are the ones the renderer and the HUD read today (the consumer
|
|
8
|
+
* inventory's buckets 2S and 2F); later slices add members here and never
|
|
9
|
+
* drop one silently.
|
|
10
|
+
*
|
|
11
|
+
* The TypeScript adapter hands out the live `Tower`, `Crowd`, units,
|
|
12
|
+
* transports and people, which `view.types.test.ts` proves assignable to
|
|
13
|
+
* these types, so a read copies nothing. A Rust adapter fills the same shapes
|
|
14
|
+
* from the engine's structural snapshot and frame. Either way a reader treats
|
|
15
|
+
* what it gets as valid until the next tick or command, and keeps the values
|
|
16
|
+
* it needs rather than the objects.
|
|
17
|
+
*/
|
|
18
|
+
export interface SimView {
|
|
19
|
+
readonly header: HeaderView;
|
|
20
|
+
readonly tower: TowerView;
|
|
21
|
+
/** The tower's rooms: every unit but the floor and lobby tiles, in
|
|
22
|
+
* `tower.units` order (about 2,900 of the large tower's 43,358 units).
|
|
23
|
+
* A reader that needs only rooms reads this, never `tower.units`. The
|
|
24
|
+
* same array comes back until `tower.revision` moves or the tower is
|
|
25
|
+
* replaced, so a reader may keep it for that long, and an adapter builds
|
|
26
|
+
* it at most once per revision. A reader that keeps it tells a change by
|
|
27
|
+
* the array's identity, not the revision, which a WASM host can repeat
|
|
28
|
+
* over other units after a re-host (#1296). Its entries stay as current as
|
|
29
|
+
* `tower.getUnit` gives them: a label, state or occupant count that
|
|
30
|
+
* changes without a revision move shows in the kept array's entry. */
|
|
31
|
+
readonly rooms: ReadonlyArray<UnitView>;
|
|
32
|
+
/** The floor and lobby tiles as runs (about 110 on the large tower for
|
|
33
|
+
* about 40,000 tiles), ordered by floor and then x, each tile in exactly
|
|
34
|
+
* one run and each run as long as it can be: a run ends at a gap, a
|
|
35
|
+
* change of kind or a change of width, never at a tile's state or
|
|
36
|
+
* counters. Kept and rebuilt like `rooms`. */
|
|
37
|
+
readonly structure: ReadonlyArray<StructureRunView>;
|
|
38
|
+
readonly crowd: CrowdView;
|
|
39
|
+
}
|
|
40
|
+
/** `count` floor or lobby tiles of one kind and width side by side on one
|
|
41
|
+
* floor: tile i sits at `x + i * width`. These are the fields of a run in
|
|
42
|
+
* the Rust engine's structural snapshot (6a, #1213), whose runs carry no
|
|
43
|
+
* ids and may split where these join, so a Rust adapter joins them once per
|
|
44
|
+
* revision. The view gives no tile ids: on a tile a room stands on,
|
|
45
|
+
* `tower.unitAt` gives the room, and no reader needs a tile's id today. */
|
|
46
|
+
export interface StructureRunView {
|
|
47
|
+
readonly kind: "floor" | "lobby";
|
|
48
|
+
readonly floor: number;
|
|
49
|
+
readonly x: number;
|
|
50
|
+
readonly width: number;
|
|
51
|
+
readonly count: number;
|
|
52
|
+
}
|
|
53
|
+
/** The scalar state the HUD and the renderer's triggers read. */
|
|
54
|
+
export interface HeaderView {
|
|
55
|
+
readonly money: number;
|
|
56
|
+
/** 1 to 5 stars, 6 for TOWER. */
|
|
57
|
+
readonly star: number;
|
|
58
|
+
/** The tower's head count. Both engines answer it from a running count
|
|
59
|
+
* (TypeScript from `roomCounts`, Rust from its reader's sum), so a read is
|
|
60
|
+
* cheap and needs no room walk. */
|
|
61
|
+
readonly population: number;
|
|
62
|
+
readonly weather: WeatherKind;
|
|
63
|
+
/** The bulletin log's monotonic cursor. */
|
|
64
|
+
readonly logSeq: number;
|
|
65
|
+
readonly pendingChoice: PendingChoiceView | null;
|
|
66
|
+
/** Classic's bomb search while one runs, else null. */
|
|
67
|
+
readonly bombSearch: BombSearchView | null;
|
|
68
|
+
/** The guards and the helicopter answering a fire, else null. */
|
|
69
|
+
readonly fireResponse: FireResponseView | null;
|
|
70
|
+
/** The game clock in minutes since the start. */
|
|
71
|
+
readonly minutes: number;
|
|
72
|
+
readonly minuteOfDay: number;
|
|
73
|
+
/** The clock's readings on the tower's calendar, as the engine reports them
|
|
74
|
+
* (`headerClock.ts` turns them into dates). All count from 0. */
|
|
75
|
+
readonly day: number;
|
|
76
|
+
readonly dayOfWeek: number;
|
|
77
|
+
readonly isWeekend: boolean;
|
|
78
|
+
readonly quarter: number;
|
|
79
|
+
readonly year: number;
|
|
80
|
+
/** The calendar's week and weekend lengths in days. */
|
|
81
|
+
readonly weekDays: number;
|
|
82
|
+
readonly weekendDays: number;
|
|
83
|
+
/** Moves whenever a unit or transport is added or removed. */
|
|
84
|
+
readonly revision: number;
|
|
85
|
+
/** Moves whenever the meal overlay's inputs change. */
|
|
86
|
+
readonly mealOverlayRevision: number;
|
|
87
|
+
/** The tower's rule set. Fixed at founding and stored as the save stores
|
|
88
|
+
* it; a panel derives the rules from it (`headerClock.ts`). */
|
|
89
|
+
readonly mode: GameMode;
|
|
90
|
+
/** The calendar a Modern tower chose at founding, stored as the save
|
|
91
|
+
* stores it (a Classic tower always runs the canon calendar whatever this
|
|
92
|
+
* says); with `mode` it gives the clock's day names (`headerClock.ts`). */
|
|
93
|
+
readonly modernCalendar: CalendarKind;
|
|
94
|
+
/** The founding seed the scenery derives from (`RNG.initialSeed`). Fixed
|
|
95
|
+
* for a tower's life, so a reader keeps it per tower and compares it to
|
|
96
|
+
* notice a tower swap. */
|
|
97
|
+
readonly sceneSeed: number;
|
|
98
|
+
/** The visual-effect counters: a change in a `seq` (or a `*Seq` counter)
|
|
99
|
+
* fires one visual. A reader keeps the last value it saw, so this is
|
|
100
|
+
* cheap to take every frame. */
|
|
101
|
+
readonly fx: FxView;
|
|
102
|
+
/** The saved camera, or null when the tower has none. Read on construction
|
|
103
|
+
* and on a tower swap to restore it, not per frame; the live camera is the
|
|
104
|
+
* renderer's, and `setView` is the command that stores it. */
|
|
105
|
+
readonly camera: CameraView | null;
|
|
106
|
+
}
|
|
107
|
+
/** Where the camera was when the tower was saved. */
|
|
108
|
+
export interface CameraView {
|
|
109
|
+
/** The tile the view is centered on. */
|
|
110
|
+
readonly tile: number;
|
|
111
|
+
readonly floor: number;
|
|
112
|
+
/** Absent in saves from before zoom was stored. */
|
|
113
|
+
readonly zoom?: number;
|
|
114
|
+
}
|
|
115
|
+
/** The effect counters the renderer turns into visuals. */
|
|
116
|
+
export interface FxView {
|
|
117
|
+
readonly santaSeq: number;
|
|
118
|
+
readonly vipSeq: number;
|
|
119
|
+
readonly explosion: {
|
|
120
|
+
readonly floor: number;
|
|
121
|
+
readonly x: number;
|
|
122
|
+
readonly seq: number;
|
|
123
|
+
};
|
|
124
|
+
/** `x` is a tile of the stretch of floor (one tower's part of it, on a
|
|
125
|
+
* lot with several) the thief prowled. */
|
|
126
|
+
readonly thief: {
|
|
127
|
+
readonly caught: boolean;
|
|
128
|
+
readonly floor: number;
|
|
129
|
+
readonly x: number;
|
|
130
|
+
readonly seq: number;
|
|
131
|
+
};
|
|
132
|
+
readonly treasure: {
|
|
133
|
+
readonly floor: number;
|
|
134
|
+
readonly x: number;
|
|
135
|
+
readonly seq: number;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
/** Classic's bomb search: the minute the bomb goes off, the stretches of
|
|
139
|
+
* floor guards are sweeping now and the floors with a stretch already
|
|
140
|
+
* clear. A stretch is one tower's part of a floor on a lot with several
|
|
141
|
+
* towers, the whole floor otherwise. The engine keeps the bomb's hiding
|
|
142
|
+
* place to itself. */
|
|
143
|
+
export interface BombSearchGuard {
|
|
144
|
+
readonly floor: number;
|
|
145
|
+
/** The tile span of the stretch's rooms. */
|
|
146
|
+
readonly left: number;
|
|
147
|
+
readonly right: number;
|
|
148
|
+
readonly from: number;
|
|
149
|
+
/** The corners of its walk on the emergency stairs, as [floor, stairs
|
|
150
|
+
* tile]: where it sets off, each place it turns back or crosses a shared
|
|
151
|
+
* floor to other stairs, and where it steps off. Empty for a guard from
|
|
152
|
+
* an older save, which climbs straight from `from` beside the rooms. */
|
|
153
|
+
readonly route: ReadonlyArray<readonly [number, number]>;
|
|
154
|
+
readonly start: number;
|
|
155
|
+
readonly arrive: number;
|
|
156
|
+
readonly done: number;
|
|
157
|
+
}
|
|
158
|
+
export interface BombSearchView {
|
|
159
|
+
readonly deadline: number;
|
|
160
|
+
/** Each stretch a guard is headed for or sweeping, with the tile span of
|
|
161
|
+
* its rooms, where it set off from, and the minutes it left, reaches the
|
|
162
|
+
* stretch by the emergency stairs, and finishes the walk. */
|
|
163
|
+
readonly sweeping: readonly BombSearchGuard[];
|
|
164
|
+
readonly searched: readonly number[];
|
|
165
|
+
readonly seq: number;
|
|
166
|
+
/** Whether guards are still out searching, so the engine holds every
|
|
167
|
+
* person and car still (`Simulation::bomb_lockdown`). */
|
|
168
|
+
readonly lockdown: boolean;
|
|
169
|
+
}
|
|
170
|
+
/** Who answers a fire (#1889): Security's guards walking the emergency
|
|
171
|
+
* stairs to it, and the paid rescue helicopter. Each guard has the bomb
|
|
172
|
+
* search's guard shape: it climbs by `route` until `arrive`, then walks from
|
|
173
|
+
* the stairs tile `left` to `right`, the tile in the burning room it fights
|
|
174
|
+
* from, by `done`, and stays there. The guards are empty once the fire is
|
|
175
|
+
* out; the helicopter may still be spraying or flying off. */
|
|
176
|
+
export interface FireResponseView {
|
|
177
|
+
/** The room the fire started in: its floor, left tile and width. */
|
|
178
|
+
readonly floor: number;
|
|
179
|
+
readonly x: number;
|
|
180
|
+
readonly width: number;
|
|
181
|
+
readonly guards: readonly BombSearchGuard[];
|
|
182
|
+
/** The minutes the helicopter was called, lands (and puts the fire out),
|
|
183
|
+
* stops spraying, and is gone. */
|
|
184
|
+
readonly helicopter: {
|
|
185
|
+
readonly called: number;
|
|
186
|
+
readonly arrive: number;
|
|
187
|
+
readonly sprayEnd: number;
|
|
188
|
+
readonly leave: number;
|
|
189
|
+
} | null;
|
|
190
|
+
readonly out: boolean;
|
|
191
|
+
readonly seq: number;
|
|
192
|
+
}
|
|
193
|
+
/** An emergency waiting on the player's answer. */
|
|
194
|
+
export interface PendingChoiceView {
|
|
195
|
+
readonly kind: "fireRescue" | "bombThreat";
|
|
196
|
+
readonly cost: number;
|
|
197
|
+
readonly message: string;
|
|
198
|
+
}
|
|
199
|
+
export interface TowerView {
|
|
200
|
+
/** Every unit, the bare floor and lobby tiles included (about 40,000 of the
|
|
201
|
+
* large tower's 43,358). A Rust adapter builds this array at most once per
|
|
202
|
+
* revision, never per read. A reader that needs only rooms reads
|
|
203
|
+
* `SimView.rooms`, and one that draws the structure reads
|
|
204
|
+
* `SimView.structure`; neither walks this per frame or per step. */
|
|
205
|
+
readonly units: ReadonlyArray<UnitView>;
|
|
206
|
+
readonly transports: ReadonlyArray<TransportView>;
|
|
207
|
+
/** The transports that run cars (the elevators), in `transports` order.
|
|
208
|
+
* A per-frame pass over cars walks this instead of `transports`, which
|
|
209
|
+
* in Modern can hold thousands of stairs and escalators. A reader that
|
|
210
|
+
* leaves it out has its passes walk `transports`. */
|
|
211
|
+
readonly elevators?: ReadonlyArray<TransportView>;
|
|
212
|
+
readonly revision: number;
|
|
213
|
+
readonly mealOverlayRevision: number;
|
|
214
|
+
readonly towerName: string;
|
|
215
|
+
readonly highestFloor: number;
|
|
216
|
+
readonly lowestFloor: number;
|
|
217
|
+
getUnit(id: number): UnitView | undefined;
|
|
218
|
+
getTransport(id: number): TransportView | undefined;
|
|
219
|
+
unitAt(floor: number, x: number): UnitView | undefined;
|
|
220
|
+
hasStructure(floor: number, x: number): boolean;
|
|
221
|
+
structureKindAt(floor: number, x: number): "floor" | "lobby" | undefined;
|
|
222
|
+
/** Every sky bridge (Modern) with its look, read once per tower revision.
|
|
223
|
+
* A reader without bridges leaves it out. */
|
|
224
|
+
skyBridges?(): readonly SkyBridgeView[];
|
|
225
|
+
}
|
|
226
|
+
/** A sky bridge: its floor, its columns `from` to `to` (exclusive) and its look,
|
|
227
|
+
* an index into the catalog's `rules.skyBridge.looks` (0, the plain lobby). */
|
|
228
|
+
export interface SkyBridgeView {
|
|
229
|
+
readonly floor: number;
|
|
230
|
+
readonly from: number;
|
|
231
|
+
readonly to: number;
|
|
232
|
+
readonly look: number;
|
|
233
|
+
}
|
|
234
|
+
export interface UnitView {
|
|
235
|
+
readonly id: number;
|
|
236
|
+
readonly kind: FacilityKind;
|
|
237
|
+
readonly floor: number;
|
|
238
|
+
readonly x: number;
|
|
239
|
+
readonly width: number;
|
|
240
|
+
readonly state: UnitState;
|
|
241
|
+
readonly subtype?: string;
|
|
242
|
+
readonly label: string;
|
|
243
|
+
readonly occupants: number;
|
|
244
|
+
readonly outForMeal?: number;
|
|
245
|
+
readonly customersIn?: number;
|
|
246
|
+
readonly hotelCustomersIn?: number;
|
|
247
|
+
}
|
|
248
|
+
export interface TransportView {
|
|
249
|
+
readonly id: number;
|
|
250
|
+
readonly kind: FacilityKind;
|
|
251
|
+
readonly x: number;
|
|
252
|
+
readonly width: number;
|
|
253
|
+
readonly bottom: number;
|
|
254
|
+
readonly top: number;
|
|
255
|
+
readonly cars: number;
|
|
256
|
+
readonly skipFloors?: ReadonlyArray<number>;
|
|
257
|
+
readonly carPositions: ReadonlyArray<number>;
|
|
258
|
+
readonly carLoad?: ReadonlyArray<number>;
|
|
259
|
+
readonly carDir: ReadonlyArray<number>;
|
|
260
|
+
}
|
|
261
|
+
export interface CrowdView {
|
|
262
|
+
readonly people: ReadonlyArray<PersonView>;
|
|
263
|
+
}
|
|
264
|
+
export interface PersonView {
|
|
265
|
+
readonly id: number;
|
|
266
|
+
readonly staff?: boolean;
|
|
267
|
+
readonly seed: number;
|
|
268
|
+
readonly state: PersonState;
|
|
269
|
+
readonly x: number;
|
|
270
|
+
/** The discrete floor the person stands on or boards at. */
|
|
271
|
+
readonly floor: number;
|
|
272
|
+
/** The fractional floor the renderer draws the person at. */
|
|
273
|
+
readonly fy: number;
|
|
274
|
+
readonly wait: number;
|
|
275
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { FacilityKind, UnitState } from "../shared/types";
|
|
2
|
+
import type { EnginePort } from "./enginePort";
|
|
3
|
+
import type { CrowdView, HeaderView, SimView, StructureRunView, TowerView, UnitView } from "./view";
|
|
4
|
+
declare class Room implements UnitView {
|
|
5
|
+
readonly id: number;
|
|
6
|
+
readonly kind: FacilityKind;
|
|
7
|
+
readonly floor: number;
|
|
8
|
+
readonly x: number;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
state: UnitState;
|
|
11
|
+
occupants: number;
|
|
12
|
+
customersIn?: number;
|
|
13
|
+
hotelCustomersIn?: number;
|
|
14
|
+
outForMeal?: number;
|
|
15
|
+
label: string;
|
|
16
|
+
subtype?: string;
|
|
17
|
+
constructor(id: number, kind: FacilityKind, floor: number, x: number, width: number, label: string);
|
|
18
|
+
}
|
|
19
|
+
export declare class ViewReader implements SimView {
|
|
20
|
+
private readonly port;
|
|
21
|
+
private readonly floorsOf;
|
|
22
|
+
private readonly l;
|
|
23
|
+
private gen;
|
|
24
|
+
private revision;
|
|
25
|
+
private metaRevision;
|
|
26
|
+
private full;
|
|
27
|
+
private readonly emergency;
|
|
28
|
+
private camera;
|
|
29
|
+
private byId;
|
|
30
|
+
private shafts;
|
|
31
|
+
private shaftById;
|
|
32
|
+
/** The shafts the frame sends cars for (elevators), matched by its ids. */
|
|
33
|
+
private elevators;
|
|
34
|
+
private runs;
|
|
35
|
+
/** Rooms under every floor they cover, and runs by floor, sorted by x, for
|
|
36
|
+
* the point lookups. */
|
|
37
|
+
private roomsByFloor;
|
|
38
|
+
private runsByFloor;
|
|
39
|
+
private floors;
|
|
40
|
+
private tiles;
|
|
41
|
+
private readonly people;
|
|
42
|
+
/** Each person by id, and the frame that last named them. */
|
|
43
|
+
private pool;
|
|
44
|
+
private seq;
|
|
45
|
+
private scalars;
|
|
46
|
+
/** The header's `unlocked` bitset: bit k set for the kind with code k. */
|
|
47
|
+
private unlockedKinds;
|
|
48
|
+
private readonly kindCodes;
|
|
49
|
+
rooms: Room[];
|
|
50
|
+
structure: StructureRunView[];
|
|
51
|
+
header: HeaderView;
|
|
52
|
+
readonly crowd: CrowdView;
|
|
53
|
+
readonly tower: TowerView;
|
|
54
|
+
/**
|
|
55
|
+
* @param floorsOf a facility's height in floors (the catalog's `floors`).
|
|
56
|
+
* The frame carries no heights, and `tower.unitAt` answers every story a
|
|
57
|
+
* room covers, as the tower's own index does.
|
|
58
|
+
*/
|
|
59
|
+
constructor(port: EnginePort, floorsOf: (kind: FacilityKind) => number);
|
|
60
|
+
/** The engine generation the view was last read in. */
|
|
61
|
+
get generation(): number;
|
|
62
|
+
/** Read the next frame. */
|
|
63
|
+
update(): void;
|
|
64
|
+
/** Whether the tower has unlocked `kind` (its star gate, and the
|
|
65
|
+
* Modern-only kinds in a Classic tower), as of the last update. */
|
|
66
|
+
unlocked(kind: FacilityKind): boolean;
|
|
67
|
+
/** The nearest structure tile on the row past `x` toward `step` (-1 left, 1
|
|
68
|
+
* right), where a bridge scan from `x` stops, as of the last update;
|
|
69
|
+
* undefined when there is none. */
|
|
70
|
+
structureBeside(floor: number, x: number, step: 1 | -1): {
|
|
71
|
+
x: number;
|
|
72
|
+
kind: "floor" | "lobby";
|
|
73
|
+
} | undefined;
|
|
74
|
+
/** Decode the structure; true when no room was kept from the last one. */
|
|
75
|
+
private rebuild;
|
|
76
|
+
private listAt;
|
|
77
|
+
private readFrame;
|
|
78
|
+
private readMeta;
|
|
79
|
+
/** The room on any story it covers at a tile, as of the last update. */
|
|
80
|
+
roomAt(floor: number, x: number): Room | undefined;
|
|
81
|
+
private runAt;
|
|
82
|
+
/** A tile as a unit: tiles carry no ids in the view, so `id` is NaN. */
|
|
83
|
+
private tileAt;
|
|
84
|
+
private tile;
|
|
85
|
+
/** `tower.units`: the rooms, then every tile, built at most once per
|
|
86
|
+
* revision and only when read. */
|
|
87
|
+
private expand;
|
|
88
|
+
}
|
|
89
|
+
export {};
|