@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":"residential.js","sources":["../../../src/render/pixelSprites/residential.ts"],"sourcesContent":["import type { UnitView } from \"../../simport/view\";\nimport { isLateHour } from \"../lateNight\";\nimport { PAL, ceilingFixture, dado, geoVariant, maybeMirrored, personSeated, roomGlow, roomOccupants, shade, sleeper as sleeperFigure, vacancy, windowView, type RoomCtx } from \"./common\";\nimport { artRow, authoredWidth, screenLength } from \"./artScale\";\nimport { bevelBox, ceilingCap, curtain, downlights, fill, framedArt, glow, interiorWall, plankFloor } from \"./dollhouse\";\nimport { layerBreak, layerEnd } from \"./layers\";\nimport { ROACH_AMBER, ROACH_CHESTNUT, drawRoach } from \"./residential.roaches\";\nimport { CONDO_PICTURES, CONDO_WALLS, HOTEL_WALLS, OFFICE_WALLS, SUITE_WALLS } from \"./residential.looks\";\n\n/**\n * Residential and lodging room art: office, condo, and the three hotel grades,\n * ported to the ratified page-02 \"warm dollhouse\" composition (crown-molding\n * ceiling with downlights, pinstriped warm interior wall, wainscot dado or a\n * shaded lower band, plank floor, a curtained skyline window as the\n * warm-inside-cool-outside seam) over the shared primitives.\n *\n * Every look resolves from the room bake signature only (`u.state`, `d.lit`,\n * `u.width`, `u.occupants`, `u.outForMeal` via `roomOccupants`, and the\n * late-night flag from `d.hour` via `isLateHour`); none reads `d.anim`, so a\n * static room stays cacheable and repaints exactly when its look changes.\n * Seated occupants map one-to-one to `roomOccupants(u)`, capped by the\n * layout's seats and filled in seat order: no ghost people. Integer pixel\n * coordinates only.\n */\n\n/** Floor-band height and floor-line Y for a room rect, matching the build's\n * fy = 38 at the true FLOOR = 44 module height while tracking a shorter rect. */\nfunction floorMetrics(y: number, h: number): { floorH: number; floorY: number } {\n const floorH = Math.max(4, Math.round(h * 0.14));\n return { floorH, floorY: y + h - floorH };\n}\n\n// ---- Office -------------------------------------------------------------\n\n/** One office cubicle: a partition, a chair, a desk with a monitor whose screen\n * lights only when the seat is staffed, and (staffed) a seated worker. The\n * worker draws before the desk front so the desk occludes the seat, reading as\n * \"sitting at the desk\" (build `cube`). Office-local by design. */\nfunction cube(ctx: CanvasRenderingContext2D, dx: number, floorY: number, staffed: boolean, seed: number): void {\n fill(ctx, dx - 2, floorY - 17, 2, 17, \"#5E4028\"); // partition post\n fill(ctx, dx - 2, floorY - 17, 1, 17, \"#7E5A38\");\n fill(ctx, dx + 7, floorY - 10, 5, 10, \"#3A3F4A\"); // chair back\n fill(ctx, dx + 7, floorY - 10, 5, 1, \"#4A5058\");\n if (staffed) personSeated(ctx, dx + 8, floorY - 1, seed);\n fill(ctx, dx, floorY, 18, 1, \"#000000\", 0.16); // desk contact shadow\n bevelBox(ctx, dx, floorY - 6, 18, 3, PAL.oak); // desk top\n fill(ctx, dx, floorY - 3, 18, 3, shade(PAL.oak, -26)); // desk front\n fill(ctx, dx + 1, floorY - 13, 7, 7, \"#20242C\"); // monitor bezel\n fill(ctx, dx + 1, floorY - 13, 7, 1, \"#3A4048\");\n fill(ctx, dx + 2, floorY - 12, 5, 4, staffed ? \"#5FB0DC\" : \"#2E3640\"); // screen: lit when staffed\n if (staffed) fill(ctx, dx + 2, floorY - 12, 5, 1, \"#8FD0EC\");\n fill(ctx, dx + 9, floorY - 7, 6, 1, \"#1A1D24\"); // keyboard\n fill(ctx, dx + 15, floorY - 8, 2, 2, \"#C87A5A\"); // desk cup\n}\n\nexport function office(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void {\n const { ctx } = d;\n if (u.state === \"empty\") return vacancy(ctx, x, y, w, h, \"LEASE\");\n // Geo-seeded variety, geometry first (party law): three true layouts (the\n // classic cubicle row, a meeting room, an executive corner), any of them\n // mirrored, over warm cream walls and olive carpet. Occupancy stays readable\n // in every layout: seats map to the people actually present.\n const wall = OFFICE_WALLS[geoVariant(u, 0, OFFICE_WALLS.length)];\n const filled = roomOccupants(u); // whole people, rounded as the atlas reads them\n const layout = geoVariant(u, 3, 5); // 0-2 cubicle row (anchor weight), 3 meeting, 4 executive\n const flip = geoVariant(u, 4, 2) === 1;\n const { floorH, floorY } = floorMetrics(y, h);\n const railY = floorY - 15;\n // Dollhouse shell (symmetric full-width fills: flip-invariant, drawn once).\n ceilingCap(ctx, x, y, w, PAL.warmWall);\n interiorWall(ctx, x, y + 3, w, railY - (y + 3), wall, true); // butts under the cap, no seam\n downlights(ctx, x, y + 3, w, filled > 0); // over the wall; lit only when someone is working\n fill(ctx, x, railY - 3, w, 1, \"#C4A87A\"); // rail shadow line\n dado(ctx, x, floorY, w, railY, wall);\n plankFloor(ctx, x, floorY, w, floorH, PAL.carpetGreen);\n maybeMirrored(ctx, flip, x, w, () => {\n // Curtained skyline window (flips with the layout): the cool world seam.\n const winTop = y + 7;\n const winH = railY - y - 11;\n const winW = Math.min(23, Math.max(9, Math.round(w * 0.3)));\n const winX = x + w - winW - 4;\n windowView(ctx, winX, winTop, winW, winH, d.lit, geoVariant(u, 5, 997));\n curtain(ctx, winX - 1, winTop, winH, \"#B8845A\");\n // One wall item per office, same slot: clock, whiteboard, or corkboard.\n const item = geoVariant(u, 1, 3);\n if (item === 2) {\n fill(ctx, x + 5, y + 8, 5, 5, PAL.ink); // wall clock\n fill(ctx, x + 6, y + 9, 3, 3, \"#E8E4D0\");\n fill(ctx, x + 7, y + 9, 1, 2, PAL.ink);\n } else {\n framedArt(ctx, x + 5, y + 7, 12, 7, item === 0 ? \"#3E5A6E\" : \"#5A6E4A\");\n }\n // A binder shelf, only when there is clear wall between the item and window.\n if (winX - (x + 20) >= 18) {\n const bsX = winX - 18;\n bevelBox(ctx, bsX, y + 6, 16, 9, \"#6A5240\");\n const spines = [\"#8C3A32\", \"#3E5A8C\", \"#B08A3E\", \"#4A7A4A\", \"#7A5A9E\"];\n for (let k = 0; k < 5; k++) fill(ctx, bsX + 2 + k * 3, y + 8, 2, 5, spines[k]);\n }\n layerBreak(ctx); // the shell ends; furniture and staff follow\n if (layout === 3) {\n // Meeting room: one long table with a laptop and papers, high-back chairs\n // both sides, seated staff up to the chair count, a corner plant.\n // The table is drawn at its screen size, capped at its authored 60px,\n // which is fixed art and keeps its size. Its chairs are counted from the\n // table's AUTHORED length under that same cap, so a capped table seats\n // the five it was drawn for and never a sixth.\n const atw = Math.min(Math.round(authoredWidth(u.width) * 0.6), 60);\n const tw = Math.min(Math.round(w * 0.6), 60);\n const tx = x + Math.round((w - tw) / 2);\n fill(ctx, tx, floorY, tw, 1, \"#000000\", 0.16);\n bevelBox(ctx, tx, floorY - 7, tw, 4, PAL.walnut);\n fill(ctx, tx + 6, floorY - 8, 4, 1, PAL.white); // papers\n fill(ctx, tx + tw - 12, floorY - 8, 4, 1, PAL.white);\n fill(ctx, tx + Math.round(tw / 2) - 3, floorY - 9, 6, 2, PAL.ink); // laptop\n // Chair anchors, counted against the TABLE at the tile its 11px pitch was\n // drawn for. Counting seats off the table's pixel width lost the fifth\n // chair when the tile narrowed, and the fifth worker present went undrawn\n // with it. A table too short for a chair seats none, which is what the\n // per-chair fit check used to do.\n // The minimum step is a chair's drawn width (7px from `sx - 1`), so two\n // chairs never draw through each other.\n const chairs = artRow(atw - 3 - 6, tx + 3, tx + tw - 6, 11, 1, 7);\n const seated = Math.min(filled, chairs.length);\n chairs.forEach((sx, i) => {\n fill(ctx, sx - 1, floorY - 12, 7, 5, \"#3A3F4A\"); // high-back chair\n fill(ctx, sx - 1, floorY - 12, 7, 1, \"#4A5058\");\n if (i < seated) personSeated(ctx, sx, floorY - 1, (u.id * 7 + i * 31) | 0);\n });\n fill(ctx, x + w - 9, floorY - 6, 3, 6, \"#7A5A3A\"); // corner plant\n fill(ctx, x + w - 12, floorY - 13, 8, 8, \"#4E7A3E\");\n fill(ctx, x + w - 10, floorY - 16, 4, 4, PAL.green);\n } else if (layout === 4) {\n // Executive corner: a big desk with a seated executive, a tall binder\n // cabinet, plus two side cubicles so a staffed office still shows people.\n // The layout is one chain of absolute anchors authored to just fill the\n // office at the retired 11px tile, so every anchor is restated at the\n // current one. Left alone, the chain overran the narrower room and the\n // second cubicle's worker dropped out of a fully staffed office. Only the\n // anchors move: the items keep their authored widths, so the chain's slack\n // is 1px rather than the 3 it was drawn with, and the fit check below is\n // what holds it honest if a room narrower than the office ever renders it.\n const ax = (n: number): number => x + Math.round(screenLength(n));\n fill(ctx, ax(6), floorY, 26, 1, \"#000000\", 0.16);\n bevelBox(ctx, ax(6), floorY - 8, 26, 6, \"#71512F\"); // executive desk\n fill(ctx, ax(9), floorY - 15, 8, 7, \"#20242C\"); // monitor bezel\n fill(ctx, ax(10), floorY - 14, 6, 5, filled > 0 ? \"#5FB0DC\" : \"#2E3640\");\n fill(ctx, ax(23), floorY - 17, 7, 17, \"#5A3A2A\"); // high-back leather chair\n fill(ctx, ax(23), floorY - 17, 7, 1, \"#6A4A38\");\n if (filled > 0) personSeated(ctx, ax(22), floorY - 1, (u.id * 7) | 0);\n bevelBox(ctx, ax(36), floorY - 18, 14, 18, \"#5A4436\"); // binder cabinet\n const spines = [\"#8C3A32\", \"#3E5A8C\", \"#B08A3E\", \"#4A7A4A\"];\n for (let r = 0; r < 4; r++) for (let k = 0; k < 4; k++) fill(ctx, ax(38) + k * 3, floorY - 16 + r * 4, 2, 3, spines[(k + r) % 4]);\n for (let i = 0; i < 2; i++) {\n const cx = ax(54 + i * 22);\n if (cx + 18 > x + w - 2) break;\n cube(ctx, cx, floorY, i + 1 < filled, (u.id * 7 + (i + 1) * 31) | 0);\n }\n } else {\n // Classic cubicle row (the anchor layout): a bank of cubicles, staffed in\n // seat order up to the visible occupant count, one with an aisle plant.\n // The bank is counted against the room measured at the authored tile (its\n // width in tiles, which the scale change did not move) and fitted into the\n // screen width, so a narrower tile tightens the aisles instead of retiring\n // a desk and the worker sitting at it. It keeps its own count formula\n // rather than `artRow`'s: this row reserves 12px of room where `artRow`\n // would reserve a whole cubicle, and switching would add a fourth desk the\n // office was never drawn with. The slot then holds its authored 22px\n // wherever that still fits, so the 9-tile office the catalog ships is\n // spaced exactly as it was drawn, and only tightens on the wide rooms\n // where the bank would otherwise run out through the far wall. That leaves\n // the fit check below as a backstop for the single-desk case, which has no\n // pitch to compress.\n // The count is also held to what the screen run can space at a desk's own\n // 18px width, so a room drawn far narrower than its tiles (a corrupt or\n // huge `u.width`, or a preview box) never stacks desks or walks them out\n // past the left wall, and a width that is not a number seats one desk.\n const start = x + 7;\n const last = x + w - 2 - 18; // the furthest a desk can start and still fit\n const authored = Math.floor((authoredWidth(u.width) - 12) / 22);\n const fits = last > start ? Math.floor((last - start) / 18) + 1 : 1;\n const count = Math.max(1, Math.min(Number.isFinite(authored) ? authored : 1, fits));\n const slot = count > 1 ? Math.min(22, (last - start) / (count - 1)) : 22;\n const plantDesk = geoVariant(u, 2, count);\n const seated = Math.min(count, filled);\n for (let i = 0; i < count; i++) {\n const dx = start + Math.round(i * slot);\n if (dx + 18 > x + w - 2) break;\n cube(ctx, dx, floorY, i < seated, (u.id * 7 + i * 31) | 0);\n if (i === plantDesk) {\n fill(ctx, dx + 8, floorY - 9, 3, 2, PAL.green); // aisle plant\n fill(ctx, dx + 8, floorY - 7, 3, 2, \"#8C5A3A\");\n }\n }\n }\n });\n}\n\n// ---- Condo --------------------------------------------------------------\n\n/** Min room width for the absolute-offset dining/study layouts (chairs end at x+77). */\nconst WIDE_LAYOUT_MIN_W = 84;\n\n// prettier-ignore\nexport function condo(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number, walls: string[] = CONDO_WALLS, pics: string[] = CONDO_PICTURES, vacancyLabel = \"SALE\"): void {\n const { ctx } = d;\n if (u.state === \"empty\") return vacancy(ctx, x, y, w, h, vacancyLabel);\n // Residents are \"up\" only when home and not asleep in the small hours.\n const home = roomOccupants(u) > 0 && !isLateHour(d.hour);\n // Home but asleep: the living room's sofa shows a sleeper (#2116).\n const asleepHome = roomOccupants(u) > 0 && isLateHour(d.hour);\n // Geo-seeded variety, geometry first: three true layouts (living, dining with a\n // kitchenette, a study), any of them mirrored, over warm plaster and maple. The\n // standing lamp appears in every layout so the home-glow signal survives.\n const wall = walls[geoVariant(u, 0, walls.length)];\n // Dining/study use absolute offsets so they need WIDE_LAYOUT_MIN_W: the 6-tile\n // Studio drew furniture through its own wall. Narrow rooms take living instead.\n const layout = w >= WIDE_LAYOUT_MIN_W ? geoVariant(u, 3, 5) : geoVariant(u, 3, 3);\n const flip = geoVariant(u, 4, 2) === 1;\n const { floorH, floorY } = floorMetrics(y, h);\n const railY = floorY - 14;\n ceilingCap(ctx, x, y, w, wall);\n interiorWall(ctx, x, y + 3, w, railY - (y + 3), wall, true); // butts under the cap, no seam\n ceilingFixture(ctx, x, y + 2, w, home); // over the wall; glows warm when residents are up\n fill(ctx, x, railY - 3, w, 1, \"#A88A6E\");\n fill(ctx, x, railY, w, floorY - railY, shade(wall, -8)); // shaded lower wall band\n plankFloor(ctx, x, floorY, w, floorH, \"#B98A5A\"); // maple floor\n fill(ctx, x + Math.round(w * 0.28), floorY + 1, Math.round(w * 0.4), 1, \"#8C3A32\", 0.4); // area rug hint\n // The standing floor lamp: shade warms to glowLit when home, drops to glowDim\n // otherwise (empty, or late-night asleep). Drawn in every layout.\n const lamp = (lxRaw: number): void => {\n const lx = Math.min(Math.max(lxRaw, x + 3), x + w - 4); // keep the 7px shade in the room\n fill(ctx, lx, floorY - 18, 1, 18, \"#7A6A50\"); // pole\n fill(ctx, lx - 3, floorY - 21, 7, 4, roomGlow(home)); // shade\n if (home) glow(ctx, lx, floorY - 19, PAL.glowLit);\n };\n maybeMirrored(ctx, flip, x, w, () => {\n // A framed art pair and a curtained skyline window (flip with the layout).\n const picIx = geoVariant(u, 1, pics.length);\n framedArt(ctx, x + 8, y + 8, 11, 8, pics[picIx]);\n framedArt(ctx, x + 23, y + 9, 9, 6, pics[(picIx + 2) % pics.length]);\n const winTop = y + 7;\n const winH = railY - y - 11;\n const winW = Math.min(22, Math.max(9, Math.round(w * 0.24)));\n const winX = x + w - winW - 6;\n windowView(ctx, winX, winTop, winW, winH, d.lit, geoVariant(u, 5, 997));\n curtain(ctx, winX - 1, winTop, winH, \"#9A6E7A\");\n curtain(ctx, winX + winW + 2, winTop, winH, \"#9A6E7A\");\n layerBreak(ctx); // the shell ends; furniture and residents follow\n if (layout === 3) {\n // Dining: kitchenette on the wall, a set table with a candle, two seated\n // diners when home, a sideboard, the standing lamp.\n bevelBox(ctx, x + 6, railY + 1, 26, floorY - railY - 1, \"#B8B4A8\"); // kitchenette\n fill(ctx, x + 9, railY, 2, 1, PAL.ink); // stove burners\n fill(ctx, x + 13, railY, 2, 1, PAL.ink);\n fill(ctx, x + 6, y + Math.round(h * 0.32), 26, 5, \"#9A968A\"); // upper cabinet\n const tx = x + 46;\n fill(ctx, tx, floorY, 26, 1, \"#000000\", 0.16);\n bevelBox(ctx, tx, floorY - 7, 26, 3, PAL.walnut); // dining table\n fill(ctx, tx + 1, floorY - 4, 2, 4, shade(PAL.walnut, -20)); // legs\n fill(ctx, tx + 23, floorY - 4, 2, 4, shade(PAL.walnut, -20));\n fill(ctx, tx + 6, floorY - 8, 4, 1, PAL.white); // place settings\n fill(ctx, tx + 16, floorY - 8, 4, 1, PAL.white);\n fill(ctx, tx + 11, floorY - 10, 2, 3, \"#E8C14A\"); // candle\n if (home) glow(ctx, tx + 12, floorY - 10, PAL.glowLit);\n fill(ctx, tx - 5, floorY - 13, 3, 9, \"#5A3A2A\"); // dining chairs\n fill(ctx, tx + 28, floorY - 13, 3, 9, \"#5A3A2A\");\n if (home) {\n personSeated(ctx, tx - 5, floorY - 1, (u.id * 5) | 0);\n if (roomOccupants(u) > 1) personSeated(ctx, tx + 27, floorY - 1, (u.id * 5 + 11) | 0);\n }\n bevelBox(ctx, x + w - 30, railY + 1, 10, floorY - railY - 1, \"#8A6A4A\"); // sideboard\n lamp(x + w - 12);\n } else if (layout === 4) {\n // Study: a tall bookcase wall, a desk with an open book and a monitor\n // under the lamp, a seated reader when home, a low cabinet.\n bevelBox(ctx, x + 6, railY - 2, 30, floorY - railY + 2, \"#6A5240\"); // bookcase\n const spines = [\"#8C3A32\", \"#3E5A8C\", \"#B08A3E\", \"#4A7A4A\", \"#5A4A6E\"];\n // Rows anchored at railY - 1 so the four 3px spine rows fit within the\n // bookcase (bottom row ends at floorY - 1) instead of spilling 1px onto the floor line.\n for (let r = 0; r < 4; r++) for (let k = 0; k < 9; k++) fill(ctx, x + 9 + k * 3, railY - 1 + r * 4, 2, 3, spines[(k + r) % 5]);\n const dx = x + 48;\n fill(ctx, dx, floorY, 22, 1, \"#000000\", 0.16);\n bevelBox(ctx, dx, floorY - 7, 22, 3, PAL.wood); // desk\n fill(ctx, dx + 6, floorY - 8, 7, 1, PAL.white); // open book\n fill(ctx, dx + 8, floorY - 13, 6, 6, \"#4A5464\"); // monitor\n if (home) personSeated(ctx, dx + 9, floorY - 1, (u.id * 5) | 0);\n bevelBox(ctx, x + w - 28, floorY - 5, 12, 5, \"#5A6E8C\"); // low cabinet\n lamp(dx + 20);\n } else {\n // Living room (the anchor layout): a tufted sofa with a seated resident\n // when home, a coffee table, the standing lamp, and the right-slot swap.\n const sofaW = Math.min(Math.round(w * 0.36), 40);\n const base = x + Math.round(w * 0.15);\n fill(ctx, base, floorY, sofaW, 1, \"#000000\", 0.16);\n bevelBox(ctx, base, floorY - 10, sofaW, 10, \"#7C5A6A\"); // sofa\n fill(ctx, base + 2, floorY - 13, sofaW - 4, 4, \"#8C6A7A\"); // back\n fill(ctx, base, floorY - 13, 3, 13, \"#6A4858\"); // arms\n fill(ctx, base + sofaW - 3, floorY - 13, 3, 13, \"#6A4858\");\n fill(ctx, base + 6, floorY - 12, 8, 3, \"#9A7A8A\"); // cushions\n fill(ctx, base + 20, floorY - 12, 8, 3, \"#9A7A8A\");\n if (home) personSeated(ctx, base + Math.round(sofaW * 0.4), floorY - 1, (u.id * 5) | 0);\n // In the small hours a resident sleeps on the sofa under a blanket.\n else if (asleepHome) sleeperFigure(ctx, base + 3, floorY - 16, sofaW - 10, \"#5A6E8C\", (u.id * 5) | 0); // lying on the seat\n bevelBox(ctx, base + sofaW + 6, floorY - 6, 14, 6, PAL.walnut); // coffee table\n fill(ctx, base + sofaW + 9, floorY - 8, 2, 2, PAL.white); // vase\n lamp(base - 8);\n // Right slot: TV (weighted most common), a low bookshelf, or a plant.\n const slotW = Math.min(Math.round(w * 0.14), 18);\n const slotX = x + w - slotW - 6;\n const rightSlot = geoVariant(u, 2, 5);\n if (rightSlot <= 2) {\n bevelBox(ctx, slotX, floorY - 16, slotW, 13, \"#2A2A32\"); // TV\n fill(ctx, slotX + 1, floorY - 15, slotW - 2, 10, home ? \"#8FB6FF\" : \"#2A2F3A\");\n if (home) fill(ctx, slotX + 2, floorY - 14, slotW - 4, 4, \"#B8D0FF\", 0.5);\n bevelBox(ctx, slotX - 1, floorY - 3, slotW + 2, 3, \"#5A4436\"); // console\n } else if (rightSlot === 3) {\n bevelBox(ctx, slotX, floorY - 11, slotW, 11, \"#6A5240\"); // low bookshelf\n for (let row = 0; row < 2; row++) {\n for (let bx = slotX + 1, k = 0; bx + 2 < slotX + slotW - 1; bx += 3, k++) {\n fill(ctx, bx, floorY - 10 + row * 5, 2, 4, [\"#8C3A32\", \"#3E5A8C\", \"#B08A3E\"][k % 3]);\n }\n }\n } else {\n fill(ctx, slotX + 2, floorY - 5, 5, 5, \"#8C5A3A\"); // window plant\n fill(ctx, slotX + 1, floorY - 10, 3, 5, PAL.green);\n fill(ctx, slotX + 5, floorY - 9, 3, 4, PAL.green);\n }\n }\n });\n}\n\n// ---- Hotel --------------------------------------------------------------\n\nexport function hotel(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number, grade: number): void {\n const { ctx } = d;\n const asleep = u.state === \"asleep\";\n const dirty = u.state === \"dirty\";\n const infested = u.state === \"infested\"; // cockroaches: a worse, heavier-roach dirty\n const soiled = dirty || infested; // both leave the bed rumpled and unmade\n // Unlike office and condo, a hotel has no \"empty\" vacancy shell: a room between\n // guests stays furnished and ready to rent (state \"empty\" reads as ready, with\n // the lamp lit), so there is no vacancy early return here.\n // Rooms of the SAME grade stay uniform (a hotel corridor is identical rooms\n // whose job is broadcasting ready/asleep/dirty), but the GRADES are distinct\n // geometry: a single is one bed, a double is two beds with a real gap, a suite\n // adds a sitting area to a wide bed. Per-unit variety is only the linen wall\n // tint (suite drifts in its own gold band), a bed mirror, and the window seed.\n const wallBand = grade === 3 ? SUITE_WALLS : HOTEL_WALLS;\n const wall = wallBand[geoVariant(u, 0, wallBand.length)];\n // \"Someone is here at all\" gate stays canonical for hotels.\n const lit = !asleep && (u.occupants > 0 || d.lit);\n const wallColor = asleep ? \"#3A3550\" : wall;\n const floorBase = asleep ? \"#4A4560\" : \"#A88A5E\";\n const { floorH, floorY } = floorMetrics(y, h);\n const railY = floorY - 16;\n ceilingCap(ctx, x, y, w, wallColor);\n interiorWall(ctx, x, y + 3, w, railY - (y + 3), wallColor, true); // butts under the cap, no seam\n if (w > 44) ceilingFixture(ctx, x, y + 2, w, lit); // over the wall; ceiling light on the wider grades\n fill(ctx, x, railY - 3, w, 1, shade(wallColor, -16));\n fill(ctx, x, railY, w, floorY - railY, shade(wallColor, -9)); // shaded lower wall band\n plankFloor(ctx, x, floorY, w, floorH, floorBase);\n const flip = geoVariant(u, 1, 2) === 1;\n const winSeed = geoVariant(u, 2, 997);\n // One bed per grade slot: walnut headboard, cream sheet, warm hotelPink duvet\n // and a deep-red foot trim (replacing the old cool mattress), pillow(s), and\n // an asleep sleeper only when the room is actually occupied (no ghost guests).\n const bed = (bx: number, bw: number, pillows: number, sleeper: number): void => {\n const top = floorY - 12;\n fill(ctx, bx, floorY, bw, 1, \"#000000\", 0.18); // contact shadow\n bevelBox(ctx, bx, top - 2, 4, 14, PAL.walnut); // headboard\n fill(ctx, bx + 1, top - 1, 2, 12, \"#8A6640\"); // headboard highlight\n fill(ctx, bx + 4, top, bw - 4, 12, \"#F2ECDE\"); // mattress / turned sheet\n fill(ctx, bx + 4, top, bw - 4, 1, \"#FFFFFF\");\n fill(ctx, bx + 4, top + 4, bw - 4, 7, PAL.hotelPink); // warm duvet\n fill(ctx, bx + 4, top + 4, bw - 4, 1, \"#C98A82\"); // duvet top shade\n fill(ctx, bx + 4, top + 10, bw - 4, 1, \"#8A2A38\"); // foot trim\n const pw = Math.max(5, Math.round(bw * 0.26));\n fill(ctx, bx + 5, top + 1, pw, 3, \"#FBF7EC\"); // pillow\n fill(ctx, bx + 5, top + 1, pw, 1, \"#FFFFFF\");\n if (pillows > 1) fill(ctx, bx + 5, top + 5, 5, 2, \"#FBF7EC\");\n if (asleep && sleeper < roomOccupants(u)) {\n // The guest asleep: their head on the pillow, the body under the duvet.\n sleeperFigure(ctx, bx + 5, top + 1, bw - 10, PAL.hotelRed, (u.id * 7 + sleeper * 31) | 0);\n } else if (soiled) {\n fill(ctx, bx + 5, top + 1, Math.round(bw * 0.8), 7, \"#B8A98A\"); // rumpled bedding\n fill(ctx, bx + 7, top + 2, Math.round(bw * 0.4), 2, \"#A89878\");\n }\n };\n // Suite sitting-area width: one source of truth shared by the bed placement\n // and the sofa/lamp draw so the two can never desync.\n const suiteSofaW = Math.min(Math.round(w * 0.2), 18);\n // Bed positions per grade, in unmirrored room coordinates.\n const beds: { bx: number; bw: number; pillows: number }[] = [];\n if (grade === 1) {\n beds.push({ bx: x + 6, bw: Math.min(Math.round(w * 0.5), 24), pillows: 1 });\n } else if (grade === 2) {\n const bw = Math.min(Math.round((w - 26) / 2), 24); // two beds with a REAL gap\n beds.push({ bx: x + 6, bw, pillows: 1 });\n beds.push({ bx: x + 6 + bw + 8, bw, pillows: 1 });\n } else {\n beds.push({ bx: x + suiteSofaW + 14, bw: Math.min(Math.round(w * 0.42), 40), pillows: 2 }); // suite: sitting area then a wide bed\n }\n maybeMirrored(ctx, flip, x, w, () => {\n if (w > 44) framedArt(ctx, x + Math.round(w * 0.16), y + 7, 12, 8, asleep ? \"#2A2740\" : \"#8FA6B8\");\n const winTop = y + 7;\n const winH = railY - y - 11;\n const winW = w > 80 ? 14 : 9;\n const winX = x + (w > 80 ? w - 20 : w - 13);\n windowView(ctx, winX, winTop, winW, winH, asleep || d.lit, winSeed);\n curtain(ctx, winX - 2, winTop, winH, asleep ? \"#2E2A44\" : \"#B08A6A\");\n layerBreak(ctx); // the shell ends; the beds and the suite's sitting area follow\n if (grade === 3) {\n bevelBox(ctx, x + 5, floorY - 8, suiteSofaW, 8, \"#7C5A6A\"); // sitting sofa\n fill(ctx, x + 5, floorY - 11, suiteSofaW, 3, \"#8C6A7A\");\n fill(ctx, x + 7, floorY - 10, 6, 3, \"#9A7A8A\");\n if (suiteSofaW > 14) fill(ctx, x + 15, floorY - 10, 6, 3, \"#9A7A8A\");\n // Coffee table in front of the sofa (the sitting area, not the bed): the\n // bed starts at x + suiteSofaW + 14 and paints last, so a table placed\n // there would be fully occluded. Keep it inside the sofa's footprint.\n bevelBox(ctx, x + 7, floorY - 4, Math.min(suiteSofaW - 6, 11), 4, PAL.walnut); // coffee table\n fill(ctx, x + suiteSofaW + 8, floorY - 15, 1, 15, \"#7A6A50\"); // floor lamp pole\n fill(ctx, x + suiteSofaW + 6, floorY - 18, 5, 3, roomGlow(lit)); // shade\n if (lit) glow(ctx, x + suiteSofaW + 8, floorY - 16, PAL.glowLit);\n }\n beds.forEach((b, i) => bed(b.bx, b.bw, b.pillows, i));\n if (grade === 2) {\n const gapX = beds[0].bx + beds[0].bw + 2; // shared nightstand between the two beds\n fill(ctx, gapX, floorY - 5, 4, 5, \"#6A4A30\");\n }\n });\n // State cues and their nightstand anchor draw OUTSIDE the mirror so they render\n // pixel-identical on flipped rooms (variation never touches a state cue).\n // asleep / dirty are exclusive unit states. Reserved colors and geometry are\n // unchanged; only the ready lamp gains a 1px ink socket ring (legibility rule).\n fill(ctx, x + w - 6, floorY - 6, 4, 6, \"#6A4A30\"); // nightstand\n if (dirty) {\n fill(ctx, x + w - 6, floorY - 9, 4, 3, \"#D4623A\"); // housekeeping tray (a crew is still coming)\n } else if (!infested && lit) {\n // An infested room is abandoned by housekeeping: no tray, no cozy lamp.\n fill(ctx, x + w - 6, floorY - 6, 4, 1, PAL.ink); // ink socket ring under the bulb\n fill(ctx, x + w - 5, floorY - 11, 2, 5, \"#FFD86A\"); // ready: lamp on\n }\n // Cockroaches (owner-approved redesign). An INFESTED room gets a sickly-green\n // grime wash plus one big \"hero\" roach on the bed and three smaller ones\n // scattered over the bed, wall, and floor, so it reads as infested even zoomed\n // out. A DIRTY room gets a single amber warning roach. All draw here, outside\n // the mirror wrapper, so a flipped room reads identically; flips off the unit\n // id give scatter variety without per-frame motion (rooms are cached sprites).\n // The furniture ends here: the grime wash, the roaches and the \"z\" draw\n // after the furniture ends, so the atlas's depth layers put them on the shell.\n layerEnd(ctx);\n if (infested) {\n const fv = (n: number): number => (geoVariant(u, 30 + n, 2) === 1 ? 1 : -1);\n fill(ctx, x, y, w, h, \"#5A6828\", 0.2); // grime wash\n drawRoach(ctx, x + w * 0.44, floorY - 9, 16, 1, 1, ROACH_CHESTNUT); // hero, on the bed\n drawRoach(ctx, x + w * 0.16, floorY - 2, 10, fv(1), 1, ROACH_CHESTNUT);\n drawRoach(ctx, x + w * 0.72, floorY - 6, 10, fv(2), 1, ROACH_CHESTNUT);\n drawRoach(ctx, x + w * 0.64, y + 11, 9, fv(3), -1, ROACH_CHESTNUT);\n } else if (dirty) {\n const fx = geoVariant(u, 31, 2) === 1 ? 1 : -1;\n drawRoach(ctx, x + w * 0.3, floorY - 8, 11, fx, 1, ROACH_AMBER);\n }\n if (asleep && roomOccupants(u) > 0) {\n // The \"z\" is text, so it draws OUTSIDE the mirror wrapper at a computed\n // position (mirrored text would render backward), floating over the first\n // occupied bed. Its baseline stays exactly where it shipped (floorY - 10),\n // so the asleep cue is pixel-identical regardless of the bed art. It is\n // gated on a real sleeper, matching the sleeper figure, so an empty bed never broadcasts a \"z\".\n const zSrc = beds[0].bx + 8;\n const zx = flip ? 2 * x + w - zSrc - 5 : zSrc;\n ctx.fillStyle = \"rgba(210,220,255,0.9)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,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,GAAG,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,WAAW,CAAC;IACjE;IACA,IAAI,MAAM,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;;;;;;QAMlC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;AAC3B,QAAA,MAAM,EAAE,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI;AAC7C,QAAA,GAAG,CAAC,SAAS,GAAG,uBAAuB;AACvC,QAAA,GAAG,CAAC,IAAI,GAAG,2BAA2B;QACtC,GAAG,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,EAAE,MAAM,GAAG,EAAE,CAAC;IACpC;AACF;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canon wall and picture look tables for the tenant-room kinds, split out of
|
|
3
|
+
* `residential.ts` so the enriched dollhouse draw code has room to grow under
|
|
4
|
+
* the 500-line ceiling without touching this data (mirrors the
|
|
5
|
+
* `food.looks.ts` / `shop.looks.ts` pattern). Imported by `residential.ts`.
|
|
6
|
+
*
|
|
7
|
+
* geoVariant indexes these by array position, so the ORDER and LENGTH are
|
|
8
|
+
* load-bearing: the anchor is listed twice (double-weighted) so the classic
|
|
9
|
+
* look stays the most common, and every wall variant holds within about 10 per
|
|
10
|
+
* RGB channel of its anchor (index 0) so the night scrim and heatmap tint never
|
|
11
|
+
* make a variant ambiguous. Hue varies, luminance holds. No value equals a
|
|
12
|
+
* reserved state color (the residential luminance/reserved guard pins this).
|
|
13
|
+
*/
|
|
14
|
+
/** Office walls: warm cream plaster (art bible pillar: cream or warm-gray, never
|
|
15
|
+
* cool blue-gray). Anchor is the canon `warmWall` cream; the lit/unlit read is
|
|
16
|
+
* carried by the downlights and the empty-at-night scrim, not a wall swap. */
|
|
17
|
+
export declare const OFFICE_WALLS: string[];
|
|
18
|
+
/** Condo walls: warm home plaster, anchor double-weighted, variants within 10
|
|
19
|
+
* per channel (variety comes from the three layouts, not the wall hue). */
|
|
20
|
+
export declare const CONDO_WALLS: string[];
|
|
21
|
+
/** Condo framed-picture subjects: the same frame slot, muted and hue-varied (a
|
|
22
|
+
* portrait, a cityscape, a landscape). These are picture contents, not a wall
|
|
23
|
+
* tint, so they carry hue variety by design; they only have to stay muted and
|
|
24
|
+
* non-reserved. */
|
|
25
|
+
export declare const CONDO_PICTURES: string[];
|
|
26
|
+
/** Hotel linen walls (single / double) and the suite's own warmer gold band, so
|
|
27
|
+
* the grade tell survives. Anchors double-weighted, variants within 10 per
|
|
28
|
+
* channel of each band's anchor. */
|
|
29
|
+
export declare const HOTEL_WALLS: string[];
|
|
30
|
+
export declare const SUITE_WALLS: string[];
|
|
31
|
+
/** Modern rental Studio walls: a soft warm greige, cooler and lighter than the
|
|
32
|
+
* condo's home plaster so a rented studio reads distinct from an owned condo.
|
|
33
|
+
* Anchor double-weighted, variants within 10 per channel; warm, never blue-gray. */
|
|
34
|
+
export declare const STUDIO_WALLS: string[];
|
|
35
|
+
/** Modern rental Apartment walls: a warm taupe, a touch richer than the Studio and
|
|
36
|
+
* distinct from the condo. Anchor double-weighted, variants within 10 per channel. */
|
|
37
|
+
export declare const APARTMENT_WALLS: string[];
|
|
38
|
+
/** Rental framed-picture subjects (Studio & Apartment): muted, hue-varied like the
|
|
39
|
+
* condo pictures (a print, a photo, a plant poster), non-reserved. */
|
|
40
|
+
export declare const RENTAL_PICTURES: string[];
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canon wall and picture look tables for the tenant-room kinds, split out of
|
|
3
|
+
* `residential.ts` so the enriched dollhouse draw code has room to grow under
|
|
4
|
+
* the 500-line ceiling without touching this data (mirrors the
|
|
5
|
+
* `food.looks.ts` / `shop.looks.ts` pattern). Imported by `residential.ts`.
|
|
6
|
+
*
|
|
7
|
+
* geoVariant indexes these by array position, so the ORDER and LENGTH are
|
|
8
|
+
* load-bearing: the anchor is listed twice (double-weighted) so the classic
|
|
9
|
+
* look stays the most common, and every wall variant holds within about 10 per
|
|
10
|
+
* RGB channel of its anchor (index 0) so the night scrim and heatmap tint never
|
|
11
|
+
* make a variant ambiguous. Hue varies, luminance holds. No value equals a
|
|
12
|
+
* reserved state color (the residential luminance/reserved guard pins this).
|
|
13
|
+
*/
|
|
14
|
+
/** Office walls: warm cream plaster (art bible pillar: cream or warm-gray, never
|
|
15
|
+
* cool blue-gray). Anchor is the canon `warmWall` cream; the lit/unlit read is
|
|
16
|
+
* carried by the downlights and the empty-at-night scrim, not a wall swap. */
|
|
17
|
+
const OFFICE_WALLS = ["#ECDFC2", "#ECDFC2", "#ECDCC0", "#E8E0C6", "#EEDCBE"];
|
|
18
|
+
/** Condo walls: warm home plaster, anchor double-weighted, variants within 10
|
|
19
|
+
* per channel (variety comes from the three layouts, not the wall hue). */
|
|
20
|
+
const CONDO_WALLS = ["#C8A88C", "#C8A88C", "#C4A890", "#CCA688", "#C6AC90"];
|
|
21
|
+
/** Condo framed-picture subjects: the same frame slot, muted and hue-varied (a
|
|
22
|
+
* portrait, a cityscape, a landscape). These are picture contents, not a wall
|
|
23
|
+
* tint, so they carry hue variety by design; they only have to stay muted and
|
|
24
|
+
* non-reserved. */
|
|
25
|
+
const CONDO_PICTURES = ["#7A5A44", "#7A5A44", "#5A6E7A", "#6E7A5A"];
|
|
26
|
+
/** Hotel linen walls (single / double) and the suite's own warmer gold band, so
|
|
27
|
+
* the grade tell survives. Anchors double-weighted, variants within 10 per
|
|
28
|
+
* channel of each band's anchor. */
|
|
29
|
+
const HOTEL_WALLS = ["#D8C49A", "#D8C49A", "#DACA9E", "#DCC098"];
|
|
30
|
+
const SUITE_WALLS = ["#C8A86A", "#C8A86A", "#C4AC72", "#CCA462"];
|
|
31
|
+
/** Modern rental Studio walls: a soft warm greige, cooler and lighter than the
|
|
32
|
+
* condo's home plaster so a rented studio reads distinct from an owned condo.
|
|
33
|
+
* Anchor double-weighted, variants within 10 per channel; warm, never blue-gray. */
|
|
34
|
+
const STUDIO_WALLS = ["#C6B6A0", "#C6B6A0", "#C2B6A2", "#CAB49A", "#C4B89E"];
|
|
35
|
+
/** Modern rental Apartment walls: a warm taupe, a touch richer than the Studio and
|
|
36
|
+
* distinct from the condo. Anchor double-weighted, variants within 10 per channel. */
|
|
37
|
+
const APARTMENT_WALLS = ["#CBAF95", "#CBAF95", "#C7AF99", "#CFAD91", "#C9B197"];
|
|
38
|
+
/** Rental framed-picture subjects (Studio & Apartment): muted, hue-varied like the
|
|
39
|
+
* condo pictures (a print, a photo, a plant poster), non-reserved. */
|
|
40
|
+
const RENTAL_PICTURES = ["#6E5A48", "#6E5A48", "#586A76", "#6A7658"];
|
|
41
|
+
|
|
42
|
+
export { APARTMENT_WALLS, CONDO_PICTURES, CONDO_WALLS, HOTEL_WALLS, OFFICE_WALLS, RENTAL_PICTURES, STUDIO_WALLS, SUITE_WALLS };
|
|
43
|
+
//# sourceMappingURL=residential.looks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"residential.looks.js","sources":["../../../src/render/pixelSprites/residential.looks.ts"],"sourcesContent":["/**\n * Canon wall and picture look tables for the tenant-room kinds, split out of\n * `residential.ts` so the enriched dollhouse draw code has room to grow under\n * the 500-line ceiling without touching this data (mirrors the\n * `food.looks.ts` / `shop.looks.ts` pattern). Imported by `residential.ts`.\n *\n * geoVariant indexes these by array position, so the ORDER and LENGTH are\n * load-bearing: the anchor is listed twice (double-weighted) so the classic\n * look stays the most common, and every wall variant holds within about 10 per\n * RGB channel of its anchor (index 0) so the night scrim and heatmap tint never\n * make a variant ambiguous. Hue varies, luminance holds. No value equals a\n * reserved state color (the residential luminance/reserved guard pins this).\n */\n\n/** Office walls: warm cream plaster (art bible pillar: cream or warm-gray, never\n * cool blue-gray). Anchor is the canon `warmWall` cream; the lit/unlit read is\n * carried by the downlights and the empty-at-night scrim, not a wall swap. */\nexport const OFFICE_WALLS = [\"#ECDFC2\", \"#ECDFC2\", \"#ECDCC0\", \"#E8E0C6\", \"#EEDCBE\"];\n\n/** Condo walls: warm home plaster, anchor double-weighted, variants within 10\n * per channel (variety comes from the three layouts, not the wall hue). */\nexport const CONDO_WALLS = [\"#C8A88C\", \"#C8A88C\", \"#C4A890\", \"#CCA688\", \"#C6AC90\"];\n\n/** Condo framed-picture subjects: the same frame slot, muted and hue-varied (a\n * portrait, a cityscape, a landscape). These are picture contents, not a wall\n * tint, so they carry hue variety by design; they only have to stay muted and\n * non-reserved. */\nexport const CONDO_PICTURES = [\"#7A5A44\", \"#7A5A44\", \"#5A6E7A\", \"#6E7A5A\"];\n\n/** Hotel linen walls (single / double) and the suite's own warmer gold band, so\n * the grade tell survives. Anchors double-weighted, variants within 10 per\n * channel of each band's anchor. */\nexport const HOTEL_WALLS = [\"#D8C49A\", \"#D8C49A\", \"#DACA9E\", \"#DCC098\"];\nexport const SUITE_WALLS = [\"#C8A86A\", \"#C8A86A\", \"#C4AC72\", \"#CCA462\"];\n\n/** Modern rental Studio walls: a soft warm greige, cooler and lighter than the\n * condo's home plaster so a rented studio reads distinct from an owned condo.\n * Anchor double-weighted, variants within 10 per channel; warm, never blue-gray. */\nexport const STUDIO_WALLS = [\"#C6B6A0\", \"#C6B6A0\", \"#C2B6A2\", \"#CAB49A\", \"#C4B89E\"];\n\n/** Modern rental Apartment walls: a warm taupe, a touch richer than the Studio and\n * distinct from the condo. Anchor double-weighted, variants within 10 per channel. */\nexport const APARTMENT_WALLS = [\"#CBAF95\", \"#CBAF95\", \"#C7AF99\", \"#CFAD91\", \"#C9B197\"];\n\n/** Rental framed-picture subjects (Studio & Apartment): muted, hue-varied like the\n * condo pictures (a print, a photo, a plant poster), non-reserved. */\nexport const RENTAL_PICTURES = [\"#6E5A48\", \"#6E5A48\", \"#586A76\", \"#6A7658\"];\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;AAYG;AAEH;;AAE+E;AACxE,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAElF;AAC4E;AACrE,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAEjF;;;AAGoB;AACb,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAEzE;;AAEqC;AAC9B,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAC/D,MAAM,WAAW,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAEtE;;AAEqF;AAC9E,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAElF;AACuF;AAChF,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;AAErF;AACuE;AAChE,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The hotel's cockroach decals (a dirty room's warning roach, an infested
|
|
3
|
+
* room's swarm), drawn by `hotel()` in `residential.ts`. Split out of
|
|
4
|
+
* `residential.ts` for the 500-line ceiling.
|
|
5
|
+
*/
|
|
6
|
+
/** Cockroach decal palettes (owner-approved redesign, 2026-07-16). Chestnut for
|
|
7
|
+
* a full infestation (dark and obvious, but clearly a roach); warmer amber for
|
|
8
|
+
* the single dirty-room warning. The pale `rim` keeps them legible over any
|
|
9
|
+
* wall tint. */
|
|
10
|
+
export declare const ROACH_CHESTNUT: {
|
|
11
|
+
dark: string;
|
|
12
|
+
head: string;
|
|
13
|
+
collar: string;
|
|
14
|
+
rim: string;
|
|
15
|
+
sheen: string;
|
|
16
|
+
seam: string;
|
|
17
|
+
leg: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const ROACH_AMBER: {
|
|
20
|
+
dark: string;
|
|
21
|
+
head: string;
|
|
22
|
+
collar: string;
|
|
23
|
+
rim: string;
|
|
24
|
+
sheen: string;
|
|
25
|
+
seam: string;
|
|
26
|
+
leg: string;
|
|
27
|
+
};
|
|
28
|
+
export type RoachPalette = typeof ROACH_CHESTNUT;
|
|
29
|
+
/** A crisp filled pixel ellipse (integer scanlines, no anti-aliasing). Radii are
|
|
30
|
+
* floored to 1 so a degenerate call (`ry <= 0`) can never divide by zero into a
|
|
31
|
+
* NaN rect; every current caller already passes `rx, ry >= 2`. */
|
|
32
|
+
export declare function roachOval(ctx: CanvasRenderingContext2D, cx: number, cy: number, rx: number, ry: number, color: string, alpha?: number): void;
|
|
33
|
+
/** A crisp pixel line (Bresenham) for legs and antennae. */
|
|
34
|
+
export declare function roachLine(ctx: CanvasRenderingContext2D, x0: number, y0: number, x1: number, y1: number, color: string): void;
|
|
35
|
+
/** One cockroach decal, big and unmistakable, drawn crisp and axis-aligned so it
|
|
36
|
+
* stays pixel art. `fx`/`fy` (each +/-1) flip it for scatter variety; `L` is the
|
|
37
|
+
* body length in pixels. Ported from the owner-approved redesign preview. */
|
|
38
|
+
export declare function drawRoach(ctx: CanvasRenderingContext2D, cx: number, cy: number, L: number, fx: number, fy: number, pal: RoachPalette): void;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The hotel's cockroach decals (a dirty room's warning roach, an infested
|
|
3
|
+
* room's swarm), drawn by `hotel()` in `residential.ts`. Split out of
|
|
4
|
+
* `residential.ts` for the 500-line ceiling.
|
|
5
|
+
*/
|
|
6
|
+
/** Cockroach decal palettes (owner-approved redesign, 2026-07-16). Chestnut for
|
|
7
|
+
* a full infestation (dark and obvious, but clearly a roach); warmer amber for
|
|
8
|
+
* the single dirty-room warning. The pale `rim` keeps them legible over any
|
|
9
|
+
* wall tint. */
|
|
10
|
+
const ROACH_CHESTNUT = { dark: "#2A1A0E", head: "#1E1208", collar: "#6A4A28", rim: "#EFE7D2", sheen: "#7A5230", seam: "#140C05", leg: "#160E05" };
|
|
11
|
+
const ROACH_AMBER = { dark: "#4A331A", head: "#341F0E", collar: "#7A5A30", rim: "#EFE7D2", sheen: "#8A6A3A", seam: "#241608", leg: "#241608" };
|
|
12
|
+
/** A crisp filled pixel ellipse (integer scanlines, no anti-aliasing). Radii are
|
|
13
|
+
* floored to 1 so a degenerate call (`ry <= 0`) can never divide by zero into a
|
|
14
|
+
* NaN rect; every current caller already passes `rx, ry >= 2`. */
|
|
15
|
+
function roachOval(ctx, cx, cy, rx, ry, color, alpha = 1) {
|
|
16
|
+
rx = Math.max(1, rx);
|
|
17
|
+
ry = Math.max(1, ry);
|
|
18
|
+
const prevAlpha = ctx.globalAlpha; // restore the caller's alpha, don't assume 1
|
|
19
|
+
ctx.globalAlpha = alpha;
|
|
20
|
+
ctx.fillStyle = color;
|
|
21
|
+
for (let iy = -ry; iy <= ry; iy++) {
|
|
22
|
+
const t = 1 - (iy * iy) / (ry * ry);
|
|
23
|
+
if (t < 0)
|
|
24
|
+
continue;
|
|
25
|
+
const hw = Math.round(rx * Math.sqrt(t));
|
|
26
|
+
ctx.fillRect(Math.round(cx - hw), Math.round(cy + iy), hw * 2 + 1, 1);
|
|
27
|
+
}
|
|
28
|
+
ctx.globalAlpha = prevAlpha;
|
|
29
|
+
}
|
|
30
|
+
/** A crisp pixel line (Bresenham) for legs and antennae. */
|
|
31
|
+
function roachLine(ctx, x0, y0, x1, y1, color) {
|
|
32
|
+
x0 = Math.round(x0);
|
|
33
|
+
y0 = Math.round(y0);
|
|
34
|
+
x1 = Math.round(x1);
|
|
35
|
+
y1 = Math.round(y1);
|
|
36
|
+
const dx = Math.abs(x1 - x0);
|
|
37
|
+
const dy = Math.abs(y1 - y0);
|
|
38
|
+
const sx = x0 < x1 ? 1 : -1;
|
|
39
|
+
const sy = y0 < y1 ? 1 : -1;
|
|
40
|
+
let e = dx - dy;
|
|
41
|
+
ctx.fillStyle = color;
|
|
42
|
+
for (;;) {
|
|
43
|
+
ctx.fillRect(x0, y0, 1, 1);
|
|
44
|
+
if (x0 === x1 && y0 === y1)
|
|
45
|
+
break;
|
|
46
|
+
const e2 = 2 * e;
|
|
47
|
+
if (e2 > -dy) {
|
|
48
|
+
e -= dy;
|
|
49
|
+
x0 += sx;
|
|
50
|
+
}
|
|
51
|
+
if (e2 < dx) {
|
|
52
|
+
e += dx;
|
|
53
|
+
y0 += sy;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/** One cockroach decal, big and unmistakable, drawn crisp and axis-aligned so it
|
|
58
|
+
* stays pixel art. `fx`/`fy` (each +/-1) flip it for scatter variety; `L` is the
|
|
59
|
+
* body length in pixels. Ported from the owner-approved redesign preview. */
|
|
60
|
+
function drawRoach(ctx, cx, cy, L, fx, fy, pal) {
|
|
61
|
+
cx = Math.round(cx);
|
|
62
|
+
cy = Math.round(cy);
|
|
63
|
+
const rx = Math.round(L * 0.34);
|
|
64
|
+
const ry = Math.round(L * 0.5);
|
|
65
|
+
const X = (dx) => cx + fx * dx;
|
|
66
|
+
const Y = (dy) => cy + fy * dy;
|
|
67
|
+
// six legs, splayed out and back
|
|
68
|
+
for (const s of [-1, 1])
|
|
69
|
+
for (const ay of [-0.16, 0.08, 0.3]) {
|
|
70
|
+
roachLine(ctx, X(s * rx * 0.65), Y(ay * L), X(s * (rx + L * 0.34)), Y(ay * L + L * 0.16), pal.leg);
|
|
71
|
+
}
|
|
72
|
+
// two antennae sweeping forward from the head
|
|
73
|
+
for (const s of [-1, 1])
|
|
74
|
+
roachLine(ctx, X(s), Y(-ry * 0.9), X(s * (rx + L * 0.18)), Y(-ry - L * 0.34), pal.leg);
|
|
75
|
+
// pale rim, then the body, so it separates from any wall color
|
|
76
|
+
roachOval(ctx, cx, Y(ry * 0.06), rx + 1, ry + 1, pal.rim, 0.95);
|
|
77
|
+
roachOval(ctx, cx, Y(ry * 0.06), rx, ry, pal.dark);
|
|
78
|
+
// head shield + a pale collar edge, a domed sheen, and a center wing seam
|
|
79
|
+
roachOval(ctx, cx, Y(-ry * 0.6), Math.round(rx * 0.85), Math.round(ry * 0.34), pal.head);
|
|
80
|
+
ctx.fillStyle = pal.collar;
|
|
81
|
+
ctx.fillRect(cx - Math.round(rx * 0.6), Math.round(Y(-ry * 0.86)), Math.round(rx * 1.2), 1);
|
|
82
|
+
roachOval(ctx, cx, Y(ry * 0.05), Math.max(1, Math.round(rx * 0.3)), Math.round(ry * 0.6), pal.sheen, 0.85);
|
|
83
|
+
ctx.fillStyle = pal.seam;
|
|
84
|
+
ctx.fillRect(cx, cy - Math.round(ry * 0.2), 1, Math.round(ry * 0.95));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { ROACH_AMBER, ROACH_CHESTNUT, drawRoach, roachLine, roachOval };
|
|
88
|
+
//# sourceMappingURL=residential.roaches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"residential.roaches.js","sources":["../../../src/render/pixelSprites/residential.roaches.ts"],"sourcesContent":["/**\n * The hotel's cockroach decals (a dirty room's warning roach, an infested\n * room's swarm), drawn by `hotel()` in `residential.ts`. Split out of\n * `residential.ts` for the 500-line ceiling.\n */\n\n/** Cockroach decal palettes (owner-approved redesign, 2026-07-16). Chestnut for\n * a full infestation (dark and obvious, but clearly a roach); warmer amber for\n * the single dirty-room warning. The pale `rim` keeps them legible over any\n * wall tint. */\nexport const ROACH_CHESTNUT = { dark: \"#2A1A0E\", head: \"#1E1208\", collar: \"#6A4A28\", rim: \"#EFE7D2\", sheen: \"#7A5230\", seam: \"#140C05\", leg: \"#160E05\" };\nexport const ROACH_AMBER = { dark: \"#4A331A\", head: \"#341F0E\", collar: \"#7A5A30\", rim: \"#EFE7D2\", sheen: \"#8A6A3A\", seam: \"#241608\", leg: \"#241608\" };\nexport type RoachPalette = typeof ROACH_CHESTNUT;\n\n/** A crisp filled pixel ellipse (integer scanlines, no anti-aliasing). Radii are\n * floored to 1 so a degenerate call (`ry <= 0`) can never divide by zero into a\n * NaN rect; every current caller already passes `rx, ry >= 2`. */\nexport function roachOval(ctx: CanvasRenderingContext2D, cx: number, cy: number, rx: number, ry: number, color: string, alpha = 1): void {\n rx = Math.max(1, rx);\n ry = Math.max(1, ry);\n const prevAlpha = ctx.globalAlpha; // restore the caller's alpha, don't assume 1\n ctx.globalAlpha = alpha;\n ctx.fillStyle = color;\n for (let iy = -ry; iy <= ry; iy++) {\n const t = 1 - (iy * iy) / (ry * ry);\n if (t < 0) continue;\n const hw = Math.round(rx * Math.sqrt(t));\n ctx.fillRect(Math.round(cx - hw), Math.round(cy + iy), hw * 2 + 1, 1);\n }\n ctx.globalAlpha = prevAlpha;\n}\n\n/** A crisp pixel line (Bresenham) for legs and antennae. */\nexport function roachLine(ctx: CanvasRenderingContext2D, x0: number, y0: number, x1: number, y1: number, color: string): void {\n x0 = Math.round(x0);\n y0 = Math.round(y0);\n x1 = Math.round(x1);\n y1 = Math.round(y1);\n const dx = Math.abs(x1 - x0);\n const dy = Math.abs(y1 - y0);\n const sx = x0 < x1 ? 1 : -1;\n const sy = y0 < y1 ? 1 : -1;\n let e = dx - dy;\n ctx.fillStyle = color;\n for (;;) {\n ctx.fillRect(x0, y0, 1, 1);\n if (x0 === x1 && y0 === y1) break;\n const e2 = 2 * e;\n if (e2 > -dy) { e -= dy; x0 += sx; }\n if (e2 < dx) { e += dx; y0 += sy; }\n }\n}\n\n/** One cockroach decal, big and unmistakable, drawn crisp and axis-aligned so it\n * stays pixel art. `fx`/`fy` (each +/-1) flip it for scatter variety; `L` is the\n * body length in pixels. Ported from the owner-approved redesign preview. */\nexport function drawRoach(ctx: CanvasRenderingContext2D, cx: number, cy: number, L: number, fx: number, fy: number, pal: RoachPalette): void {\n cx = Math.round(cx);\n cy = Math.round(cy);\n const rx = Math.round(L * 0.34);\n const ry = Math.round(L * 0.5);\n const X = (dx: number): number => cx + fx * dx;\n const Y = (dy: number): number => cy + fy * dy;\n // six legs, splayed out and back\n for (const s of [-1, 1]) for (const ay of [-0.16, 0.08, 0.3]) {\n roachLine(ctx, X(s * rx * 0.65), Y(ay * L), X(s * (rx + L * 0.34)), Y(ay * L + L * 0.16), pal.leg);\n }\n // two antennae sweeping forward from the head\n for (const s of [-1, 1]) roachLine(ctx, X(s), Y(-ry * 0.9), X(s * (rx + L * 0.18)), Y(-ry - L * 0.34), pal.leg);\n // pale rim, then the body, so it separates from any wall color\n roachOval(ctx, cx, Y(ry * 0.06), rx + 1, ry + 1, pal.rim, 0.95);\n roachOval(ctx, cx, Y(ry * 0.06), rx, ry, pal.dark);\n // head shield + a pale collar edge, a domed sheen, and a center wing seam\n roachOval(ctx, cx, Y(-ry * 0.6), Math.round(rx * 0.85), Math.round(ry * 0.34), pal.head);\n ctx.fillStyle = pal.collar;\n ctx.fillRect(cx - Math.round(rx * 0.6), Math.round(Y(-ry * 0.86)), Math.round(rx * 1.2), 1);\n roachOval(ctx, cx, Y(ry * 0.05), Math.max(1, Math.round(rx * 0.3)), Math.round(ry * 0.6), pal.sheen, 0.85);\n ctx.fillStyle = pal.seam;\n ctx.fillRect(cx, cy - Math.round(ry * 0.2), 1, Math.round(ry * 0.95));\n}\n"],"names":[],"mappings":"AAAA;;;;AAIG;AAEH;;;AAGiB;AACV,MAAM,cAAc,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS;AAC/I,MAAM,WAAW,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,S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
|
1
|
+
import type { UnitView } from "../../simport/view";
|
|
2
|
+
import type { RoomCtx } from "./common";
|
|
3
|
+
/**
|
|
4
|
+
* Modern rental-living sprites (Studio & Apartment), in their own module so
|
|
5
|
+
* `residential.ts` stays under the size ceiling. Both reuse the condo dollhouse
|
|
6
|
+
* draw with their own wall/picture look tables (the "variants like office and
|
|
7
|
+
* condo" requirement: geoVariant already varies the walls, layout, and pictures
|
|
8
|
+
* per unit) and a "LEASE" vacancy shell (they rent, they are not sold).
|
|
9
|
+
*/
|
|
10
|
+
export declare function rentalStudio(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
|
|
11
|
+
export declare function rentalApartment(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { condo } from './residential.js';
|
|
2
|
+
import { STUDIO_WALLS, RENTAL_PICTURES, APARTMENT_WALLS } from './residential.looks.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Modern rental-living sprites (Studio & Apartment), in their own module so
|
|
6
|
+
* `residential.ts` stays under the size ceiling. Both reuse the condo dollhouse
|
|
7
|
+
* draw with their own wall/picture look tables (the "variants like office and
|
|
8
|
+
* condo" requirement: geoVariant already varies the walls, layout, and pictures
|
|
9
|
+
* per unit) and a "LEASE" vacancy shell (they rent, they are not sold).
|
|
10
|
+
*/
|
|
11
|
+
function rentalStudio(d, u, x, y, w, h) {
|
|
12
|
+
condo(d, u, x, y, w, h, STUDIO_WALLS, RENTAL_PICTURES, "LEASE");
|
|
13
|
+
}
|
|
14
|
+
function rentalApartment(d, u, x, y, w, h) {
|
|
15
|
+
condo(d, u, x, y, w, h, APARTMENT_WALLS, RENTAL_PICTURES, "LEASE");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { rentalApartment, rentalStudio };
|
|
19
|
+
//# sourceMappingURL=residentialRentalSprites.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"residentialRentalSprites.js","sources":["../../../src/render/pixelSprites/residentialRentalSprites.ts"],"sourcesContent":["import type { UnitView } from \"../../simport/view\";\nimport type { RoomCtx } from \"./common\";\nimport { condo } from \"./residential\";\nimport { APARTMENT_WALLS, RENTAL_PICTURES, STUDIO_WALLS } from \"./residential.looks\";\n\n/**\n * Modern rental-living sprites (Studio & Apartment), in their own module so\n * `residential.ts` stays under the size ceiling. Both reuse the condo dollhouse\n * draw with their own wall/picture look tables (the \"variants like office and\n * condo\" requirement: geoVariant already varies the walls, layout, and pictures\n * per unit) and a \"LEASE\" vacancy shell (they rent, they are not sold).\n */\n\nexport function rentalStudio(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void {\n condo(d, u, x, y, w, h, STUDIO_WALLS, RENTAL_PICTURES, \"LEASE\");\n}\n\nexport function rentalApartment(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void {\n condo(d, u, x, y, w, h, APARTMENT_WALLS, RENTAL_PICTURES, \"LEASE\");\n}\n"],"names":[],"mappings":";;;AAKA;;;;;;AAMG;AAEG,SAAU,YAAY,CAAC,CAAU,EAAE,CAAW,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAA;AAC9F,IAAA,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,eAAe,EAAE,OAAO,CAAC;AACjE;AAEM,SAAU,eAAe,CAAC,CAAU,EAAE,CAAW,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAA;AACjG,IAAA,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC;AACpE;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { UnitView } from "../../simport/view";
|
|
2
|
+
import { type RoomCtx } from "./common";
|
|
3
|
+
import { SHOP_LOOKS } from "./shop.looks";
|
|
4
|
+
/**
|
|
5
|
+
* Retail shop art plus its canon subtype look table. Every shop keeps the two
|
|
6
|
+
* anchor shapes the player names a store by: the striped awning, and (on the
|
|
7
|
+
* subtyped path) a lit sign board below it. Each of the eleven canon trades
|
|
8
|
+
* then furnishes its own interior, ported from its board tile in
|
|
9
|
+
* `page-04-retail.build.js` (see `shop.interiors.ts`). An undefined or unknown
|
|
10
|
+
* subtype falls back to the legacy generic shop, byte-identical.
|
|
11
|
+
*/
|
|
12
|
+
export { SHOP_LOOKS };
|
|
13
|
+
export type { ShopLook } from "./shop.looks";
|
|
14
|
+
export declare function shop(d: RoomCtx, u: UnitView, x: number, y: number, w: number, h: number): void;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ShopLook } from "./shop.looks";
|
|
2
|
+
/**
|
|
3
|
+
* Per-trade retail interiors, split out of `shop.ts` so the eleven enriched
|
|
4
|
+
* rooms clear the 500-line ceiling. Each draw function is a port of its board
|
|
5
|
+
* tile in `page-04-retail.build.js` (the pixel-exact reference), scaled to the
|
|
6
|
+
* screen rect and reading `look.goods` for its detail palette. `shop.ts` keeps
|
|
7
|
+
* the shared shell, striped-awning prologue, and the byte-stable generic
|
|
8
|
+
* fallback; this file owns only the subtyped enrichment.
|
|
9
|
+
*
|
|
10
|
+
* Occupant scale follows the finalized person family: behind-counter staff and
|
|
11
|
+
* seated clients use the 15px seated build, open-floor clerks and browsing
|
|
12
|
+
* customers use the 18px standing build. Staff draw during open hours as part
|
|
13
|
+
* of the shop; a single browsing customer stays behind the occupancy gate
|
|
14
|
+
* (`g.busy`) so no ghost shopper fills an idle store. Reserved state colors are
|
|
15
|
+
* never used for decoration, and every rectangle rounds to integer pixels.
|
|
16
|
+
*/
|
|
17
|
+
/** The interior region plus the occupancy signals every trade needs. `railY` is
|
|
18
|
+
* the interior top just under the lit sign; `awningBottom` is the valance line
|
|
19
|
+
* under the stripe band; `floorY` is the hard floor line from `shell`. */
|
|
20
|
+
export interface ShopGeom {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
w: number;
|
|
24
|
+
h: number;
|
|
25
|
+
floorY: number;
|
|
26
|
+
railY: number;
|
|
27
|
+
awningBottom: number;
|
|
28
|
+
/** The single browsing-customer gate: a real occupant, and nothing else. The
|
|
29
|
+
* seeded `hash(u.id)` stand-in that used to fill in for one was retired (#552);
|
|
30
|
+
* do not bring it back, an empty shop draws no shopper. */
|
|
31
|
+
busy: boolean;
|
|
32
|
+
/** Live occupant count, for trades that seat more than one client. */
|
|
33
|
+
occupants: number;
|
|
34
|
+
/** Deterministic per-unit seed base (the browsing customer's shirt seed). */
|
|
35
|
+
seed: number;
|
|
36
|
+
/** Evening/night flag, in the bake signature; keys the sign glow only. */
|
|
37
|
+
lit: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The enriched awning trim and the lit sign board, drawn on the subtyped path
|
|
41
|
+
* only (the generic shop keeps just the shared stripe loop). Board `awning()`
|
|
42
|
+
* trim plus `signboard()`: a bright top line, a scalloped valance, an
|
|
43
|
+
* `awningShadow` band, then a marquee in the trade's awning color with a warm
|
|
44
|
+
* glow halo. The halo is the one element keyed on `lit` (static, no per-frame
|
|
45
|
+
* animation); every other pixel here is constant.
|
|
46
|
+
*/
|
|
47
|
+
export declare function drawShopSignage(ctx: CanvasRenderingContext2D, g: ShopGeom, accent: string): void;
|
|
48
|
+
/** Dispatch to the trade interior. The union is closed and every case returns,
|
|
49
|
+
* so no default arm is needed. */
|
|
50
|
+
export declare function drawShopInterior(ctx: CanvasRenderingContext2D, look: ShopLook, g: ShopGeom): void;
|