@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":"shell.js","sources":["../../../../src/render/sprites/structure/shell.ts"],"sourcesContent":["import type { DrawCtx } from \"../common\";\nimport { shade } from \"../common\";\n\n/**\n * Raw structural and damage shells: the bare floor slab, the under-construction\n * scaffold, and the burned-out shell and flames. Extracted verbatim from\n * `structure.ts`.\n */\n\n/**\n * The bare deck of a built-but-empty floor or corridor: a warm banded slab\n * (dark ceiling strip up top, a mid slab band, a dark base band) with faint\n * grout ticks, ported from page-05's `floorTile`. Drawn in horizontal strips\n * so a mobile GPU never sees one full-height fill on a tall run, and keyed on\n * nothing but the rect (baked `cache: true` into `floorGfx`). Integer pixels.\n */\nexport function drawFloor(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number) {\n const x0 = Math.round(x);\n const y0 = Math.round(y);\n const ww = Math.max(1, Math.round(w));\n const hh = Math.max(1, Math.round(h));\n // Warm base wash for the whole tile (a small per-tile fill, not a monolith).\n ctx.fillStyle = \"#B7B0A0\";\n ctx.fillRect(x0, y0, ww, hh);\n // Ceiling strip and its seam along the top band. Bounded to the tile height\n // so a degenerate (very short) rect never paints past the tile.\n const ceil = Math.min(hh, Math.max(3, Math.round(hh * 0.11)));\n ctx.fillStyle = \"#8A8478\";\n ctx.fillRect(x0, y0, ww, ceil);\n ctx.fillStyle = \"#6E6A60\";\n if (ceil < hh) ctx.fillRect(x0, y0 + ceil, ww, 1); // seam only when it lands inside the tile\n // Faint ceiling texture ticks.\n ctx.fillStyle = \"#7A7468\";\n for (let px = x0; px < x0 + ww; px += 8) ctx.fillRect(px, y0 + 1, 2, Math.min(3, ceil - 1));\n // Floor slab band across the bottom, with a polished top edge and dark base.\n // Bounded to the tile height so `fy` can never rise above `y0`.\n const slabH = Math.min(hh, Math.max(4, Math.round(hh * 0.23)));\n const fy = y0 + hh - slabH;\n const slab = \"#9A9486\";\n ctx.fillStyle = slab;\n ctx.fillRect(x0, fy, ww, slabH);\n ctx.fillStyle = shade(slab, 18);\n ctx.fillRect(x0, fy, ww, 1);\n ctx.fillStyle = shade(slab, -24);\n ctx.fillRect(x0, y0 + hh - 1, ww, 1);\n // Baseboard band where the wall meets the slab, with wall-base ticks above\n // it. Only when there is room above the slab, so the band and its ticks stay\n // inside the tile on a short rect.\n if (fy - 4 >= y0) {\n ctx.fillStyle = \"#8A8478\";\n ctx.fillRect(x0, fy - 2, ww, 2);\n ctx.fillStyle = \"#7E786C\";\n for (let px = x0 + 4; px < x0 + ww; px += 12) ctx.fillRect(px, fy - 4, 2, 4);\n }\n // Faint grout ticks down the slab so the deck reads tiled, not poured.\n ctx.fillStyle = \"rgba(0,0,0,0.06)\";\n const groutH = Math.max(0, slabH - 2); // never negative on a degenerate short rect\n for (let gx = x0 + 5; gx < x0 + ww; gx += 9) ctx.fillRect(gx, fy + 1, 1, groutH);\n}\n\nexport function drawConstruction(d: DrawCtx, x: number, y: number, w: number, h: number) {\n const ctx = d.ctx;\n // Bare concrete shell.\n ctx.fillStyle = \"#6f6a5e\";\n ctx.fillRect(x, y, w, h);\n ctx.fillStyle = \"#5c574c\";\n ctx.fillRect(x, y, w, 2);\n // Yellow/black hazard band along the floor.\n for (let hx = x; hx < x + w; hx += 8) {\n ctx.fillStyle = (Math.floor(hx / 8) % 2) === 0 ? \"#e8c14a\" : \"#2a2a2a\";\n ctx.fillRect(hx, y + h - 4, 4, 4);\n }\n // Scaffolding poles and cross-braces.\n ctx.strokeStyle = \"rgba(220,220,230,0.55)\";\n ctx.lineWidth = 1;\n for (let sx = x + 6; sx < x + w - 2; sx += 14) {\n ctx.beginPath();\n ctx.moveTo(sx, y + 2);\n ctx.lineTo(sx, y + h - 4);\n ctx.moveTo(sx, y + h - 4);\n ctx.lineTo(sx + 14, y + 2);\n ctx.stroke();\n }\n ctx.strokeStyle = \"rgba(220,220,230,0.4)\";\n ctx.beginPath();\n ctx.moveTo(x + 2, y + h / 2);\n ctx.lineTo(x + w - 2, y + h / 2);\n ctx.stroke();\n // A little crane hook swinging on the global clock.\n const hookX = x + 8 + (Math.sin(d.anim) * 0.5 + 0.5) * Math.max(0, w - 16);\n ctx.strokeStyle = \"#caa84a\";\n ctx.lineWidth = 1;\n ctx.beginPath();\n ctx.moveTo(hookX, y - 2);\n ctx.lineTo(hookX, y + h * 0.4);\n ctx.stroke();\n ctx.fillStyle = \"#caa84a\";\n ctx.fillRect(hookX - 2, y + h * 0.4, 4, 3);\n}\n\n/** Charred interior behind the flames of a burning unit. */\nexport function drawBurntShell(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number) {\n ctx.fillStyle = \"#241c18\";\n ctx.fillRect(x, y, w, h);\n ctx.fillStyle = \"#3a2a20\";\n ctx.fillRect(x, y + h - 4, w, 4);\n // Smoke smudges up the back wall.\n ctx.fillStyle = \"rgba(20,16,14,0.55)\";\n for (let sx = x + 3; sx < x + w - 2; sx += 11) ctx.fillRect(sx, y, 5, h - 4);\n}\n\n/** Animated flames licking up from the floor of a burning unit. */\nexport function drawFlames(d: DrawCtx, x: number, y: number, w: number, h: number) {\n const ctx = d.ctx;\n const base = y + h - 3;\n for (let fx = x + 2; fx < x + w - 2; fx += 6) {\n const phase = d.anim * 6 + fx * 0.7;\n const flame = (Math.sin(phase) * 0.5 + 0.5) * (h * 0.55) + h * 0.3;\n // Outer orange tongue.\n ctx.fillStyle = \"#e8631e\";\n ctx.beginPath();\n ctx.moveTo(fx, base);\n ctx.lineTo(fx + 3, base - flame);\n ctx.lineTo(fx + 6, base);\n ctx.closePath();\n ctx.fill();\n // Inner yellow core.\n ctx.fillStyle = \"#ffd23a\";\n ctx.beginPath();\n ctx.moveTo(fx + 1.5, base);\n ctx.lineTo(fx + 3, base - flame * 0.6);\n ctx.lineTo(fx + 4.5, base);\n ctx.closePath();\n ctx.fill();\n }\n // Ember glow wash.\n ctx.fillStyle = \"rgba(232,99,30,0.18)\";\n ctx.fillRect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5C,MAAM,KAAK,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG;QACnC,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG;;AAElE,QAAA,GAAG,CAAC,SAAS,GAAG,SAAS;QACzB,GAAG,CAAC,SAAS,EAAE;AACf,QAAA,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC;QACpB,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;QAChC,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC;QACxB,GAAG,CAAC,SAAS,EAAE;QACf,GAAG,CAAC,IAAI,EAAE;;AAEV,QAAA,GAAG,CAAC,SAAS,GAAG,SAAS;QACzB,GAAG,CAAC,SAAS,EAAE;QACf,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,EAAE,IAAI,CAAC;AAC1B,QAAA,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,GAAG,CAAC;QACtC,GAAG,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,EAAE,IAAI,CAAC;QAC1B,GAAG,CAAC,SAAS,EAAE;QACf,GAAG,CAAC,IAAI,EAAE;IACZ;;AAEA,IAAA,GAAG,CAAC,SAAS,GAAG,sBAAsB;IACtC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1B;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sky bridge looks (Modern; owner, 2026-11-16: "let the users choose"; art
|
|
3
|
+
* picked from the redrawn mockups, 2026-11-17). Each look is drawn as one
|
|
4
|
+
* whole bridge: a frame where it meets each sky lobby, a roof and deck on the
|
|
5
|
+
* lobby's ceiling and floor lines, a pattern spaced to fit the span, and an
|
|
6
|
+
* underside that hangs into the open air below (nothing can stand under a
|
|
7
|
+
* bridge tile, so it never covers a room). The renderer bakes one canvas per
|
|
8
|
+
* tile: tile `i` of an `n`-tile bridge draws the whole bridge shifted left by
|
|
9
|
+
* `i` tiles and clipped to its own cell, so neighboring tiles join into one
|
|
10
|
+
* picture. People are drawn by the crowd layer on top.
|
|
11
|
+
*/
|
|
12
|
+
/** The catalog's look names (`rules.skyBridge.looks`) this file draws. The
|
|
13
|
+
* plain lobby draws as a lobby tile. */
|
|
14
|
+
export declare const BRIDGE_LOOK: {
|
|
15
|
+
readonly glass: "Glass Skywalk";
|
|
16
|
+
readonly truss: "Steel Truss";
|
|
17
|
+
readonly deco: "Deco Arcade";
|
|
18
|
+
readonly garden: "Garden Walk";
|
|
19
|
+
};
|
|
20
|
+
/** Which part of a bridge tile a cell shows: the bridge's own story, or the
|
|
21
|
+
* underside in the open-air cell below it. */
|
|
22
|
+
export type BridgePart = "deck" | "under";
|
|
23
|
+
/** Whether this file draws the look named `look`; the plain lobby and an
|
|
24
|
+
* unknown name do not. */
|
|
25
|
+
export declare function drawsBridgeLook(look: string): boolean;
|
|
26
|
+
/** Draw tile `i` of an `n`-tile bridge in look `look`, part `part`, into a
|
|
27
|
+
* `w` by `h` cell at the origin. */
|
|
28
|
+
export declare function drawBridgeTile(g: CanvasRenderingContext2D, look: string, i: number, n: number, lit: boolean, w: number, h: number, part?: BridgePart): void;
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { lobbyFloor } from './lobby.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Sky bridge looks (Modern; owner, 2026-11-16: "let the users choose"; art
|
|
5
|
+
* picked from the redrawn mockups, 2026-11-17). Each look is drawn as one
|
|
6
|
+
* whole bridge: a frame where it meets each sky lobby, a roof and deck on the
|
|
7
|
+
* lobby's ceiling and floor lines, a pattern spaced to fit the span, and an
|
|
8
|
+
* underside that hangs into the open air below (nothing can stand under a
|
|
9
|
+
* bridge tile, so it never covers a room). The renderer bakes one canvas per
|
|
10
|
+
* tile: tile `i` of an `n`-tile bridge draws the whole bridge shifted left by
|
|
11
|
+
* `i` tiles and clipped to its own cell, so neighboring tiles join into one
|
|
12
|
+
* picture. People are drawn by the crowd layer on top.
|
|
13
|
+
*/
|
|
14
|
+
/** The catalog's look names (`rules.skyBridge.looks`) this file draws. The
|
|
15
|
+
* plain lobby draws as a lobby tile. */
|
|
16
|
+
const BRIDGE_LOOK = { glass: "Glass Skywalk", truss: "Steel Truss", deco: "Deco Arcade", garden: "Garden Walk" };
|
|
17
|
+
/** Whether this file draws the look named `look`; the plain lobby and an
|
|
18
|
+
* unknown name do not. */
|
|
19
|
+
function drawsBridgeLook(look) {
|
|
20
|
+
return look === BRIDGE_LOOK.glass || look === BRIDGE_LOOK.truss || look === BRIDGE_LOOK.deco || look === BRIDGE_LOOK.garden;
|
|
21
|
+
}
|
|
22
|
+
function rect(g, x, y, w, h, c) {
|
|
23
|
+
g.fillStyle = c;
|
|
24
|
+
g.fillRect(x, y, w, h);
|
|
25
|
+
}
|
|
26
|
+
function line(g, x0, y0, x1, y1, c, w = 1) {
|
|
27
|
+
g.strokeStyle = c;
|
|
28
|
+
g.lineWidth = w;
|
|
29
|
+
g.beginPath();
|
|
30
|
+
g.moveTo(x0, y0);
|
|
31
|
+
g.lineTo(x1, y1);
|
|
32
|
+
g.stroke();
|
|
33
|
+
}
|
|
34
|
+
/** `count` evenly spaced points across the bridge, the first at `start`
|
|
35
|
+
* of a step from the left end (0 for joints, 0.5 for bay centers). */
|
|
36
|
+
function spaced(width, count, start) {
|
|
37
|
+
const out = [];
|
|
38
|
+
for (let k = 0; k < count; k++)
|
|
39
|
+
out.push(Math.round(((k + start) * width) / count));
|
|
40
|
+
return out;
|
|
41
|
+
}
|
|
42
|
+
/** How many bays of about `tiles` tiles fit the span, at least one. */
|
|
43
|
+
function bays(n, tiles) {
|
|
44
|
+
return Math.max(1, Math.round(n / tiles));
|
|
45
|
+
}
|
|
46
|
+
/** Draw tile `i` of an `n`-tile bridge in look `look`, part `part`, into a
|
|
47
|
+
* `w` by `h` cell at the origin. */
|
|
48
|
+
function drawBridgeTile(g, look, i, n, lit, w, h, part = "deck") {
|
|
49
|
+
const draw = part === "deck" ? DECKS[look] : UNDERS[look];
|
|
50
|
+
if (!draw)
|
|
51
|
+
return;
|
|
52
|
+
g.save();
|
|
53
|
+
g.beginPath();
|
|
54
|
+
g.rect(0, 0, w, h);
|
|
55
|
+
g.clip();
|
|
56
|
+
g.translate(-i * w, 0);
|
|
57
|
+
draw(g, { width: n * w, w, h, n, lit });
|
|
58
|
+
g.restore();
|
|
59
|
+
}
|
|
60
|
+
const DECKS = {
|
|
61
|
+
/** A: one shallow glass vault over the whole span, ribs spaced to fit,
|
|
62
|
+
* steel collars at both lobbies, the lobby's floor as its deck. */
|
|
63
|
+
[BRIDGE_LOOK.glass]: (g, { width, h, n, lit }) => {
|
|
64
|
+
const steel = lit ? "#56647a" : "#7d8c9f";
|
|
65
|
+
rect(g, 0, 4, width, h - 9, lit ? "rgba(255,206,120,0.75)" : "rgba(150,195,230,0.9)");
|
|
66
|
+
g.fillStyle = lit ? "rgba(255,214,140,0.35)" : "rgba(214,236,250,0.95)";
|
|
67
|
+
g.beginPath();
|
|
68
|
+
g.moveTo(0, 5);
|
|
69
|
+
g.quadraticCurveTo(width / 2, -3, width, 5);
|
|
70
|
+
g.lineTo(width, 6);
|
|
71
|
+
g.lineTo(0, 6);
|
|
72
|
+
g.fill();
|
|
73
|
+
g.strokeStyle = steel;
|
|
74
|
+
g.lineWidth = 1;
|
|
75
|
+
g.beginPath();
|
|
76
|
+
g.moveTo(0, 5.5);
|
|
77
|
+
g.quadraticCurveTo(width / 2, -2.5, width, 5.5);
|
|
78
|
+
g.stroke();
|
|
79
|
+
const ribs = bays(n, 2);
|
|
80
|
+
for (const x of spaced(width, ribs, 0).slice(1))
|
|
81
|
+
rect(g, x, 3, 1, h - 8, steel);
|
|
82
|
+
if (!lit)
|
|
83
|
+
for (const x of spaced(width, ribs, 0.25))
|
|
84
|
+
line(g, x, h - 8, x + 6, 9, "rgba(240,250,255,0.7)");
|
|
85
|
+
lobbyFloor(g, 0, width, h, false);
|
|
86
|
+
if (lit)
|
|
87
|
+
rect(g, 0, h - 1, width, 1, "#9fd3ff");
|
|
88
|
+
rect(g, 0, 0, 2, h, steel);
|
|
89
|
+
rect(g, width - 2, 0, 2, h, steel);
|
|
90
|
+
},
|
|
91
|
+
/** B: a Warren truss whose diagonals mirror at the center, its panel count
|
|
92
|
+
* even and fitted to the span, in a deep oxide red. */
|
|
93
|
+
[BRIDGE_LOOK.truss]: (g, { width, h, n, lit }) => {
|
|
94
|
+
const steel = lit ? "#6a2a24" : "#8e3b32";
|
|
95
|
+
const dark = lit ? "#3f1915" : "#652a24";
|
|
96
|
+
rect(g, 0, 4, width, h - 10, lit ? "#3a2e2a" : "#ddd3bd");
|
|
97
|
+
rect(g, 0, 0, width, 4, steel);
|
|
98
|
+
rect(g, 0, h - 9, width, 3, steel);
|
|
99
|
+
rect(g, 0, h - 6, width, 6, dark);
|
|
100
|
+
const panels = trussPanels(n);
|
|
101
|
+
const joints = spaced(width, panels, 0);
|
|
102
|
+
joints.push(width);
|
|
103
|
+
for (let k = 0; k < panels; k++) {
|
|
104
|
+
const [a, b] = [joints[k], joints[k + 1]];
|
|
105
|
+
if (k < panels / 2)
|
|
106
|
+
line(g, a, h - 8, b, 2, steel, 2);
|
|
107
|
+
else
|
|
108
|
+
line(g, a, 2, b, h - 8, steel, 2);
|
|
109
|
+
if (k > 0)
|
|
110
|
+
rect(g, a - 1, 2, 2, h - 10, steel);
|
|
111
|
+
if (lit)
|
|
112
|
+
rect(g, Math.round((a + b) / 2) - 1, 6, 3, 2, "#ffd98a");
|
|
113
|
+
}
|
|
114
|
+
for (let x = 3; x < width - 2; x += 5)
|
|
115
|
+
rect(g, x, 1, 1, 1, lit ? "#c98b82" : "#efc0b8");
|
|
116
|
+
rect(g, 0, 0, 3, h - 6, dark);
|
|
117
|
+
rect(g, width - 3, 0, 3, h - 6, dark);
|
|
118
|
+
},
|
|
119
|
+
/** C: a stone gallery in the tower's tan, arched windows spaced to fit, a
|
|
120
|
+
* pier at each lobby and a keystone lamp at the center. */
|
|
121
|
+
[BRIDGE_LOOK.deco]: (g, { width, h, n, lit }) => {
|
|
122
|
+
const stone = lit ? "#6d6656" : "#cbbf9f";
|
|
123
|
+
const shade = lit ? "#4a4537" : "#a39470";
|
|
124
|
+
rect(g, 0, 0, width, h, stone);
|
|
125
|
+
rect(g, 0, 0, width, 4, shade);
|
|
126
|
+
rect(g, 0, 4, width, 1, stone);
|
|
127
|
+
rect(g, 0, h - 6, width, 6, shade);
|
|
128
|
+
const count = bays(n, 2.5);
|
|
129
|
+
const step = width / count;
|
|
130
|
+
const r = Math.max(2, Math.min(step / 2 - 3, 8));
|
|
131
|
+
for (const cx of spaced(width, count, 0.5)) {
|
|
132
|
+
g.fillStyle = lit ? "#f2cf7c" : "#86a8c8";
|
|
133
|
+
g.beginPath();
|
|
134
|
+
g.moveTo(cx - r, h - 8);
|
|
135
|
+
g.lineTo(cx - r, 15);
|
|
136
|
+
g.arc(cx, 15, r, Math.PI, 0);
|
|
137
|
+
g.lineTo(cx + r, h - 8);
|
|
138
|
+
g.fill();
|
|
139
|
+
rect(g, cx, 13, 1, h - 21, shade);
|
|
140
|
+
rect(g, cx - 1, 5, 3, 2, shade);
|
|
141
|
+
}
|
|
142
|
+
rect(g, 0, 0, 4, h, shade);
|
|
143
|
+
rect(g, width - 4, 0, 4, h, shade);
|
|
144
|
+
rect(g, Math.round(width / 2) - 2, 0, 4, 4, lit ? "#ffe7a3" : "#e6dcc2");
|
|
145
|
+
},
|
|
146
|
+
/** D: a pergola walk with posts spaced to fit, vines, a low glass rail and
|
|
147
|
+
* planter trees spaced along the span. */
|
|
148
|
+
[BRIDGE_LOOK.garden]: (g, { width, h, n, lit }) => {
|
|
149
|
+
const wood = lit ? "#5a4630" : "#8c6a45";
|
|
150
|
+
rect(g, 0, 4, width, h - 9, lit ? "#26302a" : "#e3eadb");
|
|
151
|
+
rect(g, 0, h - 16, width, 11, lit ? "rgba(160,200,255,0.22)" : "rgba(200,225,240,0.75)");
|
|
152
|
+
lobbyFloor(g, 0, width, h, false);
|
|
153
|
+
rect(g, 0, 2, width, 3, wood);
|
|
154
|
+
const posts = bays(n, 2);
|
|
155
|
+
for (const x of spaced(width, posts, 0))
|
|
156
|
+
rect(g, x, 2, 2, h - 7, wood);
|
|
157
|
+
rect(g, width - 2, 2, 2, h - 7, wood);
|
|
158
|
+
const vine = lit ? "#2e4a2e" : "#5d8f52";
|
|
159
|
+
for (let x = 0; x < width; x += 3)
|
|
160
|
+
rect(g, x, 5, 2, 2 + ((x * 7) % 5), vine);
|
|
161
|
+
for (const cx of spaced(width, bays(n, 5.5), 0.5)) {
|
|
162
|
+
rect(g, cx - 6, h - 13, 12, 8, lit ? "#4a3a2a" : "#7b5b3d");
|
|
163
|
+
rect(g, cx - 1, h - 19, 2, 6, lit ? "#3a2a1a" : "#5a3d22");
|
|
164
|
+
g.fillStyle = lit ? "#1f3b22" : "#4f8a45";
|
|
165
|
+
g.beginPath();
|
|
166
|
+
g.arc(cx, h - 25, 7, 0, Math.PI * 2);
|
|
167
|
+
g.fill();
|
|
168
|
+
}
|
|
169
|
+
if (lit)
|
|
170
|
+
for (const x of spaced(width, posts, 0.5))
|
|
171
|
+
rect(g, x, h - 8, 2, 2, "#ffe7a3");
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
/** The truss's panel count: even, so the diagonals mirror at the center,
|
|
175
|
+
* and about two tiles a panel. */
|
|
176
|
+
function trussPanels(n) {
|
|
177
|
+
return Math.max(2, 2 * Math.round(n / 4));
|
|
178
|
+
}
|
|
179
|
+
const UNDERS = {
|
|
180
|
+
/** A: a slim steel belly girder that dips toward the middle. */
|
|
181
|
+
[BRIDGE_LOOK.glass]: (g, { width, n, lit }) => {
|
|
182
|
+
const steel = lit ? "#3c4554" : "#6b7787";
|
|
183
|
+
const edge = lit ? "#9fd3ff" : "#9aa7b6";
|
|
184
|
+
const dip = Math.min(16, 5 + n * 0.5);
|
|
185
|
+
g.fillStyle = steel;
|
|
186
|
+
g.beginPath();
|
|
187
|
+
g.moveTo(0, 0);
|
|
188
|
+
g.lineTo(width, 0);
|
|
189
|
+
g.lineTo(width, 5);
|
|
190
|
+
g.quadraticCurveTo(width / 2, 2 * dip, 0, 5);
|
|
191
|
+
g.fill();
|
|
192
|
+
g.strokeStyle = edge;
|
|
193
|
+
g.lineWidth = 1;
|
|
194
|
+
g.beginPath();
|
|
195
|
+
g.moveTo(width, 5.5);
|
|
196
|
+
g.quadraticCurveTo(width / 2, 2 * dip + 0.5, 0, 5.5);
|
|
197
|
+
g.stroke();
|
|
198
|
+
for (const x of spaced(width, bays(n, 2), 0).slice(1))
|
|
199
|
+
rect(g, x, 0, 1, 4, edge);
|
|
200
|
+
},
|
|
201
|
+
/** B: V braces down to a bottom chord, with a knee brace into each tower. */
|
|
202
|
+
[BRIDGE_LOOK.truss]: (g, { width, n, lit }) => {
|
|
203
|
+
const steel = lit ? "#6a2a24" : "#8e3b32";
|
|
204
|
+
const dark = lit ? "#3f1915" : "#652a24";
|
|
205
|
+
const depth = 13;
|
|
206
|
+
const panels = trussPanels(n);
|
|
207
|
+
const joints = spaced(width, panels, 0);
|
|
208
|
+
joints.push(width);
|
|
209
|
+
for (let k = 0; k < panels; k++) {
|
|
210
|
+
const [a, b] = [joints[k], joints[k + 1]];
|
|
211
|
+
const m = (a + b) / 2;
|
|
212
|
+
line(g, a, 0, m, depth, steel, 2);
|
|
213
|
+
line(g, m, depth, b, 0, steel, 2);
|
|
214
|
+
}
|
|
215
|
+
const half = (joints[1] - joints[0]) / 2;
|
|
216
|
+
rect(g, half, depth - 1, width - 2 * half, 3, dark);
|
|
217
|
+
line(g, 0, depth + 11, half, depth, steel, 2);
|
|
218
|
+
line(g, width, depth + 11, width - half, depth, steel, 2);
|
|
219
|
+
},
|
|
220
|
+
/** C: a shallow stone arch springing from the two end piers. */
|
|
221
|
+
[BRIDGE_LOOK.deco]: (g, { width, lit }) => {
|
|
222
|
+
const stone = lit ? "#6d6656" : "#cbbf9f";
|
|
223
|
+
const shade = lit ? "#4a4537" : "#a39470";
|
|
224
|
+
const spring = 24;
|
|
225
|
+
const crown = 7;
|
|
226
|
+
g.fillStyle = stone;
|
|
227
|
+
g.beginPath();
|
|
228
|
+
g.moveTo(0, 0);
|
|
229
|
+
g.lineTo(width, 0);
|
|
230
|
+
g.lineTo(width, spring);
|
|
231
|
+
g.quadraticCurveTo(width / 2, 2 * crown - spring, 0, spring);
|
|
232
|
+
g.fill();
|
|
233
|
+
g.strokeStyle = shade;
|
|
234
|
+
g.lineWidth = 2;
|
|
235
|
+
g.beginPath();
|
|
236
|
+
g.moveTo(width, spring);
|
|
237
|
+
g.quadraticCurveTo(width / 2, 2 * crown - spring, 0, spring);
|
|
238
|
+
g.stroke();
|
|
239
|
+
rect(g, 0, 0, 4, spring + 2, shade);
|
|
240
|
+
rect(g, width - 4, 0, 4, spring + 2, shade);
|
|
241
|
+
rect(g, Math.round(width / 2) - 2, crown - 3, 4, 4, shade);
|
|
242
|
+
},
|
|
243
|
+
/** D: a timber beam with vines trailing down. */
|
|
244
|
+
[BRIDGE_LOOK.garden]: (g, { width, lit }) => {
|
|
245
|
+
rect(g, 0, 0, width, 5, lit ? "#5a4630" : "#8c6a45");
|
|
246
|
+
rect(g, 0, 5, width, 1, lit ? "#3f3122" : "#6b4f33");
|
|
247
|
+
const vine = lit ? "#2e4a2e" : "#5d8f52";
|
|
248
|
+
const leaf = lit ? "#3a5a36" : "#7aaa66";
|
|
249
|
+
for (let x = 1; x < width - 1; x += 3) {
|
|
250
|
+
const len = 3 + ((x * 13) % 11);
|
|
251
|
+
rect(g, x, 5, 1, len, vine);
|
|
252
|
+
if (len > 7)
|
|
253
|
+
rect(g, x - 1, 3 + len, 3, 2, leaf);
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export { BRIDGE_LOOK, drawBridgeTile, drawsBridgeLook };
|
|
259
|
+
//# sourceMappingURL=skyBridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skyBridge.js","sources":["../../../../src/render/sprites/structure/skyBridge.ts"],"sourcesContent":["import { lobbyFloor } from \"./lobby\";\n\n/**\n * Sky bridge looks (Modern; owner, 2026-11-16: \"let the users choose\"; art\n * picked from the redrawn mockups, 2026-11-17). Each look is drawn as one\n * whole bridge: a frame where it meets each sky lobby, a roof and deck on the\n * lobby's ceiling and floor lines, a pattern spaced to fit the span, and an\n * underside that hangs into the open air below (nothing can stand under a\n * bridge tile, so it never covers a room). The renderer bakes one canvas per\n * tile: tile `i` of an `n`-tile bridge draws the whole bridge shifted left by\n * `i` tiles and clipped to its own cell, so neighboring tiles join into one\n * picture. People are drawn by the crowd layer on top.\n */\n\n/** The catalog's look names (`rules.skyBridge.looks`) this file draws. The\n * plain lobby draws as a lobby tile. */\nexport const BRIDGE_LOOK = { glass: \"Glass Skywalk\", truss: \"Steel Truss\", deco: \"Deco Arcade\", garden: \"Garden Walk\" } as const;\n\n/** Which part of a bridge tile a cell shows: the bridge's own story, or the\n * underside in the open-air cell below it. */\nexport type BridgePart = \"deck\" | \"under\";\n\n/** Whether this file draws the look named `look`; the plain lobby and an\n * unknown name do not. */\nexport function drawsBridgeLook(look: string): boolean {\n return look === BRIDGE_LOOK.glass || look === BRIDGE_LOOK.truss || look === BRIDGE_LOOK.deco || look === BRIDGE_LOOK.garden;\n}\n\n/** The size of one cell and the bridge's lighting, shared by every draw. */\ninterface Bridge {\n /** The whole bridge's width in pixels: `n` cells. */\n width: number;\n /** One cell's width (a tile) and height (a story). */\n w: number;\n h: number;\n /** The span in tiles. */\n n: number;\n lit: boolean;\n}\n\nfunction rect(g: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, c: string): void {\n g.fillStyle = c;\n g.fillRect(x, y, w, h);\n}\n\nfunction line(g: CanvasRenderingContext2D, x0: number, y0: number, x1: number, y1: number, c: string, w = 1): void {\n g.strokeStyle = c;\n g.lineWidth = w;\n g.beginPath();\n g.moveTo(x0, y0);\n g.lineTo(x1, y1);\n g.stroke();\n}\n\n/** `count` evenly spaced points across the bridge, the first at `start`\n * of a step from the left end (0 for joints, 0.5 for bay centers). */\nfunction spaced(width: number, count: number, start: number): number[] {\n const out: number[] = [];\n for (let k = 0; k < count; k++) out.push(Math.round(((k + start) * width) / count));\n return out;\n}\n\n/** How many bays of about `tiles` tiles fit the span, at least one. */\nfunction bays(n: number, tiles: number): number {\n return Math.max(1, Math.round(n / tiles));\n}\n\n/** Draw tile `i` of an `n`-tile bridge in look `look`, part `part`, into a\n * `w` by `h` cell at the origin. */\nexport function drawBridgeTile(g: CanvasRenderingContext2D, look: string, i: number, n: number, lit: boolean, w: number, h: number, part: BridgePart = \"deck\"): void {\n const draw = part === \"deck\" ? DECKS[look] : UNDERS[look];\n if (!draw) return;\n g.save();\n g.beginPath();\n g.rect(0, 0, w, h);\n g.clip();\n g.translate(-i * w, 0);\n draw(g, { width: n * w, w, h, n, lit });\n g.restore();\n}\n\ntype Draw = (g: CanvasRenderingContext2D, b: Bridge) => void;\n\nconst DECKS: Record<string, Draw> = {\n /** A: one shallow glass vault over the whole span, ribs spaced to fit,\n * steel collars at both lobbies, the lobby's floor as its deck. */\n [BRIDGE_LOOK.glass]: (g, { width, h, n, lit }) => {\n const steel = lit ? \"#56647a\" : \"#7d8c9f\";\n rect(g, 0, 4, width, h - 9, lit ? \"rgba(255,206,120,0.75)\" : \"rgba(150,195,230,0.9)\");\n g.fillStyle = lit ? \"rgba(255,214,140,0.35)\" : \"rgba(214,236,250,0.95)\";\n g.beginPath();\n g.moveTo(0, 5);\n g.quadraticCurveTo(width / 2, -3, width, 5);\n g.lineTo(width, 6);\n g.lineTo(0, 6);\n g.fill();\n g.strokeStyle = steel;\n g.lineWidth = 1;\n g.beginPath();\n g.moveTo(0, 5.5);\n g.quadraticCurveTo(width / 2, -2.5, width, 5.5);\n g.stroke();\n const ribs = bays(n, 2);\n for (const x of spaced(width, ribs, 0).slice(1)) rect(g, x, 3, 1, h - 8, steel);\n if (!lit) for (const x of spaced(width, ribs, 0.25)) line(g, x, h - 8, x + 6, 9, \"rgba(240,250,255,0.7)\");\n lobbyFloor(g, 0, width, h, false);\n if (lit) rect(g, 0, h - 1, width, 1, \"#9fd3ff\");\n rect(g, 0, 0, 2, h, steel);\n rect(g, width - 2, 0, 2, h, steel);\n },\n /** B: a Warren truss whose diagonals mirror at the center, its panel count\n * even and fitted to the span, in a deep oxide red. */\n [BRIDGE_LOOK.truss]: (g, { width, h, n, lit }) => {\n const steel = lit ? \"#6a2a24\" : \"#8e3b32\";\n const dark = lit ? \"#3f1915\" : \"#652a24\";\n rect(g, 0, 4, width, h - 10, lit ? \"#3a2e2a\" : \"#ddd3bd\");\n rect(g, 0, 0, width, 4, steel);\n rect(g, 0, h - 9, width, 3, steel);\n rect(g, 0, h - 6, width, 6, dark);\n const panels = trussPanels(n);\n const joints = spaced(width, panels, 0);\n joints.push(width);\n for (let k = 0; k < panels; k++) {\n const [a, b] = [joints[k], joints[k + 1]];\n if (k < panels / 2) line(g, a, h - 8, b, 2, steel, 2);\n else line(g, a, 2, b, h - 8, steel, 2);\n if (k > 0) rect(g, a - 1, 2, 2, h - 10, steel);\n if (lit) rect(g, Math.round((a + b) / 2) - 1, 6, 3, 2, \"#ffd98a\");\n }\n for (let x = 3; x < width - 2; x += 5) rect(g, x, 1, 1, 1, lit ? \"#c98b82\" : \"#efc0b8\");\n rect(g, 0, 0, 3, h - 6, dark);\n rect(g, width - 3, 0, 3, h - 6, dark);\n },\n /** C: a stone gallery in the tower's tan, arched windows spaced to fit, a\n * pier at each lobby and a keystone lamp at the center. */\n [BRIDGE_LOOK.deco]: (g, { width, h, n, lit }) => {\n const stone = lit ? \"#6d6656\" : \"#cbbf9f\";\n const shade = lit ? \"#4a4537\" : \"#a39470\";\n rect(g, 0, 0, width, h, stone);\n rect(g, 0, 0, width, 4, shade);\n rect(g, 0, 4, width, 1, stone);\n rect(g, 0, h - 6, width, 6, shade);\n const count = bays(n, 2.5);\n const step = width / count;\n const r = Math.max(2, Math.min(step / 2 - 3, 8));\n for (const cx of spaced(width, count, 0.5)) {\n g.fillStyle = lit ? \"#f2cf7c\" : \"#86a8c8\";\n g.beginPath();\n g.moveTo(cx - r, h - 8);\n g.lineTo(cx - r, 15);\n g.arc(cx, 15, r, Math.PI, 0);\n g.lineTo(cx + r, h - 8);\n g.fill();\n rect(g, cx, 13, 1, h - 21, shade);\n rect(g, cx - 1, 5, 3, 2, shade);\n }\n rect(g, 0, 0, 4, h, shade);\n rect(g, width - 4, 0, 4, h, shade);\n rect(g, Math.round(width / 2) - 2, 0, 4, 4, lit ? \"#ffe7a3\" : \"#e6dcc2\");\n },\n /** D: a pergola walk with posts spaced to fit, vines, a low glass rail and\n * planter trees spaced along the span. */\n [BRIDGE_LOOK.garden]: (g, { width, h, n, lit }) => {\n const wood = lit ? \"#5a4630\" : \"#8c6a45\";\n rect(g, 0, 4, width, h - 9, lit ? \"#26302a\" : \"#e3eadb\");\n rect(g, 0, h - 16, width, 11, lit ? \"rgba(160,200,255,0.22)\" : \"rgba(200,225,240,0.75)\");\n lobbyFloor(g, 0, width, h, false);\n rect(g, 0, 2, width, 3, wood);\n const posts = bays(n, 2);\n for (const x of spaced(width, posts, 0)) rect(g, x, 2, 2, h - 7, wood);\n rect(g, width - 2, 2, 2, h - 7, wood);\n const vine = lit ? \"#2e4a2e\" : \"#5d8f52\";\n for (let x = 0; x < width; x += 3) rect(g, x, 5, 2, 2 + ((x * 7) % 5), vine);\n for (const cx of spaced(width, bays(n, 5.5), 0.5)) {\n rect(g, cx - 6, h - 13, 12, 8, lit ? \"#4a3a2a\" : \"#7b5b3d\");\n rect(g, cx - 1, h - 19, 2, 6, lit ? \"#3a2a1a\" : \"#5a3d22\");\n g.fillStyle = lit ? \"#1f3b22\" : \"#4f8a45\";\n g.beginPath();\n g.arc(cx, h - 25, 7, 0, Math.PI * 2);\n g.fill();\n }\n if (lit) for (const x of spaced(width, posts, 0.5)) rect(g, x, h - 8, 2, 2, \"#ffe7a3\");\n },\n};\n\n/** The truss's panel count: even, so the diagonals mirror at the center,\n * and about two tiles a panel. */\nfunction trussPanels(n: number): number {\n return Math.max(2, 2 * Math.round(n / 4));\n}\n\nconst UNDERS: Record<string, Draw> = {\n /** A: a slim steel belly girder that dips toward the middle. */\n [BRIDGE_LOOK.glass]: (g, { width, n, lit }) => {\n const steel = lit ? \"#3c4554\" : \"#6b7787\";\n const edge = lit ? \"#9fd3ff\" : \"#9aa7b6\";\n const dip = Math.min(16, 5 + n * 0.5);\n g.fillStyle = steel;\n g.beginPath();\n g.moveTo(0, 0);\n g.lineTo(width, 0);\n g.lineTo(width, 5);\n g.quadraticCurveTo(width / 2, 2 * dip, 0, 5);\n g.fill();\n g.strokeStyle = edge;\n g.lineWidth = 1;\n g.beginPath();\n g.moveTo(width, 5.5);\n g.quadraticCurveTo(width / 2, 2 * dip + 0.5, 0, 5.5);\n g.stroke();\n for (const x of spaced(width, bays(n, 2), 0).slice(1)) rect(g, x, 0, 1, 4, edge);\n },\n /** B: V braces down to a bottom chord, with a knee brace into each tower. */\n [BRIDGE_LOOK.truss]: (g, { width, n, lit }) => {\n const steel = lit ? \"#6a2a24\" : \"#8e3b32\";\n const dark = lit ? \"#3f1915\" : \"#652a24\";\n const depth = 13;\n const panels = trussPanels(n);\n const joints = spaced(width, panels, 0);\n joints.push(width);\n for (let k = 0; k < panels; k++) {\n const [a, b] = [joints[k], joints[k + 1]];\n const m = (a + b) / 2;\n line(g, a, 0, m, depth, steel, 2);\n line(g, m, depth, b, 0, steel, 2);\n }\n const half = (joints[1] - joints[0]) / 2;\n rect(g, half, depth - 1, width - 2 * half, 3, dark);\n line(g, 0, depth + 11, half, depth, steel, 2);\n line(g, width, depth + 11, width - half, depth, steel, 2);\n },\n /** C: a shallow stone arch springing from the two end piers. */\n [BRIDGE_LOOK.deco]: (g, { width, lit }) => {\n const stone = lit ? \"#6d6656\" : \"#cbbf9f\";\n const shade = lit ? \"#4a4537\" : \"#a39470\";\n const spring = 24;\n const crown = 7;\n g.fillStyle = stone;\n g.beginPath();\n g.moveTo(0, 0);\n g.lineTo(width, 0);\n g.lineTo(width, spring);\n g.quadraticCurveTo(width / 2, 2 * crown - spring, 0, spring);\n g.fill();\n g.strokeStyle = shade;\n g.lineWidth = 2;\n g.beginPath();\n g.moveTo(width, spring);\n g.quadraticCurveTo(width / 2, 2 * crown - spring, 0, spring);\n g.stroke();\n rect(g, 0, 0, 4, spring + 2, shade);\n rect(g, width - 4, 0, 4, spring + 2, shade);\n rect(g, Math.round(width / 2) - 2, crown - 3, 4, 4, shade);\n },\n /** D: a timber beam with vines trailing down. */\n [BRIDGE_LOOK.garden]: (g, { width, lit }) => {\n rect(g, 0, 0, width, 5, lit ? \"#5a4630\" : \"#8c6a45\");\n rect(g, 0, 5, width, 1, lit ? \"#3f3122\" : \"#6b4f33\");\n const vine = lit ? \"#2e4a2e\" : \"#5d8f52\";\n const leaf = lit ? \"#3a5a36\" : \"#7aaa66\";\n for (let x = 1; x < width - 1; x += 3) {\n const len = 3 + ((x * 13) % 11);\n rect(g, x, 5, 1, len, vine);\n if (len > 7) rect(g, x - 1, 3 + len, 3, 2, leaf);\n }\n },\n};\n"],"names":[],"mappings":";;AAEA;;;;;;;;;;AAUG;AAEH;AACyC;MAC5B,WAAW,GAAG,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa;AAMrH;AAC2B;AACrB,SAAU,eAAe,CAAC,IAAY,EAAA;IAC1C,OAAO,IAAI,KAAK,WAAW,CAAC,KAAK,IAAI,IAAI,KA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AG,SAAS,GAAG,SAAS,CAAC;QACpD,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,GAAG,SAAS,GAAG,SAAS,CAAC;QACpD,MAAM,IAAI,GAAG,GAAG,GAAG,SAAS,GAAG,SAAS;QACxC,MAAM,IAAI,GAAG,GAAG,GAAG,SAAS,GAAG,SAAS;AACxC,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;AACrC,YAAA,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC;AAC/B,YAAA,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC;YAC3B,IAAI,GAAG,GAAG,CAAC;AAAE,gBAAA,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC;QAClD;IACF,CAAC;CACF;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DrawCtx } from "../common";
|
|
2
|
+
import { type EntranceKind } from "./lobby";
|
|
3
|
+
/** One slice of a tall lobby, `h` covering all its `stories`. `variant` is a
|
|
4
|
+
* pattern slot (`lobbyVariant`) or an entrance sentinel; a one-story lobby
|
|
5
|
+
* draws as the one-story tile. */
|
|
6
|
+
export declare function drawTallLobbyTile(d: DrawCtx, x: number, y: number, w: number, h: number, variant: number, ground: boolean, stories: number): void;
|
|
7
|
+
/** The ground entrance slice of a tall lobby, `h` covering all its stories. */
|
|
8
|
+
export declare function drawTallLobbyEntrance(d: DrawCtx, kind: EntranceKind, x: number, y: number, w: number, h: number, stories: number): void;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { layerBreak, layerShell } from '../../pixelSprites/layers.js';
|
|
2
|
+
import { hallGlass, globePendants, archedWindow } from './tallLobbyPieces.js';
|
|
3
|
+
import { chandelier, drawLobbyTile, LOBBY_VARIANTS, lobbyFloor, fluteColumn, consolePanel, planter, framedPrint, ENTRANCE_SERVICE, ENTRANCE_GRAND_RIGHT, ENTRANCE_GRAND_SOLO, ENTRANCE_GRAND_LEFT } from './lobby.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Tall lobbies (#308): one slice of a lobby two or three stories high, drawn
|
|
7
|
+
* as one open hall over all its `stories`. There is no floor between the
|
|
8
|
+
* stories: one back wall (veined marble downstairs, a skyline curtain wall in
|
|
9
|
+
* a sky lobby) runs from the gilded cornice at the top to the polished floor
|
|
10
|
+
* at the bottom. Nothing is stretched: the tall pieces (columns, arched
|
|
11
|
+
* windows, the curtain wall, the chandelier's chain, the pendants' cords) are
|
|
12
|
+
* drawn at their real height, and the furniture (the console and its lamp,
|
|
13
|
+
* the bench, the planter) stands on the floor at the one-story lobby's size.
|
|
14
|
+
* Downstairs the pattern repeats every four tiles: a column, a wide arched
|
|
15
|
+
* window over two tiles, and a chandelier on a long chain.
|
|
16
|
+
*
|
|
17
|
+
* Over the entrance the doors are the one-story entrance itself, with a tall
|
|
18
|
+
* glass wall above the grand doors and plain marble above the service door.
|
|
19
|
+
*
|
|
20
|
+
* Every slice is drawn whole and the renderer cuts it into one-story cells,
|
|
21
|
+
* so adjacent slices line up into one continuous hall.
|
|
22
|
+
*/
|
|
23
|
+
/** The hall's back wall and the gilded cornice along its ceiling. */
|
|
24
|
+
function hallShell(d, x0, y0, ww, floorTop, ground, seed) {
|
|
25
|
+
const { ctx } = d;
|
|
26
|
+
const hh = floorTop - y0;
|
|
27
|
+
if (ground) {
|
|
28
|
+
const g = ctx.createLinearGradient(0, y0, 0, floorTop);
|
|
29
|
+
g.addColorStop(0, "#F1E8CE");
|
|
30
|
+
g.addColorStop(1, "#E3D7B3");
|
|
31
|
+
ctx.fillStyle = g;
|
|
32
|
+
ctx.fillRect(x0, y0, ww, hh);
|
|
33
|
+
ctx.fillStyle = "rgba(120,100,60,0.12)"; // faint veins, as in the one-story lobby
|
|
34
|
+
ctx.fillRect(x0 + 3, y0 + 6, 1, hh - 11);
|
|
35
|
+
ctx.fillRect(x0 + ww - 4, y0 + 10, 1, hh - 15);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
ctx.fillStyle = "#C4BCA8";
|
|
39
|
+
ctx.fillRect(x0, y0, ww, hh);
|
|
40
|
+
hallGlass(d, x0 + 1, y0 + 5, ww - 2, hh - 8, seed);
|
|
41
|
+
}
|
|
42
|
+
cornice(ctx, x0, y0, ww);
|
|
43
|
+
}
|
|
44
|
+
function cornice(ctx, x0, y0, ww) {
|
|
45
|
+
ctx.fillStyle = "#C9A24B";
|
|
46
|
+
ctx.fillRect(x0, y0, ww, 3);
|
|
47
|
+
ctx.fillStyle = "#8A7430";
|
|
48
|
+
ctx.fillRect(x0, y0 + 3, ww, 1);
|
|
49
|
+
}
|
|
50
|
+
/** The hall's chandelier: the one-story lobby's chandelier on a long chain,
|
|
51
|
+
* hung from the ceiling into the open space. */
|
|
52
|
+
function hallChandelier(d, cx, y0, hang, ww) {
|
|
53
|
+
const { ctx, lit } = d;
|
|
54
|
+
ctx.fillStyle = "#8A7430";
|
|
55
|
+
ctx.fillRect(cx, y0 + 3, 1, hang);
|
|
56
|
+
chandelier(ctx, cx, y0 + hang, lit, ww);
|
|
57
|
+
}
|
|
58
|
+
/** One slice of a tall lobby, `h` covering all its `stories`. `variant` is a
|
|
59
|
+
* pattern slot (`lobbyVariant`) or an entrance sentinel; a one-story lobby
|
|
60
|
+
* draws as the one-story tile. */
|
|
61
|
+
function drawTallLobbyTile(d, x, y, w, h, variant, ground, stories) {
|
|
62
|
+
const s = Math.max(1, Math.min(3, Math.trunc(stories) || 1));
|
|
63
|
+
if (s === 1)
|
|
64
|
+
return drawLobbyTile(d, x, y, w, h, variant, ground);
|
|
65
|
+
const { ctx, lit } = d;
|
|
66
|
+
const x0 = Math.round(x);
|
|
67
|
+
const y0 = Math.round(y);
|
|
68
|
+
const ww = Math.max(1, Math.round(w));
|
|
69
|
+
const storyH = Math.round(Math.max(1, Math.round(h)) / s);
|
|
70
|
+
const bottom = y0 + s * storyH;
|
|
71
|
+
const lowY = bottom - storyH; // top of the story people walk on
|
|
72
|
+
const floorTop = bottom - 5;
|
|
73
|
+
const cx = x0 + Math.floor(ww / 2);
|
|
74
|
+
if (variant >= LOBBY_VARIANTS)
|
|
75
|
+
return tallEntrance(d, x0, y0, ww, storyH, lowY, floorTop, variant);
|
|
76
|
+
hallShell(d, x0, y0, ww, floorTop, ground, variant + 1);
|
|
77
|
+
lobbyFloor(ctx, x0, ww, bottom, ground);
|
|
78
|
+
if (variant === 0) {
|
|
79
|
+
layerBreak(ctx);
|
|
80
|
+
fluteColumn(ctx, cx, y0, bottom - y0, ground); // one column, ceiling to floor
|
|
81
|
+
}
|
|
82
|
+
else if (variant === 1) {
|
|
83
|
+
if (ground)
|
|
84
|
+
wideWindowHalf(d, x0, y0, ww, lowY, false);
|
|
85
|
+
consolePanel(ctx, x0, ww, lowY, floorTop, ground, lit); // marks its own split
|
|
86
|
+
}
|
|
87
|
+
else if (variant === 2) {
|
|
88
|
+
if (ground)
|
|
89
|
+
wideWindowHalf(d, x0, y0, ww, lowY, true);
|
|
90
|
+
layerBreak(ctx);
|
|
91
|
+
if (!ground)
|
|
92
|
+
globePendants(d, cx, y0 + 4, lowY + Math.round(storyH * 0.35));
|
|
93
|
+
planter(ctx, cx, floorTop);
|
|
94
|
+
}
|
|
95
|
+
else if (variant === 3) {
|
|
96
|
+
if (ground) {
|
|
97
|
+
layerBreak(ctx);
|
|
98
|
+
hallChandelier(d, cx, y0, Math.round((bottom - y0) * 0.3), ww);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
framedPrint(ctx, cx, lowY);
|
|
102
|
+
layerBreak(ctx);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
/** One half of the ground hall's wide arched window, which spans the second
|
|
107
|
+
* and third pattern slots: the window is drawn whole, two tiles wide, and
|
|
108
|
+
* clipped to this tile, so the two halves meet at the shared mullion. */
|
|
109
|
+
function wideWindowHalf(d, x0, y0, ww, lowY, right) {
|
|
110
|
+
const { ctx } = d;
|
|
111
|
+
ctx.save();
|
|
112
|
+
ctx.beginPath();
|
|
113
|
+
ctx.rect(x0, y0, ww, lowY + 4 - y0);
|
|
114
|
+
ctx.clip();
|
|
115
|
+
archedWindow(d, (right ? x0 - ww : x0) + 1, y0 + 7, 2 * ww - 2, lowY + 4 - (y0 + 7), true, y0);
|
|
116
|
+
ctx.restore();
|
|
117
|
+
}
|
|
118
|
+
/** The ground entrance slice of a tall lobby: the one-story entrance on the
|
|
119
|
+
* bottom story, under a tall glass wall (grand doors) or plain marble
|
|
120
|
+
* (service door) that runs up to the hall's cornice. */
|
|
121
|
+
function tallEntrance(d, x0, y0, ww, storyH, lowY, floorTop, variant) {
|
|
122
|
+
const { ctx, lit } = d;
|
|
123
|
+
const grand = variant !== ENTRANCE_SERVICE;
|
|
124
|
+
const upper = () => {
|
|
125
|
+
if (grand) {
|
|
126
|
+
ctx.fillStyle = lit ? "#2A3350" : "#AFC8DE"; // the entrance's sky, carried up
|
|
127
|
+
ctx.fillRect(x0, y0 + 4, ww, lowY - y0);
|
|
128
|
+
// Mullions on the composite facade's 5-pixel pitch, so the two grand
|
|
129
|
+
// halves line up; the right half sits one tile into the composite.
|
|
130
|
+
const off = variant === ENTRANCE_GRAND_RIGHT ? ww : 0;
|
|
131
|
+
ctx.fillStyle = lit ? "rgba(58,80,104,0.6)" : "rgba(90,126,154,0.6)";
|
|
132
|
+
for (let k = 0; k < ww; k++)
|
|
133
|
+
if ((k + off) % 5 === 0)
|
|
134
|
+
ctx.fillRect(x0 + k, y0 + 4, 1, lowY - y0);
|
|
135
|
+
for (let ty = y0 + 18; ty < lowY; ty += 15)
|
|
136
|
+
ctx.fillRect(x0, ty, ww, 1);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
const g = ctx.createLinearGradient(0, y0, 0, floorTop);
|
|
140
|
+
g.addColorStop(0, "#F1E8CE");
|
|
141
|
+
g.addColorStop(1, "#E3D7B3");
|
|
142
|
+
ctx.fillStyle = g;
|
|
143
|
+
ctx.fillRect(x0, y0, ww, lowY + 4 - y0);
|
|
144
|
+
}
|
|
145
|
+
cornice(ctx, x0, y0, ww);
|
|
146
|
+
};
|
|
147
|
+
upper();
|
|
148
|
+
drawLobbyTile(d, x0, lowY, ww, storyH, variant, true);
|
|
149
|
+
// The one-story entrance has its own cornice; in the hall it is open space,
|
|
150
|
+
// so the wall above carries on over it.
|
|
151
|
+
layerShell(ctx, upper);
|
|
152
|
+
}
|
|
153
|
+
/** Entrance kind to its sentinel variant, for {@link drawTallLobbyEntrance}. */
|
|
154
|
+
const ENTRANCE_VARIANT = {
|
|
155
|
+
"grand-left": ENTRANCE_GRAND_LEFT,
|
|
156
|
+
"grand-right": ENTRANCE_GRAND_RIGHT,
|
|
157
|
+
"grand-solo": ENTRANCE_GRAND_SOLO,
|
|
158
|
+
service: ENTRANCE_SERVICE,
|
|
159
|
+
};
|
|
160
|
+
/** The ground entrance slice of a tall lobby, `h` covering all its stories. */
|
|
161
|
+
function drawTallLobbyEntrance(d, kind, x, y, w, h, stories) {
|
|
162
|
+
drawTallLobbyTile(d, x, y, w, h, ENTRANCE_VARIANT[kind] ?? ENTRANCE_SERVICE, true, stories);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export { drawTallLobbyEntrance, drawTallLobbyTile };
|
|
166
|
+
//# sourceMappingURL=tallLobby.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tallLobby.js","sources":["../../../../src/render/sprites/structure/tallLobby.ts"],"sourcesContent":["import type { DrawCtx } from \"../common\";\nimport { layerBreak, layerShell } from \"../../pixelSprites/layers\";\nimport { archedWindow, globePendants, hallGlass } from \"./tallLobbyPieces\";\nimport {\n chandelier,\n consolePanel,\n drawLobbyTile,\n ENTRANCE_GRAND_LEFT,\n ENTRANCE_GRAND_RIGHT,\n ENTRANCE_GRAND_SOLO,\n type EntranceKind,\n ENTRANCE_SERVICE,\n fluteColumn,\n framedPrint,\n LOBBY_VARIANTS,\n lobbyFloor,\n planter,\n} from \"./lobby\";\n\n/**\n * Tall lobbies (#308): one slice of a lobby two or three stories high, drawn\n * as one open hall over all its `stories`. There is no floor between the\n * stories: one back wall (veined marble downstairs, a skyline curtain wall in\n * a sky lobby) runs from the gilded cornice at the top to the polished floor\n * at the bottom. Nothing is stretched: the tall pieces (columns, arched\n * windows, the curtain wall, the chandelier's chain, the pendants' cords) are\n * drawn at their real height, and the furniture (the console and its lamp,\n * the bench, the planter) stands on the floor at the one-story lobby's size.\n * Downstairs the pattern repeats every four tiles: a column, a wide arched\n * window over two tiles, and a chandelier on a long chain.\n *\n * Over the entrance the doors are the one-story entrance itself, with a tall\n * glass wall above the grand doors and plain marble above the service door.\n *\n * Every slice is drawn whole and the renderer cuts it into one-story cells,\n * so adjacent slices line up into one continuous hall.\n */\n\n/** The hall's back wall and the gilded cornice along its ceiling. */\nfunction hallShell(d: DrawCtx, x0: number, y0: number, ww: number, floorTop: number, ground: boolean, seed: number): void {\n const { ctx } = d;\n const hh = floorTop - y0;\n if (ground) {\n const g = ctx.createLinearGradient(0, y0, 0, floorTop);\n g.addColorStop(0, \"#F1E8CE\");\n g.addColorStop(1, \"#E3D7B3\");\n ctx.fillStyle = g;\n ctx.fillRect(x0, y0, ww, hh);\n ctx.fillStyle = \"rgba(120,100,60,0.12)\"; // faint veins, as in the one-story lobby\n ctx.fillRect(x0 + 3, y0 + 6, 1, hh - 11);\n ctx.fillRect(x0 + ww - 4, y0 + 10, 1, hh - 15);\n } else {\n ctx.fillStyle = \"#C4BCA8\";\n ctx.fillRect(x0, y0, ww, hh);\n hallGlass(d, x0 + 1, y0 + 5, ww - 2, hh - 8, seed);\n }\n cornice(ctx, x0, y0, ww);\n}\n\nfunction cornice(ctx: CanvasRenderingContext2D, x0: number, y0: number, ww: number): void {\n ctx.fillStyle = \"#C9A24B\";\n ctx.fillRect(x0, y0, ww, 3);\n ctx.fillStyle = \"#8A7430\";\n ctx.fillRect(x0, y0 + 3, ww, 1);\n}\n\n/** The hall's chandelier: the one-story lobby's chandelier on a long chain,\n * hung from the ceiling into the open space. */\nfunction hallChandelier(d: DrawCtx, cx: number, y0: number, hang: number, ww: number): void {\n const { ctx, lit } = d;\n ctx.fillStyle = \"#8A7430\";\n ctx.fillRect(cx, y0 + 3, 1, hang);\n chandelier(ctx, cx, y0 + hang, lit, ww);\n}\n\n/** One slice of a tall lobby, `h` covering all its `stories`. `variant` is a\n * pattern slot (`lobbyVariant`) or an entrance sentinel; a one-story lobby\n * draws as the one-story tile. */\nexport function drawTallLobbyTile(\n d: DrawCtx,\n x: number,\n y: number,\n w: number,\n h: number,\n variant: number,\n ground: boolean,\n stories: number,\n): void {\n const s = Math.max(1, Math.min(3, Math.trunc(stories) || 1));\n if (s === 1) return drawLobbyTile(d, x, y, w, h, variant, ground);\n const { ctx, lit } = d;\n const x0 = Math.round(x);\n const y0 = Math.round(y);\n const ww = Math.max(1, Math.round(w));\n const storyH = Math.round(Math.max(1, Math.round(h)) / s);\n const bottom = y0 + s * storyH;\n const lowY = bottom - storyH; // top of the story people walk on\n const floorTop = bottom - 5;\n const cx = x0 + Math.floor(ww / 2);\n if (variant >= LOBBY_VARIANTS) return tallEntrance(d, x0, y0, ww, storyH, lowY, floorTop, variant);\n hallShell(d, x0, y0, ww, floorTop, ground, variant + 1);\n lobbyFloor(ctx, x0, ww, bottom, ground);\n if (variant === 0) {\n layerBreak(ctx);\n fluteColumn(ctx, cx, y0, bottom - y0, ground); // one column, ceiling to floor\n } else if (variant === 1) {\n if (ground) wideWindowHalf(d, x0, y0, ww, lowY, false);\n consolePanel(ctx, x0, ww, lowY, floorTop, ground, lit); // marks its own split\n } else if (variant === 2) {\n if (ground) wideWindowHalf(d, x0, y0, ww, lowY, true);\n layerBreak(ctx);\n if (!ground) globePendants(d, cx, y0 + 4, lowY + Math.round(storyH * 0.35));\n planter(ctx, cx, floorTop);\n } else if (variant === 3) {\n if (ground) {\n layerBreak(ctx);\n hallChandelier(d, cx, y0, Math.round((bottom - y0) * 0.3), ww);\n } else {\n framedPrint(ctx, cx, lowY);\n layerBreak(ctx);\n }\n }\n}\n\n/** One half of the ground hall's wide arched window, which spans the second\n * and third pattern slots: the window is drawn whole, two tiles wide, and\n * clipped to this tile, so the two halves meet at the shared mullion. */\nfunction wideWindowHalf(d: DrawCtx, x0: number, y0: number, ww: number, lowY: number, right: boolean): void {\n const { ctx } = d;\n ctx.save();\n ctx.beginPath();\n ctx.rect(x0, y0, ww, lowY + 4 - y0);\n ctx.clip();\n archedWindow(d, (right ? x0 - ww : x0) + 1, y0 + 7, 2 * ww - 2, lowY + 4 - (y0 + 7), true, y0);\n ctx.restore();\n}\n\n/** The ground entrance slice of a tall lobby: the one-story entrance on the\n * bottom story, under a tall glass wall (grand doors) or plain marble\n * (service door) that runs up to the hall's cornice. */\nfunction tallEntrance(d: DrawCtx, x0: number, y0: number, ww: number, storyH: number, lowY: number, floorTop: number, variant: number): void {\n const { ctx, lit } = d;\n const grand = variant !== ENTRANCE_SERVICE;\n const upper = (): void => {\n if (grand) {\n ctx.fillStyle = lit ? \"#2A3350\" : \"#AFC8DE\"; // the entrance's sky, carried up\n ctx.fillRect(x0, y0 + 4, ww, lowY - y0);\n // Mullions on the composite facade's 5-pixel pitch, so the two grand\n // halves line up; the right half sits one tile into the composite.\n const off = variant === ENTRANCE_GRAND_RIGHT ? ww : 0;\n ctx.fillStyle = lit ? \"rgba(58,80,104,0.6)\" : \"rgba(90,126,154,0.6)\";\n for (let k = 0; k < ww; k++) if ((k + off) % 5 === 0) ctx.fillRect(x0 + k, y0 + 4, 1, lowY - y0);\n for (let ty = y0 + 18; ty < lowY; ty += 15) ctx.fillRect(x0, ty, ww, 1);\n } else {\n const g = ctx.createLinearGradient(0, y0, 0, floorTop);\n g.addColorStop(0, \"#F1E8CE\");\n g.addColorStop(1, \"#E3D7B3\");\n ctx.fillStyle = g;\n ctx.fillRect(x0, y0, ww, lowY + 4 - y0);\n }\n cornice(ctx, x0, y0, ww);\n };\n upper();\n drawLobbyTile(d, x0, lowY, ww, storyH, variant, true);\n // The one-story entrance has its own cornice; in the hall it is open space,\n // so the wall above carries on over it.\n layerShell(ctx, upper);\n}\n\n/** Entrance kind to its sentinel variant, for {@link drawTallLobbyEntrance}. */\nconst ENTRANCE_VARIANT: Record<EntranceKind, number> = {\n \"grand-left\": ENTRANCE_GRAND_LEFT,\n \"grand-right\": ENTRANCE_GRAND_RIGHT,\n \"grand-solo\": ENTRANCE_GRAND_SOLO,\n service: ENTRANCE_SERVICE,\n};\n\n/** The ground entrance slice of a tall lobby, `h` covering all its stories. */\nexport function drawTallLobbyEntrance(d: DrawCtx, kind: EntranceKind, x: number, y: number, w: number, h: number, stories: number): void {\n drawTallLobbyTile(d, x, y, w, h, ENTRANCE_VARIANT[kind] ?? ENTRANCE_SERVICE, true, stories);\n}\n"],"names":[],"mappings":";;;;AAmBA;;;;;;;;;;;;;;;;;AAiBG;AAEH;AACA,SAAS,SAAS,CAAC,CAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,QAAgB,EAAE,MAAe,EAAE,IAAY,EAAA;AAChH,IAAA,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC;AACjB,IAAA,MAAM,EAAE,GAAG,QAAQ,GAAG,EAAE;IACxB,IAAI,MAAM,EAAE;AACV,QAAA,MAAM,CAAC,GAAG,GAAG,CAAC,oBAAoB,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,QAAQ,CAAC;AACtD,QAAA,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC;AAC5B,QAAA,CAAC,CAAC,YAAY,CAAC,CAAC,EAAE,SAAS,CAAC;AA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AE,SAAS,CAAC;AAC5B,YAAA,GAAG,CAAC,SAAS,GAAG,CAAC;AACjB,YAAA,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;QACzC;QACA,OAAO,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAC1B,IAAA,CAAC;AACD,IAAA,KAAK,EAAE;AACP,IAAA,aAAa,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC;;;AAGrD,IAAA,UAAU,CAAC,GAAG,EAAE,KAAK,CAAC;AACxB;AAEA;AACA,MAAM,gBAAgB,GAAiC;AACrD,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,aAAa,EAAE,oBAAoB;AACnC,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,OAAO,EAAE,gBAAgB;CAC1B;AAED;AACM,SAAU,qBAAqB,CAAC,CAAU,EAAE,IAAkB,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,OAAe,EAAA;IAC/H,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,IAAI,gBAAgB,EAAE,IAAI,EAAE,OAAO,CAAC;AAC7F;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { DrawCtx } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* The tall pieces of a tall lobby's open hall (#308): a glazed arched window,
|
|
4
|
+
* a sky lobby's curtain wall of glass, and globe pendants on long cords. Each
|
|
5
|
+
* is drawn at its real height in the lobby's pixel scale, so the hall gets
|
|
6
|
+
* taller without anything in it stretching.
|
|
7
|
+
*/
|
|
8
|
+
/** A glazed opening with a gold frame and, when `head` is set, a round
|
|
9
|
+
* head: dark warm glass with a few city lights after dark, pale sky by day.
|
|
10
|
+
* A transom bar every story-ish keeps a tall window reading as glazing. */
|
|
11
|
+
export declare function archedWindow(d: DrawCtx, x: number, y: number, w: number, h: number, head: boolean, seed: number): void;
|
|
12
|
+
/** A sky lobby's curtain wall: the one-story skyline glass run the hall's
|
|
13
|
+
* full height, with a transom every fifteen rows so it reads as one tall
|
|
14
|
+
* pane of glazing, not a stack of windows. */
|
|
15
|
+
export declare function hallGlass(d: DrawCtx, x: number, y: number, w: number, h: number, seed: number): void;
|
|
16
|
+
/** Three small globe pendants on cords of different lengths, hung from the
|
|
17
|
+
* hall's ceiling at `top` down toward `bottom`. */
|
|
18
|
+
export declare function globePendants(d: DrawCtx, cx: number, top: number, bottom: number): void;
|