@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,113 @@
|
|
|
1
|
+
import { shade } from '../common.js';
|
|
2
|
+
|
|
3
|
+
/** Build a {@link Fill} (plus point mappers for figure anchors) that scales a
|
|
4
|
+
* reference composition authored at `RW` by `RH` onto the screen rect. Edges
|
|
5
|
+
* snap to integers so adjacent rectangles tile without seams, and a 1px
|
|
6
|
+
* reference detail never collapses below 1px. At the canonical bake size
|
|
7
|
+
* (`w === RW`, `h === RH`) the map is the identity, so the port is pixel-exact.
|
|
8
|
+
*
|
|
9
|
+
* Returns two fills, and which one a caller wants depends on what it is
|
|
10
|
+
* painting:
|
|
11
|
+
*
|
|
12
|
+
* - `F` sizes a rect from its mapped edges, so it always meets its neighbor.
|
|
13
|
+
* Right for a SURFACE: wall paper, floor bands, backing rects.
|
|
14
|
+
* - `Fu` sizes a rect from its authored size, rounded once, so every instance
|
|
15
|
+
* of one authored size renders at one size wherever it sits. Right for a
|
|
16
|
+
* DISCRETE object: a monitor in a wall of monitors, a bottle in a row. It can
|
|
17
|
+
* leave a 1px gap against a neighbor, which is why it is not the default. */
|
|
18
|
+
function refMap(ctx, x, y, w, h, RW, RH) {
|
|
19
|
+
const sx = (rx) => x + Math.round((rx * w) / RW);
|
|
20
|
+
const sy = (ry) => y + Math.round((ry * h) / RH);
|
|
21
|
+
const paint = (x0, y0, pw, ph, color, alpha) => {
|
|
22
|
+
const prevAlpha = ctx.globalAlpha;
|
|
23
|
+
ctx.globalAlpha = alpha;
|
|
24
|
+
ctx.fillStyle = color;
|
|
25
|
+
ctx.fillRect(x0, y0, pw, ph);
|
|
26
|
+
if (alpha !== prevAlpha)
|
|
27
|
+
ctx.globalAlpha = prevAlpha;
|
|
28
|
+
};
|
|
29
|
+
const F = (rx, ry, rw, rh, color, alpha = 1) => {
|
|
30
|
+
// A zero (or negative) reference-size rect paints nothing, matching the
|
|
31
|
+
// pixel-exact reference F. Only a positive reference size that scales below
|
|
32
|
+
// 1px is floored to 1px below, so seams stay closed without promoting an
|
|
33
|
+
// intentional empty rect (an empty recycling gauge, a ramp foot where the
|
|
34
|
+
// under-ramp void closes) into a stray pixel.
|
|
35
|
+
if (rw <= 0 || rh <= 0)
|
|
36
|
+
return;
|
|
37
|
+
const x0 = sx(rx);
|
|
38
|
+
const y0 = sy(ry);
|
|
39
|
+
paint(x0, y0, Math.max(1, sx(rx + rw) - x0), Math.max(1, sy(ry + rh) - y0), color, alpha);
|
|
40
|
+
};
|
|
41
|
+
/** Uniform-size fill. Position maps exactly as `F` does; the SIZE comes from
|
|
42
|
+
* the authored size scaled and rounded on its own, so it cannot vary with the
|
|
43
|
+
* sub-pixel position of the rect. At identity this rounds to the authored
|
|
44
|
+
* size, so it is byte-identical to `F`. Off identity, a rect rounded up at
|
|
45
|
+
* the room's far edge is cut back to that edge, so it never paints past the
|
|
46
|
+
* room into its neighbor. */
|
|
47
|
+
const Fu = (rx, ry, rw, rh, color, alpha = 1) => {
|
|
48
|
+
if (rw <= 0 || rh <= 0)
|
|
49
|
+
return;
|
|
50
|
+
const x0 = sx(rx);
|
|
51
|
+
const y0 = sy(ry);
|
|
52
|
+
const pw = Math.min(Math.max(1, Math.round((rw * w) / RW)), sx(RW) - x0);
|
|
53
|
+
const ph = Math.min(Math.max(1, Math.round((rh * h) / RH)), sy(RH) - y0);
|
|
54
|
+
if (pw > 0 && ph > 0)
|
|
55
|
+
paint(x0, y0, pw, ph, color, alpha);
|
|
56
|
+
};
|
|
57
|
+
return { F, Fu, sx, sy };
|
|
58
|
+
}
|
|
59
|
+
/** A beveled box: drop shadow, fill, lit top and left, shaded right and bottom. */
|
|
60
|
+
function box(f, x, y, w, h, b) {
|
|
61
|
+
f(x, y + h, w, 1, "#000000", 0.18);
|
|
62
|
+
f(x, y, w, h, b);
|
|
63
|
+
f(x, y, w, 1, shade(b, 22));
|
|
64
|
+
f(x, y, 1, h, shade(b, 12));
|
|
65
|
+
f(x + w - 1, y, 1, h, shade(b, -16));
|
|
66
|
+
f(x, y + h - 1, w, 1, shade(b, -22));
|
|
67
|
+
}
|
|
68
|
+
const GLOW_RINGS = [
|
|
69
|
+
[5, 0.08],
|
|
70
|
+
[4, 0.12],
|
|
71
|
+
[3, 0.18],
|
|
72
|
+
[2, 0.3],
|
|
73
|
+
[1, 0.6],
|
|
74
|
+
];
|
|
75
|
+
/** A soft radial lamp bloom, drawn as nested translucent squares. */
|
|
76
|
+
function glow(f, cx, cy, color) {
|
|
77
|
+
for (const [s, a] of GLOW_RINGS)
|
|
78
|
+
f(cx - s, cy - s, s * 2, s * 2, color, a);
|
|
79
|
+
}
|
|
80
|
+
/** A wall panel: base fill, lit top rail, shaded skirting, optional tile seams. */
|
|
81
|
+
function wallp(f, x, y, w, h, b, seam) {
|
|
82
|
+
f(x, y, w, h, b);
|
|
83
|
+
f(x, y, w, 1, shade(b, 14));
|
|
84
|
+
f(x, y + h - 2, w, 2, shade(b, -12));
|
|
85
|
+
if (seam) {
|
|
86
|
+
for (let px = x + 8; px < x + w; px += 12)
|
|
87
|
+
f(px, y + 2, 1, h - 4, shade(b, -10));
|
|
88
|
+
for (let py = y + 8; py < y + h - 4; py += 8)
|
|
89
|
+
f(x, py, w, 1, shade(b, -8));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/** A floor band: base fill, polished top edge, seam, shaded base. */
|
|
93
|
+
function floorb(f, x, fy, w, h, b) {
|
|
94
|
+
f(x, fy, w, h, b);
|
|
95
|
+
f(x, fy, w, 1, shade(b, 18));
|
|
96
|
+
f(x, fy + 1, w, 1, shade(b, -8));
|
|
97
|
+
f(x, fy + h - 1, w, 1, shade(b, -24));
|
|
98
|
+
}
|
|
99
|
+
/** The white-coat overlay for medical staff: a coat panel over the lower torso
|
|
100
|
+
* of a standing figure, matching the finalized standing build's geometry
|
|
101
|
+
* (torso occupies footY-13..footY-4; the coat covers its lower 5px). `x` must
|
|
102
|
+
* be the same integer anchor passed to `personStanding`. */
|
|
103
|
+
function whiteCoat(ctx, x, footY) {
|
|
104
|
+
const x0 = Math.round(x);
|
|
105
|
+
const f = Math.round(footY);
|
|
106
|
+
ctx.fillStyle = "#F4F0EC";
|
|
107
|
+
ctx.fillRect(x0, f - 9, 6, 5);
|
|
108
|
+
ctx.fillStyle = "#D8D4CC";
|
|
109
|
+
ctx.fillRect(x0, f - 9, 1, 5);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export { box, floorb, glow, refMap, wallp, whiteCoat };
|
|
113
|
+
//# sourceMappingURL=serviceKit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceKit.js","sources":["../../../../src/render/sprites/facilities/serviceKit.ts"],"sourcesContent":["import { shade } from \"../common\";\n\n/**\n * Shared drawing idioms for the ported utilities-and-service looks.\n * {@link refMap} maps a sprite's reference composition onto the screen rect it\n * is handed.\n *\n * The Figma reference build scripts originally authored each tile against TILE\n * 11 by FLOOR 44. The world then moved to TILE 10 by FLOOR 45 to match the 1994\n * original's 4.5 tiles per floor, which knocked every caller off identity and\n * resampled every rect. The six sprites for the parking space, parking ramp,\n * security office, medical center, housekeeping room and recycling center were\n * re-authored onto 10 by 45 (issue #812), so their `RW`/`RH` is now the true\n * on-screen footprint and the map is the identity again. `drawMetro` was not\n * part of that work and is not covered by the footprint guard in\n * `serviceScale.test.ts`.\n *\n * Keep it that way. Resampling is fine for a surface and bad for a repeated\n * object. {@link refMap} returns TWO fills, both of the {@link Fill} type. `F`\n * derives a rect's size from its mapped EDGES, which keeps\n * tiling seams closed but makes two identically authored objects render at\n * different sizes depending on where their sub-pixel position lands. That is\n * what {@link refMap}'s second fill, `Fu`, exists to prevent, and it is still\n * the right fill for a repeated object because it holds one size for one\n * authored size at any scale.\n */\n\n/** Paint one reference-space rectangle. Coordinates are in the reference tile\n * space; the scaler maps them onto the screen rect. */\nexport type Fill = (rx: number, ry: number, rw: number, rh: number, color: string, alpha?: number) => void;\n\n/** Build a {@link Fill} (plus point mappers for figure anchors) that scales a\n * reference composition authored at `RW` by `RH` onto the screen rect. Edges\n * snap to integers so adjacent rectangles tile without seams, and a 1px\n * reference detail never collapses below 1px. At the canonical bake size\n * (`w === RW`, `h === RH`) the map is the identity, so the port is pixel-exact.\n *\n * Returns two fills, and which one a caller wants depends on what it is\n * painting:\n *\n * - `F` sizes a rect from its mapped edges, so it always meets its neighbor.\n * Right for a SURFACE: wall paper, floor bands, backing rects.\n * - `Fu` sizes a rect from its authored size, rounded once, so every instance\n * of one authored size renders at one size wherever it sits. Right for a\n * DISCRETE object: a monitor in a wall of monitors, a bottle in a row. It can\n * leave a 1px gap against a neighbor, which is why it is not the default. */\nexport function refMap(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, RW: number, RH: number) {\n const sx = (rx: number): number => x + Math.round((rx * w) / RW);\n const sy = (ry: number): number => y + Math.round((ry * h) / RH);\n const paint = (x0: number, y0: number, pw: number, ph: number, color: string, alpha: number): void => {\n const prevAlpha = ctx.globalAlpha;\n ctx.globalAlpha = alpha;\n ctx.fillStyle = color;\n ctx.fillRect(x0, y0, pw, ph);\n if (alpha !== prevAlpha) ctx.globalAlpha = prevAlpha;\n };\n const F: Fill = (rx, ry, rw, rh, color, alpha = 1) => {\n // A zero (or negative) reference-size rect paints nothing, matching the\n // pixel-exact reference F. Only a positive reference size that scales below\n // 1px is floored to 1px below, so seams stay closed without promoting an\n // intentional empty rect (an empty recycling gauge, a ramp foot where the\n // under-ramp void closes) into a stray pixel.\n if (rw <= 0 || rh <= 0) return;\n const x0 = sx(rx);\n const y0 = sy(ry);\n paint(x0, y0, Math.max(1, sx(rx + rw) - x0), Math.max(1, sy(ry + rh) - y0), color, alpha);\n };\n /** Uniform-size fill. Position maps exactly as `F` does; the SIZE comes from\n * the authored size scaled and rounded on its own, so it cannot vary with the\n * sub-pixel position of the rect. At identity this rounds to the authored\n * size, so it is byte-identical to `F`. Off identity, a rect rounded up at\n * the room's far edge is cut back to that edge, so it never paints past the\n * room into its neighbor. */\n const Fu: Fill = (rx, ry, rw, rh, color, alpha = 1) => {\n if (rw <= 0 || rh <= 0) return;\n const x0 = sx(rx);\n const y0 = sy(ry);\n const pw = Math.min(Math.max(1, Math.round((rw * w) / RW)), sx(RW) - x0);\n const ph = Math.min(Math.max(1, Math.round((rh * h) / RH)), sy(RH) - y0);\n if (pw > 0 && ph > 0) paint(x0, y0, pw, ph, color, alpha);\n };\n return { F, Fu, sx, sy };\n}\n\n/** A beveled box: drop shadow, fill, lit top and left, shaded right and bottom. */\nexport function box(f: Fill, x: number, y: number, w: number, h: number, b: string): void {\n f(x, y + h, w, 1, \"#000000\", 0.18);\n f(x, y, w, h, b);\n f(x, y, w, 1, shade(b, 22));\n f(x, y, 1, h, shade(b, 12));\n f(x + w - 1, y, 1, h, shade(b, -16));\n f(x, y + h - 1, w, 1, shade(b, -22));\n}\n\nconst GLOW_RINGS: ReadonlyArray<readonly [number, number]> = [\n [5, 0.08],\n [4, 0.12],\n [3, 0.18],\n [2, 0.3],\n [1, 0.6],\n];\n\n/** A soft radial lamp bloom, drawn as nested translucent squares. */\nexport function glow(f: Fill, cx: number, cy: number, color: string): void {\n for (const [s, a] of GLOW_RINGS) f(cx - s, cy - s, s * 2, s * 2, color, a);\n}\n\n/** A wall panel: base fill, lit top rail, shaded skirting, optional tile seams. */\nexport function wallp(f: Fill, x: number, y: number, w: number, h: number, b: string, seam: boolean): void {\n f(x, y, w, h, b);\n f(x, y, w, 1, shade(b, 14));\n f(x, y + h - 2, w, 2, shade(b, -12));\n if (seam) {\n for (let px = x + 8; px < x + w; px += 12) f(px, y + 2, 1, h - 4, shade(b, -10));\n for (let py = y + 8; py < y + h - 4; py += 8) f(x, py, w, 1, shade(b, -8));\n }\n}\n\n/** A floor band: base fill, polished top edge, seam, shaded base. */\nexport function floorb(f: Fill, x: number, fy: number, w: number, h: number, b: string): void {\n f(x, fy, w, h, b);\n f(x, fy, w, 1, shade(b, 18));\n f(x, fy + 1, w, 1, shade(b, -8));\n f(x, fy + h - 1, w, 1, shade(b, -24));\n}\n\n/** The white-coat overlay for medical staff: a coat panel over the lower torso\n * of a standing figure, matching the finalized standing build's geometry\n * (torso occupies footY-13..footY-4; the coat covers its lower 5px). `x` must\n * be the same integer anchor passed to `personStanding`. */\nexport function whiteCoat(ctx: CanvasRenderingContext2D, x: number, footY: number): void {\n const x0 = Math.round(x);\n const f = Math.round(footY);\n ctx.fillStyle = \"#F4F0EC\";\n ctx.fillRect(x0, f - 9, 6, 5);\n ctx.fillStyle = \"#D8D4CC\";\n ctx.fillRect(x0, f - 9, 1, 5);\n}\n"],"names":[],"mappings":";;AA+BA;;;;;;;;;;;;;;AAcgF;AAC1E,SAAU,MAAM,CAAC,GAA6B,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAU,EAAE,EAAU,EAAA;IACtH,MAAM,EAAE,GAAG,CAAC,EAAU,KAAa,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC;IAChE,MAAM,EAAE,GAAG,CAAC,EAAU,KAAa,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC;AAChE,IAAA,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,KAAa,EAAE,KAAa,KAAU;AACnG,QAAA,MAAM,SAAS,GAAG,GAAG,CAAC,WAAW;AACjC,QAAA,GAAG,CAAC,WAAW,GAAG,KAAK;AACvB,QAAA,GAAG,CAAC,SAAS,GAAG,KAAK;QACrB,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;QAC5B,IAAI,KAAK,KAAK,SAAS;AAAE,YAAA,GAAG,CAAC,WAAW,GAAG,SAAS;AACtD,IAAA,CAAC;AACD,IAAA,MAAM,CAAC,GAAS,CAAC,EAAE,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ycling
|
|
2
|
+
* center's bottom story (a 44px floor) so it reads as a hulking municipal
|
|
3
|
+
* truck, far taller than the 24px crowd figures, rather than a toy. The body,
|
|
4
|
+
* cab, and wheel rows scale their vertical extents off this height (a few
|
|
5
|
+
* details stay fixed, e.g. the 7px wheels and the 16px cab width), so the
|
|
6
|
+
* truck grows largely as one piece if the height is retuned. */
|
|
7
|
+
export declare const GARBAGE_TRUCK_H = 42;
|
|
8
|
+
/** The garbage truck that empties the recycling centers each morning: its own
|
|
9
|
+
* Excalibur Actor (like the metro train); the engine slides it along the
|
|
10
|
+
* center's bottom story during the collection hour. Drawn at (0,0) into
|
|
11
|
+
* w x GARBAGE_TRUCK_H. */
|
|
12
|
+
export declare function drawGarbageTruck(ctx: CanvasRenderingContext2D, w: number): void;
|
|
13
|
+
/** A small sedan for the garage floors: its own Actor; the engine drives it
|
|
14
|
+
* along the parking run at commute hours. Drawn at (0,0) into 16 x 8. The body
|
|
15
|
+
* is anchored to a calm blue, jittered per seed (not a rainbow accent). */
|
|
16
|
+
export declare function drawStreetCar(ctx: CanvasRenderingContext2D, seed: number): void;
|
|
17
|
+
/** Height of the metro train, in px: the party-ratified "one and a half
|
|
18
|
+
* floor" consist for the high-platform station. The train's base rides the
|
|
19
|
+
* track bed at the station's bottom edge; at this height its window band
|
|
20
|
+
* clears the raised platform deck (the station draw puts the deck on the
|
|
21
|
+
* module's middle story) so waiting commuters stand face-to-face with the
|
|
22
|
+
* cars. The body, window band, stripe, and undercarriage all size off this
|
|
23
|
+
* constant; the headlight and coupling gaps stay fixed. */
|
|
24
|
+
export declare const METRO_TRAIN_H = 60;
|
|
25
|
+
/** The subway consist, drawn at (0,0) into a w x METRO_TRAIN_H rect: coupled
|
|
26
|
+
* silver cars with lit window bands (and riders behind roughly two-thirds of
|
|
27
|
+
* them), sliding door pairs, roof pods, a red livery stripe, and bogies per
|
|
28
|
+
* car. It is its own Excalibur Actor; the engine slides it in and out along
|
|
29
|
+
* the platform. It enters from the left travelling RIGHT, so the head car,
|
|
30
|
+
* cab, and headlight lead at the right end. */
|
|
31
|
+
export declare function drawMetroTrain(ctx: CanvasRenderingContext2D, w: number, headlightOn: boolean): void;
|
|
32
|
+
/** Width of the dark portal drawn over each end of the metro station. */
|
|
33
|
+
export declare const METRO_PORTAL_W = 22;
|
|
34
|
+
/** The tunnel mouth at a station end, drawn at (0,0) into a w x h rect: a steel
|
|
35
|
+
* jamb on the station's outer edge and a stretch of darkness that fades toward
|
|
36
|
+
* the platform. Over the train it makes the consist emerge from (or sink into)
|
|
37
|
+
* the tunnel instead of being cut off at the edge. */
|
|
38
|
+
export declare function drawMetroPortal(ctx: CanvasRenderingContext2D, w: number, h: number, side: "left" | "right"): void;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { rand } from '../common.js';
|
|
2
|
+
import { layerBreak, layerEnd } from '../../pixelSprites/layers.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The moving actors: the garbage truck, the parking-ramp sedans, and the
|
|
6
|
+
* metro train. Each is drawn at local (0,0) into its own small canvas; the
|
|
7
|
+
* engine slides the resulting Excalibur Actor along a track (see
|
|
8
|
+
* `TowerEngine`). Enriched to the 1994 narrative board (art bible page 08):
|
|
9
|
+
* integer pixel rects, warm livery, two-tone wheels.
|
|
10
|
+
*/
|
|
11
|
+
/** Jitter a hex anchor by at most 10 per RGB channel from a stable seed, the
|
|
12
|
+
* art-bible variant rule (color is support, geometry is the real variety). The
|
|
13
|
+
* result is an `rgb()` string near the anchor, so it never collides with a
|
|
14
|
+
* reserved state literal. */
|
|
15
|
+
function jitter(hex, seed) {
|
|
16
|
+
const n = parseInt(hex.slice(1), 16);
|
|
17
|
+
const off = (k) => Math.round((rand(seed * 4 + k) * 2 - 1) * 10);
|
|
18
|
+
const clamp = (v) => Math.max(0, Math.min(255, v));
|
|
19
|
+
const r = clamp(((n >> 16) & 255) + off(1));
|
|
20
|
+
const g = clamp(((n >> 8) & 255) + off(2));
|
|
21
|
+
const b = clamp((n & 255) + off(3));
|
|
22
|
+
return `rgb(${r},${g},${b})`;
|
|
23
|
+
}
|
|
24
|
+
/** Height of the garbage truck, in px. Sized to fill most of the recycling
|
|
25
|
+
* center's bottom story (a 44px floor) so it reads as a hulking municipal
|
|
26
|
+
* truck, far taller than the 24px crowd figures, rather than a toy. The body,
|
|
27
|
+
* cab, and wheel rows scale their vertical extents off this height (a few
|
|
28
|
+
* details stay fixed, e.g. the 7px wheels and the 16px cab width), so the
|
|
29
|
+
* truck grows largely as one piece if the height is retuned. */
|
|
30
|
+
const GARBAGE_TRUCK_H = 42;
|
|
31
|
+
/** The garbage truck that empties the recycling centers each morning: its own
|
|
32
|
+
* Excalibur Actor (like the metro train); the engine slides it along the
|
|
33
|
+
* center's bottom story during the collection hour. Drawn at (0,0) into
|
|
34
|
+
* w x GARBAGE_TRUCK_H. */
|
|
35
|
+
function drawGarbageTruck(ctx, w) {
|
|
36
|
+
const H = GARBAGE_TRUCK_H;
|
|
37
|
+
const wheel = 7; // tire size in px
|
|
38
|
+
const axleY = H - wheel; // wheels sit on the bottom `wheel` rows
|
|
39
|
+
const bodyTop = 4;
|
|
40
|
+
const bodyH = axleY - bodyTop; // hopper spans from the lid line to the axle
|
|
41
|
+
const bodyW = w - 16; // the cab takes the front 16px (right side)
|
|
42
|
+
// Hopper body (municipal green) with a lighter top light and a body seam.
|
|
43
|
+
ctx.fillStyle = "#4A7A44";
|
|
44
|
+
ctx.fillRect(0, bodyTop, bodyW, bodyH);
|
|
45
|
+
ctx.fillStyle = "#6A9A5E"; // top light
|
|
46
|
+
ctx.fillRect(0, bodyTop, bodyW, 3);
|
|
47
|
+
ctx.fillStyle = "#3A6236"; // darker ribs
|
|
48
|
+
for (let rx = 4; rx < bodyW - 2; rx += 8)
|
|
49
|
+
ctx.fillRect(rx, bodyTop + 3, 1, bodyH - 5);
|
|
50
|
+
ctx.fillStyle = "#2E5A2A"; // horizontal seam
|
|
51
|
+
ctx.fillRect(0, bodyTop + Math.round(bodyH * 0.5), bodyW, 1);
|
|
52
|
+
// Recycle-arrow badge: a light chasing-arrows triangle on the hopper side.
|
|
53
|
+
const bx = Math.max(2, (bodyW >> 1) - 4);
|
|
54
|
+
const by = bodyTop + Math.round(bodyH * 0.32);
|
|
55
|
+
ctx.fillStyle = "#DCE8C0";
|
|
56
|
+
ctx.fillRect(bx, by + 3, 9, 1); // base
|
|
57
|
+
ctx.fillRect(bx + 1, by + 2, 1, 1); // left slope
|
|
58
|
+
ctx.fillRect(bx + 7, by + 2, 1, 1); // right slope
|
|
59
|
+
ctx.fillRect(bx + 4, by, 1, 3); // apex
|
|
60
|
+
// Cab (front, right-facing) with a windowed glint and a top highlight.
|
|
61
|
+
const cabW = 16;
|
|
62
|
+
const cabH = Math.round(bodyH * 0.74);
|
|
63
|
+
const cabY = axleY - cabH;
|
|
64
|
+
ctx.fillStyle = "#5A8A54";
|
|
65
|
+
ctx.fillRect(bodyW, cabY, cabW, cabH);
|
|
66
|
+
ctx.fillStyle = "#CFE4FF";
|
|
67
|
+
ctx.fillRect(bodyW + 6, cabY + 3, 8, Math.max(3, Math.round(cabH * 0.42)));
|
|
68
|
+
ctx.fillStyle = "#E4F0FF";
|
|
69
|
+
ctx.fillRect(bodyW + 6, cabY + 3, 8, 1);
|
|
70
|
+
// Rear loader mouth, with a couple of bags waiting at it.
|
|
71
|
+
ctx.fillStyle = "#3A5A36";
|
|
72
|
+
ctx.fillRect(0, bodyTop + 4, 4, bodyH - 4);
|
|
73
|
+
ctx.fillStyle = "#7A8A64";
|
|
74
|
+
ctx.fillRect(1, axleY - 4, 3, 4);
|
|
75
|
+
ctx.fillRect(4, axleY - 3, 3, 3);
|
|
76
|
+
// Two-tone wheels (tire + hub), integer rects (no arcs).
|
|
77
|
+
for (const wx of [8, bodyW - 10, bodyW + 8]) {
|
|
78
|
+
ctx.fillStyle = "#16181C";
|
|
79
|
+
ctx.fillRect(wx - 1, axleY, wheel, wheel);
|
|
80
|
+
ctx.fillStyle = "#5A5E66";
|
|
81
|
+
ctx.fillRect(wx + 1, axleY + 2, 3, 3);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
/** A small sedan for the garage floors: its own Actor; the engine drives it
|
|
85
|
+
* along the parking run at commute hours. Drawn at (0,0) into 16 x 8. The body
|
|
86
|
+
* is anchored to a calm blue, jittered per seed (not a rainbow accent). */
|
|
87
|
+
function drawStreetCar(ctx, seed) {
|
|
88
|
+
const body = jitter("#4E7A9E", seed);
|
|
89
|
+
const roof = jitter("#3E6486", seed + 17);
|
|
90
|
+
ctx.fillStyle = body; // lower body / chassis
|
|
91
|
+
ctx.fillRect(1, 3, 14, 3);
|
|
92
|
+
ctx.fillStyle = roof; // cabin roof
|
|
93
|
+
ctx.fillRect(4, 0, 8, 3);
|
|
94
|
+
ctx.fillStyle = "#CFE4FF"; // two windows
|
|
95
|
+
ctx.fillRect(5, 1, 2, 2);
|
|
96
|
+
ctx.fillRect(8, 1, 2, 2);
|
|
97
|
+
ctx.fillStyle = "#16181C"; // dark tires
|
|
98
|
+
ctx.fillRect(3, 6, 3, 2);
|
|
99
|
+
ctx.fillRect(11, 6, 3, 2);
|
|
100
|
+
ctx.fillStyle = "#FFE27A"; // front headlight
|
|
101
|
+
ctx.fillRect(14, 3, 1, 2);
|
|
102
|
+
}
|
|
103
|
+
/** Height of the metro train, in px: the party-ratified "one and a half
|
|
104
|
+
* floor" consist for the high-platform station. The train's base rides the
|
|
105
|
+
* track bed at the station's bottom edge; at this height its window band
|
|
106
|
+
* clears the raised platform deck (the station draw puts the deck on the
|
|
107
|
+
* module's middle story) so waiting commuters stand face-to-face with the
|
|
108
|
+
* cars. The body, window band, stripe, and undercarriage all size off this
|
|
109
|
+
* constant; the headlight and coupling gaps stay fixed. */
|
|
110
|
+
const METRO_TRAIN_H = 60;
|
|
111
|
+
/** Length of one carriage, in px. The train actor spans the whole lot, so the
|
|
112
|
+
* body is drawn as a consist of coupled cars rather than one endless tube. */
|
|
113
|
+
const METRO_CAR_W = 150;
|
|
114
|
+
/** One warm-lit rider behind the saloon glass (party-ratified): a skin-tone
|
|
115
|
+
* head over a coat-colored torso, both jittered off the seed so no rider
|
|
116
|
+
* repeats exactly. Standees ride taller in the window; seated riders sit
|
|
117
|
+
* low. Purely seed-driven paint: the bake stays static. */
|
|
118
|
+
function rider(ctx, x, bandY, standee, s) {
|
|
119
|
+
const headY = bandY + (standee ? 2 : 7);
|
|
120
|
+
ctx.fillStyle = jitter(rand(s + 3) < 0.5 ? "#5A6E86" : "#8A5A46", s + 7); // coat
|
|
121
|
+
ctx.fillRect(x, headY + 3, 5, standee ? 13 : 8);
|
|
122
|
+
ctx.fillStyle = jitter("#D9B08C", s + 5); // head
|
|
123
|
+
ctx.fillRect(x + 1, headY, 3, 3);
|
|
124
|
+
}
|
|
125
|
+
/** The subway consist, drawn at (0,0) into a w x METRO_TRAIN_H rect: coupled
|
|
126
|
+
* silver cars with lit window bands (and riders behind roughly two-thirds of
|
|
127
|
+
* them), sliding door pairs, roof pods, a red livery stripe, and bogies per
|
|
128
|
+
* car. It is its own Excalibur Actor; the engine slides it in and out along
|
|
129
|
+
* the platform. It enters from the left travelling RIGHT, so the head car,
|
|
130
|
+
* cab, and headlight lead at the right end. */
|
|
131
|
+
function drawMetroTrain(ctx, w, headlightOn) {
|
|
132
|
+
const H = METRO_TRAIN_H;
|
|
133
|
+
const skirtY = H - 8; // undercarriage top
|
|
134
|
+
const stripeY = H - 22; // red livery band
|
|
135
|
+
const bandY = Math.round(H * 0.22); // window band top
|
|
136
|
+
const bandH = Math.round(H * 0.3);
|
|
137
|
+
// The cars (a remainder too short to read as a car paints nothing: no stub
|
|
138
|
+
// bodies, no stray roof pods, the consist just ends at the previous car)
|
|
139
|
+
// and their window slots, interrupted by a sliding door pair every third.
|
|
140
|
+
const cars = [];
|
|
141
|
+
for (let cx = 0; cx < w; cx += METRO_CAR_W) {
|
|
142
|
+
const cw = Math.min(METRO_CAR_W, w - cx) - 4; // 4px coupling gap per car
|
|
143
|
+
if (cw < 24)
|
|
144
|
+
break;
|
|
145
|
+
const carIdx = Math.floor(cx / METRO_CAR_W);
|
|
146
|
+
const slots = [];
|
|
147
|
+
for (let wx = cx + 10; wx + 12 < cx + cw; wx += 24) {
|
|
148
|
+
const slotIdx = Math.floor((wx - cx - 10) / 24);
|
|
149
|
+
slots.push({ wx, door: slotIdx % 3 === 2, s: carIdx * 31 + slotIdx });
|
|
150
|
+
}
|
|
151
|
+
cars.push({ cx, cw, slots });
|
|
152
|
+
}
|
|
153
|
+
const windows = cars.flatMap((c) => c.slots.filter((sl) => !sl.door));
|
|
154
|
+
// The riders sit inside the cars: first the dark interior seen through each
|
|
155
|
+
// saloon window, then the riders, then the body around them, which never
|
|
156
|
+
// paints inside a window (the depth split's back, furniture and front).
|
|
157
|
+
// The clip keeps the body's pixels exactly as before at whole-pixel scales
|
|
158
|
+
// (the game draws the train at 1x); a fractional scale would soften the
|
|
159
|
+
// window edges.
|
|
160
|
+
ctx.fillStyle = "#2A3440"; // saloon glass
|
|
161
|
+
for (const { wx } of windows)
|
|
162
|
+
ctx.fillRect(wx, bandY, 12, bandH);
|
|
163
|
+
layerBreak(ctx);
|
|
164
|
+
// Roughly two-thirds of windows carry a rider (sometimes two), seeded from
|
|
165
|
+
// car + slot alone so the cached bake never needs new inputs.
|
|
166
|
+
for (const { wx, s } of windows) {
|
|
167
|
+
if (rand(s) < 0.7) {
|
|
168
|
+
rider(ctx, wx + 1, bandY, rand(s + 1) < 0.4, s);
|
|
169
|
+
if (rand(s + 2) < 0.35)
|
|
170
|
+
rider(ctx, wx + 7, bandY, false, s + 11);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
layerEnd(ctx);
|
|
174
|
+
ctx.save();
|
|
175
|
+
ctx.beginPath();
|
|
176
|
+
// An outer rect well past the train, so only the window edges cut.
|
|
177
|
+
ctx.rect(-H, -H, w + 2 * H, 3 * H);
|
|
178
|
+
for (const { wx } of windows)
|
|
179
|
+
ctx.rect(wx, bandY, 12, bandH);
|
|
180
|
+
ctx.clip("evenodd");
|
|
181
|
+
for (const { cx, cw, slots } of cars) {
|
|
182
|
+
// Car body: silver shell with a lit roof edge and a shaded lower flank.
|
|
183
|
+
ctx.fillStyle = "#C6CCD4";
|
|
184
|
+
ctx.fillRect(cx, 2, cw, skirtY - 2);
|
|
185
|
+
ctx.fillStyle = "#E0E6EC"; // roof highlight
|
|
186
|
+
ctx.fillRect(cx + 1, 2, cw - 2, 2);
|
|
187
|
+
ctx.fillStyle = "#AEB6C0"; // lower body shade
|
|
188
|
+
ctx.fillRect(cx, stripeY + 5, cw, skirtY - stripeY - 5);
|
|
189
|
+
// Red livery stripe with a light catch, painted BEFORE the door leaves so
|
|
190
|
+
// the doors visibly interrupt the band (the depth cue real stock has).
|
|
191
|
+
ctx.fillStyle = "#D0392B";
|
|
192
|
+
ctx.fillRect(cx, stripeY, cw, 4);
|
|
193
|
+
ctx.fillStyle = "#E85D4A";
|
|
194
|
+
ctx.fillRect(cx, stripeY, cw, 1);
|
|
195
|
+
// Roof equipment: an AC pod per car (clamped inside the car) and a conduit.
|
|
196
|
+
ctx.fillStyle = "#9AA2AC";
|
|
197
|
+
ctx.fillRect(cx + Math.max(10, cw >> 1) - 10, 0, Math.min(20, cw - 4), 2);
|
|
198
|
+
ctx.fillStyle = "#7E8894";
|
|
199
|
+
ctx.fillRect(cx + 4, 1, cw - 8, 1);
|
|
200
|
+
// Door pairs: two leaves over the stripe, center seam, tall door windows.
|
|
201
|
+
for (const { wx, door } of slots) {
|
|
202
|
+
if (!door)
|
|
203
|
+
continue;
|
|
204
|
+
ctx.fillStyle = "#B4BCC6";
|
|
205
|
+
ctx.fillRect(wx, bandY - 2, 12, skirtY - bandY);
|
|
206
|
+
ctx.fillStyle = "#16181C"; // center seam
|
|
207
|
+
ctx.fillRect(wx + 5, bandY - 2, 1, skirtY - bandY);
|
|
208
|
+
ctx.fillStyle = "#2A3440"; // door windows
|
|
209
|
+
ctx.fillRect(wx + 1, bandY, 3, bandH - 2);
|
|
210
|
+
ctx.fillRect(wx + 7, bandY, 3, bandH - 2);
|
|
211
|
+
}
|
|
212
|
+
// Undercarriage skirt and two bogies (wheel trucks) per car.
|
|
213
|
+
ctx.fillStyle = "#1A2028";
|
|
214
|
+
ctx.fillRect(cx + 2, skirtY, cw - 4, H - skirtY);
|
|
215
|
+
ctx.fillStyle = "#0E1116";
|
|
216
|
+
for (const bx of [cx + 14, cx + cw - 34]) {
|
|
217
|
+
if (bx > cx && bx + 20 < cx + cw) {
|
|
218
|
+
ctx.fillRect(bx, H - 6, 20, 6);
|
|
219
|
+
ctx.fillStyle = "#2E3640"; // wheel glint
|
|
220
|
+
ctx.fillRect(bx + 3, H - 4, 4, 2);
|
|
221
|
+
ctx.fillRect(bx + 13, H - 4, 4, 2);
|
|
222
|
+
ctx.fillStyle = "#0E1116";
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
// Coupling diaphragm, only when a real (non-stub) car follows.
|
|
226
|
+
if (w - (cx + METRO_CAR_W) >= 28) {
|
|
227
|
+
ctx.fillStyle = "#3A4048";
|
|
228
|
+
ctx.fillRect(cx + cw, Math.round(H * 0.3), 4, Math.round(H * 0.4));
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
// Cab nose at the leading (RIGHT) end: the consist enters from the left
|
|
232
|
+
// travelling right, so the head car leads on the right. Windshield,
|
|
233
|
+
// destination board, and the headlight keyed on state (#9FC0E0 stays the
|
|
234
|
+
// one dark-headlight literal the narrow-carriage test isolates; the window
|
|
235
|
+
// loop needs 12px of glass inside a car, so a w=8 bake paints no glints).
|
|
236
|
+
ctx.fillStyle = "#B4BCC6";
|
|
237
|
+
ctx.fillRect(w - 5, 4, 5, skirtY - 6);
|
|
238
|
+
ctx.fillStyle = "#20262E"; // windshield
|
|
239
|
+
ctx.fillRect(w - 5, bandY - 2, 4, Math.round(bandH * 0.8));
|
|
240
|
+
ctx.fillStyle = "#E8C14A"; // destination board
|
|
241
|
+
ctx.fillRect(w - 5, 6, 4, 3);
|
|
242
|
+
ctx.fillStyle = headlightOn ? "#FFE27A" : "#9FC0E0"; // headlight, keyed on state
|
|
243
|
+
ctx.fillRect(w - 3, stripeY - 6, 3, 4);
|
|
244
|
+
ctx.restore();
|
|
245
|
+
ctx.fillStyle = "#9FC0E0"; // glass glints, on the window in front of the riders
|
|
246
|
+
for (const { wx } of windows)
|
|
247
|
+
ctx.fillRect(wx, bandY, 4, 2);
|
|
248
|
+
}
|
|
249
|
+
/** Width of the dark portal drawn over each end of the metro station. */
|
|
250
|
+
const METRO_PORTAL_W = 22;
|
|
251
|
+
/** The tunnel mouth at a station end, drawn at (0,0) into a w x h rect: a steel
|
|
252
|
+
* jamb on the station's outer edge and a stretch of darkness that fades toward
|
|
253
|
+
* the platform. Over the train it makes the consist emerge from (or sink into)
|
|
254
|
+
* the tunnel instead of being cut off at the edge. */
|
|
255
|
+
function drawMetroPortal(ctx, w, h, side) {
|
|
256
|
+
const jamb = 5;
|
|
257
|
+
const edge = side === "left" ? 0 : w - jamb;
|
|
258
|
+
const dark = side === "left" ? jamb : 0;
|
|
259
|
+
const span = w - jamb;
|
|
260
|
+
for (let i = 0; i < span; i++) {
|
|
261
|
+
const depth = side === "left" ? i : span - 1 - i;
|
|
262
|
+
ctx.globalAlpha = 0.92 * (1 - depth / span);
|
|
263
|
+
ctx.fillStyle = "#0C0D10";
|
|
264
|
+
ctx.fillRect(dark + i, 0, 1, h);
|
|
265
|
+
}
|
|
266
|
+
ctx.globalAlpha = 1;
|
|
267
|
+
ctx.fillStyle = "#2A2C30";
|
|
268
|
+
ctx.fillRect(edge, 0, jamb, h);
|
|
269
|
+
ctx.fillStyle = "#8A8D92";
|
|
270
|
+
ctx.fillRect(side === "left" ? edge + jamb - 1 : edge, 0, 1, h);
|
|
271
|
+
ctx.fillStyle = "#2A2C30";
|
|
272
|
+
ctx.fillRect(0, 0, w, 5); // lintel
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export { GARBAGE_TRUCK_H, METRO_PORTAL_W, METRO_TRAIN_H, drawGarbageTruck, drawMetroPortal, drawMetroTrain, drawStreetCar };
|
|
276
|
+
//# sourceMappingURL=vehicles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vehicles.js","sources":["../../../../src/render/sprites/facilities/vehicles.ts"],"sourcesContent":["import { rand } from \"../common\";\nimport { layerBreak, layerEnd } from \"../../pixelSprites/layers\";\n\n/**\n * The moving actors: the garbage truck, the parking-ramp sedans, and the\n * metro train. Each is drawn at local (0,0) into its own small canvas; the\n * engine slides the resulting Excalibur Actor along a track (see\n * `TowerEngine`). Enriched to the 1994 narrative board (art bible page 08):\n * integer pixel rects, warm livery, two-tone wheels.\n */\n\n/** Jitter a hex anchor by at most 10 per RGB channel from a stable seed, the\n * art-bible variant rule (color is support, geometry is the real variety). The\n * result is an `rgb()` string near the anchor, so it never collides with a\n * reserved state literal. */\nfunction jitter(hex: string, seed: number): string {\n const n = parseInt(hex.slice(1), 16);\n const off = (k: number) => Math.round((rand(seed * 4 + k) * 2 - 1) * 10);\n const clamp = (v: number) => Math.max(0, Math.min(255, v));\n const r = clamp(((n >> 16) & 255) + off(1));\n const g = clamp(((n >> 8) & 255) + off(2));\n const b = clamp((n & 255) + off(3));\n return `rgb(${r},${g},${b})`;\n}\n\n/** Height of the garbage truck, in px. Sized to fill most of the recycling\n * center's bottom story (a 44px floor) so it reads as a hulking municipal\n * truck, far taller than the 24px crowd figures, rather than a toy. The body,\n * cab, and wheel rows scale their vertical extents off this height (a few\n * details stay fixed, e.g. the 7px wheels and the 16px cab width), so the\n * truck grows largely as one piece if the height is retuned. */\nexport const GARBAGE_TRUCK_H = 42;\n\n/** The garbage truck that empties the recycling centers each morning: its own\n * Excalibur Actor (like the metro train); the engine slides it along the\n * center's bottom story during the collection hour. Drawn at (0,0) into\n * w x GARBAGE_TRUCK_H. */\nexport function drawGarbageTruck(ctx: CanvasRenderingContext2D, w: number): void {\n const H = GARBAGE_TRUCK_H;\n const wheel = 7; // tire size in px\n const axleY = H - wheel; // wheels sit on the bottom `wheel` rows\n const bodyTop = 4;\n const bodyH = axleY - bodyTop; // hopper spans from the lid line to the axle\n const bodyW = w - 16; // the cab takes the front 16px (right side)\n // Hopper body (municipal green) with a lighter top light and a body seam.\n ctx.fillStyle = \"#4A7A44\";\n ctx.fillRect(0, bodyTop, bodyW, bodyH);\n ctx.fillStyle = \"#6A9A5E\"; // top light\n ctx.fillRect(0, bodyTop, bodyW, 3);\n ctx.fillStyle = \"#3A6236\"; // darker ribs\n for (let rx = 4; rx < bodyW - 2; rx += 8) ctx.fillRect(rx, bodyTop + 3, 1, bodyH - 5);\n ctx.fillStyle = \"#2E5A2A\"; // horizontal seam\n ctx.fillRect(0, bodyTop + Math.round(bodyH * 0.5), bodyW, 1);\n // Recycle-arrow badge: a light chasing-arrows triangle on the hopper side.\n const bx = Math.max(2, (bodyW >> 1) - 4);\n const by = bodyTop + Math.round(bodyH * 0.32);\n ctx.fillStyle = \"#DCE8C0\";\n ctx.fillRect(bx, by + 3, 9, 1); // base\n ctx.fillRect(bx + 1, by + 2, 1, 1); // left slope\n ctx.fillRect(bx + 7, by + 2, 1, 1); // right slope\n ctx.fillRect(bx + 4, by, 1, 3); // apex\n // Cab (front, right-facing) with a windowed glint and a top highlight.\n const cabW = 16;\n const cabH = Math.round(bodyH * 0.74);\n const cabY = axleY - cabH;\n ctx.fillStyle = \"#5A8A54\";\n ctx.fillRect(bodyW, cabY, cabW, cabH);\n ctx.fillStyle = \"#CFE4FF\";\n ctx.fillRect(bodyW + 6, cabY + 3, 8, Math.max(3, Math.round(cabH * 0.42)));\n ctx.fillStyle = \"#E4F0FF\";\n ctx.fillRect(bodyW + 6, cabY + 3, 8, 1);\n // Rear loader mouth, with a couple of bags waiting at it.\n ctx.fillStyle = \"#3A5A36\";\n ctx.fillRect(0, bodyTop + 4, 4, bodyH - 4);\n ctx.fillStyle = \"#7A8A64\";\n ctx.fillRect(1, axleY - 4, 3, 4);\n ctx.fillRect(4, axleY - 3, 3, 3);\n // Two-tone wheels (tire + hub), integer rects (no arcs).\n for (const wx of [8, bodyW - 10, bodyW + 8]) {\n ctx.fillStyle = \"#16181C\";\n ctx.fillRect(wx - 1, axleY, wheel, wheel);\n ctx.fillStyle = \"#5A5E66\";\n ctx.fillRect(wx + 1, axleY + 2, 3, 3);\n }\n}\n\n/** A small sedan for the garage floors: its own Actor; the engine drives it\n * along the parking run at commute hours. Drawn at (0,0) into 16 x 8. The body\n * is anchored to a calm blue, jittered per seed (not a rainbow accent). */\nexport function drawStreetCar(ctx: CanvasRenderingContext2D, seed: number): void {\n const body = jitter(\"#4E7A9E\", seed);\n const roof = jitter(\"#3E6486\", seed + 17);\n ctx.fillStyle = body; // lower body / chassis\n ctx.fillRect(1, 3, 14, 3);\n ctx.fillStyle = roof; // cabin roof\n ctx.fillRect(4, 0, 8, 3);\n ctx.fillStyle = \"#CFE4FF\"; // two windows\n ctx.fillRect(5, 1, 2, 2);\n ctx.fillRect(8, 1, 2, 2);\n ctx.fillStyle = \"#16181C\"; // dark tires\n ctx.fillRect(3, 6, 3, 2);\n ctx.fillRect(11, 6, 3, 2);\n ctx.fillStyle = \"#FFE27A\"; // front headlight\n ctx.fillRect(14, 3, 1, 2);\n}\n\n/** Height of the metro train, in px: the party-ratified \"one and a half\n * floor\" consist for the high-platform station. The train's base rides the\n * track bed at the station's bottom edge; at this height its window band\n * clears the raised platform deck (the station draw puts the deck on the\n * module's middle story) so waiting commuters stand face-to-face with the\n * cars. The body, window band, stripe, and undercarriage all size off this\n * constant; the headlight and coupling gaps stay fixed. */\nexport const METRO_TRAIN_H = 60;\n\n/** Length of one carriage, in px. The train actor spans the whole lot, so the\n * body is drawn as a consist of coupled cars rather than one endless tube. */\nconst METRO_CAR_W = 150;\n\n/** One warm-lit rider behind the saloon glass (party-ratified): a skin-tone\n * head over a coat-colored torso, both jittered off the seed so no rider\n * repeats exactly. Standees ride taller in the window; seated riders sit\n * low. Purely seed-driven paint: the bake stays static. */\nfunction rider(ctx: CanvasRenderingContext2D, x: number, bandY: number, standee: boolean, s: number): void {\n const headY = bandY + (standee ? 2 : 7);\n ctx.fillStyle = jitter(rand(s + 3) < 0.5 ? \"#5A6E86\" : \"#8A5A46\", s + 7); // coat\n ctx.fillRect(x, headY + 3, 5, standee ? 13 : 8);\n ctx.fillStyle = jitter(\"#D9B08C\", s + 5); // head\n ctx.fillRect(x + 1, headY, 3, 3);\n}\n\n/** The subway consist, drawn at (0,0) into a w x METRO_TRAIN_H rect: coupled\n * silver cars with lit window bands (and riders behind roughly two-thirds of\n * them), sliding door pairs, roof pods, a red livery stripe, and bogies per\n * car. It is its own Excalibur Actor; the engine slides it in and out along\n * the platform. It enters from the left travelling RIGHT, so the head car,\n * cab, and headlight lead at the right end. */\nexport function drawMetroTrain(ctx: CanvasRenderingContext2D, w: number, headlightOn: boolean): void {\n const H = METRO_TRAIN_H;\n const skirtY = H - 8; // undercarriage top\n const stripeY = H - 22; // red livery band\n const bandY = Math.round(H * 0.22); // window band top\n const bandH = Math.round(H * 0.3);\n // The cars (a remainder too short to read as a car paints nothing: no stub\n // bodies, no stray roof pods, the consist just ends at the previous car)\n // and their window slots, interrupted by a sliding door pair every third.\n const cars: { cx: number; cw: number; slots: { wx: number; door: boolean; s: number }[] }[] = [];\n for (let cx = 0; cx < w; cx += METRO_CAR_W) {\n const cw = Math.min(METRO_CAR_W, w - cx) - 4; // 4px coupling gap per car\n if (cw < 24) break;\n const carIdx = Math.floor(cx / METRO_CAR_W);\n const slots: { wx: number; door: boolean; s: number }[] = [];\n for (let wx = cx + 10; wx + 12 < cx + cw; wx += 24) {\n const slotIdx = Math.floor((wx - cx - 10) / 24);\n slots.push({ wx, door: slotIdx % 3 === 2, s: carIdx * 31 + slotIdx });\n }\n cars.push({ cx, cw, slots });\n }\n const windows = cars.flatMap((c) => c.slots.filter((sl) => !sl.door));\n // The riders sit inside the cars: first the dark interior seen through each\n // saloon window, then the riders, then the body around them, which never\n // paints inside a window (the depth split's back, furniture and front).\n // The clip keeps the body's pixels exactly as before at whole-pixel scales\n // (the game draws the train at 1x); a fractional scale would soften the\n // window edges.\n ctx.fillStyle = \"#2A3440\"; // saloon glass\n for (const { wx } of windows) ctx.fillRect(wx, bandY, 12, bandH);\n layerBreak(ctx);\n // Roughly two-thirds of windows carry a rider (sometimes two), seeded from\n // car + slot alone so the cached bake never needs new inputs.\n for (const { wx, s } of windows) {\n if (rand(s) < 0.7) {\n rider(ctx, wx + 1, bandY, rand(s + 1) < 0.4, s);\n if (rand(s + 2) < 0.35) rider(ctx, wx + 7, bandY, false, s + 11);\n }\n }\n layerEnd(ctx);\n ctx.save();\n ctx.beginPath();\n // An outer rect well past the train, so only the window edges cut.\n ctx.rect(-H, -H, w + 2 * H, 3 * H);\n for (const { wx } of windows) ctx.rect(wx, bandY, 12, bandH);\n ctx.clip(\"evenodd\");\n for (const { cx, cw, slots } of cars) {\n // Car body: silver shell with a lit roof edge and a shaded lower flank.\n ctx.fillStyle = \"#C6CCD4\";\n ctx.fillRect(cx, 2, cw, skirtY - 2);\n ctx.fillStyle = \"#E0E6EC\"; // roof highlight\n ctx.fillRect(cx + 1, 2, cw - 2, 2);\n ctx.fillStyle = \"#AEB6C0\"; // lower body shade\n ctx.fillRect(cx, stripeY + 5, cw, skirtY - stripeY - 5);\n // Red livery stripe with a light catch, painted BEFORE the door leaves so\n // the doors visibly interrupt the band (the depth cue real stock has).\n ctx.fillStyle = \"#D0392B\";\n ctx.fillRect(cx, stripeY, cw, 4);\n ctx.fillStyle = \"#E85D4A\";\n ctx.fillRect(cx, stripeY, cw, 1);\n // Roof equipment: an AC pod per car (clamped inside the car) and a conduit.\n ctx.fillStyle = \"#9AA2AC\";\n ctx.fillRect(cx + Math.max(10, cw >> 1) - 10, 0, Math.min(20, cw - 4), 2);\n ctx.fillStyle = \"#7E8894\";\n ctx.fillRect(cx + 4, 1, cw - 8, 1);\n // Door pairs: two leaves over the stripe, center seam, tall door windows.\n for (const { wx, door } of slots) {\n if (!door) continue;\n ctx.fillStyle = \"#B4BCC6\";\n ctx.fillRect(wx, bandY - 2, 12, skirtY - bandY);\n ctx.fillStyle = \"#16181C\"; // center seam\n ctx.fillRect(wx + 5, bandY - 2, 1, skirtY - bandY);\n ctx.fillStyle = \"#2A3440\"; // door windows\n ctx.fillRect(wx + 1, bandY, 3, bandH - 2);\n ctx.fillRect(wx + 7, bandY, 3, bandH - 2);\n }\n // Undercarriage skirt and two bogies (wheel trucks) per car.\n ctx.fillStyle = \"#1A2028\";\n ctx.fillRect(cx + 2, skirtY, cw - 4, H - skirtY);\n ctx.fillStyle = \"#0E1116\";\n for (const bx of [cx + 14, cx + cw - 34]) {\n if (bx > cx && bx + 20 < cx + cw) {\n ctx.fillRect(bx, H - 6, 20, 6);\n ctx.fillStyle = \"#2E3640\"; // wheel glint\n ctx.fillRect(bx + 3, H - 4, 4, 2);\n ctx.fillRect(bx + 13, H - 4, 4, 2);\n ctx.fillStyle = \"#0E1116\";\n }\n }\n // Coupling diaphragm, only when a real (non-stub) car follows.\n if (w - (cx + METRO_CAR_W) >= 28) {\n ctx.fillStyle = \"#3A4048\";\n ctx.fillRect(cx + cw, Math.round(H * 0.3), 4, Math.round(H * 0.4));\n }\n }\n // Cab nose at the leading (RIGHT) end: the consist enters from the left\n // travelling right, so the head car leads on the right. Windshield,\n // destination board, and the headlight keyed on state (#9FC0E0 stays the\n // one dark-headlight literal the narrow-carriage test isolates; the window\n // loop needs 12px of glass inside a car, so a w=8 bake paints no glints).\n ctx.fillStyle = \"#B4BCC6\";\n ctx.fillRect(w - 5, 4, 5, skirtY - 6);\n ctx.fillStyle = \"#20262E\"; // windshield\n ctx.fillRect(w - 5, bandY - 2, 4, Math.round(bandH * 0.8));\n ctx.fillStyle = \"#E8C14A\"; // destination board\n ctx.fillRect(w - 5, 6, 4, 3);\n ctx.fillStyle = headlightOn ? \"#FFE27A\" : \"#9FC0E0\"; // headlight, keyed on state\n ctx.fillRect(w - 3, stripeY - 6, 3, 4);\n ctx.restore();\n ctx.fillStyle = \"#9FC0E0\"; // glass glints, on the window in front of the riders\n for (const { wx } of windows) ctx.fillRect(wx, bandY, 4, 2);\n}\n\n/** Width of the dark portal drawn over each end of the metro station. */\nexport const METRO_PORTAL_W = 22;\n\n/** The tunnel mouth at a station end, drawn at (0,0) into a w x h rect: a steel\n * jamb on the station's outer edge and a stretch of darkness that fades toward\n * the platform. Over the train it makes the consist emerge from (or sink into)\n * the tunnel instead of being cut off at the edge. */\nexport function drawMetroPortal(ctx: CanvasRenderingContext2D, w: number, h: number, side: \"left\" | \"right\"): void {\n const jamb = 5;\n const edge = side === \"left\" ? 0 : w - jamb;\n const dark = side === \"left\" ? jamb : 0;\n const span = w - jamb;\n for (let i = 0; i < span; i++) {\n const depth = side === \"left\" ? i : span - 1 - i;\n ctx.globalAlpha = 0.92 * (1 - depth / span);\n ctx.fillStyle = \"#0C0D10\";\n ctx.fillRect(dark + i, 0, 1, h);\n }\n ctx.globalAlpha = 1;\n ctx.fillStyle = \"#2A2C30\";\n ctx.fillRect(edge, 0, jamb, h);\n ctx.fillStyle = \"#8A8D92\";\n ctx.fillRect(side === \"left\" ? edge + jamb - 1 : edge, 0, 1, h);\n ctx.fillStyle = \"#2A2C30\";\n ctx.fillRect(0, 0, w, 5); // lintel\n}\n"],"names":[],"mappings":";;;AAGA;;;;;;AAMG;AAEH;;;AAG8B;AAC9B,SAAS,MAAM,CAAC,GAAW,EAAE,IAAY,EAAA;AACvC,IAAA,MAAM,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACpC,IAAA,MAAM,GAAG,GAAG,CAAC,CAAS,KAAK,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACxE,MAAM,KAAK,GAAG,CAAC,CAAS,KAAK,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GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;AAC7B,QAAA,MAAM,KAAK,GAAG,IAAI,KAAK,MAAM,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAChD,QAAA,GAAG,CAAC,WAAW,GAAG,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC;AAC3C,QAAA,GAAG,CAAC,SAAS,GAAG,SAAS;AACzB,QAAA,GAAG,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IACjC;AACA,IAAA,GAAG,CAAC,WAAW,GAAG,CAAC;AACnB,IAAA,GAAG,CAAC,SAAS,GAAG,SAAS;IACzB,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9B,IAAA,GAAG,CAAC,SAAS,GAAG,SAAS;IACzB,GAAG,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC/D,IAAA,GAAG,CAAC,SAAS,GAAG,SAAS;AACzB,IAAA,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3B;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { UnitView } from "../../../simport/view";
|
|
2
|
+
import { type DrawCtx } from "../common";
|
|
3
|
+
/**
|
|
4
|
+
* The event venues: the party hall and the aquatic center. The wedding hall
|
|
5
|
+
* lives in `weddingHall.ts`.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The two-floor function hall (catalog `floors: 2`, an 88px rect): a warm gold
|
|
9
|
+
* and wine-red room with tall draped arched windows, chandeliers and a
|
|
10
|
+
* string-light banner, a stage with a mirror ball and DJ, a checker dance
|
|
11
|
+
* floor, and a long banquet table. Ported one rectangle at a time from the
|
|
12
|
+
* committed reference draw code (page-03 `party`). The dancers (standing build),
|
|
13
|
+
* the DJ and banquet guests (seated build) fill in seed order up to the hall's
|
|
14
|
+
* occupant count, so an empty hall draws none and a full one fills; the seeded
|
|
15
|
+
* ghost crowd this replaced is gone for good. Static fills only, no `d.anim` read; the
|
|
16
|
+
* seed is geography so a TDT id renumber does not reshuffle the guests.
|
|
17
|
+
*/
|
|
18
|
+
export declare function drawPartyHall(d: DrawCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
|
|
19
|
+
/**
|
|
20
|
+
* The two-story Aquatic Center (catalog `floors: 2`, an 88px rect): a bright,
|
|
21
|
+
* tiled pool hall lit by a row of skylights, with an upper diving platform and a
|
|
22
|
+
* big lane pool below. Swimmers (standing build, waist-deep once the water layer
|
|
23
|
+
* is drawn over them) and deck-chair loungers (seated build) fill in seed order
|
|
24
|
+
* up to the venue's live attendee count (`u.occupants`, the attendance mirror),
|
|
25
|
+
* so an empty pool draws none and a busy one fills. Static fills only, no `d.anim`
|
|
26
|
+
* read; the seed is geography so a TDT id renumber does not reshuffle the crowd.
|
|
27
|
+
*/
|
|
28
|
+
export declare function drawAquaticCenter(d: DrawCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
|