@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,234 @@
|
|
|
1
|
+
import { type ViewWorld } from "../presentation/viewWorld";
|
|
2
|
+
import type { UnitView } from "../simport/view";
|
|
3
|
+
/**
|
|
4
|
+
* Pure layout for the world outside the tower (the scenery pass): the skyline
|
|
5
|
+
* silhouettes, the fountain-roundabout plaza at the left lot edge, the street
|
|
6
|
+
* on the far side, the grass/apron split along the ground line, and the tree and bush
|
|
7
|
+
* spots on the open lot. Everything here is a pure function of the tower's
|
|
8
|
+
* founding seed (RNG.initialSeed, fixed for the tower's whole life; the live
|
|
9
|
+
* RNG state mutates every roll and must never key visuals) and the built
|
|
10
|
+
* ground floor, so the scenery is deterministic per tower and
|
|
11
|
+
* unit-testable without a canvas; `towerScenery.ts` turns these numbers into
|
|
12
|
+
* actors.
|
|
13
|
+
*
|
|
14
|
+
* Geometry contract (owner-approved mockups, 2026-07-21): the buildable lot
|
|
15
|
+
* (the world's lotWidth tile columns, indices 0 through lotWidth - 1) is untouched
|
|
16
|
+
* canon. All scenery lives OUTSIDE it or
|
|
17
|
+
* on its ground line, and everything draws BEHIND the tower (z order), so no
|
|
18
|
+
* scenery can ever cover a built room.
|
|
19
|
+
*/
|
|
20
|
+
/** Left edge, walking away from the lot: sidewalk, then the fountain
|
|
21
|
+
* roundabout (an elliptical drive around a grass island), then the road
|
|
22
|
+
* running to the dirt's far edge. All in tiles; negative = left of the lot. */
|
|
23
|
+
export declare const PLAZA_SIDEWALK_TILES = 4;
|
|
24
|
+
export declare const ROUNDABOUT_START = -36;
|
|
25
|
+
export declare const ROUNDABOUT_TILES = 32;
|
|
26
|
+
export declare const FOUNTAIN_TILE = -20;
|
|
27
|
+
export declare const PLAZA_LAMP_TILES: readonly [-35, -5];
|
|
28
|
+
/** Right-edge strip: paved forecourt, then sidewalk, then the road. */
|
|
29
|
+
export declare const FORECOURT_TILES = 3;
|
|
30
|
+
export declare const SIDEWALK_TILES = 4;
|
|
31
|
+
export declare const ROAD_TILES = 44;
|
|
32
|
+
/** The cement apron extends this far past the built ground-floor footprint. */
|
|
33
|
+
export declare const APRON_PAD_TILES = 3;
|
|
34
|
+
/** How far past each lot edge the skyline band runs: one full lot width, the
|
|
35
|
+
* same reach as the dirt ground, so the city ends exactly where the ground
|
|
36
|
+
* does even zoomed all the way out at a camera edge. */
|
|
37
|
+
export declare function skylineOverscanTiles(world?: ViewWorld): number;
|
|
38
|
+
/** First sidewalk tile, first road tile (both beyond the lot's last column),
|
|
39
|
+
* from the view's world (the tower catalog's lot width). */
|
|
40
|
+
export declare function sidewalkStart(world?: ViewWorld): number;
|
|
41
|
+
export declare function roadStart(world?: ViewWorld): number;
|
|
42
|
+
/** Deterministic unit-interval hash. Integer bit-mixing only (no trig, no
|
|
43
|
+
* floating-point transcendentals), so every engine renders identical pixels:
|
|
44
|
+
* the pinned screenshot container's byte-compare determinism guard depends on
|
|
45
|
+
* it. Fractional input is truncated; callers pass integer keys. */
|
|
46
|
+
export declare function hash01(n: number): number;
|
|
47
|
+
export interface SkylineRect {
|
|
48
|
+
/** Left edge in tiles (may be negative: the band runs past both lot edges). */
|
|
49
|
+
tile: number;
|
|
50
|
+
/** Width in tiles. */
|
|
51
|
+
w: number;
|
|
52
|
+
/** Height in floors. */
|
|
53
|
+
hFloors: number;
|
|
54
|
+
/** 0 = far band (lighter, taller), 1 = near band (darker, lower). */
|
|
55
|
+
depth: 0 | 1;
|
|
56
|
+
}
|
|
57
|
+
/** One skyline band: a building every `step` tiles from `start` tiles past
|
|
58
|
+
* the lot's left edge (the overscan), each `base + hash01(seed + t * key) *
|
|
59
|
+
* span` wide (tiles) and tall (floors). Published in the atlas data so a
|
|
60
|
+
* frontend with the tower seed rebuilds the same city. */
|
|
61
|
+
export interface SkylineBand {
|
|
62
|
+
depth: 0 | 1;
|
|
63
|
+
start: number;
|
|
64
|
+
step: number;
|
|
65
|
+
w: {
|
|
66
|
+
base: number;
|
|
67
|
+
span: number;
|
|
68
|
+
key: number;
|
|
69
|
+
};
|
|
70
|
+
hFloors: {
|
|
71
|
+
base: number;
|
|
72
|
+
span: number;
|
|
73
|
+
key: number;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
/** Skyline fills, far band then near: translucent, so overlaps deepen. */
|
|
77
|
+
export declare const SKYLINE_FILLS: readonly ["rgba(70, 86, 120, 0.55)", "rgba(52, 66, 96, 0.75)"];
|
|
78
|
+
export declare const SKYLINE_BANDS: readonly SkylineBand[];
|
|
79
|
+
/** The two-depth skyline band. It runs CONTINUOUSLY across the whole scene,
|
|
80
|
+
* the tower included: it draws behind everything, so it shows wherever the
|
|
81
|
+
* built tower does not cover it (owner call: the city is always back there). */
|
|
82
|
+
export declare function skylineRects(seed: number, world?: ViewWorld): SkylineRect[];
|
|
83
|
+
export interface PlantSpot {
|
|
84
|
+
tile: number;
|
|
85
|
+
scale: number;
|
|
86
|
+
kind: "tree" | "bush";
|
|
87
|
+
}
|
|
88
|
+
/** The plant-spot rule, published in the atlas data. A candidate every
|
|
89
|
+
* `step` tiles from `margin` to `lotWidth - margin` (exclusive); with
|
|
90
|
+
* `r = hash01(seed * 3 + t)`, the spot is skipped below `skipBelow`, a bush
|
|
91
|
+
* below `bushBelow` and a tree otherwise. It sits at `t + floor(hash01(seed +
|
|
92
|
+
* t * jitter.key) * jitter.span) + jitter.min` and is scaled `scale.base +
|
|
93
|
+
* hash01(seed + t * scale.key) * scale.span`. */
|
|
94
|
+
export declare const PLANT_RULE: {
|
|
95
|
+
readonly margin: 6;
|
|
96
|
+
readonly step: 13;
|
|
97
|
+
readonly skipBelow: 0.42;
|
|
98
|
+
readonly bushBelow: 0.72;
|
|
99
|
+
readonly jitter: {
|
|
100
|
+
readonly span: 7;
|
|
101
|
+
readonly min: -3;
|
|
102
|
+
readonly key: 5;
|
|
103
|
+
};
|
|
104
|
+
readonly scale: {
|
|
105
|
+
readonly base: 0.8;
|
|
106
|
+
readonly span: 0.4;
|
|
107
|
+
readonly key: 11;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
/** Tree and bush spots on the open lot, deterministic per tower seed. Spots
|
|
111
|
+
* keep clear of both lot edges so nothing crowds the plaza sidewalk or the street. */
|
|
112
|
+
export declare function plantSpots(seed: number, world?: ViewWorld): PlantSpot[];
|
|
113
|
+
/** The cement apron under and around the tower: the built ground-floor
|
|
114
|
+
* footprint padded by {@link APRON_PAD_TILES}, clamped to the lot. Null when
|
|
115
|
+
* nothing is built on the ground floor yet (a fresh lot is all grass). */
|
|
116
|
+
export declare function apronRange(units: readonly UnitView[], world?: ViewWorld): {
|
|
117
|
+
min: number;
|
|
118
|
+
max: number;
|
|
119
|
+
} | null;
|
|
120
|
+
/** Half a plant's footprint in tiles, for {@link plantVisible}. */
|
|
121
|
+
export declare const PLANT_CLEAR_TILES = 2;
|
|
122
|
+
/** Whether a plant is still standing: construction (the apron) displaces it.
|
|
123
|
+
* A plant needs its whole little footprint outside the paved range. Two tiles
|
|
124
|
+
* of half-width covers the widest drawn canopy (a max-scale tree spans 3.6
|
|
125
|
+
* tiles, a max-scale bush 2.4), so no foliage ever overhangs fresh cement. */
|
|
126
|
+
export declare function plantVisible(spot: PlantSpot, apron: {
|
|
127
|
+
min: number;
|
|
128
|
+
max: number;
|
|
129
|
+
} | null): boolean;
|
|
130
|
+
/** The dirt under the scene: `lots` lot widths centered on the lot, from the
|
|
131
|
+
* ground line down {@link groundBelowFloors} floors, and the `lineH`-px
|
|
132
|
+
* ground line centered on y 0 across the same span. */
|
|
133
|
+
export declare const GROUND: {
|
|
134
|
+
readonly lots: 3;
|
|
135
|
+
readonly lineH: 6;
|
|
136
|
+
readonly dirt: "#3a3326";
|
|
137
|
+
readonly line: "#6f6a60";
|
|
138
|
+
};
|
|
139
|
+
/** How many floors the dirt runs below the ground line: past the lowest
|
|
140
|
+
* basement with room to spare. */
|
|
141
|
+
export declare function groundBelowFloors(world?: ViewWorld): number;
|
|
142
|
+
/** Rows of the lot's ground strip above and below the ground line. */
|
|
143
|
+
export declare const STRIP_ABOVE = 7;
|
|
144
|
+
export declare const STRIP_BELOW = 4;
|
|
145
|
+
/** A scenery piece's canvas in world px: x from the lot's left edge, y from
|
|
146
|
+
* the ground line (negative is up), for its top-left corner. */
|
|
147
|
+
export interface PieceRect {
|
|
148
|
+
x: number;
|
|
149
|
+
y: number;
|
|
150
|
+
w: number;
|
|
151
|
+
h: number;
|
|
152
|
+
}
|
|
153
|
+
/** Where the game puts each fixed scenery piece in a world (`towerScenery.ts`
|
|
154
|
+
* builds its actors from these, and the sprite atlas publishes them). */
|
|
155
|
+
export declare function sceneryPieces(world?: ViewWorld): {
|
|
156
|
+
plazaSidewalk: {
|
|
157
|
+
x: number;
|
|
158
|
+
y: number;
|
|
159
|
+
w: number;
|
|
160
|
+
h: number;
|
|
161
|
+
};
|
|
162
|
+
roundabout: {
|
|
163
|
+
x: number;
|
|
164
|
+
y: number;
|
|
165
|
+
w: number;
|
|
166
|
+
h: number;
|
|
167
|
+
};
|
|
168
|
+
fountain: {
|
|
169
|
+
x: number;
|
|
170
|
+
y: number;
|
|
171
|
+
w: number;
|
|
172
|
+
h: number;
|
|
173
|
+
};
|
|
174
|
+
plazaLamps: {
|
|
175
|
+
x: number;
|
|
176
|
+
y: number;
|
|
177
|
+
w: number;
|
|
178
|
+
h: number;
|
|
179
|
+
}[];
|
|
180
|
+
/** The road from the scene's left edge to the roundabout (the game cuts it
|
|
181
|
+
* into texture-safe segments, each 1 px wider to hide seams). */
|
|
182
|
+
leftRoad: {
|
|
183
|
+
x: number;
|
|
184
|
+
y: number;
|
|
185
|
+
w: number;
|
|
186
|
+
h: number;
|
|
187
|
+
};
|
|
188
|
+
forecourt: {
|
|
189
|
+
x: number;
|
|
190
|
+
y: number;
|
|
191
|
+
w: number;
|
|
192
|
+
h: number;
|
|
193
|
+
};
|
|
194
|
+
sidewalk: {
|
|
195
|
+
x: number;
|
|
196
|
+
y: number;
|
|
197
|
+
w: number;
|
|
198
|
+
h: number;
|
|
199
|
+
};
|
|
200
|
+
rightRoad: {
|
|
201
|
+
x: number;
|
|
202
|
+
y: number;
|
|
203
|
+
w: number;
|
|
204
|
+
h: number;
|
|
205
|
+
};
|
|
206
|
+
streetLamp: {
|
|
207
|
+
x: number;
|
|
208
|
+
y: number;
|
|
209
|
+
w: number;
|
|
210
|
+
h: number;
|
|
211
|
+
};
|
|
212
|
+
planter: {
|
|
213
|
+
x: number;
|
|
214
|
+
y: number;
|
|
215
|
+
w: number;
|
|
216
|
+
h: number;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
/** A plant's size before its spot's scale: tiles wide, floors tall. */
|
|
220
|
+
export declare const PLANT_SIZE: {
|
|
221
|
+
readonly tree: {
|
|
222
|
+
readonly tiles: 3;
|
|
223
|
+
readonly floors: 1.5;
|
|
224
|
+
};
|
|
225
|
+
readonly bush: {
|
|
226
|
+
readonly tiles: 2;
|
|
227
|
+
readonly floors: 0.5;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
/** A lot plant's canvas: a tree is 3 tiles by 1.5 floors and a bush 2 tiles
|
|
231
|
+
* by half a floor, both scaled by the spot, centered on its tile's left edge
|
|
232
|
+
* (x may land on a half pixel) and standing on the ground strip: its bottom
|
|
233
|
+
* edge two rows under the strip's top, so its last row is one row under it. */
|
|
234
|
+
export declare function plantRect(spot: PlantSpot): PieceRect;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { viewWorld } from '../presentation/viewWorld.js';
|
|
2
|
+
import { FLOOR, TILE } from './scale.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Pure layout for the world outside the tower (the scenery pass): the skyline
|
|
6
|
+
* silhouettes, the fountain-roundabout plaza at the left lot edge, the street
|
|
7
|
+
* on the far side, the grass/apron split along the ground line, and the tree and bush
|
|
8
|
+
* spots on the open lot. Everything here is a pure function of the tower's
|
|
9
|
+
* founding seed (RNG.initialSeed, fixed for the tower's whole life; the live
|
|
10
|
+
* RNG state mutates every roll and must never key visuals) and the built
|
|
11
|
+
* ground floor, so the scenery is deterministic per tower and
|
|
12
|
+
* unit-testable without a canvas; `towerScenery.ts` turns these numbers into
|
|
13
|
+
* actors.
|
|
14
|
+
*
|
|
15
|
+
* Geometry contract (owner-approved mockups, 2026-07-21): the buildable lot
|
|
16
|
+
* (the world's lotWidth tile columns, indices 0 through lotWidth - 1) is untouched
|
|
17
|
+
* canon. All scenery lives OUTSIDE it or
|
|
18
|
+
* on its ground line, and everything draws BEHIND the tower (z order), so no
|
|
19
|
+
* scenery can ever cover a built room.
|
|
20
|
+
*/
|
|
21
|
+
/** Left edge, walking away from the lot: sidewalk, then the fountain
|
|
22
|
+
* roundabout (an elliptical drive around a grass island), then the road
|
|
23
|
+
* running to the dirt's far edge. All in tiles; negative = left of the lot. */
|
|
24
|
+
const PLAZA_SIDEWALK_TILES = 4;
|
|
25
|
+
const ROUNDABOUT_START = -36;
|
|
26
|
+
const ROUNDABOUT_TILES = 32;
|
|
27
|
+
const FOUNTAIN_TILE = -20;
|
|
28
|
+
const PLAZA_LAMP_TILES = [-35, -5];
|
|
29
|
+
/** Right-edge strip: paved forecourt, then sidewalk, then the road. */
|
|
30
|
+
const FORECOURT_TILES = 3;
|
|
31
|
+
const SIDEWALK_TILES = 4;
|
|
32
|
+
const ROAD_TILES = 44;
|
|
33
|
+
/** The cement apron extends this far past the built ground-floor footprint. */
|
|
34
|
+
const APRON_PAD_TILES = 3;
|
|
35
|
+
/** How far past each lot edge the skyline band runs: one full lot width, the
|
|
36
|
+
* same reach as the dirt ground, so the city ends exactly where the ground
|
|
37
|
+
* does even zoomed all the way out at a camera edge. */
|
|
38
|
+
function skylineOverscanTiles(world = viewWorld()) {
|
|
39
|
+
return world.lotWidth;
|
|
40
|
+
}
|
|
41
|
+
/** First sidewalk tile, first road tile (both beyond the lot's last column),
|
|
42
|
+
* from the view's world (the tower catalog's lot width). */
|
|
43
|
+
function sidewalkStart(world = viewWorld()) {
|
|
44
|
+
return world.lotWidth + FORECOURT_TILES;
|
|
45
|
+
}
|
|
46
|
+
function roadStart(world = viewWorld()) {
|
|
47
|
+
return sidewalkStart(world) + SIDEWALK_TILES;
|
|
48
|
+
}
|
|
49
|
+
/** Deterministic unit-interval hash. Integer bit-mixing only (no trig, no
|
|
50
|
+
* floating-point transcendentals), so every engine renders identical pixels:
|
|
51
|
+
* the pinned screenshot container's byte-compare determinism guard depends on
|
|
52
|
+
* it. Fractional input is truncated; callers pass integer keys. */
|
|
53
|
+
function hash01(n) {
|
|
54
|
+
let h = Math.trunc(n) | 0;
|
|
55
|
+
h = Math.imul(h ^ (h >>> 16), 0x45d9f3b);
|
|
56
|
+
h = Math.imul(h ^ (h >>> 16), 0x45d9f3b);
|
|
57
|
+
h ^= h >>> 16;
|
|
58
|
+
return (h >>> 0) / 4294967296;
|
|
59
|
+
}
|
|
60
|
+
/** Skyline fills, far band then near: translucent, so overlaps deepen. */
|
|
61
|
+
const SKYLINE_FILLS = ["rgba(70, 86, 120, 0.55)", "rgba(52, 66, 96, 0.75)"];
|
|
62
|
+
const SKYLINE_BANDS = [
|
|
63
|
+
{ depth: 0, start: 0, step: 16, w: { base: 9, span: 8, key: 1 }, hFloors: { base: 10, span: 26, key: 3 } },
|
|
64
|
+
{ depth: 1, start: 5, step: 23, w: { base: 12, span: 10, key: 7 }, hFloors: { base: 5, span: 13, key: 13 } },
|
|
65
|
+
];
|
|
66
|
+
/** The two-depth skyline band. It runs CONTINUOUSLY across the whole scene,
|
|
67
|
+
* the tower included: it draws behind everything, so it shows wherever the
|
|
68
|
+
* built tower does not cover it (owner call: the city is always back there). */
|
|
69
|
+
function skylineRects(seed, world = viewWorld()) {
|
|
70
|
+
const rects = [];
|
|
71
|
+
const from = -skylineOverscanTiles(world);
|
|
72
|
+
const to = world.lotWidth + skylineOverscanTiles(world);
|
|
73
|
+
for (const b of SKYLINE_BANDS) {
|
|
74
|
+
for (let t = from + b.start; t < to; t += b.step) {
|
|
75
|
+
const w = b.w.base + hash01(seed + t * b.w.key) * b.w.span;
|
|
76
|
+
rects.push({ tile: t, w, hFloors: b.hFloors.base + hash01(seed + t * b.hFloors.key) * b.hFloors.span, depth: b.depth });
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return rects;
|
|
80
|
+
}
|
|
81
|
+
/** The plant-spot rule, published in the atlas data. A candidate every
|
|
82
|
+
* `step` tiles from `margin` to `lotWidth - margin` (exclusive); with
|
|
83
|
+
* `r = hash01(seed * 3 + t)`, the spot is skipped below `skipBelow`, a bush
|
|
84
|
+
* below `bushBelow` and a tree otherwise. It sits at `t + floor(hash01(seed +
|
|
85
|
+
* t * jitter.key) * jitter.span) + jitter.min` and is scaled `scale.base +
|
|
86
|
+
* hash01(seed + t * scale.key) * scale.span`. */
|
|
87
|
+
const PLANT_RULE = {
|
|
88
|
+
margin: 6,
|
|
89
|
+
step: 13,
|
|
90
|
+
skipBelow: 0.42,
|
|
91
|
+
bushBelow: 0.72,
|
|
92
|
+
jitter: { span: 7, min: -3, key: 5 },
|
|
93
|
+
scale: { base: 0.8, span: 0.4, key: 11 },
|
|
94
|
+
};
|
|
95
|
+
/** Tree and bush spots on the open lot, deterministic per tower seed. Spots
|
|
96
|
+
* keep clear of both lot edges so nothing crowds the plaza sidewalk or the street. */
|
|
97
|
+
function plantSpots(seed, world = viewWorld()) {
|
|
98
|
+
const R = PLANT_RULE;
|
|
99
|
+
const spots = [];
|
|
100
|
+
for (let t = R.margin; t < world.lotWidth - R.margin; t += R.step) {
|
|
101
|
+
const r = hash01(seed * 3 + t);
|
|
102
|
+
if (r < R.skipBelow)
|
|
103
|
+
continue; // gaps keep the lot from reading as an orchard
|
|
104
|
+
const jitter = Math.floor(hash01(seed + t * R.jitter.key) * R.jitter.span) + R.jitter.min;
|
|
105
|
+
spots.push({
|
|
106
|
+
tile: t + jitter,
|
|
107
|
+
scale: R.scale.base + hash01(seed + t * R.scale.key) * R.scale.span,
|
|
108
|
+
kind: r < R.bushBelow ? "bush" : "tree",
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return spots;
|
|
112
|
+
}
|
|
113
|
+
/** The cement apron under and around the tower: the built ground-floor
|
|
114
|
+
* footprint padded by {@link APRON_PAD_TILES}, clamped to the lot. Null when
|
|
115
|
+
* nothing is built on the ground floor yet (a fresh lot is all grass). */
|
|
116
|
+
function apronRange(units, world = viewWorld()) {
|
|
117
|
+
let min = Infinity;
|
|
118
|
+
let max = -Infinity;
|
|
119
|
+
for (const u of units) {
|
|
120
|
+
if (u.floor !== 1)
|
|
121
|
+
continue;
|
|
122
|
+
if (u.x < min)
|
|
123
|
+
min = u.x;
|
|
124
|
+
if (u.x + u.width > max)
|
|
125
|
+
max = u.x + u.width;
|
|
126
|
+
}
|
|
127
|
+
if (min === Infinity)
|
|
128
|
+
return null;
|
|
129
|
+
return {
|
|
130
|
+
min: Math.max(0, min - APRON_PAD_TILES),
|
|
131
|
+
max: Math.min(world.lotWidth, max + APRON_PAD_TILES),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
/** Half a plant's footprint in tiles, for {@link plantVisible}. */
|
|
135
|
+
const PLANT_CLEAR_TILES = 2;
|
|
136
|
+
/** Whether a plant is still standing: construction (the apron) displaces it.
|
|
137
|
+
* A plant needs its whole little footprint outside the paved range. Two tiles
|
|
138
|
+
* of half-width covers the widest drawn canopy (a max-scale tree spans 3.6
|
|
139
|
+
* tiles, a max-scale bush 2.4), so no foliage ever overhangs fresh cement. */
|
|
140
|
+
function plantVisible(spot, apron) {
|
|
141
|
+
if (!apron)
|
|
142
|
+
return true;
|
|
143
|
+
const half = PLANT_CLEAR_TILES;
|
|
144
|
+
return spot.tile + half <= apron.min || spot.tile - half >= apron.max;
|
|
145
|
+
}
|
|
146
|
+
/** The dirt under the scene: `lots` lot widths centered on the lot, from the
|
|
147
|
+
* ground line down {@link groundBelowFloors} floors, and the `lineH`-px
|
|
148
|
+
* ground line centered on y 0 across the same span. */
|
|
149
|
+
const GROUND = { lots: 3, lineH: 6, dirt: "#3a3326", line: "#6f6a60" };
|
|
150
|
+
/** How many floors the dirt runs below the ground line: past the lowest
|
|
151
|
+
* basement with room to spare. */
|
|
152
|
+
function groundBelowFloors(world = viewWorld()) {
|
|
153
|
+
return 2 - world.minFloor + 14;
|
|
154
|
+
}
|
|
155
|
+
/** Rows of the lot's ground strip above and below the ground line. */
|
|
156
|
+
const STRIP_ABOVE = 7;
|
|
157
|
+
const STRIP_BELOW = 4;
|
|
158
|
+
const PLAZA_LAMP_W = 84;
|
|
159
|
+
const PLAZA_LAMP_H = Math.round(FLOOR * 1.6) + 14;
|
|
160
|
+
const STREET_LAMP_W = 8 * TILE;
|
|
161
|
+
const STREET_LAMP_H = Math.round(FLOOR * 1.8);
|
|
162
|
+
const PLANTER_W = 2 * TILE;
|
|
163
|
+
const PLANTER_H = 18;
|
|
164
|
+
/** Where the game puts each fixed scenery piece in a world (`towerScenery.ts`
|
|
165
|
+
* builds its actors from these, and the sprite atlas publishes them). */
|
|
166
|
+
function sceneryPieces(world = viewWorld()) {
|
|
167
|
+
const lot = world.lotWidth;
|
|
168
|
+
const sidewalk = sidewalkStart(world);
|
|
169
|
+
const road = roadStart(world);
|
|
170
|
+
return {
|
|
171
|
+
plazaSidewalk: { x: -PLAZA_SIDEWALK_TILES * TILE, y: -7, w: PLAZA_SIDEWALK_TILES * TILE, h: 11 },
|
|
172
|
+
roundabout: { x: ROUNDABOUT_START * TILE, y: -30, w: ROUNDABOUT_TILES * TILE, h: 48 },
|
|
173
|
+
fountain: { x: FOUNTAIN_TILE * TILE - 50, y: -102, w: 100, h: 112 },
|
|
174
|
+
plazaLamps: PLAZA_LAMP_TILES.map((t) => ({ x: t * TILE - PLAZA_LAMP_W / 2, y: -PLAZA_LAMP_H + 4, w: PLAZA_LAMP_W, h: PLAZA_LAMP_H })),
|
|
175
|
+
/** The road from the scene's left edge to the roundabout (the game cuts it
|
|
176
|
+
* into texture-safe segments, each 1 px wider to hide seams). */
|
|
177
|
+
leftRoad: { x: -lot * TILE, y: -2, w: (ROUNDABOUT_START + lot) * TILE, h: 14 },
|
|
178
|
+
forecourt: { x: lot * TILE, y: -6, w: FORECOURT_TILES * TILE, h: 10 },
|
|
179
|
+
sidewalk: { x: sidewalk * TILE, y: -7, w: (road - sidewalk) * TILE, h: 11 },
|
|
180
|
+
rightRoad: { x: road * TILE, y: -2, w: ROAD_TILES * TILE, h: 14 },
|
|
181
|
+
streetLamp: { x: Math.round((sidewalk + 1) * TILE - STREET_LAMP_W / 2), y: -STREET_LAMP_H - 7, w: STREET_LAMP_W, h: STREET_LAMP_H },
|
|
182
|
+
planter: { x: Math.round((lot + FORECOURT_TILES / 2) * TILE - PLANTER_W / 2), y: -PLANTER_H - 6, w: PLANTER_W, h: PLANTER_H },
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
/** A plant's size before its spot's scale: tiles wide, floors tall. */
|
|
186
|
+
const PLANT_SIZE = { tree: { tiles: 3, floors: 1.5 }, bush: { tiles: 2, floors: 0.5 } };
|
|
187
|
+
/** A lot plant's canvas: a tree is 3 tiles by 1.5 floors and a bush 2 tiles
|
|
188
|
+
* by half a floor, both scaled by the spot, centered on its tile's left edge
|
|
189
|
+
* (x may land on a half pixel) and standing on the ground strip: its bottom
|
|
190
|
+
* edge two rows under the strip's top, so its last row is one row under it. */
|
|
191
|
+
function plantRect(spot) {
|
|
192
|
+
const size = PLANT_SIZE[spot.kind];
|
|
193
|
+
const w = Math.round(size.tiles * TILE * spot.scale);
|
|
194
|
+
const h = Math.round(FLOOR * size.floors * spot.scale);
|
|
195
|
+
return { x: spot.tile * TILE - w / 2, y: -h - STRIP_ABOVE + 2, w, h };
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export { APRON_PAD_TILES, FORECOURT_TILES, FOUNTAIN_TILE, GROUND, PLANT_CLEAR_TILES, PLANT_RULE, PLANT_SIZE, PLAZA_LAMP_TILES, PLAZA_SIDEWALK_TILES, ROAD_TILES, ROUNDABOUT_START, ROUNDABOUT_TILES, SIDEWALK_TILES, SKYLINE_BANDS, SKYLINE_FILLS, STRIP_ABOVE, STRIP_BELOW, apronRange, groundBelowFloors, hash01, plantRect, plantSpots, plantVisible, roadStart, sceneryPieces, sidewalkStart, skylineOverscanTiles, skylineRects };
|
|
199
|
+
//# sourceMappingURL=sceneryLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sceneryLayout.js","sources":["../../src/render/sceneryLayout.ts"],"sourcesContent":["import { viewWorld, type ViewWorld } from \"../presentation/viewWorld\";\nimport type { UnitView } from \"../simport/view\";\nimport { FLOOR, TILE } from \"./scale\";\n\n/**\n * Pure layout for the world outside the tower (the scenery pass): the skyline\n * silhouettes, the fountain-roundabout plaza at the left lot edge, the street\n * on the far side, the grass/apron split along the ground line, and the tree and bush\n * spots on the open lot. Everything here is a pure function of the tower's\n * founding seed (RNG.initialSeed, fixed for the tower's whole life; the live\n * RNG state mutates every roll and must never key visuals) and the built\n * ground floor, so the scenery is deterministic per tower and\n * unit-testable without a canvas; `towerScenery.ts` turns these numbers into\n * actors.\n *\n * Geometry contract (owner-approved mockups, 2026-07-21): the buildable lot\n * (the world's lotWidth tile columns, indices 0 through lotWidth - 1) is untouched\n * canon. All scenery lives OUTSIDE it or\n * on its ground line, and everything draws BEHIND the tower (z order), so no\n * scenery can ever cover a built room.\n */\n\n/** Left edge, walking away from the lot: sidewalk, then the fountain\n * roundabout (an elliptical drive around a grass island), then the road\n * running to the dirt's far edge. All in tiles; negative = left of the lot. */\nexport const PLAZA_SIDEWALK_TILES = 4;\nexport const ROUNDABOUT_START = -36;\nexport const ROUNDABOUT_TILES = 32;\nexport const FOUNTAIN_TILE = -20;\nexport const PLAZA_LAMP_TILES = [-35, -5] as const;\n/** Right-edge strip: paved forecourt, then sidewalk, then the road. */\nexport const FORECOURT_TILES = 3;\nexport const SIDEWALK_TILES = 4;\nexport const ROAD_TILES = 44;\n/** The cement apron extends this far past the built ground-floor footprint. */\nexport const APRON_PAD_TILES = 3;\n/** How far past each lot edge the skyline band runs: one full lot width, the\n * same reach as the dirt ground, so the city ends exactly where the ground\n * does even zoomed all the way out at a camera edge. */\nexport function skylineOverscanTiles(world: ViewWorld = viewWorld()): number {\n return world.lotWidth;\n}\n\n/** First sidewalk tile, first road tile (both beyond the lot's last column),\n * from the view's world (the tower catalog's lot width). */\nexport function sidewalkStart(world: ViewWorld = viewWorld()): number {\n return world.lotWidth + FORECOURT_TILES;\n}\nexport function roadStart(world: ViewWorld = viewWorld()): number {\n return sidewalkStart(world) + SIDEWALK_TILES;\n}\n\n/** Deterministic unit-interval hash. Integer bit-mixing only (no trig, no\n * floating-point transcendentals), so every engine renders identical pixels:\n * the pinned screenshot container's byte-compare determinism guard depends on\n * it. Fractional input is truncated; callers pass integer keys. */\nexport function hash01(n: number): number {\n let h = Math.trunc(n) | 0;\n h = Math.imul(h ^ (h >>> 16), 0x45d9f3b);\n h = Math.imul(h ^ (h >>> 16), 0x45d9f3b);\n h ^= h >>> 16;\n return (h >>> 0) / 4294967296;\n}\n\nexport interface SkylineRect {\n /** Left edge in tiles (may be negative: the band runs past both lot edges). */\n tile: number;\n /** Width in tiles. */\n w: number;\n /** Height in floors. */\n hFloors: number;\n /** 0 = far band (lighter, taller), 1 = near band (darker, lower). */\n depth: 0 | 1;\n}\n\n/** One skyline band: a building every `step` tiles from `start` tiles past\n * the lot's left edge (the overscan), each `base + hash01(seed + t * key) *\n * span` wide (tiles) and tall (floors). Published in the atlas data so a\n * frontend with the tower seed rebuilds the same city. */\nexport interface SkylineBand {\n depth: 0 | 1;\n start: number;\n step: number;\n w: { base: number; span: number; key: number };\n hFloors: { base: number; span: number; key: number };\n}\n\n/** Skyline fills, far band then near: translucent, so overlaps deepen. */\nexport const SKYLINE_FILLS = [\"rgba(70, 86, 120, 0.55)\", \"rgba(52, 66, 96, 0.75)\"] as const;\n\nexport const SKYLINE_BANDS: readonly SkylineBand[] = [\n { depth: 0, start: 0, step: 16, w: { base: 9, span: 8, key: 1 }, hFloors: { base: 10, span: 26, key: 3 } },\n { depth: 1, start: 5, step: 23, w: { base: 12, span: 10, key: 7 }, hFloors: { base: 5, span: 13, key: 13 } },\n];\n\n/** The two-depth skyline band. It runs CONTINUOUSLY across the whole scene,\n * the tower included: it draws behind everything, so it shows wherever the\n * built tower does not cover it (owner call: the city is always back there). */\nexport function skylineRects(seed: number, world: ViewWorld = viewWorld()): SkylineRect[] {\n const rects: SkylineRect[] = [];\n const from = -skylineOverscanTiles(world);\n const to = world.lotWidth + skylineOverscanTiles(world);\n for (const b of SKYLINE_BANDS) {\n for (let t = from + b.start; t < to; t += b.step) {\n const w = b.w.base + hash01(seed + t * b.w.key) * b.w.span;\n rects.push({ tile: t, w, hFloors: b.hFloors.base + hash01(seed + t * b.hFloors.key) * b.hFloors.span, depth: b.depth });\n }\n }\n return rects;\n}\n\nexport interface PlantSpot {\n tile: number;\n scale: number;\n kind: \"tree\" | \"bush\";\n}\n\n/** The plant-spot rule, published in the atlas data. A candidate every\n * `step` tiles from `margin` to `lotWidth - margin` (exclusive); with\n * `r = hash01(seed * 3 + t)`, the spot is skipped below `skipBelow`, a bush\n * below `bushBelow` and a tree otherwise. It sits at `t + floor(hash01(seed +\n * t * jitter.key) * jitter.span) + jitter.min` and is scaled `scale.base +\n * hash01(seed + t * scale.key) * scale.span`. */\nexport const PLANT_RULE = {\n margin: 6,\n step: 13,\n skipBelow: 0.42,\n bushBelow: 0.72,\n jitter: { span: 7, min: -3, key: 5 },\n scale: { base: 0.8, span: 0.4, key: 11 },\n} as const;\n\n/** Tree and bush spots on the open lot, deterministic per tower seed. Spots\n * keep clear of both lot edges so nothing crowds the plaza sidewalk or the street. */\nexport function plantSpots(seed: number, world: ViewWorld = viewWorld()): PlantSpot[] {\n const R = PLANT_RULE;\n const spots: PlantSpot[] = [];\n for (let t = R.margin; t < world.lotWidth - R.margin; t += R.step) {\n const r = hash01(seed * 3 + t);\n if (r < R.skipBelow) continue; // gaps keep the lot from reading as an orchard\n const jitter = Math.floor(hash01(seed + t * R.jitter.key) * R.jitter.span) + R.jitter.min;\n spots.push({\n tile: t + jitter,\n scale: R.scale.base + hash01(seed + t * R.scale.key) * R.scale.span,\n kind: r < R.bushBelow ? \"bush\" : \"tree\",\n });\n }\n return spots;\n}\n\n/** The cement apron under and around the tower: the built ground-floor\n * footprint padded by {@link APRON_PAD_TILES}, clamped to the lot. Null when\n * nothing is built on the ground floor yet (a fresh lot is all grass). */\nexport function apronRange(units: readonly UnitView[], world: ViewWorld = viewWorld()): { min: number; max: number } | null {\n let min = Infinity;\n let max = -Infinity;\n for (const u of units) {\n if (u.floor !== 1) continue;\n if (u.x < min) min = u.x;\n if (u.x + u.width > max) max = u.x + u.width;\n }\n if (min === Infinity) return null;\n return {\n min: Math.max(0, min - APRON_PAD_TILES),\n max: Math.min(world.lotWidth, max + APRON_PAD_TILES),\n };\n}\n\n/** Half a plant's footprint in tiles, for {@link plantVisible}. */\nexport const PLANT_CLEAR_TILES = 2;\n\n/** Whether a plant is still standing: construction (the apron) displaces it.\n * A plant needs its whole little footprint outside the paved range. Two tiles\n * of half-width covers the widest drawn canopy (a max-scale tree spans 3.6\n * tiles, a max-scale bush 2.4), so no foliage ever overhangs fresh cement. */\nexport function plantVisible(spot: PlantSpot, apron: { min: number; max: number } | null): boolean {\n if (!apron) return true;\n const half = PLANT_CLEAR_TILES;\n return spot.tile + half <= apron.min || spot.tile - half >= apron.max;\n}\n\n/** The dirt under the scene: `lots` lot widths centered on the lot, from the\n * ground line down {@link groundBelowFloors} floors, and the `lineH`-px\n * ground line centered on y 0 across the same span. */\nexport const GROUND = { lots: 3, lineH: 6, dirt: \"#3a3326\", line: \"#6f6a60\" } as const;\n\n/** How many floors the dirt runs below the ground line: past the lowest\n * basement with room to spare. */\nexport function groundBelowFloors(world: ViewWorld = viewWorld()): number {\n return 2 - world.minFloor + 14;\n}\n\n/** Rows of the lot's ground strip above and below the ground line. */\nexport const STRIP_ABOVE = 7;\nexport const STRIP_BELOW = 4;\n\n/** A scenery piece's canvas in world px: x from the lot's left edge, y from\n * the ground line (negative is up), for its top-left corner. */\nexport interface PieceRect {\n x: number;\n y: number;\n w: number;\n h: number;\n}\n\nconst PLAZA_LAMP_W = 84;\nconst PLAZA_LAMP_H = Math.round(FLOOR * 1.6) + 14;\nconst STREET_LAMP_W = 8 * TILE;\nconst STREET_LAMP_H = Math.round(FLOOR * 1.8);\nconst PLANTER_W = 2 * TILE;\nconst PLANTER_H = 18;\n\n/** Where the game puts each fixed scenery piece in a world (`towerScenery.ts`\n * builds its actors from these, and the sprite atlas publishes them). */\nexport function sceneryPieces(world: ViewWorld = viewWorld()) {\n const lot = world.lotWidth;\n const sidewalk = sidewalkStart(world);\n const road = roadStart(world);\n return {\n plazaSidewalk: { x: -PLAZA_SIDEWALK_TILES * TILE, y: -7, w: PLAZA_SIDEWALK_TILES * TILE, h: 11 },\n roundabout: { x: ROUNDABOUT_START * TILE, y: -30, w: ROUNDABOUT_TILES * TILE, h: 48 },\n fountain: { x: FOUNTAIN_TILE * TILE - 50, y: -102, w: 100, h: 112 },\n plazaLamps: PLAZA_LAMP_TILES.map((t) => ({ x: t * TILE - PLAZA_LAMP_W / 2, y: -PLAZA_LAMP_H + 4, w: PLAZA_LAMP_W, h: PLAZA_LAMP_H })),\n /** The road from the scene's left edge to the roundabout (the game cuts it\n * into texture-safe segments, each 1 px wider to hide seams). */\n leftRoad: { x: -lot * TILE, y: -2, w: (ROUNDABOUT_START + lot) * TILE, h: 14 },\n forecourt: { x: lot * TILE, y: -6, w: FORECOURT_TILES * TILE, h: 10 },\n sidewalk: { x: sidewalk * TILE, y: -7, w: (road - sidewalk) * TILE, h: 11 },\n rightRoad: { x: road * TILE, y: -2, w: ROAD_TILES * TILE, h: 14 },\n streetLamp: { x: Math.round((sidewalk + 1) * TILE - STREET_LAMP_W / 2), y: -STREET_LAMP_H - 7, w: STREET_LAMP_W, h: STREET_LAMP_H },\n planter: { x: Math.round((lot + FORECOURT_TILES / 2) * TILE - PLANTER_W / 2), y: -PLANTER_H - 6, w: PLANTER_W, h: PLANTER_H },\n } satisfies Record<string, PieceRect | PieceRect[]>;\n}\n\n/** A plant's size before its spot's scale: tiles wide, floors tall. */\nexport const PLANT_SIZE = { tree: { tiles: 3, floors: 1.5 }, bush: { tiles: 2, floors: 0.5 } } as const;\n\n/** A lot plant's canvas: a tree is 3 tiles by 1.5 floors and a bush 2 tiles\n * by half a floor, both scaled by the spot, centered on its tile's left edge\n * (x may land on a half pixel) and standing on the ground strip: its bottom\n * edge two rows under the strip's top, so its last row is one row under it. */\nexport function plantRect(spot: PlantSpot): PieceRect {\n const size = PLANT_SIZE[spot.kind];\n const w = Math.round(size.tiles * TILE * spot.scale);\n const h = Math.round(FLOOR * size.floors * spot.scale);\n return { x: spot.tile * TILE - w / 2, y: -h - STRIP_ABOVE + 2, w, h };\n}\n"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;AAgBG;AAEH;;AAEgF;AACzE,MAAM,oBAAoB,GAAG;AAC7B,MAAM,gBAAgB,GAAG,CAAC;AAC1B,MAAM,gBAAgB,GAAG;AACzB,MAAM,aAAa,GAAG,CAAC;AACvB,MAAM,gBAAgB,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AACxC;AACO,MAAM,eAAe,GAAG;AACxB,MAAM,cAAc,GAAG;AACvB,MAAM,UAAU,GAAG;AAC1B;AACO,MAAM,eAAe,GAAG;AAC/B;;AAEyD;AACnD,SAAU,oBAAoB,CAAC,KAAA,GAAmB,SAAS,EAAE,EAAA;IACjE,OAAO,KAAK,CAAC,QAAQ;AACvB;AAEA;AAC6D;AACvD,SAAU,aAAa,CAAC,KAAA,GAAmB,SAAS,EAAE,EAAA;AAC1D,IAAA,OAAO,KAAK,CAAC,QAAQ,GAAG,eAAe;AACzC;AACM,SAAU,SAAS,CAAC,KAAA,GAAmB,SAAS,EAAE,EAAA;AACtD,IAAA,OAAO,aAAa,CAAC,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AA;IACvC,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;AAClC,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;AACpD,IAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC;IACtD,OAAO,EAAE,CAAC,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,WAAW,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;AACvE;;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ElevatorQueueView } from "../../shared/engineTypes";
|
|
2
|
+
export declare function shade(hex: string, amt: number): string;
|
|
3
|
+
/** Like {@link shade}, but returns a translucent `rgba()` for a glass fill. */
|
|
4
|
+
export declare function shadeAlpha(hex: string, amt: number, alpha: number): string;
|
|
5
|
+
/** Deterministic 0..1 from an integer seed — for stable per-unit variety. */
|
|
6
|
+
export declare function rand(seed: number): number;
|
|
7
|
+
export declare const ACCENTS: string[];
|
|
8
|
+
export interface DrawCtx {
|
|
9
|
+
ctx: CanvasRenderingContext2D;
|
|
10
|
+
/** Whether the tower interior should look "lit" (evening/night). */
|
|
11
|
+
lit: boolean;
|
|
12
|
+
/** Continuous animation time in seconds (for flicker / motion). */
|
|
13
|
+
anim: number;
|
|
14
|
+
/** In-game hour 0..23, for time-of-day behavior. */
|
|
15
|
+
hour: number;
|
|
16
|
+
/** False when the tower holds nobody at all, which hides the entrance staff so
|
|
17
|
+
* a brand-new tower reads as empty as it is. Undefined means staffed, so the
|
|
18
|
+
* sprite gallery and any caller that does not thread it keep their current
|
|
19
|
+
* output. Set once per scene sync, never per frame: the population read
|
|
20
|
+
* behind it walks every unit. */
|
|
21
|
+
staffed?: boolean;
|
|
22
|
+
/** 0..1 fraction of working parking spaces holding a car right now (office
|
|
23
|
+
* cars by day, suite guests' cars overnight) — drives the garage visuals. */
|
|
24
|
+
parkingUse?: number;
|
|
25
|
+
/** Per-unit flag set by the room bake closure: this parking space is dead
|
|
26
|
+
* (not chained to a ramp), so no car could ever have reached it. */
|
|
27
|
+
parkingDead?: boolean;
|
|
28
|
+
/** 0..1 how full the recycling centers are right now (shared load) —
|
|
29
|
+
* garbage piles up through the day until the morning truck collection. */
|
|
30
|
+
recycleFill?: number;
|
|
31
|
+
/** Read-only elevator queue + car-fill projection, memoized once per sim step
|
|
32
|
+
* by the engine ({@link ElevatorQueueView}) and set once per frame by the
|
|
33
|
+
* frame prelude. A VIEW of tracked crowd state, so the transport render path can
|
|
34
|
+
* read landing queues and cab fill without a draw routine calling the engine.
|
|
35
|
+
* Populated by TowerEngine; the queue render that consumes it is a follow-up. */
|
|
36
|
+
elevatorQueue?: ElevatorQueueView;
|
|
37
|
+
}
|
|
38
|
+
/** The 7px signage every service facility paints on its back wall; hidden
|
|
39
|
+
* when the room is too narrow to fit it. */
|
|
40
|
+
export declare function serviceLabel(ctx: CanvasRenderingContext2D, text: string, sx: number, y: number, color: string, minW: number, w: number): void;
|
|
41
|
+
export declare function serviceBack(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, color: string): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
function shade(hex, amt) {
|
|
2
|
+
const n = parseInt(hex.slice(1), 16);
|
|
3
|
+
const r = clamp(((n >> 16) & 255) + amt);
|
|
4
|
+
const g = clamp(((n >> 8) & 255) + amt);
|
|
5
|
+
const b = clamp((n & 255) + amt);
|
|
6
|
+
return `rgb(${r},${g},${b})`;
|
|
7
|
+
}
|
|
8
|
+
/** Like {@link shade}, but returns a translucent `rgba()` for a glass fill. */
|
|
9
|
+
function shadeAlpha(hex, amt, alpha) {
|
|
10
|
+
const n = parseInt(hex.slice(1), 16);
|
|
11
|
+
const r = clamp(((n >> 16) & 255) + amt);
|
|
12
|
+
const g = clamp(((n >> 8) & 255) + amt);
|
|
13
|
+
const b = clamp((n & 255) + amt);
|
|
14
|
+
// Clamp alpha into [0,1] (and default a non-finite value to opaque) so a
|
|
15
|
+
// future caller can never emit an invalid rgba() string.
|
|
16
|
+
const a = Number.isFinite(alpha) ? Math.max(0, Math.min(1, alpha)) : 1;
|
|
17
|
+
return `rgba(${r},${g},${b},${a})`;
|
|
18
|
+
}
|
|
19
|
+
function clamp(v) {
|
|
20
|
+
return Math.max(0, Math.min(255, Math.round(v)));
|
|
21
|
+
}
|
|
22
|
+
/** Deterministic 0..1 from an integer seed — for stable per-unit variety. */
|
|
23
|
+
function rand(seed) {
|
|
24
|
+
let x = (seed * 2654435761) | 0;
|
|
25
|
+
x = Math.imul(x ^ (x >>> 15), 0x2c1b3c6d);
|
|
26
|
+
x = Math.imul(x ^ (x >>> 13), 0x297a2d39);
|
|
27
|
+
return ((x ^ (x >>> 16)) >>> 0) / 4294967296;
|
|
28
|
+
}
|
|
29
|
+
const ACCENTS = ["#e85d5d", "#5db4e8", "#6bd47a", "#e8c14a", "#b07fe0", "#e88f4a", "#4ad0c0"];
|
|
30
|
+
/** The 7px signage every service facility paints on its back wall; hidden
|
|
31
|
+
* when the room is too narrow to fit it. */
|
|
32
|
+
function serviceLabel(ctx, text, sx, y, color, minW, w) {
|
|
33
|
+
ctx.fillStyle = color;
|
|
34
|
+
ctx.font = "7px system-ui, sans-serif";
|
|
35
|
+
if (w > minW)
|
|
36
|
+
ctx.fillText(text, sx, y + 11);
|
|
37
|
+
}
|
|
38
|
+
function serviceBack(ctx, x, y, w, h, color) {
|
|
39
|
+
ctx.fillStyle = shade(color, -45);
|
|
40
|
+
ctx.fillRect(x, y + 2, w, h - 5);
|
|
41
|
+
ctx.fillStyle = color;
|
|
42
|
+
ctx.fillRect(x + 2, y + 4, w - 4, h - 9);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { ACCENTS, rand, serviceBack, serviceLabel, shade, shadeAlpha };
|
|
46
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sources":["../../../src/render/sprites/common.ts"],"sourcesContent":["import type { ElevatorQueueView } from \"../../shared/engineTypes\";\n\nexport function shade(hex: string, amt: number): string {\n const n = parseInt(hex.slice(1), 16);\n const r = clamp(((n >> 16) & 255) + amt);\n const g = clamp(((n >> 8) & 255) + amt);\n const b = clamp((n & 255) + amt);\n return `rgb(${r},${g},${b})`;\n}\n/** Like {@link shade}, but returns a translucent `rgba()` for a glass fill. */\nexport function shadeAlpha(hex: string, amt: number, alpha: number): string {\n const n = parseInt(hex.slice(1), 16);\n const r = clamp(((n >> 16) & 255) + amt);\n const g = clamp(((n >> 8) & 255) + amt);\n const b = clamp((n & 255) + amt);\n // Clamp alpha into [0,1] (and default a non-finite value to opaque) so a\n // future caller can never emit an invalid rgba() string.\n const a = Number.isFinite(alpha) ? Math.max(0, Math.min(1, alpha)) : 1;\n return `rgba(${r},${g},${b},${a})`;\n}\nfunction clamp(v: number): number {\n return Math.max(0, Math.min(255, Math.round(v)));\n}\n/** Deterministic 0..1 from an integer seed — for stable per-unit variety. */\nexport function rand(seed: number): number {\n let x = (seed * 2654435761) | 0;\n x = Math.imul(x ^ (x >>> 15), 0x2c1b3c6d);\n x = Math.imul(x ^ (x >>> 13), 0x297a2d39);\n return ((x ^ (x >>> 16)) >>> 0) / 4294967296;\n}\n\nexport const ACCENTS = [\"#e85d5d\", \"#5db4e8\", \"#6bd47a\", \"#e8c14a\", \"#b07fe0\", \"#e88f4a\", \"#4ad0c0\"];\n\nexport interface DrawCtx {\n ctx: CanvasRenderingContext2D;\n /** Whether the tower interior should look \"lit\" (evening/night). */\n lit: boolean;\n /** Continuous animation time in seconds (for flicker / motion). */\n anim: number;\n /** In-game hour 0..23, for time-of-day behavior. */\n hour: number;\n /** False when the tower holds nobody at all, which hides the entrance staff so\n * a brand-new tower reads as empty as it is. Undefined means staffed, so the\n * sprite gallery and any caller that does not thread it keep their current\n * output. Set once per scene sync, never per frame: the population read\n * behind it walks every unit. */\n staffed?: boolean;\n /** 0..1 fraction of working parking spaces holding a car right now (office\n * cars by day, suite guests' cars overnight) — drives the garage visuals. */\n parkingUse?: number;\n /** Per-unit flag set by the room bake closure: this parking space is dead\n * (not chained to a ramp), so no car could ever have reached it. */\n parkingDead?: boolean;\n /** 0..1 how full the recycling centers are right now (shared load) —\n * garbage piles up through the day until the morning truck collection. */\n recycleFill?: number;\n /** Read-only elevator queue + car-fill projection, memoized once per sim step\n * by the engine ({@link ElevatorQueueView}) and set once per frame by the\n * frame prelude. A VIEW of tracked crowd state, so the transport render path can\n * read landing queues and cab fill without a draw routine calling the engine.\n * Populated by TowerEngine; the queue render that consumes it is a follow-up. */\n elevatorQueue?: ElevatorQueueView;\n}\n\n/** The 7px signage every service facility paints on its back wall; hidden\n * when the room is too narrow to fit it. */\nexport function serviceLabel(ctx: CanvasRenderingContext2D, text: string, sx: number, y: number, color: string, minW: number, w: number) {\n ctx.fillStyle = color;\n ctx.font = \"7px system-ui, sans-serif\";\n if (w > minW) ctx.fillText(text, sx, y + 11);\n}\n\nexport function serviceBack(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, color: string) {\n ctx.fillStyle = shade(color, -45);\n ctx.fillRect(x, y + 2, w, h - 5);\n ctx.fillStyle = color;\n ctx.fillRect(x + 2, y + 4, w - 4, h - 9);\n}\n"],"names":[],"mappings":"AAEM,SAAU,KAAK,CAAC,GAAW,EAAE,GAAW,EAAA;AAC5C,IAAA,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACpC,IAAA,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,CAAC;AACxC,IAAA,MAAM,CAAC,GAAG,KAAK,CAAC,CA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
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Escalators: the one-story run, the switchback up a tall lobby (#308), and
|
|
3
|
+
* the half-turn a one-story escalator beside a venue takes in Modern
|
|
4
|
+
* (`../venueFlights.ts`). Static structure only: the routed riders ride over
|
|
5
|
+
* it. Split out of `transport.ts`.
|
|
6
|
+
*/
|
|
7
|
+
/** An escalator up a tall lobby (#308): one run a story, each turning back
|
|
8
|
+
* the way the last came, from a steel platform at the turn held up by a
|
|
9
|
+
* post to the hall floor. The bottom run climbs left to right like a
|
|
10
|
+
* one-story escalator. Drawn strictly inside `[sx, sx + w]`. */
|
|
11
|
+
export declare function drawEscalatorSwitchback(ctx: CanvasRenderingContext2D, sx: number, w: number, topY: number, floorH: number, stories: number): void;
|
|
12
|
+
/** A one-story escalator beside a venue: two runs of half a story each, the
|
|
13
|
+
* upper one turning back from a steel landing at the turn, so it climbs
|
|
14
|
+
* left to right and then right to left. Lands at the left of the arrival deck
|
|
15
|
+
* at `bandTop`. The landing sits a pixel above the halfway line so both runs
|
|
16
|
+
* keep whole-pixel bands. Drawn strictly inside `[sx, sx + w]`. */
|
|
17
|
+
export declare function drawEscalatorHalfTurn(ctx: CanvasRenderingContext2D, sx: number, w: number, bandTop: number, bandBottom: number): void;
|
|
18
|
+
/** Where a one-story half-turn escalator turns back: the band's middle,
|
|
19
|
+
* rounded up a pixel on an odd band. */
|
|
20
|
+
export declare function halfTurnY(bandTop: number, bandBottom: number): number;
|
|
21
|
+
/** One escalator run: a clean inclined belt of metallic warm-gray steps with
|
|
22
|
+
* legible amber step edges, a glass side balustrade with a dark moving handrail,
|
|
23
|
+
* and comb-plate landings top and bottom. Confined to the band
|
|
24
|
+
* `[bandTop, bandBottom)` like the stair flight and drawn strictly inside
|
|
25
|
+
* `[sx, sx + w]`. Structure only, NO baked rider: the engine's routed sims ride
|
|
26
|
+
* over it, so an empty tower shows a bare, unoccupied run. Integer coordinates. */
|
|
27
|
+
export declare function drawEscalatorRun(ctx: CanvasRenderingContext2D, sx: number, w: number, bandTop: number, bandBottom: number): void;
|