@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 @@
|
|
|
1
|
+
{"version":3,"file":"recyclingLook.js","sources":["../../../../src/render/sprites/facilities/recyclingLook.ts"],"sourcesContent":["import { FLOOR, TILE } from \"../../scale\";\n\n/**\n * The part of the recycling center's art that follows the tower's recycling\n * fill (`drawRecycling` in `recycling.ts`), as one pure function. The routine\n * reads the fill only through {@link recyclingLook}, so two fills with the same\n * look paint the same pixels; the sprite atlas relies on that to find every\n * fill where the picture changes (`atlas/recyclingFill.ts`).\n *\n * Geometry is in the routine's reference build, authored on the live grid\n * (20 tiles by 2 floors at TILE 10 by FLOOR 45, so 200 x 90), where `refMap`\n * is the identity.\n */\n\n/** The reference build's size. */\nexport const RECYCLING_REF_W = 20 * TILE;\nexport const RECYCLING_REF_H = 2 * FLOOR;\n/** The deck line, 7 rows above the bottom. */\nexport const RECYCLING_DECK = RECYCLING_REF_H - 7;\n/** The pile's first bag column and the pitch between bags. */\nexport const RECYCLING_PILE_X0 = 25;\nexport const RECYCLING_PILE_PITCH = 7;\n/** A bag is 6 wide, so one pitch leaves a 1px gap to the next. */\nexport const RECYCLING_BAG_W = 6;\n/** The baler's left edge, and the compacted cubes that wait left of it (6 wide,\n * the nearest one ending `RECYCLING_CUBE_GAP` px before the baler's left\n * bevel); the leftmost cube starts at `RECYCLING_CUBES_X`. */\nexport const RECYCLING_BALER_X = RECYCLING_REF_W - 47;\nexport const RECYCLING_CUBES = 4;\nexport const RECYCLING_CUBE_GAP = 4;\nexport const RECYCLING_CUBE_W = 6;\nexport const RECYCLING_CUBES_X = RECYCLING_BALER_X - RECYCLING_CUBE_GAP - RECYCLING_CUBES * RECYCLING_CUBE_W;\n/** How many bags the pile holds when full: as many as fit before the\n * compacted cubes, so the last bag never half covers one. */\nexport const RECYCLING_PILE_SLOTS = Math.floor((RECYCLING_CUBES_X - RECYCLING_BAG_W - RECYCLING_PILE_X0) / RECYCLING_PILE_PITCH) + 1;\n/** The wall gauge's top row and its height in rows. */\nexport const RECYCLING_GAUGE_TOP = 14;\nexport const RECYCLING_GAUGE_ROWS = RECYCLING_DECK - 18;\n\nexport interface RecyclingLook {\n /** Bags on the deck. */\n bags: number;\n /** Past half full the pile stacks a second row. */\n stacked: boolean;\n /** The gauge turns amber past 0.7. */\n amber: boolean;\n /** At capacity the gauge turns red and shows FULL. */\n full: boolean;\n /** Lit gauge rows. */\n gaugeRows: number;\n}\n\n/** The look for a raw fill: clamped to 0..1, a non-finite fill read as 0. */\nexport function recyclingLook(rawFill: number | undefined): RecyclingLook {\n const raw = rawFill ?? 0;\n const fill = Number.isFinite(raw) ? Math.max(0, Math.min(1, raw)) : 0;\n return {\n bags: Math.round(fill * RECYCLING_PILE_SLOTS),\n stacked: fill > 0.5,\n amber: fill > 0.7,\n full: fill >= 1,\n gaugeRows: Math.round(RECYCLING_GAUGE_ROWS * fill),\n };\n}\n"],"names":[],"mappings":";;AAEA;;;;;;;;;;AAUG;AAEH;AACO,MAAM,eAAe,GAAG,EAAE,GAAG;AAC7B,MAAM,eAAe,GAAG,CAAC,GAAG;AACnC;AACO,MAAM,cAAc,GAAG,eAAe,GAAG;AAChD;AACO,MAAM,iBAAiB,GAAG;AAC1B,MAAM,oBAAoB,GAAG;AACpC;AACO,MAAM,eAAe,GAAG;AAC/B;;AAE+D;AACxD,MAAM,iBAAiB,GAAG,eAAe,GAAG;AAC5C,MAAM,eAAe,GAAG;AACxB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,iBAAiB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,eAAe,GAAG;AAC5F;AAC8D;MACjD,oBAAoB,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,iBAAiB,GAAG,eAAe,GAAG,iBAAiB,IAAI,oBAAoB,CAAC,GAAG;AACnI;AACO,MAAM,mBAAmB,GAAG;AAC5B,MAAM,oBAAoB,GAAG,cAAc,GAAG;AAerD;AACM,SAAU,aAAa,CAAC,OAA2B,EAAA;AACvD,IAAA,MAAM,GAAG,GAAG,OAAO,IAAI,CAAC;AACxB,IAAA,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC;IACrE,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,oBAAoB,CAAC;QAC7C,OAAO,EAAE,IAAI,GAAG,GAAG;QACnB,KAAK,EAAE,IAAI,GAAG,GAAG;QACjB,IAAI,EAAE,IAAI,IAAI,CAAC;QACf,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,oBAAoB,GAAG,IAAI,CAAC;KACnD;AACH;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { UnitView } from "../../../simport/view";
|
|
2
|
+
import type { DrawCtx } from "../common";
|
|
3
|
+
export declare function drawSecurity(d: DrawCtx, u: Pick<UnitView, "kind" | "floor" | "x">, x: number, y: number, w: number, h: number): void;
|
|
4
|
+
export declare function drawMedical(d: DrawCtx, u: Pick<UnitView, "kind" | "floor" | "x">, x: number, y: number, w: number, h: number): void;
|
|
5
|
+
export declare function drawHousekeeping(d: DrawCtx, u: Pick<UnitView, "kind" | "floor" | "x">, x: number, y: number, w: number, h: number): void;
|
|
6
|
+
export declare function drawMetro(d: DrawCtx, x: number, y: number, w: number, h: number): void;
|
|
7
|
+
/** Pixels in one repeat of the tunnel row: fifteen 64px steel panels. */
|
|
8
|
+
export declare const METRO_TUNNEL_TILE = 960;
|
|
9
|
+
/** One repeat of the metro's tunnel row, drawn at (0,0) into a
|
|
10
|
+
* METRO_TUNNEL_TILE x FLOOR rect. SimTower runs the tunnel along the metro's
|
|
11
|
+
* bottom row on both sides of the station: riveted gray steel panels over a
|
|
12
|
+
* dark rail bed. The engine lays copies of this tile (phase-aligned to the
|
|
13
|
+
* world x) across the rest of the lot. */
|
|
14
|
+
export declare function drawMetroTunnel(ctx: CanvasRenderingContext2D): void;
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { geoVariant, personSeated, ceilingFixture, roomGlow, SKIN, personStanding } from '../../pixelSprites/common.js';
|
|
2
|
+
import { layerBreak, layerEnd } from '../../pixelSprites/layers.js';
|
|
3
|
+
import { TILE, FLOOR } from '../../scale.js';
|
|
4
|
+
import { refMap, wallp, floorb, box, glow, whiteCoat } from './serviceKit.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* In-tower service and utility facilities: security, the medical center,
|
|
8
|
+
* housekeeping, and the metro station. (The recycling center lives in
|
|
9
|
+
* `recycling.ts`, the basement garage in `garage.ts`, and the moving actors in
|
|
10
|
+
* `vehicles.ts`.)
|
|
11
|
+
*
|
|
12
|
+
* Each look was first ported from its Figma reference build script
|
|
13
|
+
* (`_bmad-output/implementation-artifacts/pixelart-figma/build-scripts/`,
|
|
14
|
+
* page 01, drawn on the retired 11 by 44 grid). Since the re-authoring, this
|
|
15
|
+
* TypeScript is the canonical art, drawn through the shared `refMap` scaler,
|
|
16
|
+
* so the tower cross-section reads as the warm, lived-in dollhouse the art
|
|
17
|
+
* direction calls for. Figures are the shared finalized `person()` builds,
|
|
18
|
+
* never hand-rolled. Reserved state colors
|
|
19
|
+
* are never reused for decoration. These are staffed amenities: they always
|
|
20
|
+
* draw their interior, never a lease or vacancy card.
|
|
21
|
+
*
|
|
22
|
+
* The security, medical center and housekeeping references were re-authored
|
|
23
|
+
* onto the live TILE 10 by FLOOR 45 grid, so `RW`/`RH` equal the shipped
|
|
24
|
+
* footprint and, drawn at that footprint, `refMap` is the identity. Keep it
|
|
25
|
+
* that way: off the shipped size every rect resamples, and a resampled repeat
|
|
26
|
+
* (the monitor wall, the linen, the bottle rows) loses its even pitch. The
|
|
27
|
+
* gallery and preview pages hand the painters world-size boxes and zoom with
|
|
28
|
+
* `ctx.scale`, so every shipped path is at the identity; the off-identity guards
|
|
29
|
+
* in `serviceScale.test.ts` cover a caller that is not.
|
|
30
|
+
*/
|
|
31
|
+
/** Staff appearance depends on room geography alone. `geoVariant` reads the
|
|
32
|
+
* world's lowest floor and lot width, so the shirts follow those too; both
|
|
33
|
+
* are constant for the shipped catalog. */
|
|
34
|
+
function staffSeed(u) {
|
|
35
|
+
return geoVariant(u, 6, 997);
|
|
36
|
+
}
|
|
37
|
+
// ---- Security ---------------------------------------------------------------
|
|
38
|
+
function drawSecurity(d, u, x, y, w, h) {
|
|
39
|
+
const ctx = d.ctx;
|
|
40
|
+
const RW = 8 * TILE;
|
|
41
|
+
const RH = FLOOR;
|
|
42
|
+
const { F, Fu, sx, sy } = refMap(ctx, x, y, w, h, RW, RH);
|
|
43
|
+
const W = RW;
|
|
44
|
+
const fy = RH - 6;
|
|
45
|
+
wallp(F, 0, 0, W, fy, "#2C3A5A", false);
|
|
46
|
+
floorb(F, 0, fy, W, 6, "#242A38");
|
|
47
|
+
// Two-by-five wall of green-dot camera monitors. Ten copies of one object, so
|
|
48
|
+
// they take the uniform fill and a pitch that divides evenly: 7 wide on a 9
|
|
49
|
+
// pitch leaves the same 2px gutter between every pair, across and down.
|
|
50
|
+
const monPitch = 9;
|
|
51
|
+
const monW = monPitch - 2;
|
|
52
|
+
const monH = 9;
|
|
53
|
+
for (let r = 0; r < 2; r++) {
|
|
54
|
+
for (let cN = 0; cN < 5; cN++) {
|
|
55
|
+
const mx = 6 + cN * monPitch;
|
|
56
|
+
const my = 6 + r * (monH + 2);
|
|
57
|
+
box(Fu, mx, my, monW, monH, "#0E1420");
|
|
58
|
+
Fu(mx + 1, my + 1, monW - 2, 5, "#1A3A2A");
|
|
59
|
+
Fu(mx + 1 + ((r + cN) % 3), my + 2, 1, 3, "#6bd47a", 0.8);
|
|
60
|
+
Fu(mx + 1, my + 1, monW - 2, 1, "#2A4A3A");
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// The red alarm light hangs on the wall with the key rack below it, clear of
|
|
64
|
+
// the light's glow. Both sit clear of the console, the guard and the badge,
|
|
65
|
+
// so drawing them first changes no pixel and keeps them on the shell.
|
|
66
|
+
const rackX = 70, rackY = 14;
|
|
67
|
+
F(rackX, rackY, 8, 5, "#5A4A36");
|
|
68
|
+
for (let k = 0; k < 4; k++)
|
|
69
|
+
Fu(rackX + 1 + k * 2, rackY + 5, 1, 2, "#D8B05A"); // key rack pins, one object repeated
|
|
70
|
+
F(W - 8, 7, 4, 4, "#E85D5D");
|
|
71
|
+
glow(F, W - 6, 9, "#FF6B6B");
|
|
72
|
+
layerBreak(ctx); // the shell ends; the console, guard and badge follow
|
|
73
|
+
// Console desk with a seated guard behind it.
|
|
74
|
+
const deskX = 53, deskW = 24;
|
|
75
|
+
box(F, deskX, fy - 8, deskW, 8, "#2A3550");
|
|
76
|
+
F(deskX, fy - 8, deskW, 1, "#3E4A66");
|
|
77
|
+
personSeated(ctx, sx(deskX + 8), sy(fy - 8), staffSeed(u) * 3 + 5);
|
|
78
|
+
// Brass badge shield.
|
|
79
|
+
F(deskX + 2, fy - 14, 6, 6, "#D8B05A");
|
|
80
|
+
F(deskX + 4, fy - 13, 2, 4, "#8A6A2A");
|
|
81
|
+
// A warm ceiling light over the console keys on the lit (evening) state. It
|
|
82
|
+
// belongs to the shell but draws last, so it follows the furniture's end.
|
|
83
|
+
layerEnd(ctx);
|
|
84
|
+
ceilingFixture(ctx, x, y, w, d.lit);
|
|
85
|
+
}
|
|
86
|
+
// ---- Medical ----------------------------------------------------------------
|
|
87
|
+
function drawMedical(d, u, x, y, w, h) {
|
|
88
|
+
const ctx = d.ctx;
|
|
89
|
+
const RW = 16 * TILE;
|
|
90
|
+
const RH = FLOOR;
|
|
91
|
+
const { F, Fu, sx, sy } = refMap(ctx, x, y, w, h, RW, RH);
|
|
92
|
+
const W = RW;
|
|
93
|
+
const fy = RH - 6;
|
|
94
|
+
const lamp = roomGlow(d.lit);
|
|
95
|
+
wallp(F, 0, 0, W, fy, "#EDE9E2", true);
|
|
96
|
+
floorb(F, 0, fy, W, 6, "#CFD6D2");
|
|
97
|
+
// Four ceiling lamps on a 40px pitch, 15px in from both walls. Each lamp is
|
|
98
|
+
// as wide as the glow's widest ring, so the glow sits centered on it.
|
|
99
|
+
for (let lx = 15; lx < W; lx += 40) {
|
|
100
|
+
Fu(lx, 2, 10, 2, lamp);
|
|
101
|
+
glow(Fu, lx + 5, 5, lamp);
|
|
102
|
+
}
|
|
103
|
+
// Red cross sign. Both bars are centered on the panel and all four arms
|
|
104
|
+
// reach 3px past the crossing, so the cross sits straight and even.
|
|
105
|
+
F(5, 8, 13, 13, "#F4F0EC");
|
|
106
|
+
F(9, 9, 5, 11, "#D6342F");
|
|
107
|
+
F(6, 12, 11, 5, "#D6342F");
|
|
108
|
+
layerBreak(ctx); // the shell ends; the beds, equipment and staff follow
|
|
109
|
+
// First curtained exam bed with a resting patient head, blanket, and rail.
|
|
110
|
+
const bedW = 24;
|
|
111
|
+
box(F, 25, fy - 9, bedW, 9, "#DCE2E8");
|
|
112
|
+
F(25, fy - 9, bedW, 1, "#F0F4F8");
|
|
113
|
+
F(27, fy - 12, 6, 3, SKIN[0]);
|
|
114
|
+
F(27, fy - 13, 6, 1, "#3A2E28");
|
|
115
|
+
F(33, fy - 10, 14, 3, "#BFD0DE"); // the blanket starts past the head
|
|
116
|
+
F(24, 10, 1, fy - 16, "#B8BCC0");
|
|
117
|
+
F(24, 10, 25, 1, "#B8BCC0");
|
|
118
|
+
F(49, 12, 4, fy - 18, "#9FC0C8", 0.6);
|
|
119
|
+
// Heart monitor with a green trace, 1px clear of the IV bag.
|
|
120
|
+
const monX = 59;
|
|
121
|
+
box(F, monX, fy - 16, 13, 10, "#20242C");
|
|
122
|
+
F(monX + 2, fy - 14, 9, 6, "#0E241A");
|
|
123
|
+
F(monX + 2, fy - 11, 2, 1, "#6bd47a");
|
|
124
|
+
F(monX + 4, fy - 12, 1, 3, "#6bd47a");
|
|
125
|
+
F(monX + 5, fy - 10, 2, 1, "#6bd47a");
|
|
126
|
+
F(monX + 7, fy - 13, 1, 5, "#6bd47a");
|
|
127
|
+
F(monX + 8, fy - 11, 3, 1, "#6bd47a");
|
|
128
|
+
glow(F, monX + 7, fy - 11, "#3ADF6A");
|
|
129
|
+
// IV stand.
|
|
130
|
+
F(55, fy - 16, 1, 16, "#B8BCC0");
|
|
131
|
+
F(53, fy - 18, 5, 3, "#CFE0FF", 0.8);
|
|
132
|
+
// Nurse and doctor: shared standing figures with the white-coat overlay.
|
|
133
|
+
const nurseX = sx(76);
|
|
134
|
+
const doctorX = sx(84);
|
|
135
|
+
const foot = sy(fy);
|
|
136
|
+
personStanding(ctx, nurseX, foot, staffSeed(u) * 2 + 1);
|
|
137
|
+
whiteCoat(ctx, nurseX, foot);
|
|
138
|
+
// The doctor's seed sits 1 to 9 past the nurse's, and the cast has 10 looks,
|
|
139
|
+
// so the doctor is never the nurse's twin and either can stand beside nine
|
|
140
|
+
// others (#1117).
|
|
141
|
+
personStanding(ctx, doctorX, foot, staffSeed(u) * 2 + 2 + geoVariant(u, 7, 9));
|
|
142
|
+
whiteCoat(ctx, doctorX, foot);
|
|
143
|
+
// Stocked supply cabinet, sized so the five bottle columns sit flush against
|
|
144
|
+
// both bevels, the same at each end.
|
|
145
|
+
const cabX = 95, cabW = 21;
|
|
146
|
+
box(F, cabX, fy - 16, cabW, 16, "#F4F4F0");
|
|
147
|
+
const bottles = ["#9FD0C8", "#E8C9A0", "#5db4e8", "#F4A0A0", "#DcE8C0"];
|
|
148
|
+
// Ten copies of one bottle, so they take the uniform fill: off the shipped
|
|
149
|
+
// size a per-edge fill would round each copy to a different width.
|
|
150
|
+
for (let r = 0; r < 2; r++)
|
|
151
|
+
for (let k = 0; k < 5; k++)
|
|
152
|
+
Fu(cabX + 1 + k * 4, fy - 14 + r * 7, 3, 4, bottles[k]);
|
|
153
|
+
F(cabX, fy - 16, cabW, 1, "#D8D8D0");
|
|
154
|
+
// Wheelchair.
|
|
155
|
+
F(120, fy - 8, 6, 5, "#3A4250");
|
|
156
|
+
F(120, fy - 11, 5, 4, "#4A5464");
|
|
157
|
+
F(120, fy - 2, 3, 3, "#1A1D24");
|
|
158
|
+
F(125, fy - 3, 2, 2, "#1A1D24");
|
|
159
|
+
// Second exam bed.
|
|
160
|
+
box(F, 131, fy - 9, bedW, 9, "#DCE2E8");
|
|
161
|
+
F(131, fy - 9, bedW, 1, "#F0F4F8");
|
|
162
|
+
F(133, fy - 12, 6, 3, SKIN[1]);
|
|
163
|
+
F(133, fy - 13, 6, 1, "#3A2E28");
|
|
164
|
+
F(139, fy - 10, 14, 3, "#BFD0DE");
|
|
165
|
+
}
|
|
166
|
+
// ---- Housekeeping -----------------------------------------------------------
|
|
167
|
+
function drawHousekeeping(d, u, x, y, w, h) {
|
|
168
|
+
const ctx = d.ctx;
|
|
169
|
+
const RW = 8 * TILE;
|
|
170
|
+
const RH = FLOOR;
|
|
171
|
+
const { F, Fu, sx, sy } = refMap(ctx, x, y, w, h, RW, RH);
|
|
172
|
+
const W = RW;
|
|
173
|
+
const fy = RH - 6;
|
|
174
|
+
wallp(F, 0, 0, W, fy, "#D8D0BE", false);
|
|
175
|
+
floorb(F, 0, fy, W, 6, "#B7AE98");
|
|
176
|
+
layerBreak(ctx); // the shell ends; the shelf, cart, mop and housekeeper follow
|
|
177
|
+
// Linen shelf. The four stacks are placed off the carcass width, so every
|
|
178
|
+
// shelf keeps the same end margin and the same gap.
|
|
179
|
+
const shelfX = 4, shelfW = 27;
|
|
180
|
+
box(F, shelfX, 6, shelfW, fy - 8, "#9A8468");
|
|
181
|
+
const linens = ["#F4F0EC", "#CFE0FF", "#F4F0EC", "#E8D8C0"];
|
|
182
|
+
for (let r = 0; r < 3; r++) {
|
|
183
|
+
F(shelfX + 2, 9 + r * 8, shelfW - 4, 1, "#7A664C");
|
|
184
|
+
for (let k = 0; k < 4; k++)
|
|
185
|
+
Fu(shelfX + 2 + k * 6, 10 + r * 8, 5, 5, linens[(k + r) % 4]);
|
|
186
|
+
}
|
|
187
|
+
// Teal supply cart with towels and spray bottles, plus its wheels. The
|
|
188
|
+
// towels and bottles each keep a 1px gap, so no item hides another.
|
|
189
|
+
const cartX = 41, cartW = 18;
|
|
190
|
+
box(F, cartX, fy - 10, cartW, 8, "#3E8E8E");
|
|
191
|
+
for (let k = 0; k < 2; k++)
|
|
192
|
+
Fu(cartX + 2 + k * 5, fy - 14, 4, 4, k ? "#CFE0FF" : "#F4F0EC");
|
|
193
|
+
for (let k = 0; k < 2; k++)
|
|
194
|
+
Fu(cartX + 12 + k * 3, fy - 13, 2, 3, k ? "#5db4e8" : "#E85D5D");
|
|
195
|
+
Fu(cartX, fy - 2, 2, 2, "#1A1D24");
|
|
196
|
+
Fu(cartX + cartW - 2, fy - 2, 2, 2, "#1A1D24");
|
|
197
|
+
// Mop and bucket. The towel rack drawn next covers the bucket and the lower
|
|
198
|
+
// handle; the mop head and the top of the handle (rows 23 to 27) show above
|
|
199
|
+
// it. Kept as authored: moving them would change approved art.
|
|
200
|
+
F(62, fy - 14, 1, 12, "#8A5A30");
|
|
201
|
+
F(60, fy - 16, 5, 3, "#E8E0B0");
|
|
202
|
+
box(F, 60, fy - 6, 6, 6, "#F4C020");
|
|
203
|
+
F(60, fy - 6, 6, 2, "#CFE0FF", 0.6);
|
|
204
|
+
// Towel rack: four bars on a 3px pitch leave 2px reveals between them and
|
|
205
|
+
// 2px inside each end, the carcass bevel included.
|
|
206
|
+
const rackX = W - 20, rackW = 14;
|
|
207
|
+
box(F, rackX, fy - 9, rackW, 9, "#B8A47E");
|
|
208
|
+
for (let k = 0; k < 4; k++)
|
|
209
|
+
Fu(rackX + 2 + k * 3, fy - 9, 1, 9, "#9A8460");
|
|
210
|
+
F(rackX + 2, fy - 11, 10, 3, "#F4F0EC");
|
|
211
|
+
// Standing housekeeper by the cart (the teal cart carries the uniform read),
|
|
212
|
+
// 1px clear of its bevel and wheel.
|
|
213
|
+
personStanding(ctx, sx(33), sy(fy), staffSeed(u) * 3 + 3);
|
|
214
|
+
layerEnd(ctx); // the ceiling light belongs to the shell but draws last
|
|
215
|
+
ceilingFixture(ctx, x, y, w, d.lit);
|
|
216
|
+
}
|
|
217
|
+
// ---- Metro ------------------------------------------------------------------
|
|
218
|
+
function drawMetro(d, x, y, w, h) {
|
|
219
|
+
const ctx = d.ctx;
|
|
220
|
+
// The metro spans the whole lot, so the station is width-responsive: the
|
|
221
|
+
// ceiling, wall tiles, pillars, posters, benches, and deck tile across the
|
|
222
|
+
// real width while the signage stays centered. The composition is the
|
|
223
|
+
// party-ratified high platform: a double-height concourse over a one-story
|
|
224
|
+
// track trough, with the platform deck on the MIDDLE story's floor line,
|
|
225
|
+
// exactly where the crowd system stands routed commuters (their platform
|
|
226
|
+
// floor is the unit's middle story). The train (drawMetroTrain, its own
|
|
227
|
+
// actor) rides the trough and slides in front of the far-platform scene;
|
|
228
|
+
// waiting commuters draw in front of it on the near edge. The platform
|
|
229
|
+
// itself draws EMPTY: real routed commuters are the crowd, so an empty
|
|
230
|
+
// tower honestly shows an empty platform (no ghost crowd).
|
|
231
|
+
const W = Math.max(1, w);
|
|
232
|
+
const H = Math.max(1, h);
|
|
233
|
+
const f = (px, py, pw, ph, color, alpha = 1) => {
|
|
234
|
+
// Clip every rect to the unit box. In-game the bake canvas is exactly
|
|
235
|
+
// W x H so this changes nothing, but the gallery paints entries onto one
|
|
236
|
+
// shared canvas, where the fixed-y furniture on its (deliberately
|
|
237
|
+
// squished) metro cell would otherwise bleed into the neighboring cells.
|
|
238
|
+
// A clipped-to-zero (or negative) size paints nothing, matching refMap's
|
|
239
|
+
// zero-size guard, rather than promoting an empty rect into a stray pixel.
|
|
240
|
+
const x0 = Math.max(0, Math.round(px));
|
|
241
|
+
const y0 = Math.max(0, Math.round(py));
|
|
242
|
+
const x1 = Math.min(W, Math.round(px + pw));
|
|
243
|
+
const y1 = Math.min(H, Math.round(py + ph));
|
|
244
|
+
if (x1 <= x0 || y1 <= y0)
|
|
245
|
+
return;
|
|
246
|
+
const prevAlpha = ctx.globalAlpha;
|
|
247
|
+
ctx.globalAlpha = alpha;
|
|
248
|
+
ctx.fillStyle = color;
|
|
249
|
+
ctx.fillRect(Math.round(x) + x0, Math.round(y) + y0, x1 - x0, y1 - y0);
|
|
250
|
+
if (alpha !== prevAlpha)
|
|
251
|
+
ctx.globalAlpha = prevAlpha;
|
|
252
|
+
};
|
|
253
|
+
const deckY = Math.round(H * (2 / 3)); // platform deck = middle story's floor line
|
|
254
|
+
const lamp = roomGlow(d.lit);
|
|
255
|
+
// Warm ivory tiled back wall across the double-height concourse.
|
|
256
|
+
f(0, 0, W, deckY, "#D8CFB8");
|
|
257
|
+
f(0, 8, W, 1, "#E6DEC8"); // bright course under the vault
|
|
258
|
+
for (let px = 0; px < W; px += 10)
|
|
259
|
+
f(px, 8, 1, deckY - 8, "#C4BAA2");
|
|
260
|
+
for (let py = 16; py < deckY - 4; py += 8)
|
|
261
|
+
f(0, py, W, 1, "#C4BAA2");
|
|
262
|
+
// Vaulted ceiling: dark steel band with arch ribs and hanging twin-globe
|
|
263
|
+
// lamps (warm when lit).
|
|
264
|
+
f(0, 0, W, 8, "#2E3038");
|
|
265
|
+
for (let ax = 0; ax < W; ax += 40) {
|
|
266
|
+
f(ax, 6, 38, 1, "#3A3D48");
|
|
267
|
+
f(ax + 18, 0, 2, 8, "#3A3D48");
|
|
268
|
+
}
|
|
269
|
+
for (let lx = 30; lx + 8 < W; lx += 92) {
|
|
270
|
+
f(lx + 3, 8, 1, 4, "#3A3D48"); // stem
|
|
271
|
+
f(lx, 12, 7, 3, lamp);
|
|
272
|
+
glow(f, lx + 3, 14, lamp);
|
|
273
|
+
}
|
|
274
|
+
// The line-color band: a red stripe with white trim running the full width.
|
|
275
|
+
f(0, 24, W, 1, "#F0EAD8");
|
|
276
|
+
f(0, 25, W, 3, "#C0392B");
|
|
277
|
+
f(0, 28, W, 1, "#F0EAD8");
|
|
278
|
+
// Teal tiled pillars on the reference cadence, with edge light and plinth.
|
|
279
|
+
for (let px = 70; px < W - 20; px += 105) {
|
|
280
|
+
f(px, 8, 11, deckY - 8, "#2E5850");
|
|
281
|
+
f(px, 8, 2, deckY - 8, "#3E6E64");
|
|
282
|
+
f(px + 9, 8, 2, deckY - 8, "#1F423C");
|
|
283
|
+
f(px - 1, deckY - 6, 13, 6, "#23343A"); // plinth
|
|
284
|
+
for (let py = 16; py < deckY - 8; py += 9)
|
|
285
|
+
f(px + 2, py, 7, 1, "#264A44");
|
|
286
|
+
}
|
|
287
|
+
// Backlit ad posters between the pillars, three designs on rotation: a
|
|
288
|
+
// sunset travel ad, a soda ad, and a show bill. Color varies second,
|
|
289
|
+
// geometry first (per the art bible), and none reuses a state literal.
|
|
290
|
+
let poster = 0;
|
|
291
|
+
for (let px = 122; px + 18 < W - 20; px += 105, poster++) {
|
|
292
|
+
box(f, px, 34, 18, 24, "#20242C");
|
|
293
|
+
f(px + 1, 35, 16, 1, d.lit ? "#F0EAD8" : "#6E6A5E"); // backlight rim
|
|
294
|
+
if (poster % 3 === 0) {
|
|
295
|
+
f(px + 2, 37, 14, 12, "#E08A4A"); // sunset sky
|
|
296
|
+
f(px + 2, 45, 14, 4, "#B05A32");
|
|
297
|
+
f(px + 5, 40, 5, 5, "#F4D06A"); // sun
|
|
298
|
+
f(px + 2, 49, 14, 7, "#3A3330"); // skyline silhouette
|
|
299
|
+
f(px + 5, 47, 2, 4, "#3A3330");
|
|
300
|
+
f(px + 11, 46, 2, 5, "#3A3330");
|
|
301
|
+
}
|
|
302
|
+
else if (poster % 3 === 1) {
|
|
303
|
+
f(px + 2, 37, 14, 19, "#3E6E9E"); // soda blue
|
|
304
|
+
f(px + 5, 40, 8, 10, "#E8E4D8"); // bottle
|
|
305
|
+
f(px + 7, 38, 4, 3, "#E8E4D8");
|
|
306
|
+
f(px + 6, 43, 6, 3, "#C0392B"); // label
|
|
307
|
+
f(px + 3, 52, 12, 1, "#E8E4D8"); // script line
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
f(px + 2, 37, 14, 19, "#6E4E86"); // show-bill purple
|
|
311
|
+
f(px + 8, 41, 2, 6, "#F4D06A"); // starburst
|
|
312
|
+
f(px + 6, 43, 6, 2, "#F4D06A");
|
|
313
|
+
f(px + 5, 40, 1, 1, "#F4D06A");
|
|
314
|
+
f(px + 12, 40, 1, 1, "#F4D06A");
|
|
315
|
+
f(px + 4, 52, 10, 1, "#E8E4D8"); // title line
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
// Centered METRO sign with the red M roundel, hung from the vault.
|
|
319
|
+
const mid = Math.round(W / 2);
|
|
320
|
+
f(mid - 28, 8, 2, 6, "#3A3D48");
|
|
321
|
+
f(mid + 26, 8, 2, 6, "#3A3D48");
|
|
322
|
+
box(f, mid - 30, 14, 60, 14, "#1E4E86");
|
|
323
|
+
for (let i = 0; i < 8; i++)
|
|
324
|
+
f(mid - 24 + i * 6, 18, 3, 6, "#DCE6F0");
|
|
325
|
+
f(mid - 46, 14, 14, 14, "#C0392B");
|
|
326
|
+
f(mid - 42, 18, 6, 6, "#FFFFFF");
|
|
327
|
+
f(mid - 41, 19, 1, 4, "#C0392B");
|
|
328
|
+
f(mid - 39, 19, 1, 4, "#C0392B");
|
|
329
|
+
f(mid - 37, 19, 1, 4, "#C0392B");
|
|
330
|
+
// Station clock beside the sign.
|
|
331
|
+
box(f, mid + 40, 16, 10, 10, "#20242C");
|
|
332
|
+
f(mid + 42, 18, 6, 6, "#F0EAD8");
|
|
333
|
+
f(mid + 44, 19, 1, 3, "#20242C");
|
|
334
|
+
f(mid + 45, 21, 2, 1, "#20242C");
|
|
335
|
+
// Lit route-map board near the left end.
|
|
336
|
+
box(f, 20, 34, 52, 26, "#20303E");
|
|
337
|
+
f(24, 38, 44, 2, "#5FB0DC");
|
|
338
|
+
f(24, 44, 32, 1, "#E8C14A");
|
|
339
|
+
f(24, 48, 38, 1, "#6bd47a");
|
|
340
|
+
for (let i = 0; i < 6; i++)
|
|
341
|
+
f(26 + i * 7, 40, 2, 2, "#F4F0E4");
|
|
342
|
+
layerBreak(ctx); // the shell ends; the benches, vending machines and bins follow
|
|
343
|
+
// Deck furniture on the far platform: wooden benches, a vending machine on
|
|
344
|
+
// a longer cadence, and a bin. The train slides in FRONT of these.
|
|
345
|
+
for (let bx = 110; bx < W - 24; bx += 100) {
|
|
346
|
+
box(f, bx, deckY - 8, 22, 8, "#6A5240");
|
|
347
|
+
f(bx + 1, deckY - 8, 20, 1, "#7A6250");
|
|
348
|
+
f(bx + 2, deckY - 4, 2, 4, "#4A3A2E");
|
|
349
|
+
f(bx + 18, deckY - 4, 2, 4, "#4A3A2E");
|
|
350
|
+
}
|
|
351
|
+
for (let vx = 160; vx + 12 < W - 24; vx += 210) {
|
|
352
|
+
box(f, vx, deckY - 18, 12, 18, "#B04438");
|
|
353
|
+
f(vx + 2, deckY - 16, 8, 9, d.lit ? "#FFE9B0" : "#6E5A4E"); // lit face
|
|
354
|
+
for (let r = 0; r < 3; r++)
|
|
355
|
+
f(vx + 3, deckY - 15 + r * 3, 6, 1, "#B04438");
|
|
356
|
+
f(vx + 2, deckY - 5, 8, 3, "#3A3330"); // dispense tray
|
|
357
|
+
}
|
|
358
|
+
for (let tx = 86; tx < W - 24; tx += 200) {
|
|
359
|
+
f(tx, deckY - 6, 6, 6, "#4E5A50");
|
|
360
|
+
f(tx + 1, deckY - 6, 4, 1, "#2E3A30");
|
|
361
|
+
}
|
|
362
|
+
// The furniture ends here: the exit stairs, the deck and the trough are
|
|
363
|
+
// structure drawn over it, so the depth layers put them on the shell.
|
|
364
|
+
layerEnd(ctx);
|
|
365
|
+
// WAY OUT at the right end: green sign over stair steps rising out of frame.
|
|
366
|
+
const ex = W - 46;
|
|
367
|
+
box(f, ex, 30, 26, 10, "#3E7E4E");
|
|
368
|
+
for (let i = 0; i < 4; i++)
|
|
369
|
+
f(ex + 3 + i * 5, 33, 3, 4, "#E8F4E8");
|
|
370
|
+
f(ex + 22, 34, 2, 2, "#E8F4E8"); // arrow head
|
|
371
|
+
for (let s = 0; s < 5; s++)
|
|
372
|
+
f(ex + 2 + s * 5, deckY - 3 - s * 3, W - ex, 3, "#B8AE96");
|
|
373
|
+
// The platform deck: light concrete edge, yellow tactile strip, slab face.
|
|
374
|
+
f(0, deckY, W, 1, "#D8D4C8");
|
|
375
|
+
f(0, deckY + 1, W, 1, "#E8C14A");
|
|
376
|
+
f(0, deckY + 2, W, 2, "#caa84a");
|
|
377
|
+
f(0, deckY + 4, W, 4, "#8A8578");
|
|
378
|
+
f(0, deckY + 8, W, 2, "#6E6A5E");
|
|
379
|
+
// The trough: retaining wall with cable conduits and maintenance doors,
|
|
380
|
+
// grime under the deck lip, and the track bed the train rides.
|
|
381
|
+
const troughY = deckY + 10;
|
|
382
|
+
f(0, troughY, W, H - troughY, "#3A4046");
|
|
383
|
+
f(0, troughY, W, 3, "#2E3238", 0.9); // shadow under the lip
|
|
384
|
+
f(0, troughY + 8, W, 2, "#2A2E34"); // cable conduits
|
|
385
|
+
f(0, troughY + 14, W, 1, "#2A2E34");
|
|
386
|
+
for (let cxp = 24; cxp < W; cxp += 48)
|
|
387
|
+
f(cxp, troughY + 7, 2, 9, "#22262C"); // clips
|
|
388
|
+
for (let mx = 240; mx + 14 < W; mx += 480) {
|
|
389
|
+
box(f, mx, troughY + 4, 14, H - troughY - 12, "#303640");
|
|
390
|
+
f(mx + 10, troughY + 12, 2, 2, "#5A5E66"); // handle
|
|
391
|
+
}
|
|
392
|
+
// Track bed: ballast, sleepers, running rails, and the third rail.
|
|
393
|
+
f(0, H - 8, W, 8, "#26282E");
|
|
394
|
+
for (let sxp = 4; sxp < W; sxp += 10)
|
|
395
|
+
f(sxp, H - 7, 3, 6, "#1C1E24");
|
|
396
|
+
f(0, H - 6, W, 2, "#6E7686");
|
|
397
|
+
f(0, H - 6, W, 1, "#9AA2B0");
|
|
398
|
+
f(0, H - 2, W, 2, "#6E7686");
|
|
399
|
+
for (let tr = 16; tr < W; tr += 64)
|
|
400
|
+
f(tr, H - 10, 8, 2, "#50565E"); // third rail
|
|
401
|
+
}
|
|
402
|
+
/** Pixels in one repeat of the tunnel row: fifteen 64px steel panels. */
|
|
403
|
+
const METRO_TUNNEL_TILE = 960;
|
|
404
|
+
/** One repeat of the metro's tunnel row, drawn at (0,0) into a
|
|
405
|
+
* METRO_TUNNEL_TILE x FLOOR rect. SimTower runs the tunnel along the metro's
|
|
406
|
+
* bottom row on both sides of the station: riveted gray steel panels over a
|
|
407
|
+
* dark rail bed. The engine lays copies of this tile (phase-aligned to the
|
|
408
|
+
* world x) across the rest of the lot. */
|
|
409
|
+
function drawMetroTunnel(ctx) {
|
|
410
|
+
const W = METRO_TUNNEL_TILE;
|
|
411
|
+
const f = (px, py, pw, ph, color, alpha = 1) => {
|
|
412
|
+
ctx.globalAlpha = alpha;
|
|
413
|
+
ctx.fillStyle = color;
|
|
414
|
+
ctx.fillRect(px, py, pw, ph);
|
|
415
|
+
ctx.globalAlpha = 1;
|
|
416
|
+
};
|
|
417
|
+
f(0, 0, W, FLOOR, "#5E6166"); // steel wall
|
|
418
|
+
f(0, 0, W, 4, "#2A2C30"); // dark lip under the platform slab
|
|
419
|
+
f(0, 4, W, 2, "#8A8D92");
|
|
420
|
+
for (let px = 0; px < W; px += 64) {
|
|
421
|
+
f(px, 6, 2, FLOOR - 16, "#3A3C40"); // panel seam
|
|
422
|
+
f(px + 2, 6, 1, FLOOR - 16, "#7C7F84");
|
|
423
|
+
for (const ry of [12, FLOOR - 18]) {
|
|
424
|
+
f(px + 8, ry, 2, 2, "#8A8D92"); // rivets
|
|
425
|
+
f(px + 54, ry, 2, 2, "#8A8D92");
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
f(0, 22, W, 1, "#4A4C50"); // mid rib
|
|
429
|
+
f(0, FLOOR - 10, W, 10, "#26282E"); // rail bed
|
|
430
|
+
for (let sx = 4; sx < W; sx += 10)
|
|
431
|
+
f(sx, FLOOR - 9, 3, 7, "#1C1E24"); // sleepers
|
|
432
|
+
f(0, FLOOR - 8, W, 2, "#6E7686");
|
|
433
|
+
f(0, FLOOR - 2, W, 2, "#6E7686");
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export { METRO_TUNNEL_TILE, drawHousekeeping, drawMedical, drawMetro, drawMetroTunnel, drawSecurity };
|
|
437
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sources":["../../../../src/render/sprites/facilities/service.ts"],"sourcesContent":["import type { UnitView } from \"../../../simport/view\";\nimport { ceilingFixture, geoVariant, personSeated, personStanding, roomGlow, SKIN } from \"../../pixelSprites/common\";\nimport { layerBreak, layerEnd } from \"../../pixelSprites/layers\";\nimport type { DrawCtx } from \"../common\";\nimport { FLOOR, TILE } from \"../../scale\";\nimport { box, floorb, glow, refMap, wallp, whiteCoat, type Fill } from \"./serviceKit\";\n\n/**\n * In-tower service and utility facilities: security, the medical center,\n * housekeeping, and the metro station. (The recycling center lives in\n * `recycling.ts`, the basement garage in `garage.ts`, and the moving actors in\n * `vehicles.ts`.)\n *\n * Each look was 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 * so the tower cross-section reads as the warm, lived-in dollhouse the art\n * direction calls for. Figures are the shared finalized `person()` builds,\n * never hand-rolled. Reserved state colors\n * are never reused for decoration. These are staffed amenities: they always\n * draw their interior, never a lease or vacancy card.\n *\n * The security, medical center and housekeeping references were re-authored\n * onto the live TILE 10 by FLOOR 45 grid, so `RW`/`RH` equal the shipped\n * footprint and, drawn at that footprint, `refMap` is the identity. Keep it\n * that way: off the shipped size every rect resamples, and a resampled repeat\n * (the monitor wall, the linen, the bottle rows) loses its even pitch. The\n * gallery and preview pages hand the painters world-size boxes and zoom with\n * `ctx.scale`, so every shipped path is at the identity; the off-identity guards\n * in `serviceScale.test.ts` cover a caller that is not.\n */\n\n/** Staff appearance depends on room geography alone. `geoVariant` reads the\n * world's lowest floor and lot width, so the shirts follow those too; both\n * are constant for the shipped catalog. */\nfunction staffSeed(u: Pick<UnitView, \"kind\" | \"floor\" | \"x\">): number {\n return geoVariant(u, 6, 997);\n}\n\n// ---- Security ---------------------------------------------------------------\n\nexport function drawSecurity(d: DrawCtx, u: Pick<UnitView, \"kind\" | \"floor\" | \"x\">, x: number, y: number, w: number, h: number): void {\n const ctx = d.ctx;\n const RW = 8 * TILE;\n const RH = FLOOR;\n const { F, Fu, sx, sy } = refMap(ctx, x, y, w, h, RW, RH);\n const W = RW;\n const fy = RH - 6;\n wallp(F, 0, 0, W, fy, \"#2C3A5A\", false);\n floorb(F, 0, fy, W, 6, \"#242A38\");\n // Two-by-five wall of green-dot camera monitors. Ten copies of one object, so\n // they take the uniform fill and a pitch that divides evenly: 7 wide on a 9\n // pitch leaves the same 2px gutter between every pair, across and down.\n const monPitch = 9;\n const monW = monPitch - 2;\n const monH = 9;\n for (let r = 0; r < 2; r++) {\n for (let cN = 0; cN < 5; cN++) {\n const mx = 6 + cN * monPitch;\n const my = 6 + r * (monH + 2);\n box(Fu, mx, my, monW, monH, \"#0E1420\");\n Fu(mx + 1, my + 1, monW - 2, 5, \"#1A3A2A\");\n Fu(mx + 1 + ((r + cN) % 3), my + 2, 1, 3, \"#6bd47a\", 0.8);\n Fu(mx + 1, my + 1, monW - 2, 1, \"#2A4A3A\");\n }\n }\n // The red alarm light hangs on the wall with the key rack below it, clear of\n // the light's glow. Both sit clear of the console, the guard and the badge,\n // so drawing them first changes no pixel and keeps them on the shell.\n const rackX = 70, rackY = 14;\n F(rackX, rackY, 8, 5, \"#5A4A36\");\n for (let k = 0; k < 4; k++) Fu(rackX + 1 + k * 2, rackY + 5, 1, 2, \"#D8B05A\"); // key rack pins, one object repeated\n F(W - 8, 7, 4, 4, \"#E85D5D\");\n glow(F, W - 6, 9, \"#FF6B6B\");\n layerBreak(ctx); // the shell ends; the console, guard and badge follow\n // Console desk with a seated guard behind it.\n const deskX = 53, deskW = 24;\n box(F, deskX, fy - 8, deskW, 8, \"#2A3550\");\n F(deskX, fy - 8, deskW, 1, \"#3E4A66\");\n personSeated(ctx, sx(deskX + 8), sy(fy - 8), staffSeed(u) * 3 + 5);\n // Brass badge shield.\n F(deskX + 2, fy - 14, 6, 6, \"#D8B05A\");\n F(deskX + 4, fy - 13, 2, 4, \"#8A6A2A\");\n // A warm ceiling light over the console keys on the lit (evening) state. It\n // belongs to the shell but draws last, so it follows the furniture's end.\n layerEnd(ctx);\n ceilingFixture(ctx, x, y, w, d.lit);\n}\n\n// ---- Medical ----------------------------------------------------------------\n\nexport function drawMedical(d: DrawCtx, u: Pick<UnitView, \"kind\" | \"floor\" | \"x\">, x: number, y: number, w: number, h: number): void {\n const ctx = d.ctx;\n const RW = 16 * TILE;\n const RH = FLOOR;\n const { F, Fu, sx, sy } = refMap(ctx, x, y, w, h, RW, RH);\n const W = RW;\n const fy = RH - 6;\n const lamp = roomGlow(d.lit);\n wallp(F, 0, 0, W, fy, \"#EDE9E2\", true);\n floorb(F, 0, fy, W, 6, \"#CFD6D2\");\n // Four ceiling lamps on a 40px pitch, 15px in from both walls. Each lamp is\n // as wide as the glow's widest ring, so the glow sits centered on it.\n for (let lx = 15; lx < W; lx += 40) {\n Fu(lx, 2, 10, 2, lamp);\n glow(Fu, lx + 5, 5, lamp);\n }\n // Red cross sign. Both bars are centered on the panel and all four arms\n // reach 3px past the crossing, so the cross sits straight and even.\n F(5, 8, 13, 13, \"#F4F0EC\");\n F(9, 9, 5, 11, \"#D6342F\");\n F(6, 12, 11, 5, \"#D6342F\");\n layerBreak(ctx); // the shell ends; the beds, equipment and staff follow\n // First curtained exam bed with a resting patient head, blanket, and rail.\n const bedW = 24;\n box(F, 25, fy - 9, bedW, 9, \"#DCE2E8\");\n F(25, fy - 9, bedW, 1, \"#F0F4F8\");\n F(27, fy - 12, 6, 3, SKIN[0]);\n F(27, fy - 13, 6, 1, \"#3A2E28\");\n F(33, fy - 10, 14, 3, \"#BFD0DE\"); // the blanket starts past the head\n F(24, 10, 1, fy - 16, \"#B8BCC0\");\n F(24, 10, 25, 1, \"#B8BCC0\");\n F(49, 12, 4, fy - 18, \"#9FC0C8\", 0.6);\n // Heart monitor with a green trace, 1px clear of the IV bag.\n const monX = 59;\n box(F, monX, fy - 16, 13, 10, \"#20242C\");\n F(monX + 2, fy - 14, 9, 6, \"#0E241A\");\n F(monX + 2, fy - 11, 2, 1, \"#6bd47a\");\n F(monX + 4, fy - 12, 1, 3, \"#6bd47a\");\n F(monX + 5, fy - 10, 2, 1, \"#6bd47a\");\n F(monX + 7, fy - 13, 1, 5, \"#6bd47a\");\n F(monX + 8, fy - 11, 3, 1, \"#6bd47a\");\n glow(F, monX + 7, fy - 11, \"#3ADF6A\");\n // IV stand.\n F(55, fy - 16, 1, 16, \"#B8BCC0\");\n F(53, fy - 18, 5, 3, \"#CFE0FF\", 0.8);\n // Nurse and doctor: shared standing figures with the white-coat overlay.\n const nurseX = sx(76);\n const doctorX = sx(84);\n const foot = sy(fy);\n personStanding(ctx, nurseX, foot, staffSeed(u) * 2 + 1);\n whiteCoat(ctx, nurseX, foot);\n // The doctor's seed sits 1 to 9 past the nurse's, and the cast has 10 looks,\n // so the doctor is never the nurse's twin and either can stand beside nine\n // others (#1117).\n personStanding(ctx, doctorX, foot, staffSeed(u) * 2 + 2 + geoVariant(u, 7, 9));\n whiteCoat(ctx, doctorX, foot);\n // Stocked supply cabinet, sized so the five bottle columns sit flush against\n // both bevels, the same at each end.\n const cabX = 95, cabW = 21;\n box(F, cabX, fy - 16, cabW, 16, \"#F4F4F0\");\n const bottles = [\"#9FD0C8\", \"#E8C9A0\", \"#5db4e8\", \"#F4A0A0\", \"#DcE8C0\"];\n // Ten copies of one bottle, so they take the uniform fill: off the shipped\n // size a per-edge fill would round each copy to a different width.\n for (let r = 0; r < 2; r++) for (let k = 0; k < 5; k++) Fu(cabX + 1 + k * 4, fy - 14 + r * 7, 3, 4, bottles[k]);\n F(cabX, fy - 16, cabW, 1, \"#D8D8D0\");\n // Wheelchair.\n F(120, fy - 8, 6, 5, \"#3A4250\");\n F(120, fy - 11, 5, 4, \"#4A5464\");\n F(120, fy - 2, 3, 3, \"#1A1D24\");\n F(125, fy - 3, 2, 2, \"#1A1D24\");\n // Second exam bed.\n box(F, 131, fy - 9, bedW, 9, \"#DCE2E8\");\n F(131, fy - 9, bedW, 1, \"#F0F4F8\");\n F(133, fy - 12, 6, 3, SKIN[1]);\n F(133, fy - 13, 6, 1, \"#3A2E28\");\n F(139, fy - 10, 14, 3, \"#BFD0DE\");\n}\n\n// ---- Housekeeping -----------------------------------------------------------\n\nexport function drawHousekeeping(d: DrawCtx, u: Pick<UnitView, \"kind\" | \"floor\" | \"x\">, x: number, y: number, w: number, h: number): void {\n const ctx = d.ctx;\n const RW = 8 * TILE;\n const RH = FLOOR;\n const { F, Fu, sx, sy } = refMap(ctx, x, y, w, h, RW, RH);\n const W = RW;\n const fy = RH - 6;\n wallp(F, 0, 0, W, fy, \"#D8D0BE\", false);\n floorb(F, 0, fy, W, 6, \"#B7AE98\");\n layerBreak(ctx); // the shell ends; the shelf, cart, mop and housekeeper follow\n // Linen shelf. The four stacks are placed off the carcass width, so every\n // shelf keeps the same end margin and the same gap.\n const shelfX = 4, shelfW = 27;\n box(F, shelfX, 6, shelfW, fy - 8, \"#9A8468\");\n const linens = [\"#F4F0EC\", \"#CFE0FF\", \"#F4F0EC\", \"#E8D8C0\"];\n for (let r = 0; r < 3; r++) {\n F(shelfX + 2, 9 + r * 8, shelfW - 4, 1, \"#7A664C\");\n for (let k = 0; k < 4; k++) Fu(shelfX + 2 + k * 6, 10 + r * 8, 5, 5, linens[(k + r) % 4]);\n }\n // Teal supply cart with towels and spray bottles, plus its wheels. The\n // towels and bottles each keep a 1px gap, so no item hides another.\n const cartX = 41, cartW = 18;\n box(F, cartX, fy - 10, cartW, 8, \"#3E8E8E\");\n for (let k = 0; k < 2; k++) Fu(cartX + 2 + k * 5, fy - 14, 4, 4, k ? \"#CFE0FF\" : \"#F4F0EC\");\n for (let k = 0; k < 2; k++) Fu(cartX + 12 + k * 3, fy - 13, 2, 3, k ? \"#5db4e8\" : \"#E85D5D\");\n Fu(cartX, fy - 2, 2, 2, \"#1A1D24\");\n Fu(cartX + cartW - 2, fy - 2, 2, 2, \"#1A1D24\");\n // Mop and bucket. The towel rack drawn next covers the bucket and the lower\n // handle; the mop head and the top of the handle (rows 23 to 27) show above\n // it. Kept as authored: moving them would change approved art.\n F(62, fy - 14, 1, 12, \"#8A5A30\");\n F(60, fy - 16, 5, 3, \"#E8E0B0\");\n box(F, 60, fy - 6, 6, 6, \"#F4C020\");\n F(60, fy - 6, 6, 2, \"#CFE0FF\", 0.6);\n // Towel rack: four bars on a 3px pitch leave 2px reveals between them and\n // 2px inside each end, the carcass bevel included.\n const rackX = W - 20, rackW = 14;\n box(F, rackX, fy - 9, rackW, 9, \"#B8A47E\");\n for (let k = 0; k < 4; k++) Fu(rackX + 2 + k * 3, fy - 9, 1, 9, \"#9A8460\");\n F(rackX + 2, fy - 11, 10, 3, \"#F4F0EC\");\n // Standing housekeeper by the cart (the teal cart carries the uniform read),\n // 1px clear of its bevel and wheel.\n personStanding(ctx, sx(33), sy(fy), staffSeed(u) * 3 + 3);\n layerEnd(ctx); // the ceiling light belongs to the shell but draws last\n ceilingFixture(ctx, x, y, w, d.lit);\n}\n\n// ---- Metro ------------------------------------------------------------------\n\nexport function drawMetro(d: DrawCtx, x: number, y: number, w: number, h: number): void {\n const ctx = d.ctx;\n // The metro spans the whole lot, so the station is width-responsive: the\n // ceiling, wall tiles, pillars, posters, benches, and deck tile across the\n // real width while the signage stays centered. The composition is the\n // party-ratified high platform: a double-height concourse over a one-story\n // track trough, with the platform deck on the MIDDLE story's floor line,\n // exactly where the crowd system stands routed commuters (their platform\n // floor is the unit's middle story). The train (drawMetroTrain, its own\n // actor) rides the trough and slides in front of the far-platform scene;\n // waiting commuters draw in front of it on the near edge. The platform\n // itself draws EMPTY: real routed commuters are the crowd, so an empty\n // tower honestly shows an empty platform (no ghost crowd).\n const W = Math.max(1, w);\n const H = Math.max(1, h);\n const f: Fill = (px, py, pw, ph, color, alpha = 1) => {\n // Clip every rect to the unit box. In-game the bake canvas is exactly\n // W x H so this changes nothing, but the gallery paints entries onto one\n // shared canvas, where the fixed-y furniture on its (deliberately\n // squished) metro cell would otherwise bleed into the neighboring cells.\n // A clipped-to-zero (or negative) size paints nothing, matching refMap's\n // zero-size guard, rather than promoting an empty rect into a stray pixel.\n const x0 = Math.max(0, Math.round(px));\n const y0 = Math.max(0, Math.round(py));\n const x1 = Math.min(W, Math.round(px + pw));\n const y1 = Math.min(H, Math.round(py + ph));\n if (x1 <= x0 || y1 <= y0) return;\n const prevAlpha = ctx.globalAlpha;\n ctx.globalAlpha = alpha;\n ctx.fillStyle = color;\n ctx.fillRect(Math.round(x) + x0, Math.round(y) + y0, x1 - x0, y1 - y0);\n if (alpha !== prevAlpha) ctx.globalAlpha = prevAlpha;\n };\n const deckY = Math.round(H * (2 / 3)); // platform deck = middle story's floor line\n const lamp = roomGlow(d.lit);\n // Warm ivory tiled back wall across the double-height concourse.\n f(0, 0, W, deckY, \"#D8CFB8\");\n f(0, 8, W, 1, \"#E6DEC8\"); // bright course under the vault\n for (let px = 0; px < W; px += 10) f(px, 8, 1, deckY - 8, \"#C4BAA2\");\n for (let py = 16; py < deckY - 4; py += 8) f(0, py, W, 1, \"#C4BAA2\");\n // Vaulted ceiling: dark steel band with arch ribs and hanging twin-globe\n // lamps (warm when lit).\n f(0, 0, W, 8, \"#2E3038\");\n for (let ax = 0; ax < W; ax += 40) {\n f(ax, 6, 38, 1, \"#3A3D48\");\n f(ax + 18, 0, 2, 8, \"#3A3D48\");\n }\n for (let lx = 30; lx + 8 < W; lx += 92) {\n f(lx + 3, 8, 1, 4, \"#3A3D48\"); // stem\n f(lx, 12, 7, 3, lamp);\n glow(f, lx + 3, 14, lamp);\n }\n // The line-color band: a red stripe with white trim running the full width.\n f(0, 24, W, 1, \"#F0EAD8\");\n f(0, 25, W, 3, \"#C0392B\");\n f(0, 28, W, 1, \"#F0EAD8\");\n // Teal tiled pillars on the reference cadence, with edge light and plinth.\n for (let px = 70; px < W - 20; px += 105) {\n f(px, 8, 11, deckY - 8, \"#2E5850\");\n f(px, 8, 2, deckY - 8, \"#3E6E64\");\n f(px + 9, 8, 2, deckY - 8, \"#1F423C\");\n f(px - 1, deckY - 6, 13, 6, \"#23343A\"); // plinth\n for (let py = 16; py < deckY - 8; py += 9) f(px + 2, py, 7, 1, \"#264A44\");\n }\n // Backlit ad posters between the pillars, three designs on rotation: a\n // sunset travel ad, a soda ad, and a show bill. Color varies second,\n // geometry first (per the art bible), and none reuses a state literal.\n let poster = 0;\n for (let px = 122; px + 18 < W - 20; px += 105, poster++) {\n box(f, px, 34, 18, 24, \"#20242C\");\n f(px + 1, 35, 16, 1, d.lit ? \"#F0EAD8\" : \"#6E6A5E\"); // backlight rim\n if (poster % 3 === 0) {\n f(px + 2, 37, 14, 12, \"#E08A4A\"); // sunset sky\n f(px + 2, 45, 14, 4, \"#B05A32\");\n f(px + 5, 40, 5, 5, \"#F4D06A\"); // sun\n f(px + 2, 49, 14, 7, \"#3A3330\"); // skyline silhouette\n f(px + 5, 47, 2, 4, \"#3A3330\");\n f(px + 11, 46, 2, 5, \"#3A3330\");\n } else if (poster % 3 === 1) {\n f(px + 2, 37, 14, 19, \"#3E6E9E\"); // soda blue\n f(px + 5, 40, 8, 10, \"#E8E4D8\"); // bottle\n f(px + 7, 38, 4, 3, \"#E8E4D8\");\n f(px + 6, 43, 6, 3, \"#C0392B\"); // label\n f(px + 3, 52, 12, 1, \"#E8E4D8\"); // script line\n } else {\n f(px + 2, 37, 14, 19, \"#6E4E86\"); // show-bill purple\n f(px + 8, 41, 2, 6, \"#F4D06A\"); // starburst\n f(px + 6, 43, 6, 2, \"#F4D06A\");\n f(px + 5, 40, 1, 1, \"#F4D06A\");\n f(px + 12, 40, 1, 1, \"#F4D06A\");\n f(px + 4, 52, 10, 1, \"#E8E4D8\"); // title line\n }\n }\n // Centered METRO sign with the red M roundel, hung from the vault.\n const mid = Math.round(W / 2);\n f(mid - 28, 8, 2, 6, \"#3A3D48\");\n f(mid + 26, 8, 2, 6, \"#3A3D48\");\n box(f, mid - 30, 14, 60, 14, \"#1E4E86\");\n for (let i = 0; i < 8; i++) f(mid - 24 + i * 6, 18, 3, 6, \"#DCE6F0\");\n f(mid - 46, 14, 14, 14, \"#C0392B\");\n f(mid - 42, 18, 6, 6, \"#FFFFFF\");\n f(mid - 41, 19, 1, 4, \"#C0392B\");\n f(mid - 39, 19, 1, 4, \"#C0392B\");\n f(mid - 37, 19, 1, 4, \"#C0392B\");\n // Station clock beside the sign.\n box(f, mid + 40, 16, 10, 10, \"#20242C\");\n f(mid + 42, 18, 6, 6, \"#F0EAD8\");\n f(mid + 44, 19, 1, 3, \"#20242C\");\n f(mid + 45, 21, 2, 1, \"#20242C\");\n // Lit route-map board near the left end.\n box(f, 20, 34, 52, 26, \"#20303E\");\n f(24, 38, 44, 2, \"#5FB0DC\");\n f(24, 44, 32, 1, \"#E8C14A\");\n f(24, 48, 38, 1, \"#6bd47a\");\n for (let i = 0; i < 6; i++) f(26 + i * 7, 40, 2, 2, \"#F4F0E4\");\n layerBreak(ctx); // the shell ends; the benches, vending machines and bins follow\n // Deck furniture on the far platform: wooden benches, a vending machine on\n // a longer cadence, and a bin. The train slides in FRONT of these.\n for (let bx = 110; bx < W - 24; bx += 100) {\n box(f, bx, deckY - 8, 22, 8, \"#6A5240\");\n f(bx + 1, deckY - 8, 20, 1, \"#7A6250\");\n f(bx + 2, deckY - 4, 2, 4, \"#4A3A2E\");\n f(bx + 18, deckY - 4, 2, 4, \"#4A3A2E\");\n }\n for (let vx = 160; vx + 12 < W - 24; vx += 210) {\n box(f, vx, deckY - 18, 12, 18, \"#B04438\");\n f(vx + 2, deckY - 16, 8, 9, d.lit ? \"#FFE9B0\" : \"#6E5A4E\"); // lit face\n for (let r = 0; r < 3; r++) f(vx + 3, deckY - 15 + r * 3, 6, 1, \"#B04438\");\n f(vx + 2, deckY - 5, 8, 3, \"#3A3330\"); // dispense tray\n }\n for (let tx = 86; tx < W - 24; tx += 200) {\n f(tx, deckY - 6, 6, 6, \"#4E5A50\");\n f(tx + 1, deckY - 6, 4, 1, \"#2E3A30\");\n }\n // The furniture ends here: the exit stairs, the deck and the trough are\n // structure drawn over it, so the depth layers put them on the shell.\n layerEnd(ctx);\n // WAY OUT at the right end: green sign over stair steps rising out of frame.\n const ex = W - 46;\n box(f, ex, 30, 26, 10, \"#3E7E4E\");\n for (let i = 0; i < 4; i++) f(ex + 3 + i * 5, 33, 3, 4, \"#E8F4E8\");\n f(ex + 22, 34, 2, 2, \"#E8F4E8\"); // arrow head\n for (let s = 0; s < 5; s++) f(ex + 2 + s * 5, deckY - 3 - s * 3, W - ex, 3, \"#B8AE96\");\n // The platform deck: light concrete edge, yellow tactile strip, slab face.\n f(0, deckY, W, 1, \"#D8D4C8\");\n f(0, deckY + 1, W, 1, \"#E8C14A\");\n f(0, deckY + 2, W, 2, \"#caa84a\");\n f(0, deckY + 4, W, 4, \"#8A8578\");\n f(0, deckY + 8, W, 2, \"#6E6A5E\");\n // The trough: retaining wall with cable conduits and maintenance doors,\n // grime under the deck lip, and the track bed the train rides.\n const troughY = deckY + 10;\n f(0, troughY, W, H - troughY, \"#3A4046\");\n f(0, troughY, W, 3, \"#2E3238\", 0.9); // shadow under the lip\n f(0, troughY + 8, W, 2, \"#2A2E34\"); // cable conduits\n f(0, troughY + 14, W, 1, \"#2A2E34\");\n for (let cxp = 24; cxp < W; cxp += 48) f(cxp, troughY + 7, 2, 9, \"#22262C\"); // clips\n for (let mx = 240; mx + 14 < W; mx += 480) {\n box(f, mx, troughY + 4, 14, H - troughY - 12, \"#303640\");\n f(mx + 10, troughY + 12, 2, 2, \"#5A5E66\"); // handle\n }\n // Track bed: ballast, sleepers, running rails, and the third rail.\n f(0, H - 8, W, 8, \"#26282E\");\n for (let sxp = 4; sxp < W; sxp += 10) f(sxp, H - 7, 3, 6, \"#1C1E24\");\n f(0, H - 6, W, 2, \"#6E7686\");\n f(0, H - 6, W, 1, \"#9AA2B0\");\n f(0, H - 2, W, 2, \"#6E7686\");\n for (let tr = 16; tr < W; tr += 64) f(tr, H - 10, 8, 2, \"#50565E\"); // third rail\n}\n\n/** Pixels in one repeat of the tunnel row: fifteen 64px steel panels. */\nexport const METRO_TUNNEL_TILE = 960;\n\n/** One repeat of the metro's tunnel row, drawn at (0,0) into a\n * METRO_TUNNEL_TILE x FLOOR rect. SimTower runs the tunnel along the metro's\n * bottom row on both sides of the station: riveted gray steel panels over a\n * dark rail bed. The engine lays copies of this tile (phase-aligned to the\n * world x) across the rest of the lot. */\nexport function drawMetroTunnel(ctx: CanvasRenderingContext2D): void {\n const W = METRO_TUNNEL_TILE;\n const f: Fill = (px, py, pw, ph, color, alpha = 1) => {\n ctx.globalAlpha = alpha;\n ctx.fillStyle = color;\n ctx.fillRect(px, py, pw, ph);\n ctx.globalAlpha = 1;\n };\n f(0, 0, W, FLOOR, \"#5E6166\"); // steel wall\n f(0, 0, W, 4, \"#2A2C30\"); // dark lip under the platform slab\n f(0, 4, W, 2, \"#8A8D92\");\n for (let px = 0; px < W; px += 64) {\n f(px, 6, 2, FLOOR - 16, \"#3A3C40\"); // panel seam\n f(px + 2, 6, 1, FLOOR - 16, \"#7C7F84\");\n for (const ry of [12, FLOOR - 18]) {\n f(px + 8, ry, 2, 2, \"#8A8D92\"); // rivets\n f(px + 54, ry, 2, 2, \"#8A8D92\");\n }\n }\n f(0, 22, W, 1, \"#4A4C50\"); // mid rib\n f(0, FLOOR - 10, W, 10, \"#26282E\"); // rail bed\n for (let sx = 4; sx < W; sx += 10) f(sx, FLOOR - 9, 3, 7, \"#1C1E24\"); // sleepers\n f(0, FLO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AC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;AAC/B,YAAA,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;QACjC;IACF;AACA,IAAA,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;AAC1B,IAAA,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC;IACnC,KAAK,IAAI,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE;AAAE,QAAA,CAAC,CAAC,EAAE,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;AACrE,IAAA,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;AAChC,IAAA,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC;AAClC;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared drawing idioms for the ported utilities-and-service looks.
|
|
3
|
+
* {@link refMap} maps a sprite's reference composition onto the screen rect it
|
|
4
|
+
* is handed.
|
|
5
|
+
*
|
|
6
|
+
* The Figma reference build scripts originally authored each tile against TILE
|
|
7
|
+
* 11 by FLOOR 44. The world then moved to TILE 10 by FLOOR 45 to match the 1994
|
|
8
|
+
* original's 4.5 tiles per floor, which knocked every caller off identity and
|
|
9
|
+
* resampled every rect. The six sprites for the parking space, parking ramp,
|
|
10
|
+
* security office, medical center, housekeeping room and recycling center were
|
|
11
|
+
* re-authored onto 10 by 45 (issue #812), so their `RW`/`RH` is now the true
|
|
12
|
+
* on-screen footprint and the map is the identity again. `drawMetro` was not
|
|
13
|
+
* part of that work and is not covered by the footprint guard in
|
|
14
|
+
* `serviceScale.test.ts`.
|
|
15
|
+
*
|
|
16
|
+
* Keep it that way. Resampling is fine for a surface and bad for a repeated
|
|
17
|
+
* object. {@link refMap} returns TWO fills, both of the {@link Fill} type. `F`
|
|
18
|
+
* derives a rect's size from its mapped EDGES, which keeps
|
|
19
|
+
* tiling seams closed but makes two identically authored objects render at
|
|
20
|
+
* different sizes depending on where their sub-pixel position lands. That is
|
|
21
|
+
* what {@link refMap}'s second fill, `Fu`, exists to prevent, and it is still
|
|
22
|
+
* the right fill for a repeated object because it holds one size for one
|
|
23
|
+
* authored size at any scale.
|
|
24
|
+
*/
|
|
25
|
+
/** Paint one reference-space rectangle. Coordinates are in the reference tile
|
|
26
|
+
* space; the scaler maps them onto the screen rect. */
|
|
27
|
+
export type Fill = (rx: number, ry: number, rw: number, rh: number, color: string, alpha?: number) => void;
|
|
28
|
+
/** Build a {@link Fill} (plus point mappers for figure anchors) that scales a
|
|
29
|
+
* reference composition authored at `RW` by `RH` onto the screen rect. Edges
|
|
30
|
+
* snap to integers so adjacent rectangles tile without seams, and a 1px
|
|
31
|
+
* reference detail never collapses below 1px. At the canonical bake size
|
|
32
|
+
* (`w === RW`, `h === RH`) the map is the identity, so the port is pixel-exact.
|
|
33
|
+
*
|
|
34
|
+
* Returns two fills, and which one a caller wants depends on what it is
|
|
35
|
+
* painting:
|
|
36
|
+
*
|
|
37
|
+
* - `F` sizes a rect from its mapped edges, so it always meets its neighbor.
|
|
38
|
+
* Right for a SURFACE: wall paper, floor bands, backing rects.
|
|
39
|
+
* - `Fu` sizes a rect from its authored size, rounded once, so every instance
|
|
40
|
+
* of one authored size renders at one size wherever it sits. Right for a
|
|
41
|
+
* DISCRETE object: a monitor in a wall of monitors, a bottle in a row. It can
|
|
42
|
+
* leave a 1px gap against a neighbor, which is why it is not the default. */
|
|
43
|
+
export declare function refMap(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, RW: number, RH: number): {
|
|
44
|
+
F: Fill;
|
|
45
|
+
Fu: Fill;
|
|
46
|
+
sx: (rx: number) => number;
|
|
47
|
+
sy: (ry: number) => number;
|
|
48
|
+
};
|
|
49
|
+
/** A beveled box: drop shadow, fill, lit top and left, shaded right and bottom. */
|
|
50
|
+
export declare function box(f: Fill, x: number, y: number, w: number, h: number, b: string): void;
|
|
51
|
+
/** A soft radial lamp bloom, drawn as nested translucent squares. */
|
|
52
|
+
export declare function glow(f: Fill, cx: number, cy: number, color: string): void;
|
|
53
|
+
/** A wall panel: base fill, lit top rail, shaded skirting, optional tile seams. */
|
|
54
|
+
export declare function wallp(f: Fill, x: number, y: number, w: number, h: number, b: string, seam: boolean): void;
|
|
55
|
+
/** A floor band: base fill, polished top edge, seam, shaded base. */
|
|
56
|
+
export declare function floorb(f: Fill, x: number, fy: number, w: number, h: number, b: string): void;
|
|
57
|
+
/** The white-coat overlay for medical staff: a coat panel over the lower torso
|
|
58
|
+
* of a standing figure, matching the finalized standing build's geometry
|
|
59
|
+
* (torso occupies footY-13..footY-4; the coat covers its lower 5px). `x` must
|
|
60
|
+
* be the same integer anchor passed to `personStanding`. */
|
|
61
|
+
export declare function whiteCoat(ctx: CanvasRenderingContext2D, x: number, footY: number): void;
|