@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,185 @@
|
|
|
1
|
+
import type { FacilityKind } from "../../shared/types";
|
|
2
|
+
import type { UnitView } from "../../simport/view";
|
|
3
|
+
import { type Dims } from "./people";
|
|
4
|
+
/**
|
|
5
|
+
* Shared primitives for the dollhouse room art: the signature palette, the
|
|
6
|
+
* seeded-variety helpers, the room shell/floor, and the silhouette person.
|
|
7
|
+
* Extracted verbatim from `pixelSprites.ts`; imported by every per-kind draw
|
|
8
|
+
* module and by the `pixelSprites.ts` barrel.
|
|
9
|
+
*/
|
|
10
|
+
export declare const PAL: {
|
|
11
|
+
wall: string;
|
|
12
|
+
floor: string;
|
|
13
|
+
slate: string;
|
|
14
|
+
brass: string;
|
|
15
|
+
red: string;
|
|
16
|
+
blue: string;
|
|
17
|
+
green: string;
|
|
18
|
+
ink: string;
|
|
19
|
+
white: string;
|
|
20
|
+
wood: string;
|
|
21
|
+
warmWall: string;
|
|
22
|
+
carpetGreen: string;
|
|
23
|
+
hotelPink: string;
|
|
24
|
+
hotelRed: string;
|
|
25
|
+
skyDay: string;
|
|
26
|
+
skyNight: string;
|
|
27
|
+
cityLight: string;
|
|
28
|
+
awningShadow: string;
|
|
29
|
+
signWarm: string;
|
|
30
|
+
glowLit: string;
|
|
31
|
+
glowDim: string;
|
|
32
|
+
walnut: string;
|
|
33
|
+
oak: string;
|
|
34
|
+
};
|
|
35
|
+
/** Reserved state-cue literals that decoration must never reuse. Exported so the
|
|
36
|
+
* guard test can assert no NEW decoration `PAL` key and no `SHIRTS` entry
|
|
37
|
+
* collides with one. The grandfathered anchor `PAL.red` is itself the stress
|
|
38
|
+
* red (a state cue, not decoration), so the guard checks the new keys, not all
|
|
39
|
+
* of `PAL`. Mirrors the art bible "Reserved" list. */
|
|
40
|
+
export declare const RESERVED_COLORS: readonly ["#C24A3A", "#C9CCC4", "#B2B0A4", "#E8A030", "#D4623A", "#FFD86A", "#E0556B"];
|
|
41
|
+
export declare const SHIRTS: string[];
|
|
42
|
+
export declare const SKIN: string[];
|
|
43
|
+
export declare function shade(hex: string, amt: number): string;
|
|
44
|
+
export declare function hash(seed: number): number;
|
|
45
|
+
/**
|
|
46
|
+
* A room's occupancy as its art has to read it: whole people.
|
|
47
|
+
*
|
|
48
|
+
* A room's occupants minus those out for a meal can arrive fractional from a
|
|
49
|
+
* forged save, because nothing upstream rounds it. Art cannot draw four fifths
|
|
50
|
+
* of a person, so it has to pick a whole number, and a room that draws one
|
|
51
|
+
* gated figure as well as a row (a barber's seated client, a spa's tub guest, a
|
|
52
|
+
* golfer, the staff who appear because the room is open) has to pick it in one
|
|
53
|
+
* place or the two halves disagree.
|
|
54
|
+
*
|
|
55
|
+
* The rule is the one every other room's `i < n` figure loop already follows,
|
|
56
|
+
* and the one the atlas reader (`atlas/lookup.ts`) uses to pick a baked crowd:
|
|
57
|
+
* round UP. Rounding down here while the atlas rounds up would show a native
|
|
58
|
+
* frontend one more person than the web for the same room. A count that is not
|
|
59
|
+
* finite reads as nobody, and a corrupt `outForMeal` reads as nobody out, again
|
|
60
|
+
* as the atlas reads them. `roomOccupants.test.ts` holds the two in step.
|
|
61
|
+
*
|
|
62
|
+
* Every room painter reads its crowd through here, so none of them imports the
|
|
63
|
+
* TypeScript engine for it and a corrupt `outForMeal` reads the same in each.
|
|
64
|
+
*
|
|
65
|
+
* The gameplay rule itself, who is out for a meal and how many people a room
|
|
66
|
+
* shows, lives in the Rust engine (`Unit::visible_occupants` in
|
|
67
|
+
* `engine-rs/src/tower_query_state.rs`, which gates spawns on it). The frame
|
|
68
|
+
* carries both of its inputs, so this subtraction is drawing, not a second copy
|
|
69
|
+
* of the rule: the `ceil` only matters for counts the engine never reports.
|
|
70
|
+
*/
|
|
71
|
+
export declare function roomOccupants(u: {
|
|
72
|
+
occupants: number;
|
|
73
|
+
outForMeal?: number;
|
|
74
|
+
}): number;
|
|
75
|
+
/**
|
|
76
|
+
* Which of a room's `stations` (stools, dance-floor spots, machines, mats,
|
|
77
|
+
* bikes, places on a mat) have someone at them: a stable pseudo-random subset of
|
|
78
|
+
* exactly `min(people, stations)` of them.
|
|
79
|
+
*
|
|
80
|
+
* The count is the point. Deciding each station on its own hash roll broke the
|
|
81
|
+
* honest-occupancy rule in both directions at once: a hall with two visitors
|
|
82
|
+
* could paint four figures at one column and none at the next, and where the
|
|
83
|
+
* loop counted a skipped station against the occupancy anyway, people who were
|
|
84
|
+
* in the room were simply never drawn.
|
|
85
|
+
*
|
|
86
|
+
* WHICH stations matters almost as much. Filling from one end would satisfy the
|
|
87
|
+
* count and turn a quiet room into a solid block of figures against one wall
|
|
88
|
+
* with an empty half beside it, so the subset is chosen by ranking the stations
|
|
89
|
+
* on their hash and taking the busiest. That spreads a small crowd over the
|
|
90
|
+
* whole row and is still a pure function of the room's own seed, which is what
|
|
91
|
+
* lets these rooms bake to a cached sprite.
|
|
92
|
+
*/
|
|
93
|
+
export declare function busyStations(stations: number, people: number, seed: number): Set<number>;
|
|
94
|
+
/** Deterministic per-room pick: kind + geography + axis -> [0, n). Pure
|
|
95
|
+
* function of immutable unit fields, so it needs no bake-signature bit and
|
|
96
|
+
* never touches the sim RNG stream. The kind salt (ratified formula) keeps a
|
|
97
|
+
* bulldoze-and-rebuild of a different kind at the same footprint from
|
|
98
|
+
* inheriting correlated picks. */
|
|
99
|
+
export declare function geoVariant(u: Pick<UnitView, "kind" | "floor" | "x">, axis: number, n: number): number;
|
|
100
|
+
/** Run `draw` mirrored horizontally inside the room rect when `flip` is set:
|
|
101
|
+
* the cheapest true-geometry variant. Callers must not draw TEXT inside
|
|
102
|
+
* `draw` (it would mirror); the hotel draws its "z" outside the wrapper. */
|
|
103
|
+
export declare function maybeMirrored(ctx: CanvasRenderingContext2D, flip: boolean, x: number, w: number, draw: () => void): void;
|
|
104
|
+
export interface RoomCtx {
|
|
105
|
+
ctx: CanvasRenderingContext2D;
|
|
106
|
+
lit: boolean;
|
|
107
|
+
anim: number;
|
|
108
|
+
hour: number;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* The iconic SimTower sim: a solid silhouette. `s` is the unit pixel size
|
|
112
|
+
* (figure is ~3*s wide head, ~6*s tall). Seated drops the legs.
|
|
113
|
+
*/
|
|
114
|
+
export declare function person(ctx: CanvasRenderingContext2D, x: number, footY: number, s: number, seed: number, seated?: boolean, tint?: string): void;
|
|
115
|
+
export type PersonBuild = "seated" | "standing" | "walker" | "hiVis";
|
|
116
|
+
export type Mood = "content" | "impatient" | "fedUp";
|
|
117
|
+
export interface BuildSpec {
|
|
118
|
+
head: number;
|
|
119
|
+
torso: number;
|
|
120
|
+
legs: number;
|
|
121
|
+
width: number;
|
|
122
|
+
hardhat?: boolean;
|
|
123
|
+
}
|
|
124
|
+
/** Geometry per build. Totals: seated 18, standing 24, walker 24, hi-vis 22
|
|
125
|
+
* pixels tall. Standing and seated match the crowd's average person, so
|
|
126
|
+
* someone walking into a room keeps their size (#2116). A car's riders have no build: they
|
|
127
|
+
* are drawn at the size the crowd draws them (`personRider`). */
|
|
128
|
+
export declare const BUILDS: Record<PersonBuild, BuildSpec>;
|
|
129
|
+
/** Torso fill for a figure's mood. Content wears the class `SHIRTS` color;
|
|
130
|
+
* impatient warms to amber; fed up turns the reserved stress red. The impatient
|
|
131
|
+
* amber `#E8862A` is deliberately distinct from the reserved notice amber
|
|
132
|
+
* `#E8A030`. */
|
|
133
|
+
export declare function moodTint(mood: Mood, seed: number): string;
|
|
134
|
+
/** The height overrides that keep a cast figure at its build's height: the
|
|
135
|
+
* cast adds a neck and a row of hair, and a seated figure's lap one more.
|
|
136
|
+
* A bun or curls stand a pixel taller, a bald head a pixel shorter. */
|
|
137
|
+
export declare function buildDims(build: PersonBuild): Dims;
|
|
138
|
+
/** Draw one figure in a room or a car, as a member of the cast (#2097).
|
|
139
|
+
* `footY` is the baseline the feet stand on; the figure rises above it.
|
|
140
|
+
* `fill` is the torso color: a mood color, or a uniform such as a
|
|
141
|
+
* pharmacist's white coat. Integer pixels. */
|
|
142
|
+
export declare function personFigure(ctx: CanvasRenderingContext2D, x: number, footY: number, build: PersonBuild, fill: string, seed?: number): void;
|
|
143
|
+
/** A cast member asleep on their back, drawn with the same head, hair and
|
|
144
|
+
* face as the day figures (#2116): the head on the pillow with its crown at
|
|
145
|
+
* `headX + 1`, the face turned up, and a blanket in `blanket` pulled to the
|
|
146
|
+
* chin over the body. The sleeper fills rows `headY - 1` to `headY + 5`
|
|
147
|
+
* and columns `headX - 1` to `headX + 4 + len` (a bed shorter than six
|
|
148
|
+
* pixels of blanket still gets three). Used by a hotel bed and a condo sofa
|
|
149
|
+
* at night. */
|
|
150
|
+
export declare function sleeper(ctx: CanvasRenderingContext2D, headX: number, headY: number, len: number, blanket: string, seed: number): void;
|
|
151
|
+
/** Named convenience builds. Each picks its cast member from the seed and
|
|
152
|
+
* colors the top for the mood, so call sites read clearly:
|
|
153
|
+
* `personWalker(ctx, x, y, seed)` or `personWalker(ctx, x, y, seed, "fedUp")`. */
|
|
154
|
+
export declare function personSeated(ctx: CanvasRenderingContext2D, x: number, footY: number, seed: number, mood?: Mood): void;
|
|
155
|
+
export declare function personStanding(ctx: CanvasRenderingContext2D, x: number, footY: number, seed: number, mood?: Mood): void;
|
|
156
|
+
export declare function personWalker(ctx: CanvasRenderingContext2D, x: number, footY: number, seed: number, mood?: Mood): void;
|
|
157
|
+
/** A rider in an elevator car, at the size the crowd draws a person on a
|
|
158
|
+
* floor, so someone stepping into a car does not shrink as they board. */
|
|
159
|
+
export declare function personRider(ctx: CanvasRenderingContext2D, x: number, footY: number, seed: number, mood?: Mood): void;
|
|
160
|
+
export declare function personHiVis(ctx: CanvasRenderingContext2D, x: number, footY: number, seed: number, mood?: Mood): void;
|
|
161
|
+
/** The warm lamp-glow color for the room's lit state. */
|
|
162
|
+
export declare function roomGlow(lit: boolean): string;
|
|
163
|
+
/** A 1px contact shadow under a prop, at the given baseline. */
|
|
164
|
+
export declare function castShadow(ctx: CanvasRenderingContext2D, x: number, footY: number, w: number): void;
|
|
165
|
+
/** A small ceiling fixture centered over `w`, glowing warm when `lit`. */
|
|
166
|
+
export declare function ceilingFixture(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, lit: boolean): void;
|
|
167
|
+
/** A wainscot dado: the lower wall below `railY` in a shaded panel with a wood
|
|
168
|
+
* rail, so the lower wall reads as trim rather than a second floor. */
|
|
169
|
+
export declare function dado(ctx: CanvasRenderingContext2D, x: number, floorY: number, w: number, railY: number, wall: string): void;
|
|
170
|
+
/** A framed window high on the back wall showing a recessed city skyline. `lit`
|
|
171
|
+
* is the codebase's evening/night flag: the sky is the night band when `lit`
|
|
172
|
+
* and the day band otherwise, and the distant `cityLight` windows glow only at
|
|
173
|
+
* night. The ink and slate mullion grid plus 1px sparse dots keep the view
|
|
174
|
+
* reading as background, never as occupants. */
|
|
175
|
+
export declare function windowView(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, lit: boolean, seed: number): void;
|
|
176
|
+
/** Flat back wall + ceiling seam + hard floor line. Returns the floor-line Y. */
|
|
177
|
+
export declare function shell(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, wall: string, floor: string): number;
|
|
178
|
+
/** Optional single small wall item, high on the wall (never repeating). */
|
|
179
|
+
export declare function wallItem(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, color: string): void;
|
|
180
|
+
/** Rooms whose lights track whether anyone is actually inside. */
|
|
181
|
+
export declare const POPULATED: Set<FacilityKind>;
|
|
182
|
+
/** Amber corner ribbon marking a `vacating` (on-notice) lease. */
|
|
183
|
+
export declare function noticeBadge(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number): void;
|
|
184
|
+
export declare function vacancy(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, label?: string): void;
|
|
185
|
+
export declare function closedShutter(d: RoomCtx, x: number, y: number, w: number, h: number, accent: string): void;
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
import { viewWorld } from '../../presentation/viewWorld.js';
|
|
2
|
+
import { CAST, castIndex, drawPerson } from './people.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Shared primitives for the dollhouse room art: the signature palette, the
|
|
6
|
+
* seeded-variety helpers, the room shell/floor, and the silhouette person.
|
|
7
|
+
* Extracted verbatim from `pixelSprites.ts`; imported by every per-kind draw
|
|
8
|
+
* module and by the `pixelSprites.ts` barrel.
|
|
9
|
+
*/
|
|
10
|
+
// ---- Signature palette --------------------------------------------------
|
|
11
|
+
const PAL = {
|
|
12
|
+
wall: "#E8E4D0",
|
|
13
|
+
floor: "#C8C0A8",
|
|
14
|
+
slate: "#5A6E8C",
|
|
15
|
+
brass: "#D8B05A",
|
|
16
|
+
red: "#C24A3A",
|
|
17
|
+
blue: "#4FA0C8",
|
|
18
|
+
green: "#5AA85A",
|
|
19
|
+
ink: "#2A2E38",
|
|
20
|
+
white: "#F4F0E4",
|
|
21
|
+
wood: "#8C6E50",
|
|
22
|
+
// Overhaul additions (art bible "Canonical palette"). New keys only; the
|
|
23
|
+
// anchors above stay byte-stable because residential/food/shop reference them
|
|
24
|
+
// directly. No new key matches a reserved state color (see the guard test).
|
|
25
|
+
warmWall: "#ECDFC2", // warm cream interior wall
|
|
26
|
+
carpetGreen: "#6E7A48", // olive office carpet
|
|
27
|
+
hotelPink: "#E8B7A8", // warm hotel bedding pink
|
|
28
|
+
hotelRed: "#A83C4A", // deeper hotel red (headboard, drapes, trim)
|
|
29
|
+
skyDay: "#9CC4DE", // day sky band in window views
|
|
30
|
+
skyNight: "#2A3350", // night sky band in window views (background only)
|
|
31
|
+
cityLight: "#F3D08A", // warm distant-window dot
|
|
32
|
+
awningShadow: "#5A4038", // shaded band under awnings and canopies
|
|
33
|
+
signWarm: "#EE8844", // warm marquee and sign fill
|
|
34
|
+
glowLit: "#F8E2B4", // warm lamp glow, lit
|
|
35
|
+
glowDim: "#8A7A5C", // same lamp, unlit or dim
|
|
36
|
+
walnut: "#6B4A2B", // dark furniture wood (desks, headboards)
|
|
37
|
+
oak: "#A9743C", // mid furniture wood
|
|
38
|
+
};
|
|
39
|
+
/** Reserved state-cue literals that decoration must never reuse. Exported so the
|
|
40
|
+
* guard test can assert no NEW decoration `PAL` key and no `SHIRTS` entry
|
|
41
|
+
* collides with one. The grandfathered anchor `PAL.red` is itself the stress
|
|
42
|
+
* red (a state cue, not decoration), so the guard checks the new keys, not all
|
|
43
|
+
* of `PAL`. Mirrors the art bible "Reserved" list. */
|
|
44
|
+
const RESERVED_COLORS = [
|
|
45
|
+
"#C24A3A", // stress red (fed-up mood)
|
|
46
|
+
"#C9CCC4", // vacancy gray
|
|
47
|
+
"#B2B0A4", // vacancy gray (darker)
|
|
48
|
+
"#E8A030", // notice amber
|
|
49
|
+
"#D4623A", // dirty tray
|
|
50
|
+
"#FFD86A", // ready lamp
|
|
51
|
+
"#E0556B", // closed sign
|
|
52
|
+
];
|
|
53
|
+
// No shirt may reuse the stress red (#C24A3A); otherwise ~1-in-8 content
|
|
54
|
+
// commuters look pixel-identical to a "fed up" one (F10). The former red shirt
|
|
55
|
+
// is replaced with a muted teal so the stress tint reads unambiguously.
|
|
56
|
+
const SHIRTS = ["#5A6E8C", "#3E4654", "#6E5A4A", "#3F8C84", "#4FA0C8", "#5AA85A", "#D8B05A", "#9A5FB0"];
|
|
57
|
+
const SKIN = ["#E8C9A0", "#C99A6E", "#A9774E"];
|
|
58
|
+
function shade(hex, amt) {
|
|
59
|
+
// Exported helpers take a bare color string; degrade a non-hex argument
|
|
60
|
+
// gracefully instead of producing rgb(NaN,...). Every shipped caller passes a
|
|
61
|
+
// #RRGGBB literal, so this leaves current output byte-identical.
|
|
62
|
+
if (!/^#[0-9a-fA-F]{6}$/.test(hex))
|
|
63
|
+
return hex;
|
|
64
|
+
const n = parseInt(hex.slice(1), 16);
|
|
65
|
+
const c = (v) => Math.max(0, Math.min(255, v + amt));
|
|
66
|
+
return `rgb(${c((n >> 16) & 255)},${c((n >> 8) & 255)},${c(n & 255)})`;
|
|
67
|
+
}
|
|
68
|
+
function hash(seed) {
|
|
69
|
+
let x = (seed * 2654435761) | 0;
|
|
70
|
+
x = Math.imul(x ^ (x >>> 15), 0x2c1b3c6d);
|
|
71
|
+
x = Math.imul(x ^ (x >>> 13), 0x297a2d39);
|
|
72
|
+
return ((x ^ (x >>> 16)) >>> 0) / 4294967296;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A room's occupancy as its art has to read it: whole people.
|
|
76
|
+
*
|
|
77
|
+
* A room's occupants minus those out for a meal can arrive fractional from a
|
|
78
|
+
* forged save, because nothing upstream rounds it. Art cannot draw four fifths
|
|
79
|
+
* of a person, so it has to pick a whole number, and a room that draws one
|
|
80
|
+
* gated figure as well as a row (a barber's seated client, a spa's tub guest, a
|
|
81
|
+
* golfer, the staff who appear because the room is open) has to pick it in one
|
|
82
|
+
* place or the two halves disagree.
|
|
83
|
+
*
|
|
84
|
+
* The rule is the one every other room's `i < n` figure loop already follows,
|
|
85
|
+
* and the one the atlas reader (`atlas/lookup.ts`) uses to pick a baked crowd:
|
|
86
|
+
* round UP. Rounding down here while the atlas rounds up would show a native
|
|
87
|
+
* frontend one more person than the web for the same room. A count that is not
|
|
88
|
+
* finite reads as nobody, and a corrupt `outForMeal` reads as nobody out, again
|
|
89
|
+
* as the atlas reads them. `roomOccupants.test.ts` holds the two in step.
|
|
90
|
+
*
|
|
91
|
+
* Every room painter reads its crowd through here, so none of them imports the
|
|
92
|
+
* TypeScript engine for it and a corrupt `outForMeal` reads the same in each.
|
|
93
|
+
*
|
|
94
|
+
* The gameplay rule itself, who is out for a meal and how many people a room
|
|
95
|
+
* shows, lives in the Rust engine (`Unit::visible_occupants` in
|
|
96
|
+
* `engine-rs/src/tower_query_state.rs`, which gates spawns on it). The frame
|
|
97
|
+
* carries both of its inputs, so this subtraction is drawing, not a second copy
|
|
98
|
+
* of the rule: the `ceil` only matters for counts the engine never reports.
|
|
99
|
+
*/
|
|
100
|
+
function roomOccupants(u) {
|
|
101
|
+
const occupants = Number.isFinite(u.occupants) ? Math.max(0, u.occupants) : 0;
|
|
102
|
+
const out = u.outForMeal !== undefined && Number.isFinite(u.outForMeal)
|
|
103
|
+
? Math.min(occupants, Math.max(0, u.outForMeal))
|
|
104
|
+
: 0;
|
|
105
|
+
return Math.ceil(Math.max(0, occupants - out));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Which of a room's `stations` (stools, dance-floor spots, machines, mats,
|
|
109
|
+
* bikes, places on a mat) have someone at them: a stable pseudo-random subset of
|
|
110
|
+
* exactly `min(people, stations)` of them.
|
|
111
|
+
*
|
|
112
|
+
* The count is the point. Deciding each station on its own hash roll broke the
|
|
113
|
+
* honest-occupancy rule in both directions at once: a hall with two visitors
|
|
114
|
+
* could paint four figures at one column and none at the next, and where the
|
|
115
|
+
* loop counted a skipped station against the occupancy anyway, people who were
|
|
116
|
+
* in the room were simply never drawn.
|
|
117
|
+
*
|
|
118
|
+
* WHICH stations matters almost as much. Filling from one end would satisfy the
|
|
119
|
+
* count and turn a quiet room into a solid block of figures against one wall
|
|
120
|
+
* with an empty half beside it, so the subset is chosen by ranking the stations
|
|
121
|
+
* on their hash and taking the busiest. That spreads a small crowd over the
|
|
122
|
+
* whole row and is still a pure function of the room's own seed, which is what
|
|
123
|
+
* lets these rooms bake to a cached sprite.
|
|
124
|
+
*/
|
|
125
|
+
function busyStations(stations, people, seed) {
|
|
126
|
+
// Floored so a nonsense count can never claim a station it does not fill.
|
|
127
|
+
// Every caller hands in a whole number from `roomOccupants`, which rounds a
|
|
128
|
+
// fractional occupancy UP the way the atlas does; a raw fractional count is
|
|
129
|
+
// not meant to reach here, and would come out one lower than the atlas.
|
|
130
|
+
const want = Math.max(0, Math.min(Math.floor(people), stations));
|
|
131
|
+
if (!(want > 0))
|
|
132
|
+
return new Set(); // nobody here, or a nonsense count
|
|
133
|
+
// Mix the seed before the station index joins it (#1069). Callers pass
|
|
134
|
+
// `figureSeed * k`, so with `hash(seed + i)` two rooms whose figure seeds
|
|
135
|
+
// differ by one ranked station `i + k` of one like station `i` of the other,
|
|
136
|
+
// and a floor of identical rooms showed one scatter shifted k seats along.
|
|
137
|
+
const room = (hash(seed) * 4294967296) | 0;
|
|
138
|
+
const rank = (i) => hash(room ^ Math.imul(i + 1, 0x9e3779b9));
|
|
139
|
+
const ranked = Array.from({ length: stations }, (_, i) => i);
|
|
140
|
+
ranked.sort((a, b) => rank(b) - rank(a) || a - b); // index breaks a tie
|
|
141
|
+
return new Set(ranked.slice(0, want));
|
|
142
|
+
}
|
|
143
|
+
// ---- Per-unit variety (geo-seeded) ----------------------------------------
|
|
144
|
+
//
|
|
145
|
+
// Same-kind rooms vary like the 1994 original. The law (party-ratified after
|
|
146
|
+
// the owner's call): a variant must differ in GEOMETRY first (layout,
|
|
147
|
+
// furniture, or mirroring); color is support, and a palette-only variant is
|
|
148
|
+
// not a variant. State cues never vary. Hotels are the deliberate exception:
|
|
149
|
+
// real hotel rooms are uniform, so they take linen wall tints and a bed
|
|
150
|
+
// mirror only, and their whole job stays broadcasting ready/asleep/dirty. The
|
|
151
|
+
// seed is GEOGRAPHY rather than unit id: TDT import renumbers every id, but a room's
|
|
152
|
+
// (floor, x) footprint survives save, load, export, and import, so the same
|
|
153
|
+
// spot always wears the same look ("your mauve corner office on 40 stays
|
|
154
|
+
// mauve"). Matches the lobbyVariant(x) precedent. Anchors are listed twice in
|
|
155
|
+
// each table so the classic look stays the most common (seasoning rather
|
|
156
|
+
// than patchwork). Hue varies, luminance holds (roughly +/-10 per channel around
|
|
157
|
+
// each anchor) so the night scrim, heatmap tints, and lit/dark reads never
|
|
158
|
+
// grow ambiguous, and no variety color enters the reserved state palette
|
|
159
|
+
// (vacancy grays, notice amber, dirty tray, ready lamp, stress red).
|
|
160
|
+
/** Deterministic per-room pick: kind + geography + axis -> [0, n). Pure
|
|
161
|
+
* function of immutable unit fields, so it needs no bake-signature bit and
|
|
162
|
+
* never touches the sim RNG stream. The kind salt (ratified formula) keeps a
|
|
163
|
+
* bulldoze-and-rebuild of a different kind at the same footprint from
|
|
164
|
+
* inheriting correlated picks. */
|
|
165
|
+
function geoVariant(u, axis, n) {
|
|
166
|
+
const kindSalt = (u.kind.length * 7919 + u.kind.charCodeAt(0) * 31) | 0;
|
|
167
|
+
return Math.floor(hash(kindSalt + (u.floor - viewWorld().minFloor) * viewWorld().lotWidth + u.x + axis * 104729) * n);
|
|
168
|
+
}
|
|
169
|
+
/** Run `draw` mirrored horizontally inside the room rect when `flip` is set:
|
|
170
|
+
* the cheapest true-geometry variant. Callers must not draw TEXT inside
|
|
171
|
+
* `draw` (it would mirror); the hotel draws its "z" outside the wrapper. */
|
|
172
|
+
function maybeMirrored(ctx, flip, x, w, draw) {
|
|
173
|
+
if (!flip)
|
|
174
|
+
return draw();
|
|
175
|
+
ctx.save();
|
|
176
|
+
ctx.translate(2 * x + w, 0);
|
|
177
|
+
ctx.scale(-1, 1);
|
|
178
|
+
draw();
|
|
179
|
+
ctx.restore();
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The iconic SimTower sim: a solid silhouette. `s` is the unit pixel size
|
|
183
|
+
* (figure is ~3*s wide head, ~6*s tall). Seated drops the legs.
|
|
184
|
+
*/
|
|
185
|
+
function person(ctx, x, footY, s, seed, seated = false, tint) {
|
|
186
|
+
const head = Math.max(2, Math.round(2 * s));
|
|
187
|
+
const bodyW = Math.max(2, Math.round(2.4 * s));
|
|
188
|
+
const bodyH = Math.max(2, Math.round((seated ? 3 : 4) * s));
|
|
189
|
+
const top = footY - bodyH - head;
|
|
190
|
+
// A `tint` (e.g. a stress color) overrides the usual shirt color so crowds
|
|
191
|
+
// can visibly turn "angry" when the tower's transport is overwhelmed.
|
|
192
|
+
ctx.fillStyle = tint ?? SHIRTS[Math.abs(seed) % SHIRTS.length];
|
|
193
|
+
ctx.fillRect(x, top + head, bodyW, bodyH);
|
|
194
|
+
ctx.fillStyle = SKIN[Math.abs(seed >> 4) % SKIN.length];
|
|
195
|
+
ctx.fillRect(x, top, head, head);
|
|
196
|
+
ctx.fillStyle = "rgba(30,24,20,0.65)"; // hair
|
|
197
|
+
ctx.fillRect(x, top, head, Math.max(1, Math.round(head * 0.4)));
|
|
198
|
+
if (!seated) {
|
|
199
|
+
ctx.fillStyle = PAL.ink; // little legs
|
|
200
|
+
ctx.fillRect(x, footY - Math.max(1, s), Math.max(1, Math.round(s)), Math.max(1, s));
|
|
201
|
+
ctx.fillRect(x + bodyW - Math.max(1, Math.round(s)), footY - Math.max(1, s), Math.max(1, Math.round(s)), Math.max(1, s));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/** Geometry per build. Totals: seated 18, standing 24, walker 24, hi-vis 22
|
|
205
|
+
* pixels tall. Standing and seated match the crowd's average person, so
|
|
206
|
+
* someone walking into a room keeps their size (#2116). A car's riders have no build: they
|
|
207
|
+
* are drawn at the size the crowd draws them (`personRider`). */
|
|
208
|
+
const BUILDS = {
|
|
209
|
+
seated: { head: 6, torso: 12, legs: 0, width: 6 },
|
|
210
|
+
standing: { head: 6, torso: 11, legs: 7, width: 6 },
|
|
211
|
+
walker: { head: 5, torso: 13, legs: 6, width: 7 },
|
|
212
|
+
hiVis: { head: 5, torso: 12, legs: 5, width: 7, hardhat: true },
|
|
213
|
+
};
|
|
214
|
+
/** Torso fill for a figure's mood. Content wears the class `SHIRTS` color;
|
|
215
|
+
* impatient warms to amber; fed up turns the reserved stress red. The impatient
|
|
216
|
+
* amber `#E8862A` is deliberately distinct from the reserved notice amber
|
|
217
|
+
* `#E8A030`. */
|
|
218
|
+
function moodTint(mood, seed) {
|
|
219
|
+
if (mood === "impatient")
|
|
220
|
+
return "#E8862A";
|
|
221
|
+
if (mood === "fedUp")
|
|
222
|
+
return "#C24A3A";
|
|
223
|
+
return SHIRTS[Math.abs(seed) % SHIRTS.length];
|
|
224
|
+
}
|
|
225
|
+
/** The height overrides that keep a cast figure at its build's height: the
|
|
226
|
+
* cast adds a neck and a row of hair, and a seated figure's lap one more.
|
|
227
|
+
* A bun or curls stand a pixel taller, a bald head a pixel shorter. */
|
|
228
|
+
function buildDims(build) {
|
|
229
|
+
const b = BUILDS[build];
|
|
230
|
+
// The torso is two narrower than the build so the arms land on its edges.
|
|
231
|
+
if (b.legs === 0)
|
|
232
|
+
return { legs: 0, torso: b.torso - 3, head: b.head, seated: true, width: b.width - 2 };
|
|
233
|
+
return { legs: b.legs, torso: b.torso - 2, head: b.head, width: b.width - 2 };
|
|
234
|
+
}
|
|
235
|
+
/** Draw one figure in a room or a car, as a member of the cast (#2097).
|
|
236
|
+
* `footY` is the baseline the feet stand on; the figure rises above it.
|
|
237
|
+
* `fill` is the torso color: a mood color, or a uniform such as a
|
|
238
|
+
* pharmacist's white coat. Integer pixels. */
|
|
239
|
+
function personFigure(ctx, x, footY, build, fill, seed = 0) {
|
|
240
|
+
// A hi-vis build is a tradesperson: hard hat, uniform and reflective stripe.
|
|
241
|
+
const trade = BUILDS[build].hardhat ? { hairStyle: "hardhat", topKind: "uniform", hiVis: true } : {};
|
|
242
|
+
const look = { ...CAST[castIndex(seed)], ...trade, top: fill };
|
|
243
|
+
drawPerson(ctx, x, footY, look, { lit: false, pose: "stand", empty: true, dims: buildDims(build) });
|
|
244
|
+
}
|
|
245
|
+
/** A cast member in a build, wearing their own outfit unless a mood colors it. */
|
|
246
|
+
function castFigure(ctx, x, footY, build, seed, mood) {
|
|
247
|
+
drawPerson(ctx, x, footY, CAST[castIndex(seed)], { lit: false, pose: "stand", empty: true, mood, dims: buildDims(build) });
|
|
248
|
+
}
|
|
249
|
+
/** A cast member asleep on their back, drawn with the same head, hair and
|
|
250
|
+
* face as the day figures (#2116): the head on the pillow with its crown at
|
|
251
|
+
* `headX + 1`, the face turned up, and a blanket in `blanket` pulled to the
|
|
252
|
+
* chin over the body. The sleeper fills rows `headY - 1` to `headY + 5`
|
|
253
|
+
* and columns `headX - 1` to `headX + 4 + len` (a bed shorter than six
|
|
254
|
+
* pixels of blanket still gets three). Used by a hotel bed and a condo sofa
|
|
255
|
+
* at night. */
|
|
256
|
+
function sleeper(ctx, headX, headY, len, blanket, seed) {
|
|
257
|
+
const hx = Math.round(headX);
|
|
258
|
+
const hy = Math.round(headY);
|
|
259
|
+
// The head takes six columns; the blanket runs from the chin to the end.
|
|
260
|
+
const blanketX = hx + 7;
|
|
261
|
+
const blanketLen = Math.max(3, Math.round(len) - 3);
|
|
262
|
+
// A seated build lying down: no legs, and a body that ends inside the
|
|
263
|
+
// blanket. The crown sits head + neck + torso + lap (8 + torso) pixels
|
|
264
|
+
// left of the foot point, so the foot point goes that far right of it.
|
|
265
|
+
const torso = Math.max(1, blanketLen - 2);
|
|
266
|
+
const dims = { legs: 0, torso, head: 6, seated: true, width: 4 };
|
|
267
|
+
// Nightclothes: a plain top, so no tie, stripe or badge reaches past a
|
|
268
|
+
// short body and out from under the blanket.
|
|
269
|
+
const look = { ...CAST[castIndex(seed)], topKind: "sweater", hiVis: false, badge: false };
|
|
270
|
+
drawPerson(ctx, hx + 9 + torso, hy + 6, look, { lit: false, empty: true, pose: "stand", lying: true, dims });
|
|
271
|
+
ctx.fillStyle = blanket;
|
|
272
|
+
ctx.fillRect(blanketX, hy - 1, blanketLen, 7);
|
|
273
|
+
ctx.fillStyle = shade(blanket, 24); // the turned-down edge at the chin
|
|
274
|
+
ctx.fillRect(blanketX, hy - 1, 1, 7);
|
|
275
|
+
ctx.fillStyle = shade(blanket, -18); // the fold where it meets the bed
|
|
276
|
+
ctx.fillRect(blanketX + 1, hy + 5, blanketLen - 1, 1);
|
|
277
|
+
}
|
|
278
|
+
/** Named convenience builds. Each picks its cast member from the seed and
|
|
279
|
+
* colors the top for the mood, so call sites read clearly:
|
|
280
|
+
* `personWalker(ctx, x, y, seed)` or `personWalker(ctx, x, y, seed, "fedUp")`. */
|
|
281
|
+
function personSeated(ctx, x, footY, seed, mood = "content") {
|
|
282
|
+
castFigure(ctx, x, footY, "seated", seed, mood);
|
|
283
|
+
}
|
|
284
|
+
function personStanding(ctx, x, footY, seed, mood = "content") {
|
|
285
|
+
castFigure(ctx, x, footY, "standing", seed, mood);
|
|
286
|
+
}
|
|
287
|
+
function personWalker(ctx, x, footY, seed, mood = "content") {
|
|
288
|
+
castFigure(ctx, x, footY, "walker", seed, mood);
|
|
289
|
+
}
|
|
290
|
+
/** A rider in an elevator car, at the size the crowd draws a person on a
|
|
291
|
+
* floor, so someone stepping into a car does not shrink as they board. */
|
|
292
|
+
function personRider(ctx, x, footY, seed, mood = "content") {
|
|
293
|
+
drawPerson(ctx, x, footY, CAST[castIndex(seed)], { lit: false, pose: "stand", empty: true, mood });
|
|
294
|
+
}
|
|
295
|
+
function personHiVis(ctx, x, footY, seed, mood = "content") {
|
|
296
|
+
personFigure(ctx, x, footY, "hiVis", moodTint(mood, seed), seed);
|
|
297
|
+
}
|
|
298
|
+
// ---- Shared room helpers (added, adopted per kind by later specs) ----------
|
|
299
|
+
//
|
|
300
|
+
// New shared helpers every enriched room can import. All key only on `lit` and
|
|
301
|
+
// other bake-signature inputs, never `d.anim`, so a static room stays cacheable.
|
|
302
|
+
// Unused by the current rooms; per-kind specs wire them in as they repaint.
|
|
303
|
+
/** The warm lamp-glow color for the room's lit state. */
|
|
304
|
+
function roomGlow(lit) {
|
|
305
|
+
return lit ? PAL.glowLit : PAL.glowDim;
|
|
306
|
+
}
|
|
307
|
+
/** A 1px contact shadow under a prop, at the given baseline. */
|
|
308
|
+
function castShadow(ctx, x, footY, w) {
|
|
309
|
+
ctx.fillStyle = "rgba(0,0,0,0.18)";
|
|
310
|
+
ctx.fillRect(Math.round(x), Math.round(footY), Math.max(1, Math.round(w)), 1);
|
|
311
|
+
}
|
|
312
|
+
/** A small ceiling fixture centered over `w`, glowing warm when `lit`. */
|
|
313
|
+
function ceilingFixture(ctx, x, y, w, lit) {
|
|
314
|
+
const cx = Math.round(x + w / 2);
|
|
315
|
+
const y0 = Math.round(y);
|
|
316
|
+
ctx.fillStyle = PAL.ink;
|
|
317
|
+
ctx.fillRect(cx - 1, y0, 2, 2);
|
|
318
|
+
ctx.fillStyle = roomGlow(lit);
|
|
319
|
+
ctx.fillRect(cx - 3, y0 + 2, 6, 2);
|
|
320
|
+
}
|
|
321
|
+
/** A wainscot dado: the lower wall below `railY` in a shaded panel with a wood
|
|
322
|
+
* rail, so the lower wall reads as trim rather than a second floor. */
|
|
323
|
+
function dado(ctx, x, floorY, w, railY, wall) {
|
|
324
|
+
const x0 = Math.round(x);
|
|
325
|
+
const ww = Math.max(1, Math.round(w));
|
|
326
|
+
const ry = Math.round(railY);
|
|
327
|
+
ctx.fillStyle = shade(wall, -13);
|
|
328
|
+
ctx.fillRect(x0, ry, ww, Math.max(1, Math.round(floorY) - ry));
|
|
329
|
+
ctx.fillStyle = PAL.walnut;
|
|
330
|
+
ctx.fillRect(x0, ry - 1, ww, 2);
|
|
331
|
+
ctx.fillStyle = PAL.oak;
|
|
332
|
+
ctx.fillRect(x0, ry - 1, ww, 1);
|
|
333
|
+
}
|
|
334
|
+
/** A framed window high on the back wall showing a recessed city skyline. `lit`
|
|
335
|
+
* is the codebase's evening/night flag: the sky is the night band when `lit`
|
|
336
|
+
* and the day band otherwise, and the distant `cityLight` windows glow only at
|
|
337
|
+
* night. The ink and slate mullion grid plus 1px sparse dots keep the view
|
|
338
|
+
* reading as background, never as occupants. */
|
|
339
|
+
function windowView(ctx, x, y, w, h, lit, seed) {
|
|
340
|
+
const x0 = Math.round(x);
|
|
341
|
+
const y0 = Math.round(y);
|
|
342
|
+
const ww = Math.max(1, Math.round(w));
|
|
343
|
+
const hh = Math.max(1, Math.round(h));
|
|
344
|
+
ctx.fillStyle = lit ? PAL.skyNight : PAL.skyDay;
|
|
345
|
+
ctx.fillRect(x0, y0, ww, hh);
|
|
346
|
+
if (lit) {
|
|
347
|
+
ctx.fillStyle = PAL.cityLight; // distant lit windows, night only
|
|
348
|
+
for (let gx = 1; gx < ww - 1; gx += 3) {
|
|
349
|
+
for (let gy = 1; gy < hh - 1; gy += 3) {
|
|
350
|
+
if (hash(seed * 131 + gx * 17 + gy * 7) > 0.72)
|
|
351
|
+
ctx.fillRect(x0 + gx, y0 + gy, 1, 1);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
ctx.fillStyle = PAL.ink; // frame
|
|
356
|
+
ctx.fillRect(x0, y0, ww, 1);
|
|
357
|
+
ctx.fillRect(x0, y0 + hh - 1, ww, 1);
|
|
358
|
+
ctx.fillRect(x0, y0, 1, hh);
|
|
359
|
+
ctx.fillRect(x0 + ww - 1, y0, 1, hh);
|
|
360
|
+
ctx.fillStyle = PAL.slate; // recessed mullion cross
|
|
361
|
+
ctx.fillRect(x0 + (ww >> 1), y0, 1, hh);
|
|
362
|
+
ctx.fillRect(x0, y0 + (hh >> 1), ww, 1);
|
|
363
|
+
}
|
|
364
|
+
/** Flat back wall + ceiling seam + hard floor line. Returns the floor-line Y. */
|
|
365
|
+
function shell(ctx, x, y, w, h, wall, floor) {
|
|
366
|
+
ctx.fillStyle = wall;
|
|
367
|
+
ctx.fillRect(x, y, w, h);
|
|
368
|
+
ctx.fillStyle = "rgba(42,46,56,0.22)"; // ceiling seam
|
|
369
|
+
ctx.fillRect(x, y, w, 1);
|
|
370
|
+
const fh = Math.max(3, Math.round(h * 0.12));
|
|
371
|
+
const floorY = y + h - fh;
|
|
372
|
+
ctx.fillStyle = shade(floor, -22);
|
|
373
|
+
ctx.fillRect(x, floorY, w, fh);
|
|
374
|
+
ctx.fillStyle = shade(floor, 18); // polished top edge
|
|
375
|
+
ctx.fillRect(x, floorY, w, 1);
|
|
376
|
+
return floorY;
|
|
377
|
+
}
|
|
378
|
+
/** Optional single small wall item, high on the wall (never repeating). */
|
|
379
|
+
function wallItem(ctx, x, y, w, color) {
|
|
380
|
+
const iw = Math.min(w * 0.34, 22);
|
|
381
|
+
ctx.fillStyle = color;
|
|
382
|
+
ctx.fillRect(x + 4, y + 4, iw, 3);
|
|
383
|
+
}
|
|
384
|
+
/** Rooms whose lights track whether anyone is actually inside. */
|
|
385
|
+
const POPULATED = new Set(["office", "condo", "rentalStudio", "rentalApartment", "hotelSingle", "hotelDouble", "hotelSuite"]);
|
|
386
|
+
/** Amber corner ribbon marking a `vacating` (on-notice) lease. */
|
|
387
|
+
function noticeBadge(ctx, x, y, w, h) {
|
|
388
|
+
const s = Math.min(12, w - 2, h - 2);
|
|
389
|
+
if (s <= 0)
|
|
390
|
+
return;
|
|
391
|
+
ctx.fillStyle = "#E8A030";
|
|
392
|
+
ctx.beginPath();
|
|
393
|
+
ctx.moveTo(x + w - s, y);
|
|
394
|
+
ctx.lineTo(x + w, y);
|
|
395
|
+
ctx.lineTo(x + w, y + s);
|
|
396
|
+
ctx.closePath();
|
|
397
|
+
ctx.fill();
|
|
398
|
+
// A small exclamation dash inside the ribbon.
|
|
399
|
+
ctx.fillStyle = "#2A1E06";
|
|
400
|
+
ctx.fillRect(x + w - 3, y + 2, 1, Math.max(2, s - 6));
|
|
401
|
+
ctx.fillRect(x + w - 3, y + s - 3, 1, 1);
|
|
402
|
+
}
|
|
403
|
+
function vacancy(ctx, x, y, w, h, label = "LEASE") {
|
|
404
|
+
shell(ctx, x, y, w, h, "#C9CCC4", "#B2B0A4");
|
|
405
|
+
ctx.strokeStyle = "rgba(255,255,255,0.07)";
|
|
406
|
+
ctx.lineWidth = 1;
|
|
407
|
+
for (let i = -h; i < w; i += 9) {
|
|
408
|
+
ctx.beginPath();
|
|
409
|
+
ctx.moveTo(x + i, y + h);
|
|
410
|
+
ctx.lineTo(x + i + h, y);
|
|
411
|
+
ctx.stroke();
|
|
412
|
+
}
|
|
413
|
+
if (w > 26) {
|
|
414
|
+
ctx.fillStyle = "#D9D2B0";
|
|
415
|
+
ctx.fillRect(x + w / 2 - 12, y + h / 2 - 5, 24, 10);
|
|
416
|
+
ctx.fillStyle = "#7a6b3a";
|
|
417
|
+
ctx.font = "7px system-ui, sans-serif";
|
|
418
|
+
ctx.textAlign = "center";
|
|
419
|
+
ctx.fillText(label, x + w / 2, y + h / 2 + 2);
|
|
420
|
+
ctx.textAlign = "left";
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function closedShutter(d, x, y, w, h, accent) {
|
|
424
|
+
const { ctx } = d;
|
|
425
|
+
ctx.fillStyle = shade(accent, -60);
|
|
426
|
+
ctx.fillRect(x, y, w, h);
|
|
427
|
+
ctx.fillStyle = "#3A3F48";
|
|
428
|
+
ctx.fillRect(x + 2, y + 4, w - 4, h - 7);
|
|
429
|
+
ctx.strokeStyle = "rgba(0,0,0,0.3)";
|
|
430
|
+
ctx.lineWidth = 1;
|
|
431
|
+
for (let ly = y + 6; ly < y + h - 4; ly += 3) {
|
|
432
|
+
ctx.beginPath();
|
|
433
|
+
ctx.moveTo(x + 2, ly);
|
|
434
|
+
ctx.lineTo(x + w - 2, ly);
|
|
435
|
+
ctx.stroke();
|
|
436
|
+
}
|
|
437
|
+
if (w > 28) {
|
|
438
|
+
ctx.fillStyle = "#1b1f2a";
|
|
439
|
+
ctx.fillRect(x + w / 2 - 16, y + h / 2 - 5, 32, 10);
|
|
440
|
+
ctx.fillStyle = "#E0556B";
|
|
441
|
+
ctx.font = "bold 7px system-ui, sans-serif";
|
|
442
|
+
ctx.textAlign = "center";
|
|
443
|
+
ctx.fillText("CLOSED", x + w / 2, y + h / 2 + 2);
|
|
444
|
+
ctx.textAlign = "left";
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export { BUILDS, PAL, POPULATED, RESERVED_COLORS, SHIRTS, SKIN, buildDims, busyStations, castShadow, ceilingFixture, closedShutter, dado, geoVariant, hash, maybeMirrored, moodTint, noticeBadge, person, personFigure, personHiVis, personRider, personSeated, personStanding, personWalker, roomGlow, roomOccupants, shade, shell, sleeper, vacancy, wallItem, windowView };
|
|
449
|
+
//# sourceMappingURL=common.js.map
|