@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,230 @@
|
|
|
1
|
+
import { layerBreak, layerEnd } from '../../pixelSprites/layers.js';
|
|
2
|
+
import { rand, ACCENTS, shade } from '../common.js';
|
|
3
|
+
import { TILE, FLOOR } from '../../scale.js';
|
|
4
|
+
import { refMap, floorb, box } from './serviceKit.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The basement garage kinds: a single parking space and the parking ramp.
|
|
8
|
+
* Both were first ported from their Figma reference build scripts
|
|
9
|
+
* (`page-01-parking-medical-security.build.js`, `page-01-parking-ramp.build.js`),
|
|
10
|
+
* which are drawn on the retired 11 by 44 grid. Since the re-authoring, this
|
|
11
|
+
* TypeScript is the canonical art, drawn through the shared `refMap` scaler.
|
|
12
|
+
* Placement is engine truth (`basement:true` and the ramp chain); the render
|
|
13
|
+
* only reflects it.
|
|
14
|
+
*
|
|
15
|
+
* The references were re-authored onto the live TILE 10 by FLOOR 45 grid, so
|
|
16
|
+
* `RW`/`RH` equal the shipped footprint and, drawn at that footprint, `refMap`
|
|
17
|
+
* is the identity. Keep them that way: a reference that drifts off the shipped
|
|
18
|
+
* size resamples every rect, and a resampled repeat (stall lines, car wheels,
|
|
19
|
+
* ceiling joists) loses its even pitch. Previews that draw at another size
|
|
20
|
+
* (/gallery) still resample.
|
|
21
|
+
*/
|
|
22
|
+
// ---- Parking spaces ---------------------------------------------------------
|
|
23
|
+
function drawParking(d, u, x, y, w, h) {
|
|
24
|
+
const ctx = d.ctx;
|
|
25
|
+
const RW = 4 * TILE;
|
|
26
|
+
const RH = FLOOR;
|
|
27
|
+
const { F, Fu } = refMap(ctx, x, y, w, h, RW, RH);
|
|
28
|
+
const W = RW;
|
|
29
|
+
const fy = RH - 6;
|
|
30
|
+
// Concrete deck, ceiling beam and pipe, support pillar, painted stall lines.
|
|
31
|
+
F(0, 0, W, fy, "#565A62");
|
|
32
|
+
F(0, 0, W, 3, "#3E424A");
|
|
33
|
+
F(0, 4, W, 1, "#5E636B");
|
|
34
|
+
floorb(F, 0, fy, W, 6, "#4A4E56");
|
|
35
|
+
F(4, 2, 3, fy - 2, "#3E424A");
|
|
36
|
+
F(4, 2, 1, fy - 2, "#4E535B");
|
|
37
|
+
F(9, fy - 16, 1, 15, "#DCDCD0", 0.5);
|
|
38
|
+
F(W - 4, fy - 16, 1, 15, "#DCDCD0", 0.5);
|
|
39
|
+
// The deck is the shell; the car parked in front of it is the furniture, and
|
|
40
|
+
// the P sign hangs on the wall (depth layers, `pixelSprites/layers.ts`).
|
|
41
|
+
layerBreak(ctx);
|
|
42
|
+
// A single car, shown only when this space actually holds one and
|
|
43
|
+
// is not dead. `parkingUse` and `parkingDead` are prepared inputs; a stable
|
|
44
|
+
// per-space roll versus the tower-wide usage fraction fills the same spaces
|
|
45
|
+
// first as the lot loads, and a dead (unchained) space never shows a car.
|
|
46
|
+
const rawUse = d.parkingDead ? 0 : d.parkingUse ?? 0;
|
|
47
|
+
const use = Number.isFinite(rawUse) ? rawUse : 0;
|
|
48
|
+
if (rand((u.id * 31) | 0) < use) {
|
|
49
|
+
const body = ACCENTS[u.id % ACCENTS.length];
|
|
50
|
+
// The body, roof, wheels, lamp and shadow are placed off `cx`/`cw`, so the
|
|
51
|
+
// two wheels keep equal end margins whatever the body width becomes; the
|
|
52
|
+
// two windows sit on their own fixed pitch from `cx`. Centered between the
|
|
53
|
+
// stall lines (x 9 and W - 4), it leaves 1px clear of each.
|
|
54
|
+
const cx = 11;
|
|
55
|
+
const cw = 24;
|
|
56
|
+
box(F, cx, fy - 9, cw, 7, body);
|
|
57
|
+
F(cx + 3, fy - 13, cw - 6, 5, shade(body, -24));
|
|
58
|
+
// Repeated objects (windows, wheels) take the uniform fill.
|
|
59
|
+
for (let k = 0; k < 2; k++)
|
|
60
|
+
Fu(cx + 5 + k * 8, fy - 12, 6, 3, "#CFE4FF");
|
|
61
|
+
for (const wo of [1, cw - 5])
|
|
62
|
+
Fu(cx + wo, fy - 3, 4, 3, "#1A1D24");
|
|
63
|
+
F(cx + cw - 2, fy - 8, 2, 2, "#FFE27A");
|
|
64
|
+
F(cx + 2, fy + 2, cw - 4, 1, "#000000", 0.25);
|
|
65
|
+
}
|
|
66
|
+
layerEnd(ctx);
|
|
67
|
+
// Blue P sign.
|
|
68
|
+
F(W - 12, 8, 9, 9, "#2A5AA8");
|
|
69
|
+
F(W - 10, 10, 2, 5, "#FFFFFF");
|
|
70
|
+
F(W - 10, 10, 4, 1, "#FFFFFF");
|
|
71
|
+
F(W - 7, 11, 1, 2, "#FFFFFF");
|
|
72
|
+
F(W - 10, 12, 3, 1, "#FFFFFF");
|
|
73
|
+
}
|
|
74
|
+
/** The dead-parking "red X" (canon: an unchained space draws no relief), the
|
|
75
|
+
* same strokes the per-unit bake drew, at the unit's region-relative rect. */
|
|
76
|
+
function drawDeadParkingX(ctx, x, y, w, h) {
|
|
77
|
+
// Dark under-stroke so the X reads as a SHAPE independent of hue
|
|
78
|
+
// (color-blind cue), then the red X on top.
|
|
79
|
+
for (const [style, wd] of [["#111", 4], ["#C24A3A", 2]]) {
|
|
80
|
+
ctx.strokeStyle = style;
|
|
81
|
+
ctx.lineWidth = wd;
|
|
82
|
+
ctx.beginPath();
|
|
83
|
+
ctx.moveTo(x + 2, y + 2);
|
|
84
|
+
ctx.lineTo(x + w - 2, y + h - 2);
|
|
85
|
+
ctx.moveTo(x + w - 2, y + 2);
|
|
86
|
+
ctx.lineTo(x + 2, y + h - 2);
|
|
87
|
+
ctx.stroke();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
// ---- Parking ramp -----------------------------------------------------------
|
|
91
|
+
function drawParkingRamp(ctx, u, x, y, w, h) {
|
|
92
|
+
const RW = 16 * TILE;
|
|
93
|
+
const RH = FLOOR;
|
|
94
|
+
// Repeated objects (joists, chevrons, hazard stripes, wheels) take the
|
|
95
|
+
// uniform fill `Fu`, so off the shipped size every copy keeps one size.
|
|
96
|
+
const { F, Fu } = refMap(ctx, x, y, w, h, RW, RH);
|
|
97
|
+
const W = RW;
|
|
98
|
+
// The ramp reads as a raised driving surface via a shaded slab, a dark void
|
|
99
|
+
// beneath, and a support column, so it is visibly the anchor that spaces
|
|
100
|
+
// chain to. It enforces nothing; the chain is engine truth.
|
|
101
|
+
const ground = RH - 4; // the floor line everything standing rests on
|
|
102
|
+
const rampX0 = 22;
|
|
103
|
+
const rampX1 = 107;
|
|
104
|
+
const rampT = 8; // slab thickness, constant down the whole run
|
|
105
|
+
// The near edge lands exactly on the floor line at the foot, so the void
|
|
106
|
+
// beneath closes to nothing there instead of leaving a sliver.
|
|
107
|
+
const farEdge = (px) => 14 + Math.round(((px - rampX0) * (ground - rampT - 14)) / (rampX1 - rampX0));
|
|
108
|
+
const nearEdge = (px) => farEdge(px) + rampT;
|
|
109
|
+
F(0, 0, W, RH, "#313640");
|
|
110
|
+
// Ceiling beam, joists, pipe, and conduit. The joists run under the pipe.
|
|
111
|
+
F(0, 0, W, 4, "#4A4E56");
|
|
112
|
+
F(0, 0, W, 1, "#5C606A");
|
|
113
|
+
F(0, 4, W, 1, "#2E3238");
|
|
114
|
+
const pipeX = 15;
|
|
115
|
+
const pipeW = 131;
|
|
116
|
+
// Eleven joists on one 13px pitch: the run starts on the pipe's first pixel
|
|
117
|
+
// and closes on its last (15 + 10 x 13 = 145).
|
|
118
|
+
const joists = 11;
|
|
119
|
+
const joistPitch = (pipeW - 1) / (joists - 1);
|
|
120
|
+
for (let k = 0; k < joists; k++)
|
|
121
|
+
Fu(pipeX + k * joistPitch, 5, 1, 2, "#34383E");
|
|
122
|
+
F(pipeX, 6, pipeW, 1, "#6C7684");
|
|
123
|
+
F(pipeX, 8, pipeW, 1, "#4A525C");
|
|
124
|
+
for (let k = 0; k < 4; k++)
|
|
125
|
+
F(36 + k * 29, 4, 1, 2, "#34383E");
|
|
126
|
+
F(84, 10, pipeX + pipeW - 84, 1, "#5B6470"); // the conduit ends where the pipe does
|
|
127
|
+
// Under-ramp void and support column. The column's top follows the slab's
|
|
128
|
+
// near edge, so it meets the slab instead of stopping a pixel under it. At
|
|
129
|
+
// the foot the near edge reaches the floor and the void closes to nothing.
|
|
130
|
+
for (let px = rampX0; px <= rampX1; px++) {
|
|
131
|
+
const ne = nearEdge(px);
|
|
132
|
+
if (ne < ground)
|
|
133
|
+
F(px, ne, 1, ground - ne, "#2A2E34");
|
|
134
|
+
}
|
|
135
|
+
for (let px = 61; px < 66; px++)
|
|
136
|
+
F(px, nearEdge(px), 1, ground - nearEdge(px), "#3A3E46");
|
|
137
|
+
// Road surface with light and dark edge rails.
|
|
138
|
+
for (let px = rampX0; px <= rampX1; px++) {
|
|
139
|
+
const fe = farEdge(px);
|
|
140
|
+
const ne = nearEdge(px);
|
|
141
|
+
F(px, fe, 1, ne - fe, "#565A62");
|
|
142
|
+
F(px, fe, 1, 1, "#6E727A");
|
|
143
|
+
F(px, ne - 1, 1, 1, "#3E434B");
|
|
144
|
+
}
|
|
145
|
+
for (let px = rampX0 + 4; px <= rampX1 - 2; px++) {
|
|
146
|
+
F(px, farEdge(px) + 3, 1, 1, "#4C5058");
|
|
147
|
+
F(px, farEdge(px) + 5, 1, 1, "#4C5058");
|
|
148
|
+
}
|
|
149
|
+
// Descending chevrons mark the direction of travel. Their y comes from the
|
|
150
|
+
// slab itself, so they ride the slope instead of drifting off it. An 18px
|
|
151
|
+
// pitch drops the slab almost exactly 4px per chevron (18 x 19 / 85), so
|
|
152
|
+
// they step down evenly: 4, 4, 4.
|
|
153
|
+
for (let k = 0; k < 4; k++) {
|
|
154
|
+
const px = 38 + k * 18;
|
|
155
|
+
const py = farEdge(px) + 4;
|
|
156
|
+
Fu(px - 3, py - 3, 5, 2, "#D9BE55");
|
|
157
|
+
Fu(px - 3, py + 1, 5, 2, "#D9BE55");
|
|
158
|
+
Fu(px + 1, py - 1, 2, 2, "#D9BE55");
|
|
159
|
+
}
|
|
160
|
+
// Ramp-mouth portal (cars descend from above).
|
|
161
|
+
F(rampX0 - 9, 12, 9, 12, "#24282E");
|
|
162
|
+
F(rampX0 - 5, 12, 8, 2, "#D9BE55");
|
|
163
|
+
for (let k = 0; k < 2; k++)
|
|
164
|
+
F(rampX0 - 3 + k * 3, 12, 1, 2, "#2E3238");
|
|
165
|
+
// Flat deck at the foot, continuing the slab thickness to the right wall.
|
|
166
|
+
F(rampX1, farEdge(rampX1), W - rampX1, rampT, "#565A62");
|
|
167
|
+
F(rampX1, farEdge(rampX1), W - rampX1, 1, "#6E727A");
|
|
168
|
+
F(rampX1, ground - 1, W - rampX1, 1, "#3E434B");
|
|
169
|
+
// Blue P roundel.
|
|
170
|
+
const signX = 127;
|
|
171
|
+
const signW = 11;
|
|
172
|
+
// The hangers sit 3px in from each side of the roundel.
|
|
173
|
+
for (const hx of [signX + 3, signX + signW - 4])
|
|
174
|
+
F(hx, 4, 1, 5, "#34383E");
|
|
175
|
+
F(signX, 9, signW, 11, "#2F5DA8");
|
|
176
|
+
F(signX, 9, signW, 1, "#1E3E76");
|
|
177
|
+
F(signX + 3, 11, 2, 7, "#EDEFF2");
|
|
178
|
+
F(signX + 3, 11, 5, 1, "#EDEFF2");
|
|
179
|
+
F(signX + 7, 12, 1, 2, "#EDEFF2");
|
|
180
|
+
F(signX + 3, 14, 5, 1, "#EDEFF2");
|
|
181
|
+
// Pillars with hazard bands: three dark stripes, so the band alternates
|
|
182
|
+
// evenly across the pillar's six columns.
|
|
183
|
+
for (const px of [5, 145]) {
|
|
184
|
+
F(px, 8, 6, ground - 8, "#4A4E56");
|
|
185
|
+
F(px, 8, 1, ground - 8, "#5C606A");
|
|
186
|
+
F(px + 5, 8, 1, ground - 8, "#34383E");
|
|
187
|
+
F(px - 1, ground - 2, 8, 2, "#4A4E56");
|
|
188
|
+
F(px, 28, 6, 4, "#D9BE55");
|
|
189
|
+
for (let k = 0; k < 3; k++)
|
|
190
|
+
Fu(px + 1 + k * 2, 28, 1, 4, "#2E3238");
|
|
191
|
+
}
|
|
192
|
+
// Foundation, oil, lane arrow, stall divider, and a second-car nose.
|
|
193
|
+
F(0, RH - 3, W, 2, "#3E424A");
|
|
194
|
+
F(80, RH - 3, 1, 2, "#2E3238");
|
|
195
|
+
F(127, ground - 2, 11, 2, "#2C3036");
|
|
196
|
+
F(111, 37, 5, 1, "#9AA0A8");
|
|
197
|
+
F(109, 36, 2, 3, "#9AA0A8");
|
|
198
|
+
F(143, 34, 1, ground - 34, "#9AA0A8"); // 1px clear of the pillar and the car
|
|
199
|
+
F(W - 7, 33, 7, 5, "#6E6A62");
|
|
200
|
+
F(W - 5, 36, 4, 4, "#16181C");
|
|
201
|
+
F(W - 4, 36, 2, 1, "#6A6E76");
|
|
202
|
+
// The ramp structure is the shell; the car parked at its foot is the
|
|
203
|
+
// furniture (depth layers, `pixelSprites/layers.ts`).
|
|
204
|
+
layerBreak(ctx);
|
|
205
|
+
// Primary parked car at the ramp foot (side view, wheels on the deck). Body
|
|
206
|
+
// width drives the wheelbase, so the two wheels keep equal end margins.
|
|
207
|
+
const carX = 122;
|
|
208
|
+
const carW = 20;
|
|
209
|
+
F(carX + 1, ground, carW - 2, 1, "#2C3036");
|
|
210
|
+
F(carX, 33, carW, 5, "#5D7FA6");
|
|
211
|
+
F(carX, 33, carW, 1, "#7E9EC0");
|
|
212
|
+
F(carX, 38, carW, 1, "#3E5876");
|
|
213
|
+
F(carX + 5, 28, carW - 10, 5, "#5D7FA6");
|
|
214
|
+
F(carX + 5, 28, carW - 10, 1, "#7E9EC0");
|
|
215
|
+
F(carX + 6, 29, carW - 12, 3, "#AEBFD4");
|
|
216
|
+
// A 2px center post splits the windscreen into two panes of equal width.
|
|
217
|
+
F(carX + carW / 2 - 1, 29, 2, 3, "#5D7FA6");
|
|
218
|
+
// The wheels go on after the body, so their hubs show, and rest on the deck.
|
|
219
|
+
for (const wo of [3, carW - 8]) {
|
|
220
|
+
Fu(carX + wo, 38, 5, 3, "#16181C");
|
|
221
|
+
Fu(carX + wo + 1, 39, 3, 1, "#6A6E76");
|
|
222
|
+
}
|
|
223
|
+
// Head and tail lamps sit on the body's own end columns.
|
|
224
|
+
F(carX, 36, 1, 1, "#E7D9A6");
|
|
225
|
+
F(carX + carW - 1, 36, 1, 1, "#C98A3A");
|
|
226
|
+
void u;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export { drawDeadParkingX, drawParking, drawParkingRamp };
|
|
230
|
+
//# sourceMappingURL=garage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"garage.js","sources":["../../../../src/render/sprites/facilities/garage.ts"],"sourcesContent":["import type { UnitView } from \"../../../simport/view\";\nimport { layerBreak, layerEnd } from \"../../pixelSprites/layers\";\nimport { ACCENTS, rand, shade, type DrawCtx } from \"../common\";\nimport { FLOOR, TILE } from \"../../scale\";\nimport { box, floorb, refMap } from \"./serviceKit\";\n\n/**\n * The basement garage kinds: a single parking space and the parking ramp.\n * Both were first ported from their Figma reference build scripts\n * (`page-01-parking-medical-security.build.js`, `page-01-parking-ramp.build.js`),\n * which are drawn on the retired 11 by 44 grid. Since the re-authoring, this\n * TypeScript is the canonical art, drawn through the shared `refMap` scaler.\n * Placement is engine truth (`basement:true` and the ramp chain); the render\n * only reflects it.\n *\n * The references were re-authored onto the live TILE 10 by FLOOR 45 grid, so\n * `RW`/`RH` equal the shipped footprint and, drawn at that footprint, `refMap`\n * is the identity. Keep them that way: a reference that drifts off the shipped\n * size resamples every rect, and a resampled repeat (stall lines, car wheels,\n * ceiling joists) loses its even pitch. Previews that draw at another size\n * (/gallery) still resample.\n */\n\n// ---- Parking spaces ---------------------------------------------------------\n\nexport function drawParking(d: DrawCtx, u: UnitView, x: number, y: number, w: number, h: number): void {\n const ctx = d.ctx;\n const RW = 4 * TILE;\n const RH = FLOOR;\n const { F, Fu } = refMap(ctx, x, y, w, h, RW, RH);\n const W = RW;\n const fy = RH - 6;\n // Concrete deck, ceiling beam and pipe, support pillar, painted stall lines.\n F(0, 0, W, fy, \"#565A62\");\n F(0, 0, W, 3, \"#3E424A\");\n F(0, 4, W, 1, \"#5E636B\");\n floorb(F, 0, fy, W, 6, \"#4A4E56\");\n F(4, 2, 3, fy - 2, \"#3E424A\");\n F(4, 2, 1, fy - 2, \"#4E535B\");\n F(9, fy - 16, 1, 15, \"#DCDCD0\", 0.5);\n F(W - 4, fy - 16, 1, 15, \"#DCDCD0\", 0.5);\n // The deck is the shell; the car parked in front of it is the furniture, and\n // the P sign hangs on the wall (depth layers, `pixelSprites/layers.ts`).\n layerBreak(ctx);\n // A single car, shown only when this space actually holds one and\n // is not dead. `parkingUse` and `parkingDead` are prepared inputs; a stable\n // per-space roll versus the tower-wide usage fraction fills the same spaces\n // first as the lot loads, and a dead (unchained) space never shows a car.\n const rawUse = d.parkingDead ? 0 : d.parkingUse ?? 0;\n const use = Number.isFinite(rawUse) ? rawUse : 0;\n if (rand((u.id * 31) | 0) < use) {\n const body = ACCENTS[u.id % ACCENTS.length];\n // The body, roof, wheels, lamp and shadow are placed off `cx`/`cw`, so the\n // two wheels keep equal end margins whatever the body width becomes; the\n // two windows sit on their own fixed pitch from `cx`. Centered between the\n // stall lines (x 9 and W - 4), it leaves 1px clear of each.\n const cx = 11;\n const cw = 24;\n box(F, cx, fy - 9, cw, 7, body);\n F(cx + 3, fy - 13, cw - 6, 5, shade(body, -24));\n // Repeated objects (windows, wheels) take the uniform fill.\n for (let k = 0; k < 2; k++) Fu(cx + 5 + k * 8, fy - 12, 6, 3, \"#CFE4FF\");\n for (const wo of [1, cw - 5]) Fu(cx + wo, fy - 3, 4, 3, \"#1A1D24\");\n F(cx + cw - 2, fy - 8, 2, 2, \"#FFE27A\");\n F(cx + 2, fy + 2, cw - 4, 1, \"#000000\", 0.25);\n }\n layerEnd(ctx);\n // Blue P sign.\n F(W - 12, 8, 9, 9, \"#2A5AA8\");\n F(W - 10, 10, 2, 5, \"#FFFFFF\");\n F(W - 10, 10, 4, 1, \"#FFFFFF\");\n F(W - 7, 11, 1, 2, \"#FFFFFF\");\n F(W - 10, 12, 3, 1, \"#FFFFFF\");\n}\n\n/** The dead-parking \"red X\" (canon: an unchained space draws no relief), the\n * same strokes the per-unit bake drew, at the unit's region-relative rect. */\nexport function drawDeadParkingX(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number): void {\n // Dark under-stroke so the X reads as a SHAPE independent of hue\n // (color-blind cue), then the red X on top.\n for (const [style, wd] of [[\"#111\", 4] as const, [\"#C24A3A\", 2] as const]) {\n ctx.strokeStyle = style;\n ctx.lineWidth = wd;\n ctx.beginPath();\n ctx.moveTo(x + 2, y + 2);\n ctx.lineTo(x + w - 2, y + h - 2);\n ctx.moveTo(x + w - 2, y + 2);\n ctx.lineTo(x + 2, y + h - 2);\n ctx.stroke();\n }\n}\n\n// ---- Parking ramp -----------------------------------------------------------\n\nexport function drawParkingRamp(ctx: CanvasRenderingContext2D, u: UnitView, x: number, y: number, w: number, h: number): void {\n const RW = 16 * TILE;\n const RH = FLOOR;\n // Repeated objects (joists, chevrons, hazard stripes, wheels) take the\n // uniform fill `Fu`, so off the shipped size every copy keeps one size.\n const { F, Fu } = refMap(ctx, x, y, w, h, RW, RH);\n const W = RW;\n // The ramp reads as a raised driving surface via a shaded slab, a dark void\n // beneath, and a support column, so it is visibly the anchor that spaces\n // chain to. It enforces nothing; the chain is engine truth.\n const ground = RH - 4; // the floor line everything standing rests on\n const rampX0 = 22;\n const rampX1 = 107;\n const rampT = 8; // slab thickness, constant down the whole run\n // The near edge lands exactly on the floor line at the foot, so the void\n // beneath closes to nothing there instead of leaving a sliver.\n const farEdge = (px: number): number => 14 + Math.round(((px - rampX0) * (ground - rampT - 14)) / (rampX1 - rampX0));\n const nearEdge = (px: number): number => farEdge(px) + rampT;\n F(0, 0, W, RH, \"#313640\");\n // Ceiling beam, joists, pipe, and conduit. The joists run under the pipe.\n F(0, 0, W, 4, \"#4A4E56\");\n F(0, 0, W, 1, \"#5C606A\");\n F(0, 4, W, 1, \"#2E3238\");\n const pipeX = 15;\n const pipeW = 131;\n // Eleven joists on one 13px pitch: the run starts on the pipe's first pixel\n // and closes on its last (15 + 10 x 13 = 145).\n const joists = 11;\n const joistPitch = (pipeW - 1) / (joists - 1);\n for (let k = 0; k < joists; k++) Fu(pipeX + k * joistPitch, 5, 1, 2, \"#34383E\");\n F(pipeX, 6, pipeW, 1, \"#6C7684\");\n F(pipeX, 8, pipeW, 1, \"#4A525C\");\n for (let k = 0; k < 4; k++) F(36 + k * 29, 4, 1, 2, \"#34383E\");\n F(84, 10, pipeX + pipeW - 84, 1, \"#5B6470\"); // the conduit ends where the pipe does\n // Under-ramp void and support column. The column's top follows the slab's\n // near edge, so it meets the slab instead of stopping a pixel under it. At\n // the foot the near edge reaches the floor and the void closes to nothing.\n for (let px = rampX0; px <= rampX1; px++) {\n const ne = nearEdge(px);\n if (ne < ground) F(px, ne, 1, ground - ne, \"#2A2E34\");\n }\n for (let px = 61; px < 66; px++) F(px, nearEdge(px), 1, ground - nearEdge(px), \"#3A3E46\");\n // Road surface with light and dark edge rails.\n for (let px = rampX0; px <= rampX1; px++) {\n const fe = farEdge(px);\n const ne = nearEdge(px);\n F(px, fe, 1, ne - fe, \"#565A62\");\n F(px, fe, 1, 1, \"#6E727A\");\n F(px, ne - 1, 1, 1, \"#3E434B\");\n }\n for (let px = rampX0 + 4; px <= rampX1 - 2; px++) {\n F(px, farEdge(px) + 3, 1, 1, \"#4C5058\");\n F(px, farEdge(px) + 5, 1, 1, \"#4C5058\");\n }\n // Descending chevrons mark the direction of travel. Their y comes from the\n // slab itself, so they ride the slope instead of drifting off it. An 18px\n // pitch drops the slab almost exactly 4px per chevron (18 x 19 / 85), so\n // they step down evenly: 4, 4, 4.\n for (let k = 0; k < 4; k++) {\n const px = 38 + k * 18;\n const py = farEdge(px) + 4;\n Fu(px - 3, py - 3, 5, 2, \"#D9BE55\");\n Fu(px - 3, py + 1, 5, 2, \"#D9BE55\");\n Fu(px + 1, py - 1, 2, 2, \"#D9BE55\");\n }\n // Ramp-mouth portal (cars descend from above).\n F(rampX0 - 9, 12, 9, 12, \"#24282E\");\n F(rampX0 - 5, 12, 8, 2, \"#D9BE55\");\n for (let k = 0; k < 2; k++) F(rampX0 - 3 + k * 3, 12, 1, 2, \"#2E3238\");\n // Flat deck at the foot, continuing the slab thickness to the right wall.\n F(rampX1, farEdge(rampX1), W - rampX1, rampT, \"#565A62\");\n F(rampX1, farEdge(rampX1), W - rampX1, 1, \"#6E727A\");\n F(rampX1, ground - 1, W - rampX1, 1, \"#3E434B\");\n // Blue P roundel.\n const signX = 127;\n const signW = 11;\n // The hangers sit 3px in from each side of the roundel.\n for (const hx of [signX + 3, signX + signW - 4]) F(hx, 4, 1, 5, \"#34383E\");\n F(signX, 9, signW, 11, \"#2F5DA8\");\n F(signX, 9, signW, 1, \"#1E3E76\");\n F(signX + 3, 11, 2, 7, \"#EDEFF2\");\n F(signX + 3, 11, 5, 1, \"#EDEFF2\");\n F(signX + 7, 12, 1, 2, \"#EDEFF2\");\n F(signX + 3, 14, 5, 1, \"#EDEFF2\");\n // Pillars with hazard bands: three dark stripes, so the band alternates\n // evenly across the pillar's six columns.\n for (const px of [5, 145]) {\n F(px, 8, 6, ground - 8, \"#4A4E56\");\n F(px, 8, 1, ground - 8, \"#5C606A\");\n F(px + 5, 8, 1, ground - 8, \"#34383E\");\n F(px - 1, ground - 2, 8, 2, \"#4A4E56\");\n F(px, 28, 6, 4, \"#D9BE55\");\n for (let k = 0; k < 3; k++) Fu(px + 1 + k * 2, 28, 1, 4, \"#2E3238\");\n }\n // Foundation, oil, lane arrow, stall divider, and a second-car nose.\n F(0, RH - 3, W, 2, \"#3E424A\");\n F(80, RH - 3, 1, 2, \"#2E3238\");\n F(127, ground - 2, 11, 2, \"#2C3036\");\n F(111, 37, 5, 1, \"#9AA0A8\");\n F(109, 36, 2, 3, \"#9AA0A8\");\n F(143, 34, 1, ground - 34, \"#9AA0A8\"); // 1px clear of the pillar and the car\n F(W - 7, 33, 7, 5, \"#6E6A62\");\n F(W - 5, 36, 4, 4, \"#16181C\");\n F(W - 4, 36, 2, 1, \"#6A6E76\");\n // The ramp structure is the shell; the car parked at its foot is the\n // furniture (depth layers, `pixelSprites/layers.ts`).\n layerBreak(ctx);\n // Primary parked car at the ramp foot (side view, wheels on the deck). Body\n // width drives the wheelbase, so the two wheels keep equal end margins.\n const carX = 122;\n const carW = 20;\n F(carX + 1, ground, carW - 2, 1, \"#2C3036\");\n F(carX, 33, carW, 5, \"#5D7FA6\");\n F(carX, 33, carW, 1, \"#7E9EC0\");\n F(carX, 38, carW, 1, \"#3E5876\");\n F(carX + 5, 28, carW - 10, 5, \"#5D7FA6\");\n F(carX + 5, 28, carW - 10, 1, \"#7E9EC0\");\n F(carX + 6, 29, carW - 12, 3, \"#AEBFD4\");\n // A 2px center post splits the windscreen into two panes of equal width.\n F(carX + carW / 2 - 1, 29, 2, 3, \"#5D7FA6\");\n // The wheels go on after the body, so their hubs show, and rest on the deck.\n for (const wo of [3, carW - 8]) {\n Fu(carX + wo, 38, 5, 3, \"#16181C\");\n Fu(carX + wo + 1, 39, 3, 1, \"#6A6E76\");\n }\n // Head and tail lamps sit on the body's own end columns.\n F(carX, 36, 1, 1, \"#E7D9A6\");\n F(carX + carW - 1, 36, 1, 1, \"#C98A3A\");\n void u;\n}\n"],"names":[],"mappings":";;;;;AAMA;;;;;;;;;;;;;;;AAeG;AAEH;AAEM,SAAU,WAAW,CAAC,CAAU,EAAE,CAAW,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAA;AAC7F,IAAA,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG;AACjB,IAAA,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;IACnB,MAAM,EAAE,GAAG,KAAK;IAChB,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC;IAC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,GAAG,EAAE,EAAE,CAAC,EAAE,SAAS,CAAC;AACxC,IAAA,CAAC,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,CAAC,EAAE,SAAS,CAAC;;AAExC,IAAA,CAAC,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;;IAE3C,KAAK,MAAM,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,EAAE;AAC9B,QAAA,EAAE,CAAC,IAAI,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;AAClC,QAAA,EAAE,CAAC,IAAI,GAAG,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;IACxC;;IAEA,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;AAC5B,IAAA,CAAC,CAAC,IAAI,GAAG,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;AACvC,IAAA,KAAK,CAAC;AACR;;"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { personHiVis } from '../../pixelSprites/common.js';
|
|
2
|
+
import { layerBreak, layerShell } from '../../pixelSprites/layers.js';
|
|
3
|
+
import { rand, serviceLabel } from '../common.js';
|
|
4
|
+
import { refMap, glow, box } from './serviceKit.js';
|
|
5
|
+
import { RECYCLING_REF_W, RECYCLING_REF_H, RECYCLING_DECK, RECYCLING_BALER_X, RECYCLING_CUBES, RECYCLING_CUBE_GAP, RECYCLING_CUBE_W, recyclingLook, RECYCLING_PILE_X0, RECYCLING_PILE_PITCH, RECYCLING_BAG_W, RECYCLING_GAUGE_TOP, RECYCLING_GAUGE_ROWS } from './recyclingLook.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The recycling center, first ported from its Figma reference build script
|
|
9
|
+
* (`_bmad-output/implementation-artifacts/pixelart-figma/build-scripts/`,
|
|
10
|
+
* page 01, drawn on the retired 11 by 44 grid). Since the re-authoring, this
|
|
11
|
+
* TypeScript is the canonical art, drawn through the shared `refMap` scaler.
|
|
12
|
+
* It sits apart from the other service rooms in `service.ts` only to keep
|
|
13
|
+
* both files under the line ceiling.
|
|
14
|
+
*
|
|
15
|
+
* The reference is authored on the live TILE 10 by FLOOR 45 grid
|
|
16
|
+
* (`recyclingLook.ts` holds its size and the fill geometry), so `RW`/`RH` equal
|
|
17
|
+
* the shipped footprint and, drawn at that footprint, `refMap` is the identity.
|
|
18
|
+
* Keep it that way: off the shipped size every rect resamples, and a resampled
|
|
19
|
+
* repeat (the sign letters, the belt bales, the hazard tape) loses its even
|
|
20
|
+
* pitch. The gallery and preview pages hand the painters world-size boxes and
|
|
21
|
+
* zoom with `ctx.scale`, so every shipped path is at the identity; the
|
|
22
|
+
* off-identity guards in `serviceScale.test.ts` cover a caller that is not.
|
|
23
|
+
*/
|
|
24
|
+
// ---- Recycling --------------------------------------------------------------
|
|
25
|
+
/** Rooms drawn narrower than this (in screen px) leave the FULL label off. */
|
|
26
|
+
const FULL_LABEL_MIN_W = 44;
|
|
27
|
+
function drawRecycling(d, u, x, y, w, h) {
|
|
28
|
+
const ctx = d.ctx;
|
|
29
|
+
const RW = RECYCLING_REF_W;
|
|
30
|
+
const RH = RECYCLING_REF_H;
|
|
31
|
+
const { F, Fu, sx, sy } = refMap(ctx, x, y, w, h, RW, RH);
|
|
32
|
+
const W = RW;
|
|
33
|
+
const H = RH;
|
|
34
|
+
const deck = RECYCLING_DECK;
|
|
35
|
+
// Concrete hall: walls, roof ribs, girders, and a service pipe. The full-width
|
|
36
|
+
// bands stay on the edge-derived fill so they meet without a seam; the ribs,
|
|
37
|
+
// studs and pipe brackets are repeated objects and take the uniform one. The
|
|
38
|
+
// hall is ten bays of 20, with a rib on each bay's left edge and one more on
|
|
39
|
+
// the right wall, so both walls end on a rib.
|
|
40
|
+
const ribPitch = W / 10;
|
|
41
|
+
F(0, 0, W, H, "#6C6C64");
|
|
42
|
+
F(0, 0, W, Math.round(H * 0.5), "#75756B");
|
|
43
|
+
for (let px = 0; px < W; px += ribPitch)
|
|
44
|
+
Fu(px, 2, 1, deck - 2, "#5A5A52");
|
|
45
|
+
Fu(W - 1, 2, 1, deck - 2, "#5A5A52");
|
|
46
|
+
for (let py = 10; py < deck; py += 11)
|
|
47
|
+
F(0, py, W, 1, "#616159");
|
|
48
|
+
for (let px = 6; px < W; px += ribPitch)
|
|
49
|
+
Fu(px, 12, 1, 1, "#8A8A80");
|
|
50
|
+
F(0, 3, W, 2, "#7A8088");
|
|
51
|
+
F(0, 3, W, 1, "#9AA0A8");
|
|
52
|
+
// Fourteen pipe brackets on a 14px pitch from x 8: the last one ends 8px
|
|
53
|
+
// from the right wall, the same margin as the first.
|
|
54
|
+
const bracketX0 = 8, bracketW = 2, brackets = 14;
|
|
55
|
+
const bracketPitch = (W - 2 * bracketX0 - bracketW) / (brackets - 1);
|
|
56
|
+
for (let b = 0; b < brackets; b++)
|
|
57
|
+
Fu(bracketX0 + b * bracketPitch, 2, bracketW, 4, "#5A6068");
|
|
58
|
+
F(0, 7, W, 3, "#565C64");
|
|
59
|
+
F(0, 7, W, 1, "#6A727A");
|
|
60
|
+
// Compactor housing with a peek of sorted waste.
|
|
61
|
+
F(7, 10, 14, 23, "#4A4E54");
|
|
62
|
+
F(7, 10, 2, 23, "#5E636A");
|
|
63
|
+
F(19, 10, 2, 23, "#3A3E44");
|
|
64
|
+
F(9, 33, 10, 3, "#33373D");
|
|
65
|
+
F(11, 35, 3, 3, "#3A4232");
|
|
66
|
+
F(15, 35, 3, 3, "#4A5A3A");
|
|
67
|
+
// Warm hooded work lamps, one each side of the sorting sign, the same 42px
|
|
68
|
+
// in from either wall.
|
|
69
|
+
for (const lx of [42, W - 1 - 42]) {
|
|
70
|
+
Fu(lx, 10, 1, 3, "#3A3E44");
|
|
71
|
+
Fu(lx - 3, 13, 7, 3, "#2A2E34");
|
|
72
|
+
Fu(lx - 2, 15, 5, 1, "#F8E2B4");
|
|
73
|
+
glow(Fu, lx, 18, "#F8E2B4");
|
|
74
|
+
}
|
|
75
|
+
// Overhead sorting sign. The glyph run is centered off the board width, so
|
|
76
|
+
// the eleven letters keep matching margins at both ends.
|
|
77
|
+
const signX = 84, signW = 63, glyphs = 11, glyphW = 3, glyphPitch = 5;
|
|
78
|
+
const glyphInset = Math.round((signW - ((glyphs - 1) * glyphPitch + glyphW)) / 2);
|
|
79
|
+
box(F, signX, 5, signW, 10, "#2A6E3A");
|
|
80
|
+
for (let i = 0; i < glyphs; i++)
|
|
81
|
+
Fu(signX + glyphInset + i * glyphPitch, 8, glyphW, 4, "#DCE8C0"); // sign letters
|
|
82
|
+
// The shell ends; the machines, the day's pile and the plant hand are the
|
|
83
|
+
// furniture. The curb and the wall gauge draw later in the routine but are
|
|
84
|
+
// the hall's own, so they go on the shell (layerShell).
|
|
85
|
+
layerBreak(ctx);
|
|
86
|
+
// Conveyor belt carrying baled recyclables (no reserved red bale). The bale
|
|
87
|
+
// run and the carried items stop at the belt's end cap, so a narrower belt
|
|
88
|
+
// drops bales and items. The bales are centered between the two caps, so the
|
|
89
|
+
// run leaves the same gap to each.
|
|
90
|
+
const by = deck - 24;
|
|
91
|
+
const beltX = 24, beltW = 109;
|
|
92
|
+
const beltEnd = beltX + beltW - 2; // the end cap's left edge
|
|
93
|
+
F(beltX, by, beltW, 6, "#3A3E44");
|
|
94
|
+
F(beltX, by, beltW, 1, "#4E545C");
|
|
95
|
+
F(beltX, by + 5, beltW, 1, "#242830");
|
|
96
|
+
const baleW = 3, balePitch = 6, runX = beltX + 2, runW = beltEnd - runX;
|
|
97
|
+
const bales = Math.floor((runW - 2 + balePitch - baleW) / balePitch); // at least 1px clear of each cap
|
|
98
|
+
const baleInset = Math.floor((runW - ((bales - 1) * balePitch + baleW)) / 2);
|
|
99
|
+
for (let i = 0; i < bales; i++)
|
|
100
|
+
Fu(runX + baleInset + i * balePitch, by + 1, baleW, 4, "#2E323A"); // baled recyclables
|
|
101
|
+
F(beltX - 2, by - 1, 4, 8, "#4A4E54");
|
|
102
|
+
F(beltX + beltW - 2, by - 1, 4, 8, "#4A4E54");
|
|
103
|
+
const items = ["#4E7A4A", "#3E6A9E", "#C8A24A", "#C87A32", "#DCDCE0", "#8C5A3A"];
|
|
104
|
+
for (let ix = beltX + 4, k = 0; ix + 5 <= beltEnd; ix += 12, k++) {
|
|
105
|
+
Fu(ix, by - 4, 5, 4, items[k % items.length]);
|
|
106
|
+
Fu(ix, by - 4, 5, 1, "#FFFFFF", 0.22);
|
|
107
|
+
}
|
|
108
|
+
// Baler machine. Its vents and status lamps are inset off their own panels,
|
|
109
|
+
// so each pair sits centered in the plate that carries it.
|
|
110
|
+
// Width stops at the gauge channel (W - 6) so the gauge cannot paint over the
|
|
111
|
+
// baler's right bevel and flatten it.
|
|
112
|
+
const cx = RECYCLING_BALER_X, balerW = W - 6 - cx - 1;
|
|
113
|
+
box(F, cx, by - 18, balerW, deck - (by - 18), "#7E828A");
|
|
114
|
+
F(cx + 2, by - 16, 18, 14, "#5A5E66");
|
|
115
|
+
F(cx + 2, by - 16, 18, 1, "#3A3E44");
|
|
116
|
+
for (let k = 0; k < 2; k++)
|
|
117
|
+
F(cx + 4 + k * 8, by - 10, 6, 4, "#3A3E44");
|
|
118
|
+
box(F, cx + 23, by - 15, 15, 20, "#565C64");
|
|
119
|
+
for (let k = 0; k < 2; k++)
|
|
120
|
+
F(cx + 25 + k * 7, by - 12, 4, 4, k ? "#E85D5D" : "#3ADF6A");
|
|
121
|
+
F(cx + 25, by - 6, 11, 4, "#1A1D24");
|
|
122
|
+
F(cx + 26, by - 5, 9, 2, "#5FB0DC");
|
|
123
|
+
// Three sorting bins.
|
|
124
|
+
const bins = [
|
|
125
|
+
["#3A8A4A", "#2A6E3A"],
|
|
126
|
+
["#3E6AAE", "#2A4E86"],
|
|
127
|
+
["#D8B23A", "#B08A2A"],
|
|
128
|
+
];
|
|
129
|
+
// 16 wide, so the 8px arrow glyph and the 6px lid both sit centered.
|
|
130
|
+
const binW = 16;
|
|
131
|
+
bins.forEach((c, i) => {
|
|
132
|
+
const bx = 27 + i * (binW + 3);
|
|
133
|
+
// One bin repeated along the deck, arrow glyph and all, so the whole
|
|
134
|
+
// motif takes the uniform fill or the arrows fray bin to bin.
|
|
135
|
+
box(Fu, bx, deck - 16, binW, 16, c[0]);
|
|
136
|
+
Fu(bx, deck - 16, binW, 2, c[1]);
|
|
137
|
+
Fu(bx + 5, deck - 19, binW - 10, 3, c[1]);
|
|
138
|
+
Fu(bx + 4, deck - 11, 4, 1, "#FFFFFF", 0.85);
|
|
139
|
+
Fu(bx + 7, deck - 12, 1, 3, "#FFFFFF", 0.85);
|
|
140
|
+
Fu(bx + 8, deck - 8, 4, 1, "#FFFFFF", 0.85);
|
|
141
|
+
Fu(bx + 8, deck - 9, 1, 2, "#FFFFFF", 0.85);
|
|
142
|
+
});
|
|
143
|
+
// Stacked cardboard bales.
|
|
144
|
+
for (let r = 0; r < 2; r++) {
|
|
145
|
+
for (let c = 0; c < 2; c++) {
|
|
146
|
+
const bx2 = 89 + c * 17;
|
|
147
|
+
const by2 = deck - 14 + r * 7;
|
|
148
|
+
box(F, bx2, by2, 16, 7, "#B08A5A");
|
|
149
|
+
F(bx2, by2 + 3, 16, 1, "#8A6A44");
|
|
150
|
+
F(bx2 + 8, by2, 1, 7, "#7A5A38");
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// Compacted cubes waiting by the baler, the nearest one RECYCLING_CUBE_GAP px
|
|
154
|
+
// clear of its left bevel. The pile stops short of them (`RECYCLING_CUBES_X`
|
|
155
|
+
// in recyclingLook.ts), so a full pile never half covers a cube.
|
|
156
|
+
for (let i = 0; i < RECYCLING_CUBES; i++) {
|
|
157
|
+
const gx2 = cx - RECYCLING_CUBE_GAP - (i + 1) * RECYCLING_CUBE_W;
|
|
158
|
+
Fu(gx2, deck - 5, RECYCLING_CUBE_W, 5, i % 2 ? "#3A4232" : "#2F3628");
|
|
159
|
+
Fu(gx2 + 2, deck - 6, 2, 2, "#FFFFFF", 0.28);
|
|
160
|
+
}
|
|
161
|
+
// Painted deck curb. The 4px stripe unit divides the hall exactly, so the
|
|
162
|
+
// hazard tape ends on a whole stripe instead of a clipped sliver.
|
|
163
|
+
layerShell(ctx, () => {
|
|
164
|
+
F(0, deck, W, 7, "#4A4A44");
|
|
165
|
+
F(0, deck, W, 1, "#5E5E56");
|
|
166
|
+
for (let i = 0; i < W; i += 4) {
|
|
167
|
+
Fu(i, deck + 1, 2, 2, "#D8B23A");
|
|
168
|
+
Fu(i + 2, deck + 1, 2, 2, "#2A2418");
|
|
169
|
+
}
|
|
170
|
+
F(18, deck + 3, W - 36, 1, "#000000", 0.2);
|
|
171
|
+
});
|
|
172
|
+
// Live behavior: the day's waste piles up until the morning truck. The pile
|
|
173
|
+
// grows rightward and stacks a second row past half full. `d.recycleFill` is
|
|
174
|
+
// a prepared input, so no scan runs here; the art reads it only through
|
|
175
|
+
// `recyclingLook`, which the sprite atlas steps through.
|
|
176
|
+
const look = recyclingLook(d.recycleFill);
|
|
177
|
+
const bags = look.bags;
|
|
178
|
+
for (let i = 0; i < bags; i++) {
|
|
179
|
+
const bx = RECYCLING_PILE_X0 + i * RECYCLING_PILE_PITCH;
|
|
180
|
+
const jit = Math.floor(rand((u.id * 31 + i) | 0) * 3);
|
|
181
|
+
F(bx, deck - 6 - jit, RECYCLING_BAG_W, 6 + jit, i % 3 === 2 ? "#4a5a3a" : "#3a4232");
|
|
182
|
+
Fu(bx + 2, deck - 7 - jit, 2, 2, "#FFFFFF", 0.35);
|
|
183
|
+
if (look.stacked && i % 2 === 0 && i < bags - 1)
|
|
184
|
+
F(bx + 3, deck - 11 - jit, RECYCLING_BAG_W, 5, "#2f3628");
|
|
185
|
+
}
|
|
186
|
+
// Live wall gauge: green, then amber past 0.7, then red with the FULL cue at
|
|
187
|
+
// capacity. The FULL red is the reserved stress color, a deliberate state cue.
|
|
188
|
+
const gY = RECYCLING_GAUGE_TOP;
|
|
189
|
+
const gH = RECYCLING_GAUGE_ROWS;
|
|
190
|
+
let gauge = "#6bd47a";
|
|
191
|
+
if (look.full)
|
|
192
|
+
gauge = "#d6342f";
|
|
193
|
+
else if (look.amber)
|
|
194
|
+
gauge = "#e0a94e";
|
|
195
|
+
const gaugeH = look.gaugeRows;
|
|
196
|
+
layerShell(ctx, () => {
|
|
197
|
+
F(W - 6, gY, 4, gH, "#1B2A14");
|
|
198
|
+
F(W - 5, gY + gH - gaugeH, 2, gaugeH, gauge);
|
|
199
|
+
// serviceLabel's last-but-one argument is the narrowest room (in screen
|
|
200
|
+
// px) that still shows the label.
|
|
201
|
+
if (look.full)
|
|
202
|
+
serviceLabel(ctx, "FULL", sx(W - 31), y, "#ffd2c8", FULL_LABEL_MIN_W, w);
|
|
203
|
+
});
|
|
204
|
+
// The vested plant hand (shared hi-vis build with a hardhat), drawn last so
|
|
205
|
+
// the worker stands in front of the pile.
|
|
206
|
+
personHiVis(ctx, sx(76), sy(deck), (u.id * 7 + 3) | 0);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export { drawRecycling };
|
|
210
|
+
//# sourceMappingURL=recycling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recycling.js","sources":["../../../../src/render/sprites/facilities/recycling.ts"],"sourcesContent":["import type { UnitView } from \"../../../simport/view\";\nimport { personHiVis } from \"../../pixelSprites/common\";\nimport { layerBreak, layerShell } from \"../../pixelSprites/layers\";\nimport { rand, serviceLabel, type DrawCtx } from \"../common\";\nimport { box, glow, refMap } from \"./serviceKit\";\nimport { RECYCLING_BAG_W, RECYCLING_BALER_X, RECYCLING_CUBES, RECYCLING_CUBE_GAP, RECYCLING_CUBE_W, RECYCLING_DECK, RECYCLING_GAUGE_ROWS, RECYCLING_GAUGE_TOP, RECYCLING_PILE_PITCH, RECYCLING_PILE_X0, RECYCLING_REF_H, RECYCLING_REF_W, recyclingLook } from \"./recyclingLook\";\n\n/**\n * The recycling center, first ported from its Figma reference build script\n * (`_bmad-output/implementation-artifacts/pixelart-figma/build-scripts/`,\n * page 01, drawn on the retired 11 by 44 grid). Since the re-authoring, this\n * TypeScript is the canonical art, drawn through the shared `refMap` scaler.\n * It sits apart from the other service rooms in `service.ts` only to keep\n * both files under the line ceiling.\n *\n * The reference is authored on the live TILE 10 by FLOOR 45 grid\n * (`recyclingLook.ts` holds its size and the fill geometry), so `RW`/`RH` equal\n * the shipped footprint and, drawn at that footprint, `refMap` is the identity.\n * Keep it that way: off the shipped size every rect resamples, and a resampled\n * repeat (the sign letters, the belt bales, the hazard tape) loses its even\n * pitch. The gallery and preview pages hand the painters world-size boxes and\n * zoom with `ctx.scale`, so every shipped path is at the identity; the\n * off-identity guards in `serviceScale.test.ts` cover a caller that is not.\n */\n\n// ---- Recycling --------------------------------------------------------------\n\n/** Rooms drawn narrower than this (in screen px) leave the FULL label off. */\nconst FULL_LABEL_MIN_W = 44;\n\nexport function drawRecycling(d: DrawCtx, u: UnitView, x: number, y: number, w: number, h: number): void {\n const ctx = d.ctx;\n const RW = RECYCLING_REF_W;\n const RH = RECYCLING_REF_H;\n const { F, Fu, sx, sy } = refMap(ctx, x, y, w, h, RW, RH);\n const W = RW;\n const H = RH;\n const deck = RECYCLING_DECK;\n // Concrete hall: walls, roof ribs, girders, and a service pipe. The full-width\n // bands stay on the edge-derived fill so they meet without a seam; the ribs,\n // studs and pipe brackets are repeated objects and take the uniform one. The\n // hall is ten bays of 20, with a rib on each bay's left edge and one more on\n // the right wall, so both walls end on a rib.\n const ribPitch = W / 10;\n F(0, 0, W, H, \"#6C6C64\");\n F(0, 0, W, Math.round(H * 0.5), \"#75756B\");\n for (let px = 0; px < W; px += ribPitch) Fu(px, 2, 1, deck - 2, \"#5A5A52\");\n Fu(W - 1, 2, 1, deck - 2, \"#5A5A52\");\n for (let py = 10; py < deck; py += 11) F(0, py, W, 1, \"#616159\");\n for (let px = 6; px < W; px += ribPitch) Fu(px, 12, 1, 1, \"#8A8A80\");\n F(0, 3, W, 2, \"#7A8088\");\n F(0, 3, W, 1, \"#9AA0A8\");\n // Fourteen pipe brackets on a 14px pitch from x 8: the last one ends 8px\n // from the right wall, the same margin as the first.\n const bracketX0 = 8, bracketW = 2, brackets = 14;\n const bracketPitch = (W - 2 * bracketX0 - bracketW) / (brackets - 1);\n for (let b = 0; b < brackets; b++) Fu(bracketX0 + b * bracketPitch, 2, bracketW, 4, \"#5A6068\");\n F(0, 7, W, 3, \"#565C64\");\n F(0, 7, W, 1, \"#6A727A\");\n // Compactor housing with a peek of sorted waste.\n F(7, 10, 14, 23, \"#4A4E54\");\n F(7, 10, 2, 23, \"#5E636A\");\n F(19, 10, 2, 23, \"#3A3E44\");\n F(9, 33, 10, 3, \"#33373D\");\n F(11, 35, 3, 3, \"#3A4232\");\n F(15, 35, 3, 3, \"#4A5A3A\");\n // Warm hooded work lamps, one each side of the sorting sign, the same 42px\n // in from either wall.\n for (const lx of [42, W - 1 - 42]) {\n Fu(lx, 10, 1, 3, \"#3A3E44\");\n Fu(lx - 3, 13, 7, 3, \"#2A2E34\");\n Fu(lx - 2, 15, 5, 1, \"#F8E2B4\");\n glow(Fu, lx, 18, \"#F8E2B4\");\n }\n // Overhead sorting sign. The glyph run is centered off the board width, so\n // the eleven letters keep matching margins at both ends.\n const signX = 84, signW = 63, glyphs = 11, glyphW = 3, glyphPitch = 5;\n const glyphInset = Math.round((signW - ((glyphs - 1) * glyphPitch + glyphW)) / 2);\n box(F, signX, 5, signW, 10, \"#2A6E3A\");\n for (let i = 0; i < glyphs; i++) Fu(signX + glyphInset + i * glyphPitch, 8, glyphW, 4, \"#DCE8C0\"); // sign letters\n // The shell ends; the machines, the day's pile and the plant hand are the\n // furniture. The curb and the wall gauge draw later in the routine but are\n // the hall's own, so they go on the shell (layerShell).\n layerBreak(ctx);\n // Conveyor belt carrying baled recyclables (no reserved red bale). The bale\n // run and the carried items stop at the belt's end cap, so a narrower belt\n // drops bales and items. The bales are centered between the two caps, so the\n // run leaves the same gap to each.\n const by = deck - 24;\n const beltX = 24, beltW = 109;\n const beltEnd = beltX + beltW - 2; // the end cap's left edge\n F(beltX, by, beltW, 6, \"#3A3E44\");\n F(beltX, by, beltW, 1, \"#4E545C\");\n F(beltX, by + 5, beltW, 1, \"#242830\");\n const baleW = 3, balePitch = 6, runX = beltX + 2, runW = beltEnd - runX;\n const bales = Math.floor((runW - 2 + balePitch - baleW) / balePitch); // at least 1px clear of each cap\n const baleInset = Math.floor((runW - ((bales - 1) * balePitch + baleW)) / 2);\n for (let i = 0; i < bales; i++) Fu(runX + baleInset + i * balePitch, by + 1, baleW, 4, \"#2E323A\"); // baled recyclables\n F(beltX - 2, by - 1, 4, 8, \"#4A4E54\");\n F(beltX + beltW - 2, by - 1, 4, 8, \"#4A4E54\");\n const items = [\"#4E7A4A\", \"#3E6A9E\", \"#C8A24A\", \"#C87A32\", \"#DCDCE0\", \"#8C5A3A\"];\n for (let ix = beltX + 4, k = 0; ix + 5 <= beltEnd; ix += 12, k++) {\n Fu(ix, by - 4, 5, 4, items[k % items.length]);\n Fu(ix, by - 4, 5, 1, \"#FFFFFF\", 0.22);\n }\n // Baler machine. Its vents and status lamps are inset off their own panels,\n // so each pair sits centered in the plate that carries it.\n // Width stops at the gauge channel (W - 6) so the gauge cannot paint over the\n // baler's right bevel and flatten it.\n const cx = RECYCLING_BALER_X, balerW = W - 6 - cx - 1;\n box(F, cx, by - 18, balerW, deck - (by - 18), \"#7E828A\");\n F(cx + 2, by - 16, 18, 14, \"#5A5E66\");\n F(cx + 2, by - 16, 18, 1, \"#3A3E44\");\n for (let k = 0; k < 2; k++) F(cx + 4 + k * 8, by - 10, 6, 4, \"#3A3E44\");\n box(F, cx + 23, by - 15, 15, 20, \"#565C64\");\n for (let k = 0; k < 2; k++) F(cx + 25 + k * 7, by - 12, 4, 4, k ? \"#E85D5D\" : \"#3ADF6A\");\n F(cx + 25, by - 6, 11, 4, \"#1A1D24\");\n F(cx + 26, by - 5, 9, 2, \"#5FB0DC\");\n // Three sorting bins.\n const bins: ReadonlyArray<readonly [string, string]> = [\n [\"#3A8A4A\", \"#2A6E3A\"],\n [\"#3E6AAE\", \"#2A4E86\"],\n [\"#D8B23A\", \"#B08A2A\"],\n ];\n // 16 wide, so the 8px arrow glyph and the 6px lid both sit centered.\n const binW = 16;\n bins.forEach((c, i) => {\n const bx = 27 + i * (binW + 3);\n // One bin repeated along the deck, arrow glyph and all, so the whole\n // motif takes the uniform fill or the arrows fray bin to bin.\n box(Fu, bx, deck - 16, binW, 16, c[0]);\n Fu(bx, deck - 16, binW, 2, c[1]);\n Fu(bx + 5, deck - 19, binW - 10, 3, c[1]);\n Fu(bx + 4, deck - 11, 4, 1, \"#FFFFFF\", 0.85);\n Fu(bx + 7, deck - 12, 1, 3, \"#FFFFFF\", 0.85);\n Fu(bx + 8, deck - 8, 4, 1, \"#FFFFFF\", 0.85);\n Fu(bx + 8, deck - 9, 1, 2, \"#FFFFFF\", 0.85);\n });\n // Stacked cardboard bales.\n for (let r = 0; r < 2; r++) {\n for (let c = 0; c < 2; c++) {\n const bx2 = 89 + c * 17;\n const by2 = deck - 14 + r * 7;\n box(F, bx2, by2, 16, 7, \"#B08A5A\");\n F(bx2, by2 + 3, 16, 1, \"#8A6A44\");\n F(bx2 + 8, by2, 1, 7, \"#7A5A38\");\n }\n }\n // Compacted cubes waiting by the baler, the nearest one RECYCLING_CUBE_GAP px\n // clear of its left bevel. The pile stops short of them (`RECYCLING_CUBES_X`\n // in recyclingLook.ts), so a full pile never half covers a cube.\n for (let i = 0; i < RECYCLING_CUBES; i++) {\n const gx2 = cx - RECYCLING_CUBE_GAP - (i + 1) * RECYCLING_CUBE_W;\n Fu(gx2, deck - 5, RECYCLING_CUBE_W, 5, i % 2 ? \"#3A4232\" : \"#2F3628\");\n Fu(gx2 + 2, deck - 6, 2, 2, \"#FFFFFF\", 0.28);\n }\n // Painted deck curb. The 4px stripe unit divides the hall exactly, so the\n // hazard tape ends on a whole stripe instead of a clipped sliver.\n layerShell(ctx, () => {\n F(0, deck, W, 7, \"#4A4A44\");\n F(0, deck, W, 1, \"#5E5E56\");\n for (let i = 0; i < W; i += 4) {\n Fu(i, deck + 1, 2, 2, \"#D8B23A\");\n Fu(i + 2, deck + 1, 2, 2, \"#2A2418\");\n }\n F(18, deck + 3, W - 36, 1, \"#000000\", 0.2);\n });\n // Live behavior: the day's waste piles up until the morning truck. The pile\n // grows rightward and stacks a second row past half full. `d.recycleFill` is\n // a prepared input, so no scan runs here; the art reads it only through\n // `recyclingLook`, which the sprite atlas steps through.\n const look = recyclingLook(d.recycleFill);\n const bags = look.bags;\n for (let i = 0; i < bags; i++) {\n const bx = RECYCLING_PILE_X0 + i * RECYCLING_PILE_PITCH;\n const jit = Math.floor(rand((u.id * 31 + i) | 0) * 3);\n F(bx, deck - 6 - jit, RECYCLING_BAG_W, 6 + jit, i % 3 === 2 ? \"#4a5a3a\" : \"#3a4232\");\n Fu(bx + 2, deck - 7 - jit, 2, 2, \"#FFFFFF\", 0.35);\n if (look.stacked && i % 2 === 0 && i < bags - 1) F(bx + 3, deck - 11 - jit, RECYCLING_BAG_W, 5, \"#2f3628\");\n }\n // Live wall gauge: green, then amber past 0.7, then red with the FULL cue at\n // capacity. The FULL red is the reserved stress color, a deliberate state cue.\n const gY = RECYCLING_GAUGE_TOP;\n const gH = RECYCLING_GAUGE_ROWS;\n let gauge = \"#6bd47a\";\n if (look.full) gauge = \"#d6342f\";\n else if (look.amber) gauge = \"#e0a94e\";\n const gaugeH = look.gaugeRows;\n layerShell(ctx, () => {\n F(W - 6, gY, 4, gH, \"#1B2A14\");\n F(W - 5, gY + gH - gaugeH, 2, gaugeH, gauge);\n // serviceLabel's last-but-one argument is the narrowest room (in screen\n // px) that still shows the label.\n if (look.full) serviceLabel(ctx, \"FULL\", sx(W - 31), y, \"#ffd2c8\", FULL_LABEL_MIN_W, w);\n });\n // The vested plant hand (shared hi-vis build with a hardhat), drawn last so\n // the worker stands in front of the pile.\n personHiVis(ctx, sx(76), sy(deck), (u.id * 7 + 3) | 0);\n}\n"],"names":[],"mappings":";;;;;;AAOA;;;;;;;;;;;;;;;;AAgBG;AAEH;AAEA;AACA,MAAM,gBAAgB,GAAG,EAAE;AAErB,SAAU,aAAa,CAAC,CAAU,EAAE,CAAW,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAA;AAC/F,IAAA,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG;IACjB,MAAM,EAAE,GAAG,eAAe;IAC1B,MAAM,EAAE,GAAG,eAAe;IAC1B,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC;IACzD,MAAM,CAAC,GAAG,EAAE;IACZ,MAAM,CAAC,GAAG,EAAE;IACZ,MAAM,IAAI,GAAG,cAAc;;;;;;AAM3B,IAAA,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE;IACvB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;AACxB,IAAA,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,SAAS,CAAC;IAC1C,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,QAAQ;AAAE,QAAA,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,CAAC,EAAE,SAAS,CAAC;AAC1E,IAAA,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,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EAAE,SAAS,CAAC;AAC9B,QAAA,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC;;;QAG5C,IAAI,IAAI,CAAC,IAAI;YAAE,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC;AACzF,IAAA,CAAC,CAAC;;;IAGF,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACxD;;"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The part of the recycling center's art that follows the tower's recycling
|
|
3
|
+
* fill (`drawRecycling` in `recycling.ts`), as one pure function. The routine
|
|
4
|
+
* reads the fill only through {@link recyclingLook}, so two fills with the same
|
|
5
|
+
* look paint the same pixels; the sprite atlas relies on that to find every
|
|
6
|
+
* fill where the picture changes (`atlas/recyclingFill.ts`).
|
|
7
|
+
*
|
|
8
|
+
* Geometry is in the routine's reference build, authored on the live grid
|
|
9
|
+
* (20 tiles by 2 floors at TILE 10 by FLOOR 45, so 200 x 90), where `refMap`
|
|
10
|
+
* is the identity.
|
|
11
|
+
*/
|
|
12
|
+
/** The reference build's size. */
|
|
13
|
+
export declare const RECYCLING_REF_W: number;
|
|
14
|
+
export declare const RECYCLING_REF_H: number;
|
|
15
|
+
/** The deck line, 7 rows above the bottom. */
|
|
16
|
+
export declare const RECYCLING_DECK: number;
|
|
17
|
+
/** The pile's first bag column and the pitch between bags. */
|
|
18
|
+
export declare const RECYCLING_PILE_X0 = 25;
|
|
19
|
+
export declare const RECYCLING_PILE_PITCH = 7;
|
|
20
|
+
/** A bag is 6 wide, so one pitch leaves a 1px gap to the next. */
|
|
21
|
+
export declare const RECYCLING_BAG_W = 6;
|
|
22
|
+
/** The baler's left edge, and the compacted cubes that wait left of it (6 wide,
|
|
23
|
+
* the nearest one ending `RECYCLING_CUBE_GAP` px before the baler's left
|
|
24
|
+
* bevel); the leftmost cube starts at `RECYCLING_CUBES_X`. */
|
|
25
|
+
export declare const RECYCLING_BALER_X: number;
|
|
26
|
+
export declare const RECYCLING_CUBES = 4;
|
|
27
|
+
export declare const RECYCLING_CUBE_GAP = 4;
|
|
28
|
+
export declare const RECYCLING_CUBE_W = 6;
|
|
29
|
+
export declare const RECYCLING_CUBES_X: number;
|
|
30
|
+
/** How many bags the pile holds when full: as many as fit before the
|
|
31
|
+
* compacted cubes, so the last bag never half covers one. */
|
|
32
|
+
export declare const RECYCLING_PILE_SLOTS: number;
|
|
33
|
+
/** The wall gauge's top row and its height in rows. */
|
|
34
|
+
export declare const RECYCLING_GAUGE_TOP = 14;
|
|
35
|
+
export declare const RECYCLING_GAUGE_ROWS: number;
|
|
36
|
+
export interface RecyclingLook {
|
|
37
|
+
/** Bags on the deck. */
|
|
38
|
+
bags: number;
|
|
39
|
+
/** Past half full the pile stacks a second row. */
|
|
40
|
+
stacked: boolean;
|
|
41
|
+
/** The gauge turns amber past 0.7. */
|
|
42
|
+
amber: boolean;
|
|
43
|
+
/** At capacity the gauge turns red and shows FULL. */
|
|
44
|
+
full: boolean;
|
|
45
|
+
/** Lit gauge rows. */
|
|
46
|
+
gaugeRows: number;
|
|
47
|
+
}
|
|
48
|
+
/** The look for a raw fill: clamped to 0..1, a non-finite fill read as 0. */
|
|
49
|
+
export declare function recyclingLook(rawFill: number | undefined): RecyclingLook;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { TILE, FLOOR } from '../../scale.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The part of the recycling center's art that follows the tower's recycling
|
|
5
|
+
* fill (`drawRecycling` in `recycling.ts`), as one pure function. The routine
|
|
6
|
+
* reads the fill only through {@link recyclingLook}, so two fills with the same
|
|
7
|
+
* look paint the same pixels; the sprite atlas relies on that to find every
|
|
8
|
+
* fill where the picture changes (`atlas/recyclingFill.ts`).
|
|
9
|
+
*
|
|
10
|
+
* Geometry is in the routine's reference build, authored on the live grid
|
|
11
|
+
* (20 tiles by 2 floors at TILE 10 by FLOOR 45, so 200 x 90), where `refMap`
|
|
12
|
+
* is the identity.
|
|
13
|
+
*/
|
|
14
|
+
/** The reference build's size. */
|
|
15
|
+
const RECYCLING_REF_W = 20 * TILE;
|
|
16
|
+
const RECYCLING_REF_H = 2 * FLOOR;
|
|
17
|
+
/** The deck line, 7 rows above the bottom. */
|
|
18
|
+
const RECYCLING_DECK = RECYCLING_REF_H - 7;
|
|
19
|
+
/** The pile's first bag column and the pitch between bags. */
|
|
20
|
+
const RECYCLING_PILE_X0 = 25;
|
|
21
|
+
const RECYCLING_PILE_PITCH = 7;
|
|
22
|
+
/** A bag is 6 wide, so one pitch leaves a 1px gap to the next. */
|
|
23
|
+
const RECYCLING_BAG_W = 6;
|
|
24
|
+
/** The baler's left edge, and the compacted cubes that wait left of it (6 wide,
|
|
25
|
+
* the nearest one ending `RECYCLING_CUBE_GAP` px before the baler's left
|
|
26
|
+
* bevel); the leftmost cube starts at `RECYCLING_CUBES_X`. */
|
|
27
|
+
const RECYCLING_BALER_X = RECYCLING_REF_W - 47;
|
|
28
|
+
const RECYCLING_CUBES = 4;
|
|
29
|
+
const RECYCLING_CUBE_GAP = 4;
|
|
30
|
+
const RECYCLING_CUBE_W = 6;
|
|
31
|
+
const RECYCLING_CUBES_X = RECYCLING_BALER_X - RECYCLING_CUBE_GAP - RECYCLING_CUBES * RECYCLING_CUBE_W;
|
|
32
|
+
/** How many bags the pile holds when full: as many as fit before the
|
|
33
|
+
* compacted cubes, so the last bag never half covers one. */
|
|
34
|
+
const RECYCLING_PILE_SLOTS = Math.floor((RECYCLING_CUBES_X - RECYCLING_BAG_W - RECYCLING_PILE_X0) / RECYCLING_PILE_PITCH) + 1;
|
|
35
|
+
/** The wall gauge's top row and its height in rows. */
|
|
36
|
+
const RECYCLING_GAUGE_TOP = 14;
|
|
37
|
+
const RECYCLING_GAUGE_ROWS = RECYCLING_DECK - 18;
|
|
38
|
+
/** The look for a raw fill: clamped to 0..1, a non-finite fill read as 0. */
|
|
39
|
+
function recyclingLook(rawFill) {
|
|
40
|
+
const raw = rawFill ?? 0;
|
|
41
|
+
const fill = Number.isFinite(raw) ? Math.max(0, Math.min(1, raw)) : 0;
|
|
42
|
+
return {
|
|
43
|
+
bags: Math.round(fill * RECYCLING_PILE_SLOTS),
|
|
44
|
+
stacked: fill > 0.5,
|
|
45
|
+
amber: fill > 0.7,
|
|
46
|
+
full: fill >= 1,
|
|
47
|
+
gaugeRows: Math.round(RECYCLING_GAUGE_ROWS * fill),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { RECYCLING_BAG_W, RECYCLING_BALER_X, RECYCLING_CUBES, RECYCLING_CUBES_X, RECYCLING_CUBE_GAP, RECYCLING_CUBE_W, RECYCLING_DECK, RECYCLING_GAUGE_ROWS, RECYCLING_GAUGE_TOP, RECYCLING_PILE_PITCH, RECYCLING_PILE_SLOTS, RECYCLING_PILE_X0, RECYCLING_REF_H, RECYCLING_REF_W, recyclingLook };
|
|
52
|
+
//# sourceMappingURL=recyclingLook.js.map
|