@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,453 @@
|
|
|
1
|
+
import { drawPersonRing } from './personFocus.js';
|
|
2
|
+
import { drawTrafficSpotlight } from './trafficSpotlight.js';
|
|
3
|
+
import { RAIN } from '../sprites/sky.js';
|
|
4
|
+
import { clipToOpenSky } from './rainShelter.js';
|
|
5
|
+
import { isElevatorKind } from '../../presentation/viewKinds.js';
|
|
6
|
+
import { catalogFacility } from '../../catalog/catalogTypes.js';
|
|
7
|
+
import { towerCatalog } from '../../catalog/towerCatalog.js';
|
|
8
|
+
import { viewWorld } from '../../presentation/viewWorld.js';
|
|
9
|
+
import { beatFrame, strideFrame } from './crowdLook.js';
|
|
10
|
+
import { drawSearchGuard, drawExplosion, drawTreasure, drawVipLimo, drawThief } from '../sprites/events.js';
|
|
11
|
+
import { FLOOR, TILE } from '../scale.js';
|
|
12
|
+
import { floorRoomSpan, thiefX } from './thiefSpan.js';
|
|
13
|
+
import { drawShaftNumbers } from './towerShaftNumbers.js';
|
|
14
|
+
import { drawHaloRings } from './towerHaloRings.js';
|
|
15
|
+
import { drawNoiseReach } from './towerNoiseReach.js';
|
|
16
|
+
import { drawGhostLabel } from './towerGhostLabel.js';
|
|
17
|
+
import { renderFireResponse } from './towerFireResponse.js';
|
|
18
|
+
import { guardPosition } from './guardPosition.js';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The 2D canvas overlay and sky painters for {@link TowerEngine}, plus the
|
|
22
|
+
* decorative event-visual bookkeeping (syncEventFx) and the sky-color helper.
|
|
23
|
+
* Every painter takes the engine instance and reads its live state. Extracted
|
|
24
|
+
* from `TowerEngine.ts`; the class keeps thin delegations. This is a pure code
|
|
25
|
+
* move: the drawing math, ordering and Excalibur/canvas calls are unchanged.
|
|
26
|
+
*/
|
|
27
|
+
/** How long Santa takes to cross the sky, and how long a bomb flash lingers
|
|
28
|
+
* (seconds of the decorative anim clock, so both freeze under pause /
|
|
29
|
+
* reduced motion, like every other decoration). */
|
|
30
|
+
const SANTA_FLIGHT_SECONDS = 7;
|
|
31
|
+
const EXPLOSION_SECONDS = 0.9;
|
|
32
|
+
const THIEF_RUN_SECONDS = 4;
|
|
33
|
+
const TREASURE_SECONDS = 1.8;
|
|
34
|
+
const VIP_VISIT_SECONDS = 6.5;
|
|
35
|
+
/** Hard cap on simultaneous flashes/sparkles, the events are rare, but never
|
|
36
|
+
* let the lists grow unbounded (immediate-mode draws, no actors, so this is the
|
|
37
|
+
* only bound needed). */
|
|
38
|
+
const MAX_EXPLOSIONS = 8;
|
|
39
|
+
const MAX_TREASURES = 6;
|
|
40
|
+
function setReducedMotion(engine, on) {
|
|
41
|
+
engine.reducedMotion = on;
|
|
42
|
+
// A frozen anim clock can't advance an event visual to completion, so drop
|
|
43
|
+
// any in flight rather than leave one stuck on screen.
|
|
44
|
+
if (on) {
|
|
45
|
+
engine.santaStart = null;
|
|
46
|
+
engine.explosions = [];
|
|
47
|
+
engine.thiefStart = null;
|
|
48
|
+
engine.thiefCaught = false;
|
|
49
|
+
engine.thiefSpan = null;
|
|
50
|
+
engine.treasures = [];
|
|
51
|
+
engine.vipStart = null;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/** End the event visuals an undo or redo step left over empty space: a blast
|
|
55
|
+
* or a treasure dig on a spot with no room and no floor now, and a thief on a
|
|
56
|
+
* floor above or below the tower. Santa and the VIP limo belong to the whole
|
|
57
|
+
* tower (the sky and the ground lobby), so they fly on. */
|
|
58
|
+
function dropStrandedFx(engine) {
|
|
59
|
+
const tower = engine.sim.tower;
|
|
60
|
+
const standing = (fx) => tower.unitAt(fx.floor, fx.x) !== undefined || tower.hasStructure(fx.floor, fx.x);
|
|
61
|
+
if (engine.explosions.length > 0)
|
|
62
|
+
engine.explosions = engine.explosions.filter(standing);
|
|
63
|
+
if (engine.treasures.length > 0)
|
|
64
|
+
engine.treasures = engine.treasures.filter(standing);
|
|
65
|
+
if (engine.thiefFloor > tower.highestFloor || engine.thiefFloor < tower.lowestFloor)
|
|
66
|
+
engine.thiefStart = null;
|
|
67
|
+
}
|
|
68
|
+
/** Reset the decorative animation clock to zero. Used by the screenshot
|
|
69
|
+
* generator right after it swaps in a manually stepped clock, so the
|
|
70
|
+
* decorations start from a known phase (the pre-swap boot accumulated a
|
|
71
|
+
* wall-time-dependent amount) and every capture is reproducible. */
|
|
72
|
+
function resetDecorativeClock(engine) {
|
|
73
|
+
engine.animClock = 0;
|
|
74
|
+
// Also zero the published value the sprites read, so the reset is effective
|
|
75
|
+
// immediately even if a capture happens before the next tick() copies it.
|
|
76
|
+
engine.d.anim = 0;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Poll the sim's cosmetic fx counters and start/retire the matching event
|
|
80
|
+
* visuals. New visuals only begin while animating (reduced motion / pause
|
|
81
|
+
* suppress fresh motion, matching every other decoration); in-flight ones
|
|
82
|
+
* retire when their window on the anim clock elapses. No Excalibur actors are
|
|
83
|
+
* involved, these are immediate-mode draws, so there is nothing to leak.
|
|
84
|
+
*/
|
|
85
|
+
function syncEventFx(engine, animating) {
|
|
86
|
+
if (engine.sim.santaFxSeq !== engine.lastSantaSeq) {
|
|
87
|
+
engine.lastSantaSeq = engine.sim.santaFxSeq;
|
|
88
|
+
if (animating)
|
|
89
|
+
engine.santaStart = engine.d.anim;
|
|
90
|
+
}
|
|
91
|
+
if (engine.sim.explosionFx.seq !== engine.lastExplosionSeq) {
|
|
92
|
+
engine.lastExplosionSeq = engine.sim.explosionFx.seq;
|
|
93
|
+
if (animating && engine.explosions.length < MAX_EXPLOSIONS) {
|
|
94
|
+
engine.explosions.push({ x: engine.sim.explosionFx.x, floor: engine.sim.explosionFx.floor, start: engine.d.anim });
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (engine.sim.thiefFx.seq !== engine.lastThiefSeq) {
|
|
98
|
+
engine.lastThiefSeq = engine.sim.thiefFx.seq;
|
|
99
|
+
// He runs the floor's rooms; a floor with none has nowhere to prowl.
|
|
100
|
+
const span = animating ? floorRoomSpan(engine.sim.tower.units, engine.sim.thiefFx.floor, engine.sim.thiefFx.x) : null;
|
|
101
|
+
if (span) {
|
|
102
|
+
engine.thiefStart = engine.d.anim;
|
|
103
|
+
engine.thiefCaught = engine.sim.thiefFx.caught;
|
|
104
|
+
engine.thiefFloor = engine.sim.thiefFx.floor;
|
|
105
|
+
engine.thiefSpan = span;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
if (engine.sim.treasureFx.seq !== engine.lastTreasureSeq) {
|
|
109
|
+
engine.lastTreasureSeq = engine.sim.treasureFx.seq;
|
|
110
|
+
if (animating && engine.treasures.length < MAX_TREASURES) {
|
|
111
|
+
engine.treasures.push({ x: engine.sim.treasureFx.x, floor: engine.sim.treasureFx.floor, start: engine.d.anim });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
if (engine.sim.vipFxSeq !== engine.lastVipSeq) {
|
|
115
|
+
engine.lastVipSeq = engine.sim.vipFxSeq;
|
|
116
|
+
if (animating)
|
|
117
|
+
engine.vipStart = engine.d.anim;
|
|
118
|
+
}
|
|
119
|
+
if (engine.santaStart !== null && engine.d.anim - engine.santaStart > SANTA_FLIGHT_SECONDS) {
|
|
120
|
+
engine.santaStart = null;
|
|
121
|
+
}
|
|
122
|
+
if (engine.explosions.length > 0) {
|
|
123
|
+
engine.explosions = engine.explosions.filter((e) => engine.d.anim - e.start <= EXPLOSION_SECONDS);
|
|
124
|
+
}
|
|
125
|
+
if (engine.thiefStart !== null && engine.d.anim - engine.thiefStart > THIEF_RUN_SECONDS) {
|
|
126
|
+
engine.thiefStart = null;
|
|
127
|
+
}
|
|
128
|
+
if (engine.treasures.length > 0) {
|
|
129
|
+
engine.treasures = engine.treasures.filter((t) => engine.d.anim - t.start <= TREASURE_SECONDS);
|
|
130
|
+
}
|
|
131
|
+
if (engine.vipStart !== null && engine.d.anim - engine.vipStart > VIP_VISIT_SECONDS) {
|
|
132
|
+
engine.vipStart = null;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function drawOverlay(engine, ctx) {
|
|
136
|
+
if (engine.overlayCanvas.width !== engine.viewWidth || engine.overlayCanvas.height !== engine.viewHeight) {
|
|
137
|
+
engine.overlayCanvas.width = engine.viewWidth;
|
|
138
|
+
engine.overlayCanvas.height = engine.viewHeight;
|
|
139
|
+
}
|
|
140
|
+
ctx.clearRect(0, 0, engine.viewWidth, engine.viewHeight);
|
|
141
|
+
drawShaftNumbers(engine, ctx);
|
|
142
|
+
drawRain(engine, ctx);
|
|
143
|
+
renderBombSearch(engine, ctx);
|
|
144
|
+
renderFireResponse(engine, ctx);
|
|
145
|
+
renderExplosions(engine, ctx);
|
|
146
|
+
renderTreasures(engine, ctx);
|
|
147
|
+
renderVip(engine, ctx);
|
|
148
|
+
renderThief(engine, ctx);
|
|
149
|
+
drawPreview(engine, ctx);
|
|
150
|
+
drawSelection(engine, ctx);
|
|
151
|
+
drawTrafficSpotlight(engine, ctx);
|
|
152
|
+
drawPersonRing(engine, ctx);
|
|
153
|
+
drawRuler(engine, ctx);
|
|
154
|
+
}
|
|
155
|
+
/** The countdown text: hours and minutes of game time left. */
|
|
156
|
+
function bombCountdownText(minutesLeft) {
|
|
157
|
+
const left = Math.max(0, Math.ceil(minutesLeft));
|
|
158
|
+
return `💣 Bomb search: ${Math.floor(left / 60)}:${String(left % 60).padStart(2, "0")} left`;
|
|
159
|
+
}
|
|
160
|
+
/** How strong the red glow at the screen's edges is during a bomb search:
|
|
161
|
+
* one slow beat a second (in step with the tick), stronger in the last game
|
|
162
|
+
* hour. Under reduced motion it holds steady, never beating. Far below any
|
|
163
|
+
* flash threshold: one soft beat a second at low contrast. */
|
|
164
|
+
function bombPulseAlpha(animSeconds, minutesLeft, reducedMotion) {
|
|
165
|
+
const peak = minutesLeft <= 60 ? 0.28 : 0.16;
|
|
166
|
+
if (reducedMotion)
|
|
167
|
+
return peak * 0.6;
|
|
168
|
+
const beat = 0.5 + 0.5 * Math.cos(2 * Math.PI * animSeconds);
|
|
169
|
+
return peak * (0.35 + 0.65 * beat * beat);
|
|
170
|
+
}
|
|
171
|
+
/** The size a figure walking a floor (a search guard, a thief) is drawn at:
|
|
172
|
+
* the camera zoom, as the crowd is. A {@link FLOOR}-pixel floor is taller
|
|
173
|
+
* than the figure (`FIGURE_HEIGHT` in the sprites), so it stays inside its
|
|
174
|
+
* floor at every zoom; a fixed minimum once drew guards floors tall. */
|
|
175
|
+
function floorFigureScale(zoom) {
|
|
176
|
+
return zoom;
|
|
177
|
+
}
|
|
178
|
+
/** The bomb search: each guard climbing the emergency stairs or walking a
|
|
179
|
+
* floor's rooms (where the engine's timing says it is), the time left
|
|
180
|
+
* before the deadline, and a red glow beating at the screen's edges. Under
|
|
181
|
+
* reduced motion the glow holds still. */
|
|
182
|
+
function renderBombSearch(engine, ctx) {
|
|
183
|
+
const search = engine.sim.bombSearch;
|
|
184
|
+
if (!search)
|
|
185
|
+
return;
|
|
186
|
+
const scale = floorFigureScale(engine.cam.zoom);
|
|
187
|
+
const lit = towerCatalog(engine.sim).rules.shadedLook;
|
|
188
|
+
const clockMs = engine.d.anim * 1000;
|
|
189
|
+
search.sweeping.forEach((g, i) => {
|
|
190
|
+
// Where the engine's timing puts the guard says what it is doing:
|
|
191
|
+
// climbing the emergency stairs, or walking the floor's rooms.
|
|
192
|
+
const at = guardPosition(g, engine.sim.clock.minutes);
|
|
193
|
+
const x = engine.worldToScreenX(at.x);
|
|
194
|
+
const y = engine.worldToScreenY(at.floor) + FLOOR * engine.cam.zoom;
|
|
195
|
+
// The walk follows the guard's own steps along the floor, in world pixels.
|
|
196
|
+
const frame = at.climbing ? beatFrame(clockMs, i) : strideFrame(lit, at.x * TILE, i);
|
|
197
|
+
drawSearchGuard(ctx, x, y, scale, at.climbing, { frame, lit });
|
|
198
|
+
});
|
|
199
|
+
const minutesLeft = search.deadline - engine.sim.clock.minutes;
|
|
200
|
+
drawEdgeGlow(ctx, engine.viewWidth, engine.viewHeight, bombPulseAlpha(engine.d.anim, minutesLeft, engine.reducedMotion));
|
|
201
|
+
const text = bombCountdownText(minutesLeft);
|
|
202
|
+
ctx.save();
|
|
203
|
+
ctx.font = "bold 14px sans-serif";
|
|
204
|
+
const w = ctx.measureText(text).width + 16;
|
|
205
|
+
const x = (engine.viewWidth - w) / 2;
|
|
206
|
+
ctx.fillStyle = "rgba(120,16,16,0.85)";
|
|
207
|
+
ctx.fillRect(x, 8, w, 24);
|
|
208
|
+
ctx.fillStyle = "#ffffff";
|
|
209
|
+
ctx.textBaseline = "middle";
|
|
210
|
+
ctx.fillText(text, x + 8, 20);
|
|
211
|
+
ctx.restore();
|
|
212
|
+
}
|
|
213
|
+
/** A red glow fading in from the four screen edges. */
|
|
214
|
+
function drawEdgeGlow(ctx, w, h, alpha) {
|
|
215
|
+
const depth = Math.min(w, h) * 0.12;
|
|
216
|
+
const red = (a) => `rgba(200,20,20,${a})`;
|
|
217
|
+
ctx.save();
|
|
218
|
+
for (const [x0, y0, x1, y1, rx, ry, rw, rh] of [
|
|
219
|
+
[0, 0, 0, depth, 0, 0, w, depth],
|
|
220
|
+
[0, h, 0, h - depth, 0, h - depth, w, depth],
|
|
221
|
+
[0, 0, depth, 0, 0, 0, depth, h],
|
|
222
|
+
[w, 0, w - depth, 0, w - depth, 0, depth, h],
|
|
223
|
+
]) {
|
|
224
|
+
const g = ctx.createLinearGradient(x0, y0, x1, y1);
|
|
225
|
+
g.addColorStop(0, red(alpha));
|
|
226
|
+
g.addColorStop(1, red(0));
|
|
227
|
+
ctx.fillStyle = g;
|
|
228
|
+
ctx.fillRect(rx, ry, rw, rh);
|
|
229
|
+
}
|
|
230
|
+
ctx.restore();
|
|
231
|
+
}
|
|
232
|
+
/** Bomb-blast flashes at their epicenters, projected to screen (see syncEventFx). */
|
|
233
|
+
function renderExplosions(engine, ctx) {
|
|
234
|
+
if (engine.explosions.length === 0)
|
|
235
|
+
return;
|
|
236
|
+
for (const e of engine.explosions) {
|
|
237
|
+
const p = (engine.d.anim - e.start) / EXPLOSION_SECONDS;
|
|
238
|
+
if (p < 0 || p > 1)
|
|
239
|
+
continue;
|
|
240
|
+
const sx = engine.worldToScreenX(e.x);
|
|
241
|
+
const sy = engine.worldToScreenY(e.floor) + (FLOOR * engine.cam.zoom) / 2;
|
|
242
|
+
const radius = (24 + p * 56) * engine.cam.zoom;
|
|
243
|
+
drawExplosion(ctx, sx, sy, radius, p);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
/** Gold sparkles rising from unearthed-treasure dig sites (see syncEventFx). */
|
|
247
|
+
function renderTreasures(engine, ctx) {
|
|
248
|
+
if (engine.treasures.length === 0)
|
|
249
|
+
return;
|
|
250
|
+
for (const t of engine.treasures) {
|
|
251
|
+
const p = (engine.d.anim - t.start) / TREASURE_SECONDS;
|
|
252
|
+
if (p < 0 || p > 1)
|
|
253
|
+
continue;
|
|
254
|
+
const sx = engine.worldToScreenX(t.x);
|
|
255
|
+
const sy = engine.worldToScreenY(t.floor) + (FLOOR * engine.cam.zoom) / 2;
|
|
256
|
+
drawTreasure(ctx, sx, sy, Math.max(0.8, engine.cam.zoom), p);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
/** The VIP limo arriving at the ground lobby: in from the left, hold, off right. */
|
|
260
|
+
function renderVip(engine, ctx) {
|
|
261
|
+
if (engine.vipStart === null)
|
|
262
|
+
return;
|
|
263
|
+
const p = (engine.d.anim - engine.vipStart) / VIP_VISIT_SECONDS;
|
|
264
|
+
if (p < 0 || p > 1)
|
|
265
|
+
return;
|
|
266
|
+
const centerSx = engine.worldToScreenX(viewWorld().lotWidth / 2);
|
|
267
|
+
const groundSy = engine.worldToScreenY(1) + FLOOR * engine.cam.zoom * 0.5;
|
|
268
|
+
const off = engine.viewWidth * 0.6;
|
|
269
|
+
// The limo faces right, so it drives rightward: in from the left, hold, out
|
|
270
|
+
// to the right (otherwise it moon-walks).
|
|
271
|
+
let x = centerSx;
|
|
272
|
+
if (p < 0.25)
|
|
273
|
+
x = centerSx - (1 - p / 0.25) * off; // arrive from the left
|
|
274
|
+
else if (p > 0.75)
|
|
275
|
+
x = centerSx + ((p - 0.75) / 0.25) * off; // depart to the right
|
|
276
|
+
drawVipLimo(ctx, x, groundSy, Math.max(0.9, engine.cam.zoom));
|
|
277
|
+
}
|
|
278
|
+
/** A thief running along the floor he's prowling (a guard trails him if
|
|
279
|
+
* caught), in world space: feet on that floor, from the emergency stairs at
|
|
280
|
+
* the left of its rooms to their right edge, scrolling with the camera. */
|
|
281
|
+
function renderThief(engine, ctx) {
|
|
282
|
+
if (engine.thiefStart === null || engine.thiefSpan === null)
|
|
283
|
+
return;
|
|
284
|
+
const p = (engine.d.anim - engine.thiefStart) / THIEF_RUN_SECONDS;
|
|
285
|
+
if (p < 0 || p > 1)
|
|
286
|
+
return;
|
|
287
|
+
const x = engine.worldToScreenX(thiefX(engine.thiefSpan, p));
|
|
288
|
+
const y = engine.worldToScreenY(engine.thiefFloor) + FLOOR * engine.cam.zoom;
|
|
289
|
+
const lit = towerCatalog(engine.sim).rules.shadedLook;
|
|
290
|
+
drawThief(ctx, x, y, floorFigureScale(engine.cam.zoom), engine.thiefCaught, { frame: strideFrame(lit, thiefX(engine.thiefSpan, p) * TILE, 0), lit });
|
|
291
|
+
}
|
|
292
|
+
/** Rain falls on the open sky on rainy days (overlay layer), never on the
|
|
293
|
+
* building or below the ground (#638). */
|
|
294
|
+
function drawRain(engine, ctx) {
|
|
295
|
+
if (engine.sim.weather !== "rain")
|
|
296
|
+
return;
|
|
297
|
+
const W = engine.viewWidth;
|
|
298
|
+
const H = engine.viewHeight;
|
|
299
|
+
ctx.save();
|
|
300
|
+
if (clipToOpenSky(engine, ctx, W, H))
|
|
301
|
+
paintRain(ctx, W, H, engine.d.anim);
|
|
302
|
+
ctx.restore();
|
|
303
|
+
}
|
|
304
|
+
/** The rain itself, inside whatever clip the caller set. */
|
|
305
|
+
function paintRain(ctx, W, H, t) {
|
|
306
|
+
// A faint overcast tint over the open sky.
|
|
307
|
+
ctx.fillStyle = RAIN.tint;
|
|
308
|
+
ctx.fillRect(0, 0, W, H);
|
|
309
|
+
ctx.strokeStyle = RAIN.stroke;
|
|
310
|
+
ctx.lineWidth = RAIN.lineWidth;
|
|
311
|
+
ctx.beginPath();
|
|
312
|
+
for (let i = 0; i < RAIN.count; i++) {
|
|
313
|
+
const x = ((i * RAIN.xMul) >>> 0) % W;
|
|
314
|
+
const y = (((i * RAIN.yStep) % H) + t * RAIN.speed) % H;
|
|
315
|
+
ctx.moveTo(x, y);
|
|
316
|
+
ctx.lineTo(x + RAIN.dx, y + RAIN.dy);
|
|
317
|
+
}
|
|
318
|
+
ctx.stroke();
|
|
319
|
+
}
|
|
320
|
+
/** The translucent placement ghost: gold when valid, red when not, with one
|
|
321
|
+
* explicit stroke width so no ghost inherits the overlay context's last one. */
|
|
322
|
+
function drawGhostRect(ctx, sx, sy, sw, sh, valid) {
|
|
323
|
+
ctx.globalAlpha = 0.5;
|
|
324
|
+
ctx.fillStyle = valid ? "#ffd24a" : "#cc3333";
|
|
325
|
+
ctx.fillRect(sx, sy, sw, sh);
|
|
326
|
+
ctx.globalAlpha = 1;
|
|
327
|
+
ctx.strokeStyle = valid ? "#fff" : "#ff5555";
|
|
328
|
+
ctx.lineWidth = 1.5;
|
|
329
|
+
ctx.strokeRect(sx + 0.5, sy + 0.5, sw - 1, sh - 1);
|
|
330
|
+
}
|
|
331
|
+
/** The golden selection outline shared by units and shafts. */
|
|
332
|
+
function strokeSelection(ctx, sx, sy, sw, sh) {
|
|
333
|
+
ctx.strokeStyle = "#ffd24a";
|
|
334
|
+
ctx.lineWidth = 2;
|
|
335
|
+
ctx.strokeRect(sx - 1, sy - 1, sw + 2, sh + 2);
|
|
336
|
+
}
|
|
337
|
+
function drawPreview(engine, ctx) {
|
|
338
|
+
if (engine.preview) {
|
|
339
|
+
const p = engine.preview;
|
|
340
|
+
const catalog = towerCatalog(engine.sim);
|
|
341
|
+
const f = catalogFacility(catalog, p.kind);
|
|
342
|
+
// A venue's halo shows where it reaches before it is placed (#1980).
|
|
343
|
+
const hgt = p.stories ?? f.floors; // a tall lobby's ghost covers every story (#308)
|
|
344
|
+
if (f.halo)
|
|
345
|
+
drawHaloRings(ctx, f.halo, p.floor, hgt, catalog.world, engine);
|
|
346
|
+
// Floor/lobby tools lay a multi-tile brush strip; `span` (when set) is the
|
|
347
|
+
// real footprint so the shadow matches what a click actually places.
|
|
348
|
+
const w = p.span ?? f.width;
|
|
349
|
+
// And how far its noise carries along its floor, or how far it hears.
|
|
350
|
+
drawNoiseReach(ctx, f.noise, { floor: p.floor, floors: hgt, x: p.x, width: w }, engine.sim.tower, engine);
|
|
351
|
+
const sx = engine.worldToScreenX(p.x);
|
|
352
|
+
const sy = engine.worldToScreenY(p.floor + hgt - 1);
|
|
353
|
+
const sw = w * TILE * engine.cam.zoom;
|
|
354
|
+
const sh = hgt * FLOOR * engine.cam.zoom;
|
|
355
|
+
drawGhostRect(ctx, sx, sy, sw, sh, p.valid);
|
|
356
|
+
if (p.label)
|
|
357
|
+
drawGhostLabel(ctx, sx + sw / 2, sy, p.label, p.valid);
|
|
358
|
+
}
|
|
359
|
+
if (engine.transportPreview) {
|
|
360
|
+
const p = engine.transportPreview;
|
|
361
|
+
const w = catalogFacility(towerCatalog(engine.sim), p.kind).width;
|
|
362
|
+
const sx = engine.worldToScreenX(p.x);
|
|
363
|
+
const sy = engine.worldToScreenY(p.top);
|
|
364
|
+
const sw = w * TILE * engine.cam.zoom;
|
|
365
|
+
const sh = (p.top - p.bottom + 1) * FLOOR * engine.cam.zoom;
|
|
366
|
+
drawGhostRect(ctx, sx, sy, sw, sh, p.valid);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function drawSelection(engine, ctx) {
|
|
370
|
+
engine.arrowHit = {};
|
|
371
|
+
if (engine.selectedId == null)
|
|
372
|
+
return;
|
|
373
|
+
const u = engine.sim.tower.getUnit(engine.selectedId);
|
|
374
|
+
if (u) {
|
|
375
|
+
const hgt = catalogFacility(towerCatalog(engine.sim), u.kind).floors;
|
|
376
|
+
const sx = engine.worldToScreenX(u.x);
|
|
377
|
+
const sy = engine.worldToScreenY(u.floor + hgt - 1);
|
|
378
|
+
strokeSelection(ctx, sx, sy, u.width * TILE * engine.cam.zoom, hgt * FLOOR * engine.cam.zoom);
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
const t = engine.sim.tower.getTransport(engine.selectedId);
|
|
382
|
+
if (t)
|
|
383
|
+
drawTransportSelection(engine, ctx, t);
|
|
384
|
+
}
|
|
385
|
+
/** Outline the selected shaft and, for elevators, draw clickable extend
|
|
386
|
+
* arrows above the top and below the bottom (as in the original). */
|
|
387
|
+
function drawTransportSelection(engine, ctx, t) {
|
|
388
|
+
const z = engine.cam.zoom;
|
|
389
|
+
const sx = engine.worldToScreenX(t.x);
|
|
390
|
+
const sw = t.width * TILE * z;
|
|
391
|
+
const top = engine.worldToScreenY(t.top);
|
|
392
|
+
const bottom = top + (t.top - t.bottom + 1) * FLOOR * z;
|
|
393
|
+
strokeSelection(ctx, sx, top, sw, bottom - top);
|
|
394
|
+
if (!isElevatorKind(t.kind))
|
|
395
|
+
return; // only lifts extend by a tappable arrow
|
|
396
|
+
// Small, subtle tabs centered on the shaft, discoverable without dominating
|
|
397
|
+
// the view. The hit rect is a touch larger than the drawn tab for easy use.
|
|
398
|
+
const cx = sx + sw / 2;
|
|
399
|
+
const tabW = Math.min(sw, 18);
|
|
400
|
+
const tabH = 11;
|
|
401
|
+
const up = { x: cx - tabW / 2, y: top - tabH - 3, w: tabW, h: tabH };
|
|
402
|
+
const down = { x: cx - tabW / 2, y: bottom + 3, w: tabW, h: tabH };
|
|
403
|
+
engine.arrowHit = {
|
|
404
|
+
up: { x: up.x - 4, y: up.y - 4, w: up.w + 8, h: up.h + 8 },
|
|
405
|
+
down: { x: down.x - 4, y: down.y - 4, w: down.w + 8, h: down.h + 8 },
|
|
406
|
+
};
|
|
407
|
+
const drawArrow = (r, dir) => {
|
|
408
|
+
ctx.fillStyle = "rgba(20,24,32,0.6)";
|
|
409
|
+
ctx.fillRect(r.x, r.y, r.w, r.h);
|
|
410
|
+
ctx.fillStyle = "#ffd24a";
|
|
411
|
+
const my = r.y + r.h / 2;
|
|
412
|
+
const a = 4;
|
|
413
|
+
ctx.beginPath();
|
|
414
|
+
if (dir === "up") {
|
|
415
|
+
ctx.moveTo(cx, my - a);
|
|
416
|
+
ctx.lineTo(cx - a, my + a - 1);
|
|
417
|
+
ctx.lineTo(cx + a, my + a - 1);
|
|
418
|
+
}
|
|
419
|
+
else {
|
|
420
|
+
ctx.moveTo(cx, my + a);
|
|
421
|
+
ctx.lineTo(cx - a, my - a + 1);
|
|
422
|
+
ctx.lineTo(cx + a, my - a + 1);
|
|
423
|
+
}
|
|
424
|
+
ctx.closePath();
|
|
425
|
+
ctx.fill();
|
|
426
|
+
};
|
|
427
|
+
drawArrow(up, "up");
|
|
428
|
+
drawArrow(down, "down");
|
|
429
|
+
}
|
|
430
|
+
function drawRuler(engine, ctx) {
|
|
431
|
+
ctx.font = "10px monospace";
|
|
432
|
+
ctx.textBaseline = "middle";
|
|
433
|
+
const top = engine.screenToFloor(0) + 1;
|
|
434
|
+
const bot = engine.screenToFloor(engine.viewHeight) - 1;
|
|
435
|
+
for (let f = bot; f <= top; f++) {
|
|
436
|
+
// worldToScreenY(f) is floor f's TOP edge; center the label on the row
|
|
437
|
+
// (+half a floor). Using -half shifted every label up one floor, so the
|
|
438
|
+
// ground lobby (floor 1) showed the "B1" tag and the elevator's own floor
|
|
439
|
+
// numbers didn't line up with the ruler.
|
|
440
|
+
const sy = engine.worldToScreenY(f) + (FLOOR * engine.cam.zoom) / 2;
|
|
441
|
+
if (sy < 12 || sy > engine.viewHeight - 2)
|
|
442
|
+
continue;
|
|
443
|
+
const label = f >= 1 ? `${f}` : `B${1 - f}`;
|
|
444
|
+
ctx.fillStyle = "rgba(0,0,0,0.45)";
|
|
445
|
+
ctx.fillRect(0, sy - 7, 22, 14);
|
|
446
|
+
ctx.fillStyle = f === 1 || f % 15 === 0 ? "#ffd24a" : "#cfcfcf";
|
|
447
|
+
ctx.fillText(label, 3, sy);
|
|
448
|
+
}
|
|
449
|
+
ctx.textBaseline = "alphabetic";
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export { EXPLOSION_SECONDS, MAX_EXPLOSIONS, MAX_TREASURES, SANTA_FLIGHT_SECONDS, THIEF_RUN_SECONDS, TREASURE_SECONDS, VIP_VISIT_SECONDS, bombCountdownText, bombPulseAlpha, drawOverlay, drawRain, dropStrandedFx, floorFigureScale, floorRoomSpan, guardPosition, resetDecorativeClock, setReducedMotion, syncEventFx, thiefX };
|
|
453
|
+
//# sourceMappingURL=towerOverlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"towerOverlay.js","sources":["../../../src/render/excalibur/towerOverlay.ts"],"sourcesContent":["import { drawPersonRing } from \"./personFocus\";\nimport { drawTrafficSpotlight } from \"./trafficSpotlight\";\nimport { RAIN } from \"../sprites/sky\";\nimport { clipToOpenSky } from \"./rainShelter\";\nimport { isElevatorKind } from \"../../presentation/viewKinds\";\nimport { catalogFacility } from \"../../catalog/catalogTypes\";\nimport { towerCatalog } from \"../../catalog/towerCatalog\";\nimport { viewWorld } from \"../../presentation/viewWorld\";\nimport type { TransportView } from \"../../simport/view\";\nimport { beatFrame, strideFrame } from \"./crowdLook\";\nimport { drawExplosion, drawSearchGuard, drawThief, drawTreasure, drawVipLimo } from \"../sprites/events\";\nimport { FLOOR, TILE } from \"../scale\";\nimport type { ScreenRect } from \"./towerInputCamera\";\nimport type { TowerEngine } from \"./TowerEngine\";\nimport { floorRoomSpan, thiefX } from \"./thiefSpan\";\nimport { drawShaftNumbers } from \"./towerShaftNumbers\";\nimport { drawHaloRings } from \"./towerHaloRings\";\nimport { drawNoiseReach } from \"./towerNoiseReach\";\nimport { drawGhostLabel } from \"./towerGhostLabel\";\nimport { renderFireResponse } from \"./towerFireResponse\";\nimport { guardPosition } from \"./guardPosition\";\n\nexport { guardPosition, floorRoomSpan, thiefX };\n\n/**\n * The 2D canvas overlay and sky painters for {@link TowerEngine}, plus the\n * decorative event-visual bookkeeping (syncEventFx) and the sky-color helper.\n * Every painter takes the engine instance and reads its live state. Extracted\n * from `TowerEngine.ts`; the class keeps thin delegations. This is a pure code\n * move: the drawing math, ordering and Excalibur/canvas calls are unchanged.\n */\n\n/** How long Santa takes to cross the sky, and how long a bomb flash lingers\n * (seconds of the decorative anim clock, so both freeze under pause /\n * reduced motion, like every other decoration). */\nexport const SANTA_FLIGHT_SECONDS = 7;\nexport const EXPLOSION_SECONDS = 0.9;\nexport const THIEF_RUN_SECONDS = 4;\nexport const TREASURE_SECONDS = 1.8;\nexport const VIP_VISIT_SECONDS = 6.5;\n/** Hard cap on simultaneous flashes/sparkles, the events are rare, but never\n * let the lists grow unbounded (immediate-mode draws, no actors, so this is the\n * only bound needed). */\nexport const MAX_EXPLOSIONS = 8;\nexport const MAX_TREASURES = 6;\n\nexport function setReducedMotion(engine: TowerEngine, on: boolean): void {\n engine.reducedMotion = on;\n // A frozen anim clock can't advance an event visual to completion, so drop\n // any in flight rather than leave one stuck on screen.\n if (on) {\n engine.santaStart = null;\n engine.explosions = [];\n engine.thiefStart = null;\n engine.thiefCaught = false;\n engine.thiefSpan = null;\n engine.treasures = [];\n engine.vipStart = null;\n }\n}\n\n/** End the event visuals an undo or redo step left over empty space: a blast\n * or a treasure dig on a spot with no room and no floor now, and a thief on a\n * floor above or below the tower. Santa and the VIP limo belong to the whole\n * tower (the sky and the ground lobby), so they fly on. */\nexport function dropStrandedFx(engine: TowerEngine): void {\n const tower = engine.sim.tower;\n const standing = (fx: { floor: number; x: number }): boolean =>\n tower.unitAt(fx.floor, fx.x) !== undefined || tower.hasStructure(fx.floor, fx.x);\n if (engine.explosions.length > 0) engine.explosions = engine.explosions.filter(standing);\n if (engine.treasures.length > 0) engine.treasures = engine.treasures.filter(standing);\n if (engine.thiefFloor > tower.highestFloor || engine.thiefFloor < tower.lowestFloor) engine.thiefStart = null;\n}\n\n/** Reset the decorative animation clock to zero. Used by the screenshot\n * generator right after it swaps in a manually stepped clock, so the\n * decorations start from a known phase (the pre-swap boot accumulated a\n * wall-time-dependent amount) and every capture is reproducible. */\nexport function resetDecorativeClock(engine: TowerEngine): void {\n engine.animClock = 0;\n // Also zero the published value the sprites read, so the reset is effective\n // immediately even if a capture happens before the next tick() copies it.\n engine.d.anim = 0;\n}\n\n/**\n * Poll the sim's cosmetic fx counters and start/retire the matching event\n * visuals. New visuals only begin while animating (reduced motion / pause\n * suppress fresh motion, matching every other decoration); in-flight ones\n * retire when their window on the anim clock elapses. No Excalibur actors are\n * involved, these are immediate-mode draws, so there is nothing to leak.\n */\nexport function syncEventFx(engine: TowerEngine, animating: boolean): void {\n if (engine.sim.santaFxSeq !== engine.lastSantaSeq) {\n engine.lastSantaSeq = engine.sim.santaFxSeq;\n if (animating) engine.santaStart = engine.d.anim;\n }\n if (engine.sim.explosionFx.seq !== engine.lastExplosionSeq) {\n engine.lastExplosionSeq = engine.sim.explosionFx.seq;\n if (animating && engine.explosions.length < MAX_EXPLOSIONS) {\n engine.explosions.push({ x: engine.sim.explosionFx.x, floor: engine.sim.explosionFx.floor, start: engine.d.anim });\n }\n }\n if (engine.sim.thiefFx.seq !== engine.lastThiefSeq) {\n engine.lastThiefSeq = engine.sim.thiefFx.seq;\n // He runs the floor's rooms; a floor with none has nowhere to prowl.\n const span = animating ? floorRoomSpan(engine.sim.tower.units, engine.sim.thiefFx.floor, engine.sim.thiefFx.x) : null;\n if (span) {\n engine.thiefStart = engine.d.anim;\n engine.thiefCaught = engine.sim.thiefFx.caught;\n engine.thiefFloor = engine.sim.thiefFx.floor;\n engine.thiefSpan = span;\n }\n }\n if (engine.sim.treasureFx.seq !== engine.lastTreasureSeq) {\n engine.lastTreasureSeq = engine.sim.treasureFx.seq;\n if (animating && engine.treasures.length < MAX_TREASURES) {\n engine.treasures.push({ x: engine.sim.treasureFx.x, floor: engine.sim.treasureFx.floor, start: engine.d.anim });\n }\n }\n if (engine.sim.vipFxSeq !== engine.lastVipSeq) {\n engine.lastVipSeq = engine.sim.vipFxSeq;\n if (animating) engine.vipStart = engine.d.anim;\n }\n if (engine.santaStart !== null && engine.d.anim - engine.santaStart > SANTA_FLIGHT_SECONDS) {\n engine.santaStart = null;\n }\n if (engine.explosions.length > 0) {\n engine.explosions = engine.explosions.filter((e) => engine.d.anim - e.start <= EXPLOSION_SECONDS);\n }\n if (engine.thiefStart !== null && engine.d.anim - engine.thiefStart > THIEF_RUN_SECONDS) {\n engine.thiefStart = null;\n }\n if (engine.treasures.length > 0) {\n engine.treasures = engine.treasures.filter((t) => engine.d.anim - t.start <= TREASURE_SECONDS);\n }\n if (engine.vipStart !== null && engine.d.anim - engine.vipStart > VIP_VISIT_SECONDS) {\n engine.vipStart = null;\n }\n}\n\nexport function drawOverlay(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n if (engine.overlayCanvas.width !== engine.viewWidth || engine.overlayCanvas.height !== engine.viewHeight) {\n engine.overlayCanvas.width = engine.viewWidth;\n engine.overlayCanvas.height = engine.viewHeight;\n }\n ctx.clearRect(0, 0, engine.viewWidth, engine.viewHeight);\n drawShaftNumbers(engine, ctx);\n drawRain(engine, ctx);\n renderBombSearch(engine, ctx);\n renderFireResponse(engine, ctx);\n renderExplosions(engine, ctx);\n renderTreasures(engine, ctx);\n renderVip(engine, ctx);\n renderThief(engine, ctx);\n drawPreview(engine, ctx);\n drawSelection(engine, ctx);\n drawTrafficSpotlight(engine, ctx);\n drawPersonRing(engine, ctx);\n drawRuler(engine, ctx);\n}\n\n/** The countdown text: hours and minutes of game time left. */\nexport function bombCountdownText(minutesLeft: number): string {\n const left = Math.max(0, Math.ceil(minutesLeft));\n return `💣 Bomb search: ${Math.floor(left / 60)}:${String(left % 60).padStart(2, \"0\")} left`;\n}\n\n/** How strong the red glow at the screen's edges is during a bomb search:\n * one slow beat a second (in step with the tick), stronger in the last game\n * hour. Under reduced motion it holds steady, never beating. Far below any\n * flash threshold: one soft beat a second at low contrast. */\nexport function bombPulseAlpha(animSeconds: number, minutesLeft: number, reducedMotion: boolean): number {\n const peak = minutesLeft <= 60 ? 0.28 : 0.16;\n if (reducedMotion) return peak * 0.6;\n const beat = 0.5 + 0.5 * Math.cos(2 * Math.PI * animSeconds);\n return peak * (0.35 + 0.65 * beat * beat);\n}\n\n/** The size a figure walking a floor (a search guard, a thief) is drawn at:\n * the camera zoom, as the crowd is. A {@link FLOOR}-pixel floor is taller\n * than the figure (`FIGURE_HEIGHT` in the sprites), so it stays inside its\n * floor at every zoom; a fixed minimum once drew guards floors tall. */\nexport function floorFigureScale(zoom: number): number {\n return zoom;\n}\n\n/** The bomb search: each guard climbing the emergency stairs or walking a\n * floor's rooms (where the engine's timing says it is), the time left\n * before the deadline, and a red glow beating at the screen's edges. Under\n * reduced motion the glow holds still. */\nfunction renderBombSearch(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n const search = engine.sim.bombSearch;\n if (!search) return;\n const scale = floorFigureScale(engine.cam.zoom);\n const lit = towerCatalog(engine.sim).rules.shadedLook;\n const clockMs = engine.d.anim * 1000;\n search.sweeping.forEach((g, i) => {\n // Where the engine's timing puts the guard says what it is doing:\n // climbing the emergency stairs, or walking the floor's rooms.\n const at = guardPosition(g, engine.sim.clock.minutes);\n const x = engine.worldToScreenX(at.x);\n const y = engine.worldToScreenY(at.floor) + FLOOR * engine.cam.zoom;\n // The walk follows the guard's own steps along the floor, in world pixels.\n const frame = at.climbing ? beatFrame(clockMs, i) : strideFrame(lit, at.x * TILE, i);\n drawSearchGuard(ctx, x, y, scale, at.climbing, { frame, lit });\n });\n const minutesLeft = search.deadline - engine.sim.clock.minutes;\n drawEdgeGlow(ctx, engine.viewWidth, engine.viewHeight, bombPulseAlpha(engine.d.anim, minutesLeft, engine.reducedMotion));\n const text = bombCountdownText(minutesLeft);\n ctx.save();\n ctx.font = \"bold 14px sans-serif\";\n const w = ctx.measureText(text).width + 16;\n const x = (engine.viewWidth - w) / 2;\n ctx.fillStyle = \"rgba(120,16,16,0.85)\";\n ctx.fillRect(x, 8, w, 24);\n ctx.fillStyle = \"#ffffff\";\n ctx.textBaseline = \"middle\";\n ctx.fillText(text, x + 8, 20);\n ctx.restore();\n}\n\n/** A red glow fading in from the four screen edges. */\nfunction drawEdgeGlow(ctx: CanvasRenderingContext2D, w: number, h: number, alpha: number): void {\n const depth = Math.min(w, h) * 0.12;\n const red = (a: number): string => `rgba(200,20,20,${a})`;\n ctx.save();\n for (const [x0, y0, x1, y1, rx, ry, rw, rh] of [\n [0, 0, 0, depth, 0, 0, w, depth],\n [0, h, 0, h - depth, 0, h - depth, w, depth],\n [0, 0, depth, 0, 0, 0, depth, h],\n [w, 0, w - depth, 0, w - depth, 0, depth, h],\n ] as const) {\n const g = ctx.createLinearGradient(x0, y0, x1, y1);\n g.addColorStop(0, red(alpha));\n g.addColorStop(1, red(0));\n ctx.fillStyle = g;\n ctx.fillRect(rx, ry, rw, rh);\n }\n ctx.restore();\n}\n\n/** Bomb-blast flashes at their epicenters, projected to screen (see syncEventFx). */\nfunction renderExplosions(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n if (engine.explosions.length === 0) return;\n for (const e of engine.explosions) {\n const p = (engine.d.anim - e.start) / EXPLOSION_SECONDS;\n if (p < 0 || p > 1) continue;\n const sx = engine.worldToScreenX(e.x);\n const sy = engine.worldToScreenY(e.floor) + (FLOOR * engine.cam.zoom) / 2;\n const radius = (24 + p * 56) * engine.cam.zoom;\n drawExplosion(ctx, sx, sy, radius, p);\n }\n}\n\n/** Gold sparkles rising from unearthed-treasure dig sites (see syncEventFx). */\nfunction renderTreasures(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n if (engine.treasures.length === 0) return;\n for (const t of engine.treasures) {\n const p = (engine.d.anim - t.start) / TREASURE_SECONDS;\n if (p < 0 || p > 1) continue;\n const sx = engine.worldToScreenX(t.x);\n const sy = engine.worldToScreenY(t.floor) + (FLOOR * engine.cam.zoom) / 2;\n drawTreasure(ctx, sx, sy, Math.max(0.8, engine.cam.zoom), p);\n }\n}\n\n/** The VIP limo arriving at the ground lobby: in from the left, hold, off right. */\nfunction renderVip(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n if (engine.vipStart === null) return;\n const p = (engine.d.anim - engine.vipStart) / VIP_VISIT_SECONDS;\n if (p < 0 || p > 1) return;\n const centerSx = engine.worldToScreenX(viewWorld().lotWidth / 2);\n const groundSy = engine.worldToScreenY(1) + FLOOR * engine.cam.zoom * 0.5;\n const off = engine.viewWidth * 0.6;\n // The limo faces right, so it drives rightward: in from the left, hold, out\n // to the right (otherwise it moon-walks).\n let x = centerSx;\n if (p < 0.25) x = centerSx - (1 - p / 0.25) * off; // arrive from the left\n else if (p > 0.75) x = centerSx + ((p - 0.75) / 0.25) * off; // depart to the right\n drawVipLimo(ctx, x, groundSy, Math.max(0.9, engine.cam.zoom));\n}\n\n/** A thief running along the floor he's prowling (a guard trails him if\n * caught), in world space: feet on that floor, from the emergency stairs at\n * the left of its rooms to their right edge, scrolling with the camera. */\nfunction renderThief(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n if (engine.thiefStart === null || engine.thiefSpan === null) return;\n const p = (engine.d.anim - engine.thiefStart) / THIEF_RUN_SECONDS;\n if (p < 0 || p > 1) return;\n const x = engine.worldToScreenX(thiefX(engine.thiefSpan, p));\n const y = engine.worldToScreenY(engine.thiefFloor) + FLOOR * engine.cam.zoom;\n const lit = towerCatalog(engine.sim).rules.shadedLook;\n drawThief(ctx, x, y, floorFigureScale(engine.cam.zoom), engine.thiefCaught, { frame: strideFrame(lit, thiefX(engine.thiefSpan, p) * TILE, 0), lit });\n}\n\n/** Rain falls on the open sky on rainy days (overlay layer), never on the\n * building or below the ground (#638). */\nexport function drawRain(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n if (engine.sim.weather !== \"rain\") return;\n const W = engine.viewWidth;\n const H = engine.viewHeight;\n ctx.save();\n if (clipToOpenSky(engine, ctx, W, H)) paintRain(ctx, W, H, engine.d.anim);\n ctx.restore();\n}\n\n/** The rain itself, inside whatever clip the caller set. */\nfunction paintRain(ctx: CanvasRenderingContext2D, W: number, H: number, t: number): void {\n // A faint overcast tint over the open sky.\n ctx.fillStyle = RAIN.tint;\n ctx.fillRect(0, 0, W, H);\n ctx.strokeStyle = RAIN.stroke;\n ctx.lineWidth = RAIN.lineWidth;\n ctx.beginPath();\n for (let i = 0; i < RAIN.count; i++) {\n const x = ((i * RAIN.xMul) >>> 0) % W;\n const y = (((i * RAIN.yStep) % H) + t * RAIN.speed) % H;\n ctx.moveTo(x, y);\n ctx.lineTo(x + RAIN.dx, y + RAIN.dy);\n }\n ctx.stroke();\n}\n\n/** The translucent placement ghost: gold when valid, red when not, with one\n * explicit stroke width so no ghost inherits the overlay context's last one. */\nfunction drawGhostRect(ctx: CanvasRenderingContext2D, sx: number, sy: number, sw: number, sh: number, valid: boolean): void {\n ctx.globalAlpha = 0.5;\n ctx.fillStyle = valid ? \"#ffd24a\" : \"#cc3333\";\n ctx.fillRect(sx, sy, sw, sh);\n ctx.globalAlpha = 1;\n ctx.strokeStyle = valid ? \"#fff\" : \"#ff5555\";\n ctx.lineWidth = 1.5;\n ctx.strokeRect(sx + 0.5, sy + 0.5, sw - 1, sh - 1);\n}\n\n/** The golden selection outline shared by units and shafts. */\nfunction strokeSelection(ctx: CanvasRenderingContext2D, sx: number, sy: number, sw: number, sh: number): void {\n ctx.strokeStyle = \"#ffd24a\";\n ctx.lineWidth = 2;\n ctx.strokeRect(sx - 1, sy - 1, sw + 2, sh + 2);\n}\n\nfunction drawPreview(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n if (engine.preview) {\n const p = engine.preview;\n const catalog = towerCatalog(engine.sim);\n const f = catalogFacility(catalog, p.kind);\n // A venue's halo shows where it reaches before it is placed (#1980).\n const hgt = p.stories ?? f.floors; // a tall lobby's ghost covers every story (#308)\n if (f.halo) drawHaloRings(ctx, f.halo, p.floor, hgt, catalog.world, engine);\n // Floor/lobby tools lay a multi-tile brush strip; `span` (when set) is the\n // real footprint so the shadow matches what a click actually places.\n const w = p.span ?? f.width;\n // And how far its noise carries along its floor, or how far it hears.\n drawNoiseReach(ctx, f.noise, { floor: p.floor, floors: hgt, x: p.x, width: w }, engine.sim.tower, engine);\n const sx = engine.worldToScreenX(p.x);\n const sy = engine.worldToScreenY(p.floor + hgt - 1);\n const sw = w * TILE * engine.cam.zoom;\n const sh = hgt * FLOOR * engine.cam.zoom;\n drawGhostRect(ctx, sx, sy, sw, sh, p.valid);\n if (p.label) drawGhostLabel(ctx, sx + sw / 2, sy, p.label, p.valid);\n }\n if (engine.transportPreview) {\n const p = engine.transportPreview;\n const w = catalogFacility(towerCatalog(engine.sim), p.kind).width;\n const sx = engine.worldToScreenX(p.x);\n const sy = engine.worldToScreenY(p.top);\n const sw = w * TILE * engine.cam.zoom;\n const sh = (p.top - p.bottom + 1) * FLOOR * engine.cam.zoom;\n drawGhostRect(ctx, sx, sy, sw, sh, p.valid);\n }\n}\n\nfunction drawSelection(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n engine.arrowHit = {};\n if (engine.selectedId == null) return;\n const u = engine.sim.tower.getUnit(engine.selectedId);\n if (u) {\n const hgt = catalogFacility(towerCatalog(engine.sim), u.kind).floors;\n const sx = engine.worldToScreenX(u.x);\n const sy = engine.worldToScreenY(u.floor + hgt - 1);\n strokeSelection(ctx, sx, sy, u.width * TILE * engine.cam.zoom, hgt * FLOOR * engine.cam.zoom);\n return;\n }\n const t = engine.sim.tower.getTransport(engine.selectedId);\n if (t) drawTransportSelection(engine, ctx, t);\n}\n\n/** Outline the selected shaft and, for elevators, draw clickable extend\n * arrows above the top and below the bottom (as in the original). */\nfunction drawTransportSelection(engine: TowerEngine, ctx: CanvasRenderingContext2D, t: TransportView): void {\n const z = engine.cam.zoom;\n const sx = engine.worldToScreenX(t.x);\n const sw = t.width * TILE * z;\n const top = engine.worldToScreenY(t.top);\n const bottom = top + (t.top - t.bottom + 1) * FLOOR * z;\n strokeSelection(ctx, sx, top, sw, bottom - top);\n if (!isElevatorKind(t.kind)) return; // only lifts extend by a tappable arrow\n\n // Small, subtle tabs centered on the shaft, discoverable without dominating\n // the view. The hit rect is a touch larger than the drawn tab for easy use.\n const cx = sx + sw / 2;\n const tabW = Math.min(sw, 18);\n const tabH = 11;\n const up: ScreenRect = { x: cx - tabW / 2, y: top - tabH - 3, w: tabW, h: tabH };\n const down: ScreenRect = { x: cx - tabW / 2, y: bottom + 3, w: tabW, h: tabH };\n engine.arrowHit = {\n up: { x: up.x - 4, y: up.y - 4, w: up.w + 8, h: up.h + 8 },\n down: { x: down.x - 4, y: down.y - 4, w: down.w + 8, h: down.h + 8 },\n };\n const drawArrow = (r: ScreenRect, dir: \"up\" | \"down\") => {\n ctx.fillStyle = \"rgba(20,24,32,0.6)\";\n ctx.fillRect(r.x, r.y, r.w, r.h);\n ctx.fillStyle = \"#ffd24a\";\n const my = r.y + r.h / 2;\n const a = 4;\n ctx.beginPath();\n if (dir === \"up\") {\n ctx.moveTo(cx, my - a);\n ctx.lineTo(cx - a, my + a - 1);\n ctx.lineTo(cx + a, my + a - 1);\n } else {\n ctx.moveTo(cx, my + a);\n ctx.lineTo(cx - a, my - a + 1);\n ctx.lineTo(cx + a, my - a + 1);\n }\n ctx.closePath();\n ctx.fill();\n };\n drawArrow(up, \"up\");\n drawArrow(down, \"down\");\n}\n\nfunction drawRuler(engine: TowerEngine, ctx: CanvasRenderingContext2D): void {\n ctx.font = \"10px monospace\";\n ctx.textBaseline = \"middle\";\n const top = engine.screenToFloor(0) + 1;\n const bot = engine.screenToFloor(engine.viewHeight) - 1;\n for (let f = bot; f <= top; f++) {\n // worldToScreenY(f) is floor f's TOP edge; center the label on the row\n // (+half a floor). Using -half shifted every label up one floor, so the\n // ground lobby (floor 1) showed the \"B1\" tag and the elevator's own floor\n // numbers didn't line up with the ruler.\n const sy = engine.worldToScreenY(f) + (FLOOR * engine.cam.zoom) / 2;\n if (sy < 12 || sy > engine.viewHeight - 2) continue;\n const label = f >= 1 ? `${f}` : `B${1 - f}`;\n ctx.fillStyle = \"rgba(0,0,0,0.45)\";\n ctx.fillRect(0, sy - 7, 22, 14);\n ctx.fillStyle = f === 1 || f % 15 === 0 ? \"#ffd24a\" : \"#cfcfcf\";\n ctx.fillText(label, 3, sy);\n }\n ctx.textBaseline = \"alphabetic\";\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAwBA;;;;;;AAMG;AAEH;;AAEoD;AAC7C,MAAM,oBAAoB,GAAG;AAC7B,MAAM,iBAAiB,GAAG;AAC1B,MAAM,iBAAiB,GAAG;AAC1B,MAAM,gBAAgB,GAAG;AACzB,MAAM,iBAAiB,GAAG;AACjC;;AAE0B;AACnB,MAAM,cAAc,GAAG;AACvB,MAAM,aAAa,GAAG;AAEvB,SAAU,gBAAgB,CAAC,MAAmB,EAAE,EAAW,EAAA;AAC/D,IAAA,MAAM,CAAC,aAAa,GAAG,EAAE;;;IAGzB,IAAI,EAAE,EAAE;AACN,QAAA,MAAM,CAAC,UAAU,GAAG,IAAI;AACxB,QAAA,MAAM,CAAC,UAAU,GAAG,EAAE;AACtB,QAAA,MAAM,CAAC,UAAU,GAAG,IAAI;AACxB,QAAA,MAAM,CAAC,WAAW,GAAG,KAAK;AAC1B,QAAA,MAAM,CAAC,SAAS,GAAG,IAAI;AACvB,QAAA,MAAM,CAAC,SAAS,GAAG,EAAE;AACrB,QAAA,MAAM,CAAC,QAAQ,GAAG,IAAI;IACxB;AACF;AAEA;;;AAG4D;AACtD,SAAU,cAAc,CAAC,MAAmB,EAAA;AAChD,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK;AAC9B,IAAA,MAAM,QAAQ,GAAG,CAAC,EAAgC,KAChD,KAAK,CAAC,MAA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AG,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC;AACvD,IAAA,KAAK,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,EAAE;;;;;QAK/B,MAAM,EAAE,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC;QACnE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,UAAU,GAAG,CAAC;YAAE;AAC3C,QAAA,MAAM,KAAK,GAAG,CAAC,IAAI,CAAC,GAAG,CAAA,EAAG,CAAC,CAAA,CAAE,GAAG,CAAA,CAAA,EAAI,CAAC,GAAG,CAAC,EAAE;AAC3C,QAAA,GAAG,CAAC,SAAS,GAAG,kBAAkB;AAClC,QAAA,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC;QAC/B,GAAG,CAAC,SAAS,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,SAAS,GAAG,SAAS;QAC/D,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;IAC5B;AACA,IAAA,GAAG,CAAC,YAAY,GAAG,YAAY;AACjC;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { emptyFlightPass } from "../venueFlights";
|
|
2
|
+
import type { TowerEngine } from "./TowerEngine";
|
|
3
|
+
/**
|
|
4
|
+
* Retained-scene reconciliation (rooms, structure, transports, exterior
|
|
5
|
+
* facade) for {@link TowerEngine}, as friend functions taking the engine
|
|
6
|
+
* instance. Extracted from `TowerEngine.ts`; the class keeps thin delegations.
|
|
7
|
+
* Static construction, baking and the sim-swap / teardown lifecycle live in
|
|
8
|
+
* `towerScene`. Pure code move: no reconciliation or scene-graph logic changed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function syncScene(engine: TowerEngine): void;
|
|
11
|
+
/**
|
|
12
|
+
* Reconcile the building's exterior dressing, escape stairs and the roof
|
|
13
|
+
* crane, to the tower silhouette, and record it as the rain's shelter. Runs
|
|
14
|
+
* only on structural changes (like
|
|
15
|
+
* syncMotion): the silhouette can't move on an hour tick or a lighting flip.
|
|
16
|
+
*/
|
|
17
|
+
export declare function syncFacade(engine: TowerEngine): void;
|