@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,208 @@
|
|
|
1
|
+
import * as Tone from 'tone';
|
|
2
|
+
import { midiToFreq } from './toneScenes.js';
|
|
3
|
+
import { LightPolySynth, LightMonoSynth } from './lightSynth.js';
|
|
4
|
+
|
|
5
|
+
/** Build the full jingle instrument set on the given bus, deliberately dry:
|
|
6
|
+
* a reverb send here would escape the Effects slider. The recipes live in
|
|
7
|
+
* this module beside the cues that play them; ToneAudioEngine owns the
|
|
8
|
+
* lifecycle (it disposes every synth returned here). */
|
|
9
|
+
function createSfxVoices(bus) {
|
|
10
|
+
const built = [];
|
|
11
|
+
try {
|
|
12
|
+
return buildSfxVoices(bus, built);
|
|
13
|
+
}
|
|
14
|
+
catch (err) {
|
|
15
|
+
// A mid-build throw would strand already-connected synths on the live bus
|
|
16
|
+
// (the engine's catch never sees these locals): reap them here.
|
|
17
|
+
for (const n of built) {
|
|
18
|
+
try {
|
|
19
|
+
n.dispose();
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
/* already gone */
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
throw err;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function buildSfxVoices(bus, built) {
|
|
29
|
+
const track = (n) => {
|
|
30
|
+
built.push(n);
|
|
31
|
+
return n;
|
|
32
|
+
};
|
|
33
|
+
const jingle = track(new LightPolySynth({
|
|
34
|
+
envelope: { attack: 0.005, decay: 0.1, sustain: 0, release: 0.12 },
|
|
35
|
+
}).connect(bus));
|
|
36
|
+
jingle.maxPolyphony = 12;
|
|
37
|
+
// The bloop is a mono voice because its swoop is a scheduled frequency ramp.
|
|
38
|
+
const bloop = track(new LightMonoSynth({
|
|
39
|
+
oscillator: { type: "sine" },
|
|
40
|
+
envelope: { attack: 0.008, decay: 0.2, sustain: 0, release: 0.08 },
|
|
41
|
+
}).connect(bus));
|
|
42
|
+
const bloop2 = track(new LightMonoSynth({
|
|
43
|
+
oscillator: { type: "sine" },
|
|
44
|
+
envelope: { attack: 0.008, decay: 0.2, sustain: 0, release: 0.08 },
|
|
45
|
+
}).connect(bus));
|
|
46
|
+
const tick = track(new LightMonoSynth({
|
|
47
|
+
oscillator: { type: "sine" },
|
|
48
|
+
envelope: { attack: 0.001, decay: 0.05, sustain: 0, release: 0.02 },
|
|
49
|
+
}).connect(bus));
|
|
50
|
+
const bloopPartial = track(new LightPolySynth({
|
|
51
|
+
oscillator: { type: "sine" },
|
|
52
|
+
envelope: { attack: 0.008, decay: 0.18, sustain: 0, release: 0.06 },
|
|
53
|
+
}).connect(bus));
|
|
54
|
+
bloopPartial.maxPolyphony = 8;
|
|
55
|
+
const bell = track(new LightPolySynth({
|
|
56
|
+
oscillator: { type: "sine" },
|
|
57
|
+
envelope: { attack: 0.002, decay: 1.1, sustain: 0, release: 0.4 },
|
|
58
|
+
}).connect(bus));
|
|
59
|
+
bell.maxPolyphony = 12;
|
|
60
|
+
const bellPartial = track(new LightPolySynth({
|
|
61
|
+
oscillator: { type: "sine" },
|
|
62
|
+
envelope: { attack: 0.002, decay: 0.5, sustain: 0, release: 0.2 },
|
|
63
|
+
}).connect(bus));
|
|
64
|
+
bellPartial.maxPolyphony = 12;
|
|
65
|
+
return { jingle, bloop, bloop2, tick, bloopPartial, bell, bellPartial };
|
|
66
|
+
}
|
|
67
|
+
/** One bell strike: the fundamental plus a partial 19 semitones up (just shy
|
|
68
|
+
* of the 3rd harmonic; the slight inharmonicity is what reads as "bell") at
|
|
69
|
+
* about -16 dB relative to the strike. */
|
|
70
|
+
function strikeBell(voices, midi, t, vel) {
|
|
71
|
+
voices.bell.triggerAttackRelease(midiToFreq(midi), 1.1, t, vel);
|
|
72
|
+
voices.bellPartial.triggerAttackRelease(midiToFreq(midi + 19), 0.5, t, vel * 0.16);
|
|
73
|
+
}
|
|
74
|
+
/** How far apart two starts on one mono voice must be, in seconds. A mono
|
|
75
|
+
* voice (the bloops, the tick) asserts in Tone when it restarts at the time
|
|
76
|
+
* of a start still in effect ("Start time must be strictly greater than
|
|
77
|
+
* previous start time"). Firefox advances the audio clock in coarse steps,
|
|
78
|
+
* so two cues in one input event or one frame (a build then an error, two
|
|
79
|
+
* clicks) can read the same Tone.now(), and a two-bloop gesture's offset
|
|
80
|
+
* second swoop can land on another gesture's. A start that would land on
|
|
81
|
+
* one already scheduled moves this much later instead. One millisecond is
|
|
82
|
+
* far below what an ear can separate. */
|
|
83
|
+
const MIN_START_GAP = 0.001;
|
|
84
|
+
/** How long a voice remembers a start, in seconds either side of a new one.
|
|
85
|
+
* The furthest a cue schedules ahead is the error's second swoop (0.28 s),
|
|
86
|
+
* so a start further away than this can never collide; and when a restarted
|
|
87
|
+
* audio context rewinds the clock, the old context's starts drop out. */
|
|
88
|
+
const START_MEMORY = 1;
|
|
89
|
+
const startsOn = new WeakMap();
|
|
90
|
+
/** When a mono voice may start for a cue asked to start at `asked`: then, or
|
|
91
|
+
* a millisecond or so later if a start is already scheduled there. Starts
|
|
92
|
+
* that miss each other keep their exact timing. Keyed to the voice object,
|
|
93
|
+
* so a rebuilt engine starts clean. */
|
|
94
|
+
function monoStart(voice, asked) {
|
|
95
|
+
const near = (startsOn.get(voice) ?? []).filter((s) => Math.abs(s - asked) <= START_MEMORY);
|
|
96
|
+
let start = asked;
|
|
97
|
+
while (near.some((s) => Math.abs(s - start) < MIN_START_GAP))
|
|
98
|
+
start += MIN_START_GAP;
|
|
99
|
+
near.push(start);
|
|
100
|
+
startsOn.set(voice, near);
|
|
101
|
+
return start;
|
|
102
|
+
}
|
|
103
|
+
/** One bloop: a smooth exponential swoop from `f0` down to `f1` Hz on the
|
|
104
|
+
* given mono glide voice. The ramp must be scheduled AFTER the trigger so it
|
|
105
|
+
* overrides the setValueAtTime the trigger itself schedules. `f1` never goes
|
|
106
|
+
* below 160 Hz, and every bloop carries its quiet octave and twelfth
|
|
107
|
+
* partials (small-speaker rules, owner-tested). */
|
|
108
|
+
function swoopBloop(voice, voices, f0, f1, ramp, at, vel, decay = 0.2) {
|
|
109
|
+
const floor = Math.max(f1, 160);
|
|
110
|
+
const t = monoStart(voice, at);
|
|
111
|
+
// Per-cue envelope: the click is a short blip (0.09 s), the error a slow
|
|
112
|
+
// sigh (0.3 s). Setting the mono voice's decay is immediate, so both bloops
|
|
113
|
+
// of one gesture share the cue's value.
|
|
114
|
+
voice.envelope.decay = decay;
|
|
115
|
+
voice.triggerAttackRelease(f0, ramp + 0.06, t, vel);
|
|
116
|
+
// Cancel strictly at this swoop's start. A caller scheduling two swoops on
|
|
117
|
+
// ONE voice must keep the gap wider than the first ramp: Web Audio cancels
|
|
118
|
+
// events at times >= the cancel point, so a gap equal to the ramp length
|
|
119
|
+
// deletes the first swoop's ramp end and it plays flat (two-bloop gestures
|
|
120
|
+
// therefore put their second swoop on `bloop2`).
|
|
121
|
+
voice.frequency.cancelScheduledValues(t);
|
|
122
|
+
voice.frequency.setValueAtTime(f0, t);
|
|
123
|
+
voice.frequency.exponentialRampToValueAtTime(floor, t + ramp);
|
|
124
|
+
// Every bloop carries its quiet octave and twelfth partials (the approved
|
|
125
|
+
// previews baked them into the waveform itself), so the gesture keeps its
|
|
126
|
+
// color on small speakers at any landing pitch.
|
|
127
|
+
voices.bloopPartial.triggerAttackRelease(floor * 2, ramp + 0.05, t, vel * 0.32);
|
|
128
|
+
voices.bloopPartial.triggerAttackRelease(floor * 3, ramp + 0.04, t, vel * 0.14);
|
|
129
|
+
}
|
|
130
|
+
/** The promote phrase: the splash theme's peak turn (C5 D5 B4 A4) struck as
|
|
131
|
+
* bells. [midi, offsetSeconds, vel]; shared by star promotions and the win. */
|
|
132
|
+
const PROMOTE_BELLS = [
|
|
133
|
+
[72, 0, 0.45],
|
|
134
|
+
[74, 0.2, 0.5],
|
|
135
|
+
[71, 0.52, 0.55],
|
|
136
|
+
[69, 1.0, 0.4],
|
|
137
|
+
];
|
|
138
|
+
/** The error double bloop spans ~0.6 s across its two voices; retriggering
|
|
139
|
+
* mid-gesture would stack cancel-and-ramp schedules into an audible pop, so
|
|
140
|
+
* repeats inside the WHOLE gesture are dropped (drag-painting an invalid
|
|
141
|
+
* zone fires error every frame). Seconds, on the Tone clock. The stamp is
|
|
142
|
+
* keyed to the voice set, so a disposed-and-rebuilt engine (a fresh
|
|
143
|
+
* SfxVoices) starts clean instead of inheriting an old clock. */
|
|
144
|
+
const ERROR_HOLDOFF = 0.65;
|
|
145
|
+
const errorHeldSince = new WeakMap();
|
|
146
|
+
/** Play a one-shot action jingle through the sfx voices. */
|
|
147
|
+
function playSfx(voices, name) {
|
|
148
|
+
const t = Tone.now();
|
|
149
|
+
const play = (midi, dur, offset, vel = 0.5) => voices.jingle.triggerAttackRelease(midiToFreq(midi), dur, t + offset, vel);
|
|
150
|
+
switch (name) {
|
|
151
|
+
case "build":
|
|
152
|
+
// The bloop: one smooth swoop from 520 Hz down to 180 Hz, the piece
|
|
153
|
+
// landing where it belongs.
|
|
154
|
+
swoopBloop(voices.bloop, voices, 520, 180, 0.16, t, 0.9);
|
|
155
|
+
break;
|
|
156
|
+
case "click":
|
|
157
|
+
// A tiny high bloop: the same gesture, small and quick.
|
|
158
|
+
swoopBloop(voices.bloop, voices, 700, 380, 0.1, t, 0.5, 0.09);
|
|
159
|
+
break;
|
|
160
|
+
case "sell":
|
|
161
|
+
// Two falling bloops: the piece leaves in two steps.
|
|
162
|
+
swoopBloop(voices.bloop, voices, 420, 200, 0.12, t, 0.8);
|
|
163
|
+
swoopBloop(voices.bloop2, voices, 320, 160, 0.12, t + 0.12, 0.8);
|
|
164
|
+
break;
|
|
165
|
+
case "error": {
|
|
166
|
+
// A slow, sighing double bloop. Guarded: see ERROR_HOLDOFF. A restarted
|
|
167
|
+
// audio context rewinds the Tone clock; a stamp in the future therefore
|
|
168
|
+
// means the clock restarted and the holdoff resets.
|
|
169
|
+
const held = errorHeldSince.get(voices) ?? -Infinity;
|
|
170
|
+
if (t >= held && t - held < ERROR_HOLDOFF)
|
|
171
|
+
return;
|
|
172
|
+
errorHeldSince.set(voices, t);
|
|
173
|
+
swoopBloop(voices.bloop, voices, 440, 170, 0.24, t, 1, 0.3);
|
|
174
|
+
swoopBloop(voices.bloop2, voices, 340, 160, 0.24, t + 0.28, 1, 0.3);
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
case "money":
|
|
178
|
+
play(76, "16n", 0, 0.45);
|
|
179
|
+
play(80, "16n", 0.06, 0.45);
|
|
180
|
+
play(83, "16n", 0.12, 0.45);
|
|
181
|
+
play(88, "16n", 0.18, 0.45);
|
|
182
|
+
break;
|
|
183
|
+
case "promote":
|
|
184
|
+
// The splash theme's peak turn on the ping bell: the tower sings its
|
|
185
|
+
// own tune back at every star promotion and the win.
|
|
186
|
+
for (const [midi, offset, vel] of PROMOTE_BELLS)
|
|
187
|
+
strikeBell(voices, midi, t + offset, vel);
|
|
188
|
+
break;
|
|
189
|
+
case "notify":
|
|
190
|
+
// A single ping on G4: the onboarding step chime and other small nudges.
|
|
191
|
+
strikeBell(voices, 67, t, 0.7);
|
|
192
|
+
break;
|
|
193
|
+
case "tick": {
|
|
194
|
+
// The bomb's clock, once a second while a bomb search runs: a woodblock
|
|
195
|
+
// knock (the owner's pick of three previews), a 1 ms strike that drops
|
|
196
|
+
// from 900 to 700 Hz in 10 ms and dies away within about 50 ms.
|
|
197
|
+
const k = monoStart(voices.tick, t);
|
|
198
|
+
voices.tick.triggerAttackRelease(900, 0.03, k, 0.5);
|
|
199
|
+
voices.tick.frequency.cancelScheduledValues(k);
|
|
200
|
+
voices.tick.frequency.setValueAtTime(900, k);
|
|
201
|
+
voices.tick.frequency.exponentialRampToValueAtTime(700, k + 0.01);
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export { createSfxVoices, playSfx };
|
|
208
|
+
//# sourceMappingURL=toneVoices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toneVoices.js","sources":["../../src/audio/toneVoices.ts"],"sourcesContent":["import * as Tone from \"tone\";\nimport { midiToFreq, type SfxName } from \"./toneScenes\";\nimport { LightMonoSynth, LightPolySynth } from \"./lightSynth\";\n\n/**\n * The one-shot action jingles (build, sell, promote, and friends) the game\n * fires on demand through the sfx bus. This module once also carried the\n * scene melody and the close-up accent cues; the melody was replaced by the\n * composed tracks (`./toneTracks.ts`) and the accents by the crowd/venue\n * ambience layer (`./toneCrowd.ts`), leaving the jingles as its whole job.\n *\n * Every cue is human-voiced: the owner recorded a \"bloop\" and a \"ping\" with\n * their own voice, and the synth recipes here are ear-approved recreations\n * (GDD crowd-din-ambience, \"Human-recorded audio theme\" amendment). The bloop\n * family carries build, click, sell, and error; the ping bell carries notify\n * and the promote phrase, which quotes the splash theme's peak turn so the\n * milestones ring the same tune the start screen sings. `money` keeps the\n * legacy jingle recipe, defined but uncalled.\n *\n * Audibility rule (owner-tested on phone and laptop speakers): no bloop ramps\n * below 160 Hz, and the deep cues add quiet octave/twelfth partials so small\n * speakers reconstruct the low pitch. The error cue reads by its slow\n * double-bloop gesture, never by depth alone.\n */\n\n/** The instrument set `playSfx` plays through. All owned by ToneAudioEngine\n * and connected to the sfx bus, so every cue follows the Effects slider. */\nexport interface SfxVoices {\n /** Short percussive sine synth: the legacy money jingle. */\n jingle: LightPolySynth;\n /** Mono sine with a schedulable frequency glide: every bloop is a ramp. */\n bloop: LightMonoSynth;\n /** Second mono glide voice: the trailing bloop of a two-bloop gesture\n * (sell, error) lives here so a gesture's own second swoop can never\n * cancel its first's ramp, and a build or click can never cancel a\n * pending second swoop. Two OVERLAPPING two-bloop gestures can still\n * collide here; error-into-error is holdoff-guarded, and the remaining\n * window (a sell inside an error's 0.28 s gap) is accepted as rare and\n * brief rather than guarded. Two starts at the very same time threw\n * on Tone's mono voices, so `monoStart` still moves the later one aside. */\n bloop2: LightMonoSynth;\n /** The bomb search's clock: a dry woodblock knock, its own mono voice so\n * its near-instant attack never reshapes the bloops. */\n tick: LightMonoSynth;\n /** Quiet partials over the deeper bloops (octave + twelfth), poly so a\n * double bloop's partials can overlap. */\n bloopPartial: LightPolySynth;\n /** Bell fundamentals: long natural decay, no sustain. */\n bell: LightPolySynth;\n /** Bell color: one quiet inharmonic partial per strike, shorter decay. */\n bellPartial: LightPolySynth;\n}\n\n/** Build the full jingle instrument set on the given bus, deliberately dry:\n * a reverb send here would escape the Effects slider. The recipes live in\n * this module beside the cues that play them; ToneAudioEngine owns the\n * lifecycle (it disposes every synth returned here). */\nexport function createSfxVoices(bus: Tone.ToneAudioNode): SfxVoices {\n const built: Array<{ dispose(): void }> = [];\n try {\n return buildSfxVoices(bus, built);\n } catch (err) {\n // A mid-build throw would strand already-connected synths on the live bus\n // (the engine's catch never sees these locals): reap them here.\n for (const n of built) {\n try {\n n.dispose();\n } catch {\n /* already gone */\n }\n }\n throw err;\n }\n}\n\nfunction buildSfxVoices(bus: Tone.ToneAudioNode, built: Array<{ dispose(): void }>): SfxVoices {\n const track = <T extends { dispose(): void }>(n: T): T => {\n built.push(n);\n return n;\n };\n const jingle = track(new LightPolySynth({\n envelope: { attack: 0.005, decay: 0.1, sustain: 0, release: 0.12 },\n }).connect(bus));\n jingle.maxPolyphony = 12;\n // The bloop is a mono voice because its swoop is a scheduled frequency ramp.\n const bloop = track(new LightMonoSynth({\n oscillator: { type: \"sine\" },\n envelope: { attack: 0.008, decay: 0.2, sustain: 0, release: 0.08 },\n }).connect(bus));\n const bloop2 = track(new LightMonoSynth({\n oscillator: { type: \"sine\" },\n envelope: { attack: 0.008, decay: 0.2, sustain: 0, release: 0.08 },\n }).connect(bus));\n const tick = track(new LightMonoSynth({\n oscillator: { type: \"sine\" },\n envelope: { attack: 0.001, decay: 0.05, sustain: 0, release: 0.02 },\n }).connect(bus));\n const bloopPartial = track(new LightPolySynth({\n oscillator: { type: \"sine\" },\n envelope: { attack: 0.008, decay: 0.18, sustain: 0, release: 0.06 },\n }).connect(bus));\n bloopPartial.maxPolyphony = 8;\n const bell = track(new LightPolySynth({\n oscillator: { type: \"sine\" },\n envelope: { attack: 0.002, decay: 1.1, sustain: 0, release: 0.4 },\n }).connect(bus));\n bell.maxPolyphony = 12;\n const bellPartial = track(new LightPolySynth({\n oscillator: { type: \"sine\" },\n envelope: { attack: 0.002, decay: 0.5, sustain: 0, release: 0.2 },\n }).connect(bus));\n bellPartial.maxPolyphony = 12;\n return { jingle, bloop, bloop2, tick, bloopPartial, bell, bellPartial };\n}\n\n/** One bell strike: the fundamental plus a partial 19 semitones up (just shy\n * of the 3rd harmonic; the slight inharmonicity is what reads as \"bell\") at\n * about -16 dB relative to the strike. */\nfunction strikeBell(voices: SfxVoices, midi: number, t: number, vel: number): void {\n voices.bell.triggerAttackRelease(midiToFreq(midi), 1.1, t, vel);\n voices.bellPartial.triggerAttackRelease(midiToFreq(midi + 19), 0.5, t, vel * 0.16);\n}\n\n/** How far apart two starts on one mono voice must be, in seconds. A mono\n * voice (the bloops, the tick) asserts in Tone when it restarts at the time\n * of a start still in effect (\"Start time must be strictly greater than\n * previous start time\"). Firefox advances the audio clock in coarse steps,\n * so two cues in one input event or one frame (a build then an error, two\n * clicks) can read the same Tone.now(), and a two-bloop gesture's offset\n * second swoop can land on another gesture's. A start that would land on\n * one already scheduled moves this much later instead. One millisecond is\n * far below what an ear can separate. */\nconst MIN_START_GAP = 0.001;\n/** How long a voice remembers a start, in seconds either side of a new one.\n * The furthest a cue schedules ahead is the error's second swoop (0.28 s),\n * so a start further away than this can never collide; and when a restarted\n * audio context rewinds the clock, the old context's starts drop out. */\nconst START_MEMORY = 1;\nconst startsOn = new WeakMap<object, number[]>();\n\n/** When a mono voice may start for a cue asked to start at `asked`: then, or\n * a millisecond or so later if a start is already scheduled there. Starts\n * that miss each other keep their exact timing. Keyed to the voice object,\n * so a rebuilt engine starts clean. */\nfunction monoStart(voice: object, asked: number): number {\n const near = (startsOn.get(voice) ?? []).filter((s) => Math.abs(s - asked) <= START_MEMORY);\n let start = asked;\n while (near.some((s) => Math.abs(s - start) < MIN_START_GAP)) start += MIN_START_GAP;\n near.push(start);\n startsOn.set(voice, near);\n return start;\n}\n\n/** One bloop: a smooth exponential swoop from `f0` down to `f1` Hz on the\n * given mono glide voice. The ramp must be scheduled AFTER the trigger so it\n * overrides the setValueAtTime the trigger itself schedules. `f1` never goes\n * below 160 Hz, and every bloop carries its quiet octave and twelfth\n * partials (small-speaker rules, owner-tested). */\nfunction swoopBloop(\n voice: LightMonoSynth,\n voices: SfxVoices,\n f0: number,\n f1: number,\n ramp: number,\n at: number,\n vel: number,\n decay = 0.2,\n): void {\n const floor = Math.max(f1, 160);\n const t = monoStart(voice, at);\n // Per-cue envelope: the click is a short blip (0.09 s), the error a slow\n // sigh (0.3 s). Setting the mono voice's decay is immediate, so both bloops\n // of one gesture share the cue's value.\n voice.envelope.decay = decay;\n voice.triggerAttackRelease(f0, ramp + 0.06, t, vel);\n // Cancel strictly at this swoop's start. A caller scheduling two swoops on\n // ONE voice must keep the gap wider than the first ramp: Web Audio cancels\n // events at times >= the cancel point, so a gap equal to the ramp length\n // deletes the first swoop's ramp end and it plays flat (two-bloop gestures\n // therefore put their second swoop on `bloop2`).\n voice.frequency.cancelScheduledValues(t);\n voice.frequency.setValueAtTime(f0, t);\n voice.frequency.exponentialRampToValueAtTime(floor, t + ramp);\n // Every bloop carries its quiet octave and twelfth partials (the approved\n // previews baked them into the waveform itself), so the gesture keeps its\n // color on small speakers at any landing pitch.\n voices.bloopPartial.triggerAttackRelease(floor * 2, ramp + 0.05, t, vel * 0.32);\n voices.bloopPartial.triggerAttackRelease(floor * 3, ramp + 0.04, t, vel * 0.14);\n}\n\n/** The promote phrase: the splash theme's peak turn (C5 D5 B4 A4) struck as\n * bells. [midi, offsetSeconds, vel]; shared by star promotions and the win. */\nconst PROMOTE_BELLS: ReadonlyArray<readonly [number, number, number]> = [\n [72, 0, 0.45],\n [74, 0.2, 0.5],\n [71, 0.52, 0.55],\n [69, 1.0, 0.4],\n];\n\n/** The error double bloop spans ~0.6 s across its two voices; retriggering\n * mid-gesture would stack cancel-and-ramp schedules into an audible pop, so\n * repeats inside the WHOLE gesture are dropped (drag-painting an invalid\n * zone fires error every frame). Seconds, on the Tone clock. The stamp is\n * keyed to the voice set, so a disposed-and-rebuilt engine (a fresh\n * SfxVoices) starts clean instead of inheriting an old clock. */\nconst ERROR_HOLDOFF = 0.65;\nconst errorHeldSince = new WeakMap<SfxVoices, number>();\n\n/** Play a one-shot action jingle through the sfx voices. */\nexport function playSfx(voices: SfxVoices, name: SfxName): void {\n const t = Tone.now();\n const play = (midi: number, dur: Tone.Unit.Time, offset: number, vel = 0.5) =>\n voices.jingle.triggerAttackRelease(midiToFreq(midi), dur, t + offset, vel);\n switch (name) {\n case \"build\":\n // The bloop: one smooth swoop from 520 Hz down to 180 Hz, the piece\n // landing where it belongs.\n swoopBloop(voices.bloop, voices, 520, 180, 0.16, t, 0.9);\n break;\n case \"click\":\n // A tiny high bloop: the same gesture, small and quick.\n swoopBloop(voices.bloop, voices, 700, 380, 0.1, t, 0.5, 0.09);\n break;\n case \"sell\":\n // Two falling bloops: the piece leaves in two steps.\n swoopBloop(voices.bloop, voices, 420, 200, 0.12, t, 0.8);\n swoopBloop(voices.bloop2, voices, 320, 160, 0.12, t + 0.12, 0.8);\n break;\n case \"error\": {\n // A slow, sighing double bloop. Guarded: see ERROR_HOLDOFF. A restarted\n // audio context rewinds the Tone clock; a stamp in the future therefore\n // means the clock restarted and the holdoff resets.\n const held = errorHeldSince.get(voices) ?? -Infinity;\n if (t >= held && t - held < ERROR_HOLDOFF) return;\n errorHeldSince.set(voices, t);\n swoopBloop(voices.bloop, voices, 440, 170, 0.24, t, 1, 0.3);\n swoopBloop(voices.bloop2, voices, 340, 160, 0.24, t + 0.28, 1, 0.3);\n break;\n }\n case \"money\":\n play(76, \"16n\", 0, 0.45);\n play(80, \"16n\", 0.06, 0.45);\n play(83, \"16n\", 0.12, 0.45);\n play(88, \"16n\", 0.18, 0.45);\n break;\n case \"promote\":\n // The splash theme's peak turn on the ping bell: the tower sings its\n // own tune back at every star promotion and the win.\n for (const [midi, offset, vel] of PROMOTE_BELLS) strikeBell(voices, midi, t + offset, vel);\n break;\n case \"notify\":\n // A single ping on G4: the onboarding step chime and other small nudges.\n strikeBell(voices, 67, t, 0.7);\n break;\n case \"tick\": {\n // The bomb's clock, once a second while a bomb search runs: a woodblock\n // knock (the owner's pick of three previews), a 1 ms strike that drops\n // from 900 to 700 Hz in 10 ms and dies away within about 50 ms.\n const k = monoStart(voices.tick, t);\n voices.tick.triggerAttackRelease(900, 0.03, k, 0.5);\n voices.tick.frequency.cancelScheduledValues(k);\n voices.tick.frequency.setValueAtTime(900, k);\n voices.tick.frequency.exponentialRampToValueAtTime(700, k + 0.01);\n break;\n }\n }\n}\n"],"names":[],"mappings":";;;;AAqDA;;;AAGyD;AACnD,SAAU,eAAe,CAAC,GAAuB,EAAA;IACrD,MAAM,KAAK,GAA+B,EAAE;AAC5C,IAAA,IAAI;AACF,QAAA,OAAO,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC;IACnC;IAAE,OAAO,GAAG,EAAE;;;AAGZ,QAAA,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE;AACrB,YAAA,IAAI;gBACF,CAAC,CAAC,OAAO,EAAE;YACb;AAAE,YAAA,MAAM;;YAER;QACF;AACA,QAAA,MAAM,GAAG;IACX;AACF;AAEA,SAAS,cAAc,CAAC,GAAuB,EAAE,KAAiC,EAAA;AAChF,IAAA,MAAM,KAAK,GAAG,CAAgC,CAAI,KAAO;AACvD,QAAA,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AACb,QAAA,OAAO,CAAC;AACV,IAAA,CAAC;AACD,IAAA,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,cAAc,CAAC;AACtC,QAAA,QAAQ,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,E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