@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,506 @@
|
|
|
1
|
+
import { isLateHour } from '../lateNight.js';
|
|
2
|
+
import { personSeated, PAL, shade, vacancy, geoVariant, roomOccupants, dado, maybeMirrored, windowView, ceilingFixture, roomGlow, sleeper } from './common.js';
|
|
3
|
+
import { authoredWidth, artRow, screenLength } from './artScale.js';
|
|
4
|
+
import { fill, bevelBox, ceilingCap, interiorWall, downlights, plankFloor, curtain, framedArt, glow } from './dollhouse.js';
|
|
5
|
+
import { layerBreak, layerEnd } from './layers.js';
|
|
6
|
+
import { drawRoach, ROACH_CHESTNUT, ROACH_AMBER } from './residential.roaches.js';
|
|
7
|
+
import { OFFICE_WALLS, CONDO_WALLS, CONDO_PICTURES, SUITE_WALLS, HOTEL_WALLS } from './residential.looks.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Residential and lodging room art: office, condo, and the three hotel grades,
|
|
11
|
+
* ported to the ratified page-02 "warm dollhouse" composition (crown-molding
|
|
12
|
+
* ceiling with downlights, pinstriped warm interior wall, wainscot dado or a
|
|
13
|
+
* shaded lower band, plank floor, a curtained skyline window as the
|
|
14
|
+
* warm-inside-cool-outside seam) over the shared primitives.
|
|
15
|
+
*
|
|
16
|
+
* Every look resolves from the room bake signature only (`u.state`, `d.lit`,
|
|
17
|
+
* `u.width`, `u.occupants`, `u.outForMeal` via `roomOccupants`, and the
|
|
18
|
+
* late-night flag from `d.hour` via `isLateHour`); none reads `d.anim`, so a
|
|
19
|
+
* static room stays cacheable and repaints exactly when its look changes.
|
|
20
|
+
* Seated occupants map one-to-one to `roomOccupants(u)`, capped by the
|
|
21
|
+
* layout's seats and filled in seat order: no ghost people. Integer pixel
|
|
22
|
+
* coordinates only.
|
|
23
|
+
*/
|
|
24
|
+
/** Floor-band height and floor-line Y for a room rect, matching the build's
|
|
25
|
+
* fy = 38 at the true FLOOR = 44 module height while tracking a shorter rect. */
|
|
26
|
+
function floorMetrics(y, h) {
|
|
27
|
+
const floorH = Math.max(4, Math.round(h * 0.14));
|
|
28
|
+
return { floorH, floorY: y + h - floorH };
|
|
29
|
+
}
|
|
30
|
+
// ---- Office -------------------------------------------------------------
|
|
31
|
+
/** One office cubicle: a partition, a chair, a desk with a monitor whose screen
|
|
32
|
+
* lights only when the seat is staffed, and (staffed) a seated worker. The
|
|
33
|
+
* worker draws before the desk front so the desk occludes the seat, reading as
|
|
34
|
+
* "sitting at the desk" (build `cube`). Office-local by design. */
|
|
35
|
+
function cube(ctx, dx, floorY, staffed, seed) {
|
|
36
|
+
fill(ctx, dx - 2, floorY - 17, 2, 17, "#5E4028"); // partition post
|
|
37
|
+
fill(ctx, dx - 2, floorY - 17, 1, 17, "#7E5A38");
|
|
38
|
+
fill(ctx, dx + 7, floorY - 10, 5, 10, "#3A3F4A"); // chair back
|
|
39
|
+
fill(ctx, dx + 7, floorY - 10, 5, 1, "#4A5058");
|
|
40
|
+
if (staffed)
|
|
41
|
+
personSeated(ctx, dx + 8, floorY - 1, seed);
|
|
42
|
+
fill(ctx, dx, floorY, 18, 1, "#000000", 0.16); // desk contact shadow
|
|
43
|
+
bevelBox(ctx, dx, floorY - 6, 18, 3, PAL.oak); // desk top
|
|
44
|
+
fill(ctx, dx, floorY - 3, 18, 3, shade(PAL.oak, -26)); // desk front
|
|
45
|
+
fill(ctx, dx + 1, floorY - 13, 7, 7, "#20242C"); // monitor bezel
|
|
46
|
+
fill(ctx, dx + 1, floorY - 13, 7, 1, "#3A4048");
|
|
47
|
+
fill(ctx, dx + 2, floorY - 12, 5, 4, staffed ? "#5FB0DC" : "#2E3640"); // screen: lit when staffed
|
|
48
|
+
if (staffed)
|
|
49
|
+
fill(ctx, dx + 2, floorY - 12, 5, 1, "#8FD0EC");
|
|
50
|
+
fill(ctx, dx + 9, floorY - 7, 6, 1, "#1A1D24"); // keyboard
|
|
51
|
+
fill(ctx, dx + 15, floorY - 8, 2, 2, "#C87A5A"); // desk cup
|
|
52
|
+
}
|
|
53
|
+
function office(d, u, x, y, w, h) {
|
|
54
|
+
const { ctx } = d;
|
|
55
|
+
if (u.state === "empty")
|
|
56
|
+
return vacancy(ctx, x, y, w, h, "LEASE");
|
|
57
|
+
// Geo-seeded variety, geometry first (party law): three true layouts (the
|
|
58
|
+
// classic cubicle row, a meeting room, an executive corner), any of them
|
|
59
|
+
// mirrored, over warm cream walls and olive carpet. Occupancy stays readable
|
|
60
|
+
// in every layout: seats map to the people actually present.
|
|
61
|
+
const wall = OFFICE_WALLS[geoVariant(u, 0, OFFICE_WALLS.length)];
|
|
62
|
+
const filled = roomOccupants(u); // whole people, rounded as the atlas reads them
|
|
63
|
+
const layout = geoVariant(u, 3, 5); // 0-2 cubicle row (anchor weight), 3 meeting, 4 executive
|
|
64
|
+
const flip = geoVariant(u, 4, 2) === 1;
|
|
65
|
+
const { floorH, floorY } = floorMetrics(y, h);
|
|
66
|
+
const railY = floorY - 15;
|
|
67
|
+
// Dollhouse shell (symmetric full-width fills: flip-invariant, drawn once).
|
|
68
|
+
ceilingCap(ctx, x, y, w, PAL.warmWall);
|
|
69
|
+
interiorWall(ctx, x, y + 3, w, railY - (y + 3), wall, true); // butts under the cap, no seam
|
|
70
|
+
downlights(ctx, x, y + 3, w, filled > 0); // over the wall; lit only when someone is working
|
|
71
|
+
fill(ctx, x, railY - 3, w, 1, "#C4A87A"); // rail shadow line
|
|
72
|
+
dado(ctx, x, floorY, w, railY, wall);
|
|
73
|
+
plankFloor(ctx, x, floorY, w, floorH, PAL.carpetGreen);
|
|
74
|
+
maybeMirrored(ctx, flip, x, w, () => {
|
|
75
|
+
// Curtained skyline window (flips with the layout): the cool world seam.
|
|
76
|
+
const winTop = y + 7;
|
|
77
|
+
const winH = railY - y - 11;
|
|
78
|
+
const winW = Math.min(23, Math.max(9, Math.round(w * 0.3)));
|
|
79
|
+
const winX = x + w - winW - 4;
|
|
80
|
+
windowView(ctx, winX, winTop, winW, winH, d.lit, geoVariant(u, 5, 997));
|
|
81
|
+
curtain(ctx, winX - 1, winTop, winH, "#B8845A");
|
|
82
|
+
// One wall item per office, same slot: clock, whiteboard, or corkboard.
|
|
83
|
+
const item = geoVariant(u, 1, 3);
|
|
84
|
+
if (item === 2) {
|
|
85
|
+
fill(ctx, x + 5, y + 8, 5, 5, PAL.ink); // wall clock
|
|
86
|
+
fill(ctx, x + 6, y + 9, 3, 3, "#E8E4D0");
|
|
87
|
+
fill(ctx, x + 7, y + 9, 1, 2, PAL.ink);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
framedArt(ctx, x + 5, y + 7, 12, 7, item === 0 ? "#3E5A6E" : "#5A6E4A");
|
|
91
|
+
}
|
|
92
|
+
// A binder shelf, only when there is clear wall between the item and window.
|
|
93
|
+
if (winX - (x + 20) >= 18) {
|
|
94
|
+
const bsX = winX - 18;
|
|
95
|
+
bevelBox(ctx, bsX, y + 6, 16, 9, "#6A5240");
|
|
96
|
+
const spines = ["#8C3A32", "#3E5A8C", "#B08A3E", "#4A7A4A", "#7A5A9E"];
|
|
97
|
+
for (let k = 0; k < 5; k++)
|
|
98
|
+
fill(ctx, bsX + 2 + k * 3, y + 8, 2, 5, spines[k]);
|
|
99
|
+
}
|
|
100
|
+
layerBreak(ctx); // the shell ends; furniture and staff follow
|
|
101
|
+
if (layout === 3) {
|
|
102
|
+
// Meeting room: one long table with a laptop and papers, high-back chairs
|
|
103
|
+
// both sides, seated staff up to the chair count, a corner plant.
|
|
104
|
+
// The table is drawn at its screen size, capped at its authored 60px,
|
|
105
|
+
// which is fixed art and keeps its size. Its chairs are counted from the
|
|
106
|
+
// table's AUTHORED length under that same cap, so a capped table seats
|
|
107
|
+
// the five it was drawn for and never a sixth.
|
|
108
|
+
const atw = Math.min(Math.round(authoredWidth(u.width) * 0.6), 60);
|
|
109
|
+
const tw = Math.min(Math.round(w * 0.6), 60);
|
|
110
|
+
const tx = x + Math.round((w - tw) / 2);
|
|
111
|
+
fill(ctx, tx, floorY, tw, 1, "#000000", 0.16);
|
|
112
|
+
bevelBox(ctx, tx, floorY - 7, tw, 4, PAL.walnut);
|
|
113
|
+
fill(ctx, tx + 6, floorY - 8, 4, 1, PAL.white); // papers
|
|
114
|
+
fill(ctx, tx + tw - 12, floorY - 8, 4, 1, PAL.white);
|
|
115
|
+
fill(ctx, tx + Math.round(tw / 2) - 3, floorY - 9, 6, 2, PAL.ink); // laptop
|
|
116
|
+
// Chair anchors, counted against the TABLE at the tile its 11px pitch was
|
|
117
|
+
// drawn for. Counting seats off the table's pixel width lost the fifth
|
|
118
|
+
// chair when the tile narrowed, and the fifth worker present went undrawn
|
|
119
|
+
// with it. A table too short for a chair seats none, which is what the
|
|
120
|
+
// per-chair fit check used to do.
|
|
121
|
+
// The minimum step is a chair's drawn width (7px from `sx - 1`), so two
|
|
122
|
+
// chairs never draw through each other.
|
|
123
|
+
const chairs = artRow(atw - 3 - 6, tx + 3, tx + tw - 6, 11, 1, 7);
|
|
124
|
+
const seated = Math.min(filled, chairs.length);
|
|
125
|
+
chairs.forEach((sx, i) => {
|
|
126
|
+
fill(ctx, sx - 1, floorY - 12, 7, 5, "#3A3F4A"); // high-back chair
|
|
127
|
+
fill(ctx, sx - 1, floorY - 12, 7, 1, "#4A5058");
|
|
128
|
+
if (i < seated)
|
|
129
|
+
personSeated(ctx, sx, floorY - 1, (u.id * 7 + i * 31) | 0);
|
|
130
|
+
});
|
|
131
|
+
fill(ctx, x + w - 9, floorY - 6, 3, 6, "#7A5A3A"); // corner plant
|
|
132
|
+
fill(ctx, x + w - 12, floorY - 13, 8, 8, "#4E7A3E");
|
|
133
|
+
fill(ctx, x + w - 10, floorY - 16, 4, 4, PAL.green);
|
|
134
|
+
}
|
|
135
|
+
else if (layout === 4) {
|
|
136
|
+
// Executive corner: a big desk with a seated executive, a tall binder
|
|
137
|
+
// cabinet, plus two side cubicles so a staffed office still shows people.
|
|
138
|
+
// The layout is one chain of absolute anchors authored to just fill the
|
|
139
|
+
// office at the retired 11px tile, so every anchor is restated at the
|
|
140
|
+
// current one. Left alone, the chain overran the narrower room and the
|
|
141
|
+
// second cubicle's worker dropped out of a fully staffed office. Only the
|
|
142
|
+
// anchors move: the items keep their authored widths, so the chain's slack
|
|
143
|
+
// is 1px rather than the 3 it was drawn with, and the fit check below is
|
|
144
|
+
// what holds it honest if a room narrower than the office ever renders it.
|
|
145
|
+
const ax = (n) => x + Math.round(screenLength(n));
|
|
146
|
+
fill(ctx, ax(6), floorY, 26, 1, "#000000", 0.16);
|
|
147
|
+
bevelBox(ctx, ax(6), floorY - 8, 26, 6, "#71512F"); // executive desk
|
|
148
|
+
fill(ctx, ax(9), floorY - 15, 8, 7, "#20242C"); // monitor bezel
|
|
149
|
+
fill(ctx, ax(10), floorY - 14, 6, 5, filled > 0 ? "#5FB0DC" : "#2E3640");
|
|
150
|
+
fill(ctx, ax(23), floorY - 17, 7, 17, "#5A3A2A"); // high-back leather chair
|
|
151
|
+
fill(ctx, ax(23), floorY - 17, 7, 1, "#6A4A38");
|
|
152
|
+
if (filled > 0)
|
|
153
|
+
personSeated(ctx, ax(22), floorY - 1, (u.id * 7) | 0);
|
|
154
|
+
bevelBox(ctx, ax(36), floorY - 18, 14, 18, "#5A4436"); // binder cabinet
|
|
155
|
+
const spines = ["#8C3A32", "#3E5A8C", "#B08A3E", "#4A7A4A"];
|
|
156
|
+
for (let r = 0; r < 4; r++)
|
|
157
|
+
for (let k = 0; k < 4; k++)
|
|
158
|
+
fill(ctx, ax(38) + k * 3, floorY - 16 + r * 4, 2, 3, spines[(k + r) % 4]);
|
|
159
|
+
for (let i = 0; i < 2; i++) {
|
|
160
|
+
const cx = ax(54 + i * 22);
|
|
161
|
+
if (cx + 18 > x + w - 2)
|
|
162
|
+
break;
|
|
163
|
+
cube(ctx, cx, floorY, i + 1 < filled, (u.id * 7 + (i + 1) * 31) | 0);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
// Classic cubicle row (the anchor layout): a bank of cubicles, staffed in
|
|
168
|
+
// seat order up to the visible occupant count, one with an aisle plant.
|
|
169
|
+
// The bank is counted against the room measured at the authored tile (its
|
|
170
|
+
// width in tiles, which the scale change did not move) and fitted into the
|
|
171
|
+
// screen width, so a narrower tile tightens the aisles instead of retiring
|
|
172
|
+
// a desk and the worker sitting at it. It keeps its own count formula
|
|
173
|
+
// rather than `artRow`'s: this row reserves 12px of room where `artRow`
|
|
174
|
+
// would reserve a whole cubicle, and switching would add a fourth desk the
|
|
175
|
+
// office was never drawn with. The slot then holds its authored 22px
|
|
176
|
+
// wherever that still fits, so the 9-tile office the catalog ships is
|
|
177
|
+
// spaced exactly as it was drawn, and only tightens on the wide rooms
|
|
178
|
+
// where the bank would otherwise run out through the far wall. That leaves
|
|
179
|
+
// the fit check below as a backstop for the single-desk case, which has no
|
|
180
|
+
// pitch to compress.
|
|
181
|
+
// The count is also held to what the screen run can space at a desk's own
|
|
182
|
+
// 18px width, so a room drawn far narrower than its tiles (a corrupt or
|
|
183
|
+
// huge `u.width`, or a preview box) never stacks desks or walks them out
|
|
184
|
+
// past the left wall, and a width that is not a number seats one desk.
|
|
185
|
+
const start = x + 7;
|
|
186
|
+
const last = x + w - 2 - 18; // the furthest a desk can start and still fit
|
|
187
|
+
const authored = Math.floor((authoredWidth(u.width) - 12) / 22);
|
|
188
|
+
const fits = last > start ? Math.floor((last - start) / 18) + 1 : 1;
|
|
189
|
+
const count = Math.max(1, Math.min(Number.isFinite(authored) ? authored : 1, fits));
|
|
190
|
+
const slot = count > 1 ? Math.min(22, (last - start) / (count - 1)) : 22;
|
|
191
|
+
const plantDesk = geoVariant(u, 2, count);
|
|
192
|
+
const seated = Math.min(count, filled);
|
|
193
|
+
for (let i = 0; i < count; i++) {
|
|
194
|
+
const dx = start + Math.round(i * slot);
|
|
195
|
+
if (dx + 18 > x + w - 2)
|
|
196
|
+
break;
|
|
197
|
+
cube(ctx, dx, floorY, i < seated, (u.id * 7 + i * 31) | 0);
|
|
198
|
+
if (i === plantDesk) {
|
|
199
|
+
fill(ctx, dx + 8, floorY - 9, 3, 2, PAL.green); // aisle plant
|
|
200
|
+
fill(ctx, dx + 8, floorY - 7, 3, 2, "#8C5A3A");
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
// ---- Condo --------------------------------------------------------------
|
|
207
|
+
/** Min room width for the absolute-offset dining/study layouts (chairs end at x+77). */
|
|
208
|
+
const WIDE_LAYOUT_MIN_W = 84;
|
|
209
|
+
// prettier-ignore
|
|
210
|
+
function condo(d, u, x, y, w, h, walls = CONDO_WALLS, pics = CONDO_PICTURES, vacancyLabel = "SALE") {
|
|
211
|
+
const { ctx } = d;
|
|
212
|
+
if (u.state === "empty")
|
|
213
|
+
return vacancy(ctx, x, y, w, h, vacancyLabel);
|
|
214
|
+
// Residents are "up" only when home and not asleep in the small hours.
|
|
215
|
+
const home = roomOccupants(u) > 0 && !isLateHour(d.hour);
|
|
216
|
+
// Home but asleep: the living room's sofa shows a sleeper (#2116).
|
|
217
|
+
const asleepHome = roomOccupants(u) > 0 && isLateHour(d.hour);
|
|
218
|
+
// Geo-seeded variety, geometry first: three true layouts (living, dining with a
|
|
219
|
+
// kitchenette, a study), any of them mirrored, over warm plaster and maple. The
|
|
220
|
+
// standing lamp appears in every layout so the home-glow signal survives.
|
|
221
|
+
const wall = walls[geoVariant(u, 0, walls.length)];
|
|
222
|
+
// Dining/study use absolute offsets so they need WIDE_LAYOUT_MIN_W: the 6-tile
|
|
223
|
+
// Studio drew furniture through its own wall. Narrow rooms take living instead.
|
|
224
|
+
const layout = w >= WIDE_LAYOUT_MIN_W ? geoVariant(u, 3, 5) : geoVariant(u, 3, 3);
|
|
225
|
+
const flip = geoVariant(u, 4, 2) === 1;
|
|
226
|
+
const { floorH, floorY } = floorMetrics(y, h);
|
|
227
|
+
const railY = floorY - 14;
|
|
228
|
+
ceilingCap(ctx, x, y, w, wall);
|
|
229
|
+
interiorWall(ctx, x, y + 3, w, railY - (y + 3), wall, true); // butts under the cap, no seam
|
|
230
|
+
ceilingFixture(ctx, x, y + 2, w, home); // over the wall; glows warm when residents are up
|
|
231
|
+
fill(ctx, x, railY - 3, w, 1, "#A88A6E");
|
|
232
|
+
fill(ctx, x, railY, w, floorY - railY, shade(wall, -8)); // shaded lower wall band
|
|
233
|
+
plankFloor(ctx, x, floorY, w, floorH, "#B98A5A"); // maple floor
|
|
234
|
+
fill(ctx, x + Math.round(w * 0.28), floorY + 1, Math.round(w * 0.4), 1, "#8C3A32", 0.4); // area rug hint
|
|
235
|
+
// The standing floor lamp: shade warms to glowLit when home, drops to glowDim
|
|
236
|
+
// otherwise (empty, or late-night asleep). Drawn in every layout.
|
|
237
|
+
const lamp = (lxRaw) => {
|
|
238
|
+
const lx = Math.min(Math.max(lxRaw, x + 3), x + w - 4); // keep the 7px shade in the room
|
|
239
|
+
fill(ctx, lx, floorY - 18, 1, 18, "#7A6A50"); // pole
|
|
240
|
+
fill(ctx, lx - 3, floorY - 21, 7, 4, roomGlow(home)); // shade
|
|
241
|
+
if (home)
|
|
242
|
+
glow(ctx, lx, floorY - 19, PAL.glowLit);
|
|
243
|
+
};
|
|
244
|
+
maybeMirrored(ctx, flip, x, w, () => {
|
|
245
|
+
// A framed art pair and a curtained skyline window (flip with the layout).
|
|
246
|
+
const picIx = geoVariant(u, 1, pics.length);
|
|
247
|
+
framedArt(ctx, x + 8, y + 8, 11, 8, pics[picIx]);
|
|
248
|
+
framedArt(ctx, x + 23, y + 9, 9, 6, pics[(picIx + 2) % pics.length]);
|
|
249
|
+
const winTop = y + 7;
|
|
250
|
+
const winH = railY - y - 11;
|
|
251
|
+
const winW = Math.min(22, Math.max(9, Math.round(w * 0.24)));
|
|
252
|
+
const winX = x + w - winW - 6;
|
|
253
|
+
windowView(ctx, winX, winTop, winW, winH, d.lit, geoVariant(u, 5, 997));
|
|
254
|
+
curtain(ctx, winX - 1, winTop, winH, "#9A6E7A");
|
|
255
|
+
curtain(ctx, winX + winW + 2, winTop, winH, "#9A6E7A");
|
|
256
|
+
layerBreak(ctx); // the shell ends; furniture and residents follow
|
|
257
|
+
if (layout === 3) {
|
|
258
|
+
// Dining: kitchenette on the wall, a set table with a candle, two seated
|
|
259
|
+
// diners when home, a sideboard, the standing lamp.
|
|
260
|
+
bevelBox(ctx, x + 6, railY + 1, 26, floorY - railY - 1, "#B8B4A8"); // kitchenette
|
|
261
|
+
fill(ctx, x + 9, railY, 2, 1, PAL.ink); // stove burners
|
|
262
|
+
fill(ctx, x + 13, railY, 2, 1, PAL.ink);
|
|
263
|
+
fill(ctx, x + 6, y + Math.round(h * 0.32), 26, 5, "#9A968A"); // upper cabinet
|
|
264
|
+
const tx = x + 46;
|
|
265
|
+
fill(ctx, tx, floorY, 26, 1, "#000000", 0.16);
|
|
266
|
+
bevelBox(ctx, tx, floorY - 7, 26, 3, PAL.walnut); // dining table
|
|
267
|
+
fill(ctx, tx + 1, floorY - 4, 2, 4, shade(PAL.walnut, -20)); // legs
|
|
268
|
+
fill(ctx, tx + 23, floorY - 4, 2, 4, shade(PAL.walnut, -20));
|
|
269
|
+
fill(ctx, tx + 6, floorY - 8, 4, 1, PAL.white); // place settings
|
|
270
|
+
fill(ctx, tx + 16, floorY - 8, 4, 1, PAL.white);
|
|
271
|
+
fill(ctx, tx + 11, floorY - 10, 2, 3, "#E8C14A"); // candle
|
|
272
|
+
if (home)
|
|
273
|
+
glow(ctx, tx + 12, floorY - 10, PAL.glowLit);
|
|
274
|
+
fill(ctx, tx - 5, floorY - 13, 3, 9, "#5A3A2A"); // dining chairs
|
|
275
|
+
fill(ctx, tx + 28, floorY - 13, 3, 9, "#5A3A2A");
|
|
276
|
+
if (home) {
|
|
277
|
+
personSeated(ctx, tx - 5, floorY - 1, (u.id * 5) | 0);
|
|
278
|
+
if (roomOccupants(u) > 1)
|
|
279
|
+
personSeated(ctx, tx + 27, floorY - 1, (u.id * 5 + 11) | 0);
|
|
280
|
+
}
|
|
281
|
+
bevelBox(ctx, x + w - 30, railY + 1, 10, floorY - railY - 1, "#8A6A4A"); // sideboard
|
|
282
|
+
lamp(x + w - 12);
|
|
283
|
+
}
|
|
284
|
+
else if (layout === 4) {
|
|
285
|
+
// Study: a tall bookcase wall, a desk with an open book and a monitor
|
|
286
|
+
// under the lamp, a seated reader when home, a low cabinet.
|
|
287
|
+
bevelBox(ctx, x + 6, railY - 2, 30, floorY - railY + 2, "#6A5240"); // bookcase
|
|
288
|
+
const spines = ["#8C3A32", "#3E5A8C", "#B08A3E", "#4A7A4A", "#5A4A6E"];
|
|
289
|
+
// Rows anchored at railY - 1 so the four 3px spine rows fit within the
|
|
290
|
+
// bookcase (bottom row ends at floorY - 1) instead of spilling 1px onto the floor line.
|
|
291
|
+
for (let r = 0; r < 4; r++)
|
|
292
|
+
for (let k = 0; k < 9; k++)
|
|
293
|
+
fill(ctx, x + 9 + k * 3, railY - 1 + r * 4, 2, 3, spines[(k + r) % 5]);
|
|
294
|
+
const dx = x + 48;
|
|
295
|
+
fill(ctx, dx, floorY, 22, 1, "#000000", 0.16);
|
|
296
|
+
bevelBox(ctx, dx, floorY - 7, 22, 3, PAL.wood); // desk
|
|
297
|
+
fill(ctx, dx + 6, floorY - 8, 7, 1, PAL.white); // open book
|
|
298
|
+
fill(ctx, dx + 8, floorY - 13, 6, 6, "#4A5464"); // monitor
|
|
299
|
+
if (home)
|
|
300
|
+
personSeated(ctx, dx + 9, floorY - 1, (u.id * 5) | 0);
|
|
301
|
+
bevelBox(ctx, x + w - 28, floorY - 5, 12, 5, "#5A6E8C"); // low cabinet
|
|
302
|
+
lamp(dx + 20);
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
// Living room (the anchor layout): a tufted sofa with a seated resident
|
|
306
|
+
// when home, a coffee table, the standing lamp, and the right-slot swap.
|
|
307
|
+
const sofaW = Math.min(Math.round(w * 0.36), 40);
|
|
308
|
+
const base = x + Math.round(w * 0.15);
|
|
309
|
+
fill(ctx, base, floorY, sofaW, 1, "#000000", 0.16);
|
|
310
|
+
bevelBox(ctx, base, floorY - 10, sofaW, 10, "#7C5A6A"); // sofa
|
|
311
|
+
fill(ctx, base + 2, floorY - 13, sofaW - 4, 4, "#8C6A7A"); // back
|
|
312
|
+
fill(ctx, base, floorY - 13, 3, 13, "#6A4858"); // arms
|
|
313
|
+
fill(ctx, base + sofaW - 3, floorY - 13, 3, 13, "#6A4858");
|
|
314
|
+
fill(ctx, base + 6, floorY - 12, 8, 3, "#9A7A8A"); // cushions
|
|
315
|
+
fill(ctx, base + 20, floorY - 12, 8, 3, "#9A7A8A");
|
|
316
|
+
if (home)
|
|
317
|
+
personSeated(ctx, base + Math.round(sofaW * 0.4), floorY - 1, (u.id * 5) | 0);
|
|
318
|
+
// In the small hours a resident sleeps on the sofa under a blanket.
|
|
319
|
+
else if (asleepHome)
|
|
320
|
+
sleeper(ctx, base + 3, floorY - 16, sofaW - 10, "#5A6E8C", (u.id * 5) | 0); // lying on the seat
|
|
321
|
+
bevelBox(ctx, base + sofaW + 6, floorY - 6, 14, 6, PAL.walnut); // coffee table
|
|
322
|
+
fill(ctx, base + sofaW + 9, floorY - 8, 2, 2, PAL.white); // vase
|
|
323
|
+
lamp(base - 8);
|
|
324
|
+
// Right slot: TV (weighted most common), a low bookshelf, or a plant.
|
|
325
|
+
const slotW = Math.min(Math.round(w * 0.14), 18);
|
|
326
|
+
const slotX = x + w - slotW - 6;
|
|
327
|
+
const rightSlot = geoVariant(u, 2, 5);
|
|
328
|
+
if (rightSlot <= 2) {
|
|
329
|
+
bevelBox(ctx, slotX, floorY - 16, slotW, 13, "#2A2A32"); // TV
|
|
330
|
+
fill(ctx, slotX + 1, floorY - 15, slotW - 2, 10, home ? "#8FB6FF" : "#2A2F3A");
|
|
331
|
+
if (home)
|
|
332
|
+
fill(ctx, slotX + 2, floorY - 14, slotW - 4, 4, "#B8D0FF", 0.5);
|
|
333
|
+
bevelBox(ctx, slotX - 1, floorY - 3, slotW + 2, 3, "#5A4436"); // console
|
|
334
|
+
}
|
|
335
|
+
else if (rightSlot === 3) {
|
|
336
|
+
bevelBox(ctx, slotX, floorY - 11, slotW, 11, "#6A5240"); // low bookshelf
|
|
337
|
+
for (let row = 0; row < 2; row++) {
|
|
338
|
+
for (let bx = slotX + 1, k = 0; bx + 2 < slotX + slotW - 1; bx += 3, k++) {
|
|
339
|
+
fill(ctx, bx, floorY - 10 + row * 5, 2, 4, ["#8C3A32", "#3E5A8C", "#B08A3E"][k % 3]);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
fill(ctx, slotX + 2, floorY - 5, 5, 5, "#8C5A3A"); // window plant
|
|
345
|
+
fill(ctx, slotX + 1, floorY - 10, 3, 5, PAL.green);
|
|
346
|
+
fill(ctx, slotX + 5, floorY - 9, 3, 4, PAL.green);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
// ---- Hotel --------------------------------------------------------------
|
|
352
|
+
function hotel(d, u, x, y, w, h, grade) {
|
|
353
|
+
const { ctx } = d;
|
|
354
|
+
const asleep = u.state === "asleep";
|
|
355
|
+
const dirty = u.state === "dirty";
|
|
356
|
+
const infested = u.state === "infested"; // cockroaches: a worse, heavier-roach dirty
|
|
357
|
+
const soiled = dirty || infested; // both leave the bed rumpled and unmade
|
|
358
|
+
// Unlike office and condo, a hotel has no "empty" vacancy shell: a room between
|
|
359
|
+
// guests stays furnished and ready to rent (state "empty" reads as ready, with
|
|
360
|
+
// the lamp lit), so there is no vacancy early return here.
|
|
361
|
+
// Rooms of the SAME grade stay uniform (a hotel corridor is identical rooms
|
|
362
|
+
// whose job is broadcasting ready/asleep/dirty), but the GRADES are distinct
|
|
363
|
+
// geometry: a single is one bed, a double is two beds with a real gap, a suite
|
|
364
|
+
// adds a sitting area to a wide bed. Per-unit variety is only the linen wall
|
|
365
|
+
// tint (suite drifts in its own gold band), a bed mirror, and the window seed.
|
|
366
|
+
const wallBand = grade === 3 ? SUITE_WALLS : HOTEL_WALLS;
|
|
367
|
+
const wall = wallBand[geoVariant(u, 0, wallBand.length)];
|
|
368
|
+
// "Someone is here at all" gate stays canonical for hotels.
|
|
369
|
+
const lit = !asleep && (u.occupants > 0 || d.lit);
|
|
370
|
+
const wallColor = asleep ? "#3A3550" : wall;
|
|
371
|
+
const floorBase = asleep ? "#4A4560" : "#A88A5E";
|
|
372
|
+
const { floorH, floorY } = floorMetrics(y, h);
|
|
373
|
+
const railY = floorY - 16;
|
|
374
|
+
ceilingCap(ctx, x, y, w, wallColor);
|
|
375
|
+
interiorWall(ctx, x, y + 3, w, railY - (y + 3), wallColor, true); // butts under the cap, no seam
|
|
376
|
+
if (w > 44)
|
|
377
|
+
ceilingFixture(ctx, x, y + 2, w, lit); // over the wall; ceiling light on the wider grades
|
|
378
|
+
fill(ctx, x, railY - 3, w, 1, shade(wallColor, -16));
|
|
379
|
+
fill(ctx, x, railY, w, floorY - railY, shade(wallColor, -9)); // shaded lower wall band
|
|
380
|
+
plankFloor(ctx, x, floorY, w, floorH, floorBase);
|
|
381
|
+
const flip = geoVariant(u, 1, 2) === 1;
|
|
382
|
+
const winSeed = geoVariant(u, 2, 997);
|
|
383
|
+
// One bed per grade slot: walnut headboard, cream sheet, warm hotelPink duvet
|
|
384
|
+
// and a deep-red foot trim (replacing the old cool mattress), pillow(s), and
|
|
385
|
+
// an asleep sleeper only when the room is actually occupied (no ghost guests).
|
|
386
|
+
const bed = (bx, bw, pillows, sleeper$1) => {
|
|
387
|
+
const top = floorY - 12;
|
|
388
|
+
fill(ctx, bx, floorY, bw, 1, "#000000", 0.18); // contact shadow
|
|
389
|
+
bevelBox(ctx, bx, top - 2, 4, 14, PAL.walnut); // headboard
|
|
390
|
+
fill(ctx, bx + 1, top - 1, 2, 12, "#8A6640"); // headboard highlight
|
|
391
|
+
fill(ctx, bx + 4, top, bw - 4, 12, "#F2ECDE"); // mattress / turned sheet
|
|
392
|
+
fill(ctx, bx + 4, top, bw - 4, 1, "#FFFFFF");
|
|
393
|
+
fill(ctx, bx + 4, top + 4, bw - 4, 7, PAL.hotelPink); // warm duvet
|
|
394
|
+
fill(ctx, bx + 4, top + 4, bw - 4, 1, "#C98A82"); // duvet top shade
|
|
395
|
+
fill(ctx, bx + 4, top + 10, bw - 4, 1, "#8A2A38"); // foot trim
|
|
396
|
+
const pw = Math.max(5, Math.round(bw * 0.26));
|
|
397
|
+
fill(ctx, bx + 5, top + 1, pw, 3, "#FBF7EC"); // pillow
|
|
398
|
+
fill(ctx, bx + 5, top + 1, pw, 1, "#FFFFFF");
|
|
399
|
+
if (pillows > 1)
|
|
400
|
+
fill(ctx, bx + 5, top + 5, 5, 2, "#FBF7EC");
|
|
401
|
+
if (asleep && sleeper$1 < roomOccupants(u)) {
|
|
402
|
+
// The guest asleep: their head on the pillow, the body under the duvet.
|
|
403
|
+
sleeper(ctx, bx + 5, top + 1, bw - 10, PAL.hotelRed, (u.id * 7 + sleeper$1 * 31) | 0);
|
|
404
|
+
}
|
|
405
|
+
else if (soiled) {
|
|
406
|
+
fill(ctx, bx + 5, top + 1, Math.round(bw * 0.8), 7, "#B8A98A"); // rumpled bedding
|
|
407
|
+
fill(ctx, bx + 7, top + 2, Math.round(bw * 0.4), 2, "#A89878");
|
|
408
|
+
}
|
|
409
|
+
};
|
|
410
|
+
// Suite sitting-area width: one source of truth shared by the bed placement
|
|
411
|
+
// and the sofa/lamp draw so the two can never desync.
|
|
412
|
+
const suiteSofaW = Math.min(Math.round(w * 0.2), 18);
|
|
413
|
+
// Bed positions per grade, in unmirrored room coordinates.
|
|
414
|
+
const beds = [];
|
|
415
|
+
if (grade === 1) {
|
|
416
|
+
beds.push({ bx: x + 6, bw: Math.min(Math.round(w * 0.5), 24), pillows: 1 });
|
|
417
|
+
}
|
|
418
|
+
else if (grade === 2) {
|
|
419
|
+
const bw = Math.min(Math.round((w - 26) / 2), 24); // two beds with a REAL gap
|
|
420
|
+
beds.push({ bx: x + 6, bw, pillows: 1 });
|
|
421
|
+
beds.push({ bx: x + 6 + bw + 8, bw, pillows: 1 });
|
|
422
|
+
}
|
|
423
|
+
else {
|
|
424
|
+
beds.push({ bx: x + suiteSofaW + 14, bw: Math.min(Math.round(w * 0.42), 40), pillows: 2 }); // suite: sitting area then a wide bed
|
|
425
|
+
}
|
|
426
|
+
maybeMirrored(ctx, flip, x, w, () => {
|
|
427
|
+
if (w > 44)
|
|
428
|
+
framedArt(ctx, x + Math.round(w * 0.16), y + 7, 12, 8, asleep ? "#2A2740" : "#8FA6B8");
|
|
429
|
+
const winTop = y + 7;
|
|
430
|
+
const winH = railY - y - 11;
|
|
431
|
+
const winW = w > 80 ? 14 : 9;
|
|
432
|
+
const winX = x + (w > 80 ? w - 20 : w - 13);
|
|
433
|
+
windowView(ctx, winX, winTop, winW, winH, asleep || d.lit, winSeed);
|
|
434
|
+
curtain(ctx, winX - 2, winTop, winH, asleep ? "#2E2A44" : "#B08A6A");
|
|
435
|
+
layerBreak(ctx); // the shell ends; the beds and the suite's sitting area follow
|
|
436
|
+
if (grade === 3) {
|
|
437
|
+
bevelBox(ctx, x + 5, floorY - 8, suiteSofaW, 8, "#7C5A6A"); // sitting sofa
|
|
438
|
+
fill(ctx, x + 5, floorY - 11, suiteSofaW, 3, "#8C6A7A");
|
|
439
|
+
fill(ctx, x + 7, floorY - 10, 6, 3, "#9A7A8A");
|
|
440
|
+
if (suiteSofaW > 14)
|
|
441
|
+
fill(ctx, x + 15, floorY - 10, 6, 3, "#9A7A8A");
|
|
442
|
+
// Coffee table in front of the sofa (the sitting area, not the bed): the
|
|
443
|
+
// bed starts at x + suiteSofaW + 14 and paints last, so a table placed
|
|
444
|
+
// there would be fully occluded. Keep it inside the sofa's footprint.
|
|
445
|
+
bevelBox(ctx, x + 7, floorY - 4, Math.min(suiteSofaW - 6, 11), 4, PAL.walnut); // coffee table
|
|
446
|
+
fill(ctx, x + suiteSofaW + 8, floorY - 15, 1, 15, "#7A6A50"); // floor lamp pole
|
|
447
|
+
fill(ctx, x + suiteSofaW + 6, floorY - 18, 5, 3, roomGlow(lit)); // shade
|
|
448
|
+
if (lit)
|
|
449
|
+
glow(ctx, x + suiteSofaW + 8, floorY - 16, PAL.glowLit);
|
|
450
|
+
}
|
|
451
|
+
beds.forEach((b, i) => bed(b.bx, b.bw, b.pillows, i));
|
|
452
|
+
if (grade === 2) {
|
|
453
|
+
const gapX = beds[0].bx + beds[0].bw + 2; // shared nightstand between the two beds
|
|
454
|
+
fill(ctx, gapX, floorY - 5, 4, 5, "#6A4A30");
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
// State cues and their nightstand anchor draw OUTSIDE the mirror so they render
|
|
458
|
+
// pixel-identical on flipped rooms (variation never touches a state cue).
|
|
459
|
+
// asleep / dirty are exclusive unit states. Reserved colors and geometry are
|
|
460
|
+
// unchanged; only the ready lamp gains a 1px ink socket ring (legibility rule).
|
|
461
|
+
fill(ctx, x + w - 6, floorY - 6, 4, 6, "#6A4A30"); // nightstand
|
|
462
|
+
if (dirty) {
|
|
463
|
+
fill(ctx, x + w - 6, floorY - 9, 4, 3, "#D4623A"); // housekeeping tray (a crew is still coming)
|
|
464
|
+
}
|
|
465
|
+
else if (!infested && lit) {
|
|
466
|
+
// An infested room is abandoned by housekeeping: no tray, no cozy lamp.
|
|
467
|
+
fill(ctx, x + w - 6, floorY - 6, 4, 1, PAL.ink); // ink socket ring under the bulb
|
|
468
|
+
fill(ctx, x + w - 5, floorY - 11, 2, 5, "#FFD86A"); // ready: lamp on
|
|
469
|
+
}
|
|
470
|
+
// Cockroaches (owner-approved redesign). An INFESTED room gets a sickly-green
|
|
471
|
+
// grime wash plus one big "hero" roach on the bed and three smaller ones
|
|
472
|
+
// scattered over the bed, wall, and floor, so it reads as infested even zoomed
|
|
473
|
+
// out. A DIRTY room gets a single amber warning roach. All draw here, outside
|
|
474
|
+
// the mirror wrapper, so a flipped room reads identically; flips off the unit
|
|
475
|
+
// id give scatter variety without per-frame motion (rooms are cached sprites).
|
|
476
|
+
// The furniture ends here: the grime wash, the roaches and the "z" draw
|
|
477
|
+
// after the furniture ends, so the atlas's depth layers put them on the shell.
|
|
478
|
+
layerEnd(ctx);
|
|
479
|
+
if (infested) {
|
|
480
|
+
const fv = (n) => (geoVariant(u, 30 + n, 2) === 1 ? 1 : -1);
|
|
481
|
+
fill(ctx, x, y, w, h, "#5A6828", 0.2); // grime wash
|
|
482
|
+
drawRoach(ctx, x + w * 0.44, floorY - 9, 16, 1, 1, ROACH_CHESTNUT); // hero, on the bed
|
|
483
|
+
drawRoach(ctx, x + w * 0.16, floorY - 2, 10, fv(1), 1, ROACH_CHESTNUT);
|
|
484
|
+
drawRoach(ctx, x + w * 0.72, floorY - 6, 10, fv(2), 1, ROACH_CHESTNUT);
|
|
485
|
+
drawRoach(ctx, x + w * 0.64, y + 11, 9, fv(3), -1, ROACH_CHESTNUT);
|
|
486
|
+
}
|
|
487
|
+
else if (dirty) {
|
|
488
|
+
const fx = geoVariant(u, 31, 2) === 1 ? 1 : -1;
|
|
489
|
+
drawRoach(ctx, x + w * 0.3, floorY - 8, 11, fx, 1, ROACH_AMBER);
|
|
490
|
+
}
|
|
491
|
+
if (asleep && roomOccupants(u) > 0) {
|
|
492
|
+
// The "z" is text, so it draws OUTSIDE the mirror wrapper at a computed
|
|
493
|
+
// position (mirrored text would render backward), floating over the first
|
|
494
|
+
// occupied bed. Its baseline stays exactly where it shipped (floorY - 10),
|
|
495
|
+
// so the asleep cue is pixel-identical regardless of the bed art. It is
|
|
496
|
+
// gated on a real sleeper, matching the sleeper figure, so an empty bed never broadcasts a "z".
|
|
497
|
+
const zSrc = beds[0].bx + 8;
|
|
498
|
+
const zx = flip ? 2 * x + w - zSrc - 5 : zSrc;
|
|
499
|
+
ctx.fillStyle = "rgba(210,220,255,0.9)";
|
|
500
|
+
ctx.font = "8px system-ui, sans-serif";
|
|
501
|
+
ctx.fillText("z", zx, floorY - 10);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export { condo, hotel, office };
|
|
506
|
+
//# sourceMappingURL=residential.js.map
|