@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,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Point Tone at the one audio context the game plays through. Call it before
|
|
3
|
+
* any node is built.
|
|
4
|
+
*
|
|
5
|
+
* The context asks for large buffers over low latency: this is a sim, not an
|
|
6
|
+
* instrument, and the default interactive hint underruns on phones (heard as
|
|
7
|
+
* random crackles).
|
|
8
|
+
*
|
|
9
|
+
* Importing Tone already opened a default low-latency context, which nothing
|
|
10
|
+
* plays through, so it is closed. While it stayed open, an operating system
|
|
11
|
+
* that sets one buffer size per output device (macOS does) ran the device at
|
|
12
|
+
* the small size it asked for, and the playback context then had to render
|
|
13
|
+
* its large buffers inside those short deadlines.
|
|
14
|
+
*/
|
|
15
|
+
export declare function usePlaybackContext(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Puts the playback context to sleep once a fade has played, and wakes it.
|
|
18
|
+
* While it sleeps the audio clock stops: the music holds its place, no note is
|
|
19
|
+
* built and nothing renders, so a page the player left costs no audio work.
|
|
20
|
+
*/
|
|
21
|
+
export declare class ContextSleep {
|
|
22
|
+
private timer;
|
|
23
|
+
/** Suspend the context after `fadeMs`, the fade that leads into it. */
|
|
24
|
+
sleepAfter(fadeMs: number): void;
|
|
25
|
+
/** Cancel a pending sleep and start the clock again. Resuming can reject
|
|
26
|
+
* (no gesture yet), so it is caught; the next gesture retries it. */
|
|
27
|
+
wake(): void;
|
|
28
|
+
/** Drop a pending sleep without waking. */
|
|
29
|
+
cancel(): void;
|
|
30
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as Tone from 'tone';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Point Tone at the one audio context the game plays through. Call it before
|
|
5
|
+
* any node is built.
|
|
6
|
+
*
|
|
7
|
+
* The context asks for large buffers over low latency: this is a sim, not an
|
|
8
|
+
* instrument, and the default interactive hint underruns on phones (heard as
|
|
9
|
+
* random crackles).
|
|
10
|
+
*
|
|
11
|
+
* Importing Tone already opened a default low-latency context, which nothing
|
|
12
|
+
* plays through, so it is closed. While it stayed open, an operating system
|
|
13
|
+
* that sets one buffer size per output device (macOS does) ran the device at
|
|
14
|
+
* the small size it asked for, and the playback context then had to render
|
|
15
|
+
* its large buffers inside those short deadlines.
|
|
16
|
+
*/
|
|
17
|
+
function usePlaybackContext() {
|
|
18
|
+
try {
|
|
19
|
+
const unused = Tone.getContext();
|
|
20
|
+
Tone.setContext(new Tone.Context({ latencyHint: "playback" }));
|
|
21
|
+
closeContext(unused);
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
/* keep the default context */
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
/** Close a context nothing plays through. Its close is caught apart so a
|
|
28
|
+
* rejection is swallowed rather than reported as unhandled; dispose then
|
|
29
|
+
* stops its clock. A failure here leaves the swap already made in place. */
|
|
30
|
+
function closeContext(ctx) {
|
|
31
|
+
try {
|
|
32
|
+
if (ctx instanceof Tone.Context)
|
|
33
|
+
void ctx.close().catch(() => { });
|
|
34
|
+
ctx.dispose();
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
/* already closed */
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Puts the playback context to sleep once a fade has played, and wakes it.
|
|
42
|
+
* While it sleeps the audio clock stops: the music holds its place, no note is
|
|
43
|
+
* built and nothing renders, so a page the player left costs no audio work.
|
|
44
|
+
*/
|
|
45
|
+
class ContextSleep {
|
|
46
|
+
constructor() {
|
|
47
|
+
this.timer = null;
|
|
48
|
+
}
|
|
49
|
+
/** Suspend the context after `fadeMs`, the fade that leads into it. */
|
|
50
|
+
sleepAfter(fadeMs) {
|
|
51
|
+
this.cancel();
|
|
52
|
+
this.timer = setTimeout(() => {
|
|
53
|
+
this.timer = null;
|
|
54
|
+
try {
|
|
55
|
+
// The game's context is always a live (online) one, whose suspend
|
|
56
|
+
// takes no time argument.
|
|
57
|
+
void Tone.getContext().rawContext.suspend().catch(() => { });
|
|
58
|
+
}
|
|
59
|
+
catch {
|
|
60
|
+
/* the context is already gone */
|
|
61
|
+
}
|
|
62
|
+
}, fadeMs);
|
|
63
|
+
}
|
|
64
|
+
/** Cancel a pending sleep and start the clock again. Resuming can reject
|
|
65
|
+
* (no gesture yet), so it is caught; the next gesture retries it. */
|
|
66
|
+
wake() {
|
|
67
|
+
this.cancel();
|
|
68
|
+
Tone.getContext().resume().catch(() => { });
|
|
69
|
+
}
|
|
70
|
+
/** Drop a pending sleep without waking. */
|
|
71
|
+
cancel() {
|
|
72
|
+
if (this.timer !== null)
|
|
73
|
+
clearTimeout(this.timer);
|
|
74
|
+
this.timer = null;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export { ContextSleep, usePlaybackContext };
|
|
79
|
+
//# sourceMappingURL=toneContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toneContext.js","sources":["../../src/audio/toneContext.ts"],"sourcesContent":["import * as Tone from \"tone\";\n\n/**\n * Point Tone at the one audio context the game plays through. Call it before\n * any node is built.\n *\n * The context asks for large buffers over low latency: this is a sim, not an\n * instrument, and the default interactive hint underruns on phones (heard as\n * random crackles).\n *\n * Importing Tone already opened a default low-latency context, which nothing\n * plays through, so it is closed. While it stayed open, an operating system\n * that sets one buffer size per output device (macOS does) ran the device at\n * the small size it asked for, and the playback context then had to render\n * its large buffers inside those short deadlines.\n */\nexport function usePlaybackContext(): void {\n try {\n const unused = Tone.getContext();\n Tone.setContext(new Tone.Context({ latencyHint: \"playback\" }));\n closeContext(unused);\n } catch {\n /* keep the default context */\n }\n}\n\n/** Close a context nothing plays through. Its close is caught apart so a\n * rejection is swallowed rather than reported as unhandled; dispose then\n * stops its clock. A failure here leaves the swap already made in place. */\nfunction closeContext(ctx: Tone.BaseContext): void {\n try {\n if (ctx instanceof Tone.Context) void ctx.close().catch(() => {});\n ctx.dispose();\n } catch {\n /* already closed */\n }\n}\n\n/**\n * Puts the playback context to sleep once a fade has played, and wakes it.\n * While it sleeps the audio clock stops: the music holds its place, no note is\n * built and nothing renders, so a page the player left costs no audio work.\n */\nexport class ContextSleep {\n private timer: ReturnType<typeof setTimeout> | null = null;\n\n /** Suspend the context after `fadeMs`, the fade that leads into it. */\n sleepAfter(fadeMs: number): void {\n this.cancel();\n this.timer = setTimeout(() => {\n this.timer = null;\n try {\n // The game's context is always a live (online) one, whose suspend\n // takes no time argument.\n void (Tone.getContext().rawContext as AudioContext).suspend().catch(() => {});\n } catch {\n /* the context is already gone */\n }\n }, fadeMs);\n }\n\n /** Cancel a pending sleep and start the clock again. Resuming can reject\n * (no gesture yet), so it is caught; the next gesture retries it. */\n wake(): void {\n this.cancel();\n Tone.getContext().resume().catch(() => {});\n }\n\n /** Drop a pending sleep without waking. */\n cancel(): void {\n if (this.timer !== null) clearTimeout(this.timer);\n this.timer = null;\n }\n}\n"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;AAaG;SACa,kBAAkB,GAAA;AAChC,IAAA,IAAI;AACF,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE;AAChC,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAC;QAC9D,YAAY,CAAC,MAAM,CAAC;IACtB;AAAE,IAAA,MAAM;;IAER;AACF;AAEA;;AAE6E;AAC7E,SAAS,YAAY,CAAC,GAAqB,EAAA;AACzC,IAAA,IAAI;AACF,QAAA,IAAI,GAAG,YAAY,IAAI,CAAC,OAAO;AAAE,YAAA,KAAK,GAAG,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,MAAK,EAAE,CAAC,CAAC;QACjE,GAAG,CAAC,OAAO,EAAE;IACf;AAAE,IAAA,MAAM;;IAER;AACF;AAEA;;;;AAIG;MACU,YAAY,CAAA;AAAzB,IAAA,WAAA,GAAA;QACU,IAAA,CAAA,KAAK,GAAyC,IAAI;IA6B5D;;AA1BE,IAAA,UAAU,CAAC,MAAc,EAAA;QACvB,IAAI,CAAC,MAAM,EAAE;AACb,QAAA,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,MAAK;AAC3B,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI;AACjB,YAAA,IAAI;;;AAGF,gBAAA,KAAM,IAAI,CAAC,UAAU,EAAE,CAAC,UAA2B,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,MAAK,EAAE,CAAC,CAAC;YAC/E;AAAE,YAAA,MAAM;;YAER;QACF,CAAC,EAAE,MAAM,CAAC;IACZ;AAEA;AACsE;IACtE,IAAI,GAAA;QACF,IAAI,CAAC,MAAM,EAAE;AACb,QAAA,IAAI,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,MAAK,EAAE,CAAC,CAAC;IAC5C;;IAGA,MAAM,GAAA;AACJ,QAAA,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI;AAAE,YAAA,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;AACjD,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI;IACnB;AACD;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as Tone from "tone";
|
|
2
|
+
import type { ViewFocus } from "../render/excalibur/TowerEngine";
|
|
3
|
+
import type { Scene } from "./toneScenes";
|
|
4
|
+
export declare class CrowdLayer {
|
|
5
|
+
private master;
|
|
6
|
+
private murmurFilter;
|
|
7
|
+
/** Applies each scene's murmur level (the hotel whispers, the lobby talks). */
|
|
8
|
+
private murmurGain;
|
|
9
|
+
private toneGain;
|
|
10
|
+
private pingSynth;
|
|
11
|
+
private thudSynth;
|
|
12
|
+
private noiseSynth;
|
|
13
|
+
private noiseFilter;
|
|
14
|
+
/** The street's 65/98 Hz city hum, breathing on its own slow swell. */
|
|
15
|
+
private humGain;
|
|
16
|
+
private humLow;
|
|
17
|
+
private humHigh;
|
|
18
|
+
private humLfo;
|
|
19
|
+
/** The swell the LFO breathes between the hum's two sines and its gain. */
|
|
20
|
+
private humSwell;
|
|
21
|
+
private voices;
|
|
22
|
+
private party;
|
|
23
|
+
private cinema;
|
|
24
|
+
private metro;
|
|
25
|
+
private slots;
|
|
26
|
+
private elementTimers;
|
|
27
|
+
private scene;
|
|
28
|
+
private pendingKey;
|
|
29
|
+
private pendingCount;
|
|
30
|
+
private programOn;
|
|
31
|
+
private activity;
|
|
32
|
+
private tick;
|
|
33
|
+
private disposed;
|
|
34
|
+
/** The target each per-update ramp was last sent, by param. update() runs
|
|
35
|
+
* on every audio update (about six a second), and every rampTo adds
|
|
36
|
+
* automation events to its param. Re-sending unchanged targets each time
|
|
37
|
+
* piled them up until the audio
|
|
38
|
+
* thread's render cost doubled within a minute (the crackle once a venue
|
|
39
|
+
* was on screen for a while), so a target is sent only when it moves. */
|
|
40
|
+
private sentTargets;
|
|
41
|
+
constructor(dest: Tone.InputNode, seedBaseUrl: string);
|
|
42
|
+
/** Drive the layer from the engine's update: resolve the ambience scene,
|
|
43
|
+
* swap generators on a (settled) change, and retune levels every call. */
|
|
44
|
+
update(scene: Scene, focus: ViewFocus, detail: number, muted: boolean): void;
|
|
45
|
+
/** Ramp `param` to `target` unless that target (or one within
|
|
46
|
+
* RAMP_TOLERANCE of it) is already where it was last sent. */
|
|
47
|
+
private rampOnChange;
|
|
48
|
+
/** Tear down the old scene's generators and start the new one's. */
|
|
49
|
+
private switchScene;
|
|
50
|
+
private programFor;
|
|
51
|
+
/** Start or stop one talker slot's phrase loop. */
|
|
52
|
+
private setSlotActive;
|
|
53
|
+
/** Run one element spec's irregular firing loop: typing-style clusters,
|
|
54
|
+
* paired notes, and gaps stretched by low activity (a 20 percent full
|
|
55
|
+
* restaurant clinks a fifth as often, per the GDD's linear scaling). */
|
|
56
|
+
private scheduleElement;
|
|
57
|
+
private fireElement;
|
|
58
|
+
/** While the party runs: the owner's laughs and voice-bent whoops, spaced
|
|
59
|
+
* far apart so they land as moments, not a loop. */
|
|
60
|
+
private schedulePartyVoices;
|
|
61
|
+
dispose(): void;
|
|
62
|
+
}
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import * as Tone from 'tone';
|
|
2
|
+
import { PITCH_MAX_SEMI, resolveCrowdScene, CROWD_SCENES, hourActivity, PITCH_MIN_SEMI, pseudo } from './toneCrowdData.js';
|
|
3
|
+
import { CrowdVoices } from './toneCrowdVoices.js';
|
|
4
|
+
import { LightPolySynth } from './lightSynth.js';
|
|
5
|
+
import { PartyBand, CinemaProgram, MetroProgram } from './toneCrowdPrograms.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The crowd/venue ambience layer: talkers murmuring from the voice seeds,
|
|
9
|
+
* per-scene one-shot details, and the composed venue programs, all mixed into
|
|
10
|
+
* the engine's distance-filtered bed so camera zoom muffles and opens it
|
|
11
|
+
* naturally. {@link ToneAudioEngine} feeds it the resolved scene and focus at
|
|
12
|
+
* its update cadence; everything else (which sounds, how many, how often, how
|
|
13
|
+
* loud) follows the specs in `./toneCrowdData.ts` scaled by live occupancy,
|
|
14
|
+
* the sim clock, and zoom. Scheduling runs on short timers seeded by the
|
|
15
|
+
* deterministic hash, so no Math.random and no fixed loops.
|
|
16
|
+
*/
|
|
17
|
+
/** How often a party crowd laughs and whoops, seconds (min plus a draw). */
|
|
18
|
+
const LAUGH_GAP_S = { min: 18, varS: 22 };
|
|
19
|
+
const WHOOP_GAP_S = { min: 22, varS: 24 };
|
|
20
|
+
/** Layer master at full detail; the whole layer sits under the music bed. */
|
|
21
|
+
const LAYER_LEVEL = 0.5;
|
|
22
|
+
/** Crowd factors below this read as "nobody there": the scene stays silent
|
|
23
|
+
* (the GDD's occupancy rule). */
|
|
24
|
+
const EMPTY_CROWD = 0.05;
|
|
25
|
+
/** A scene key must win this many consecutive updates before the layer
|
|
26
|
+
* switches, so a mixed floor (cinema beside a party hall) cannot churn the
|
|
27
|
+
* programs while the camera pans. Mute bypasses it. */
|
|
28
|
+
const KEY_SETTLE_UPDATES = 2;
|
|
29
|
+
/** A level or cutoff target within this share of the one already sent is
|
|
30
|
+
* not re-sent (one percent is under a tenth of a decibel). */
|
|
31
|
+
const RAMP_TOLERANCE = 0.01;
|
|
32
|
+
class CrowdLayer {
|
|
33
|
+
constructor(dest, seedBaseUrl) {
|
|
34
|
+
this.master = null;
|
|
35
|
+
this.murmurFilter = null;
|
|
36
|
+
/** Applies each scene's murmur level (the hotel whispers, the lobby talks). */
|
|
37
|
+
this.murmurGain = null;
|
|
38
|
+
this.toneGain = null;
|
|
39
|
+
this.pingSynth = null;
|
|
40
|
+
this.thudSynth = null;
|
|
41
|
+
this.noiseSynth = null;
|
|
42
|
+
this.noiseFilter = null;
|
|
43
|
+
/** The street's 65/98 Hz city hum, breathing on its own slow swell. */
|
|
44
|
+
this.humGain = null;
|
|
45
|
+
this.humLow = null;
|
|
46
|
+
this.humHigh = null;
|
|
47
|
+
this.humLfo = null;
|
|
48
|
+
/** The swell the LFO breathes between the hum's two sines and its gain. */
|
|
49
|
+
this.humSwell = null;
|
|
50
|
+
this.voices = null;
|
|
51
|
+
this.party = null;
|
|
52
|
+
this.cinema = null;
|
|
53
|
+
this.metro = null;
|
|
54
|
+
this.slots = [];
|
|
55
|
+
this.elementTimers = new Set();
|
|
56
|
+
this.scene = null;
|
|
57
|
+
this.pendingKey = null;
|
|
58
|
+
this.pendingCount = 0;
|
|
59
|
+
this.programOn = false;
|
|
60
|
+
this.activity = 0;
|
|
61
|
+
this.tick = 1;
|
|
62
|
+
this.disposed = false;
|
|
63
|
+
/** The target each per-update ramp was last sent, by param. update() runs
|
|
64
|
+
* on every audio update (about six a second), and every rampTo adds
|
|
65
|
+
* automation events to its param. Re-sending unchanged targets each time
|
|
66
|
+
* piled them up until the audio
|
|
67
|
+
* thread's render cost doubled within a minute (the crackle once a venue
|
|
68
|
+
* was on screen for a while), so a target is sent only when it moves. */
|
|
69
|
+
this.sentTargets = new Map();
|
|
70
|
+
try {
|
|
71
|
+
this.master = new Tone.Gain(0).connect(dest);
|
|
72
|
+
// Every voiced sound passes a steep filter (the audition rule: nothing
|
|
73
|
+
// bright survives; noise never reads as static), then the per-scene
|
|
74
|
+
// murmur level.
|
|
75
|
+
this.murmurGain = new Tone.Gain(0.4).connect(this.master);
|
|
76
|
+
this.murmurFilter = new Tone.Filter({ type: "lowpass", frequency: 900, rolloff: -48 }).connect(this.murmurGain);
|
|
77
|
+
this.toneGain = new Tone.Gain(0.8).connect(this.master);
|
|
78
|
+
this.pingSynth = new LightPolySynth({
|
|
79
|
+
oscillator: { type: "sine" },
|
|
80
|
+
envelope: { attack: 0.004, decay: 0.12, sustain: 0, release: 0.08 },
|
|
81
|
+
}).connect(this.toneGain);
|
|
82
|
+
this.pingSynth.volume.value = -10;
|
|
83
|
+
this.pingSynth.maxPolyphony = 8;
|
|
84
|
+
this.thudSynth = new LightPolySynth({
|
|
85
|
+
oscillator: { type: "sine" },
|
|
86
|
+
envelope: { attack: 0.006, decay: 0.09, sustain: 0, release: 0.08 },
|
|
87
|
+
}).connect(this.toneGain);
|
|
88
|
+
this.thudSynth.volume.value = -8;
|
|
89
|
+
this.thudSynth.maxPolyphony = 8;
|
|
90
|
+
this.noiseFilter = new Tone.Filter({ type: "lowpass", frequency: 900, rolloff: -48 }).connect(this.toneGain);
|
|
91
|
+
this.noiseSynth = new Tone.NoiseSynth({
|
|
92
|
+
noise: { type: "pink" },
|
|
93
|
+
envelope: { attack: 0.004, decay: 0.1, sustain: 0 },
|
|
94
|
+
}).connect(this.noiseFilter);
|
|
95
|
+
this.noiseSynth.volume.value = -16;
|
|
96
|
+
// The street hum: two well-separated sines breathing on a slow swell.
|
|
97
|
+
this.humGain = new Tone.Gain(0).connect(this.master);
|
|
98
|
+
this.humLfo = new Tone.LFO({ frequency: 0.08, min: 0.55, max: 1 });
|
|
99
|
+
const humSwell = (this.humSwell = new Tone.Gain(1).connect(this.humGain));
|
|
100
|
+
this.humLfo.connect(humSwell.gain);
|
|
101
|
+
this.humLfo.start();
|
|
102
|
+
this.humLow = new Tone.Oscillator({ frequency: 65, type: "sine", volume: -18 }).connect(humSwell);
|
|
103
|
+
this.humHigh = new Tone.Oscillator({ frequency: 98, type: "sine", volume: -24 }).connect(humSwell);
|
|
104
|
+
this.humLow.start();
|
|
105
|
+
this.humHigh.start();
|
|
106
|
+
for (let i = 0; i < 6; i++) {
|
|
107
|
+
const gain = new Tone.Gain(0.5).connect(this.murmurFilter);
|
|
108
|
+
this.slots.push({ gain, semi: PITCH_MAX_SEMI, timer: null, active: false });
|
|
109
|
+
}
|
|
110
|
+
this.voices = new CrowdVoices();
|
|
111
|
+
this.voices.load(seedBaseUrl);
|
|
112
|
+
this.party = new PartyBand(this.master);
|
|
113
|
+
this.cinema = new CinemaProgram(this.master);
|
|
114
|
+
this.metro = new MetroProgram(this.master);
|
|
115
|
+
}
|
|
116
|
+
catch {
|
|
117
|
+
this.dispose();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
/** Drive the layer from the engine's update: resolve the ambience scene,
|
|
121
|
+
* swap generators on a (settled) change, and retune levels every call. */
|
|
122
|
+
update(scene, focus, detail, muted) {
|
|
123
|
+
if (this.disposed || !this.master)
|
|
124
|
+
return;
|
|
125
|
+
try {
|
|
126
|
+
const rawKey = muted ? null : resolveCrowdScene(scene, focus.dominant);
|
|
127
|
+
// Settle the key across a couple of updates so a mixed floor can't
|
|
128
|
+
// churn programs while panning; mute switches immediately.
|
|
129
|
+
if (rawKey !== this.scene) {
|
|
130
|
+
if (muted || rawKey === null) {
|
|
131
|
+
this.switchScene(rawKey);
|
|
132
|
+
}
|
|
133
|
+
else if (rawKey === this.pendingKey) {
|
|
134
|
+
if (++this.pendingCount >= KEY_SETTLE_UPDATES)
|
|
135
|
+
this.switchScene(rawKey);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
this.pendingKey = rawKey;
|
|
139
|
+
this.pendingCount = 1;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this.pendingKey = null;
|
|
144
|
+
this.pendingCount = 0;
|
|
145
|
+
}
|
|
146
|
+
const key = this.scene;
|
|
147
|
+
if (!key) {
|
|
148
|
+
this.rampOnChange(this.master.gain, 0, 0.5);
|
|
149
|
+
this.activity = 0;
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
const spec = CROWD_SCENES[key];
|
|
153
|
+
const hour = Number.isFinite(focus.hour) ? focus.hour : 12;
|
|
154
|
+
const rawCrowd = Number.isFinite(focus.crowd) ? focus.crowd : 0.5;
|
|
155
|
+
let crowd;
|
|
156
|
+
if (spec.gate === "attendance")
|
|
157
|
+
crowd = rawCrowd < EMPTY_CROWD ? 0 : rawCrowd;
|
|
158
|
+
else
|
|
159
|
+
crowd = Math.max(rawCrowd, spec.crowdFloor ?? 0);
|
|
160
|
+
this.activity = hourActivity(spec.gate, hour) * (crowd < EMPTY_CROWD ? 0 : crowd);
|
|
161
|
+
// Honest loudness: the layer level scales with activity (clock times
|
|
162
|
+
// occupancy) as well as zoom, so a near-empty room is near-silent. The
|
|
163
|
+
// activity term is square-rooted: loudness perception is logarithmic,
|
|
164
|
+
// and a linear scale read as dead below half fill (the owner heard
|
|
165
|
+
// "just a hum" over lightly-visited venues), the same fallacy the
|
|
166
|
+
// perceptual volume sliders fixed. Empty stays exactly zero.
|
|
167
|
+
this.rampOnChange(this.master.gain, this.activity <= 0
|
|
168
|
+
? 0
|
|
169
|
+
: LAYER_LEVEL * (0.38 + 0.62 * detail) * Math.sqrt(Math.min(1, this.activity)), 0.5);
|
|
170
|
+
if (this.humGain)
|
|
171
|
+
this.rampOnChange(this.humGain.gain, key === "outside" && this.activity > 0 ? 0.5 : 0, 1.2);
|
|
172
|
+
if (spec.murmur) {
|
|
173
|
+
if (this.murmurFilter)
|
|
174
|
+
this.rampOnChange(this.murmurFilter.frequency, spec.murmur.muffleHz, 0.4);
|
|
175
|
+
if (this.murmurGain)
|
|
176
|
+
this.rampOnChange(this.murmurGain.gain, spec.murmur.gain, 0.4);
|
|
177
|
+
// Talkers = round(maxTalkers * crowd), floored at ONE while the room
|
|
178
|
+
// is live: a couple eating in a big restaurant is still a quiet
|
|
179
|
+
// conversation, not silence (rounding 3 talkers * 0.14 fill to zero
|
|
180
|
+
// muted every lightly-visited venue). Empty rooms still fall fully
|
|
181
|
+
// silent through the activity gate above, so the honest-rooms rule
|
|
182
|
+
// holds: no people, no voices.
|
|
183
|
+
const want = this.activity <= 0
|
|
184
|
+
? 0
|
|
185
|
+
: Math.max(1, Math.round(spec.murmur.maxTalkers * Math.min(1, crowd)));
|
|
186
|
+
for (let i = 0; i < this.slots.length; i++) {
|
|
187
|
+
this.setSlotActive(i, this.activity > 0 && i < want, key);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
// Venue programs run only while the venue is actually live (a show or
|
|
191
|
+
// party in progress), not merely while the empty hall is on screen.
|
|
192
|
+
if (spec.program) {
|
|
193
|
+
const shouldRun = this.activity > 0;
|
|
194
|
+
if (shouldRun !== this.programOn) {
|
|
195
|
+
this.programOn = shouldRun;
|
|
196
|
+
const program = this.programFor(spec.program);
|
|
197
|
+
if (shouldRun)
|
|
198
|
+
program?.start();
|
|
199
|
+
else
|
|
200
|
+
program?.stop();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
catch {
|
|
205
|
+
/* transient audio error: recover on the next update */
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/** Ramp `param` to `target` unless that target (or one within
|
|
209
|
+
* RAMP_TOLERANCE of it) is already where it was last sent. */
|
|
210
|
+
rampOnChange(param, target, time) {
|
|
211
|
+
const sent = this.sentTargets.get(param);
|
|
212
|
+
if (sent !== undefined && Math.abs(sent - target) <= Math.abs(target) * RAMP_TOLERANCE)
|
|
213
|
+
return;
|
|
214
|
+
this.sentTargets.set(param, target);
|
|
215
|
+
param.rampTo(target, time);
|
|
216
|
+
}
|
|
217
|
+
/** Tear down the old scene's generators and start the new one's. */
|
|
218
|
+
switchScene(key) {
|
|
219
|
+
this.pendingKey = null;
|
|
220
|
+
this.pendingCount = 0;
|
|
221
|
+
for (const t of this.elementTimers)
|
|
222
|
+
clearTimeout(t);
|
|
223
|
+
this.elementTimers.clear();
|
|
224
|
+
for (let i = 0; i < this.slots.length; i++)
|
|
225
|
+
this.setSlotActive(i, false, key ?? "lobby");
|
|
226
|
+
const oldProgram = this.scene ? CROWD_SCENES[this.scene].program : undefined;
|
|
227
|
+
if (oldProgram && this.programOn)
|
|
228
|
+
this.programFor(oldProgram)?.stop();
|
|
229
|
+
this.programOn = false;
|
|
230
|
+
this.scene = key;
|
|
231
|
+
if (!key)
|
|
232
|
+
return;
|
|
233
|
+
for (const el of CROWD_SCENES[key].elements)
|
|
234
|
+
this.scheduleElement(key, el);
|
|
235
|
+
if (key === "partyHall")
|
|
236
|
+
this.schedulePartyVoices(key);
|
|
237
|
+
}
|
|
238
|
+
programFor(name) {
|
|
239
|
+
switch (name) {
|
|
240
|
+
case "party":
|
|
241
|
+
return this.party;
|
|
242
|
+
case "cinema":
|
|
243
|
+
return this.cinema;
|
|
244
|
+
default:
|
|
245
|
+
return this.metro;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/** Start or stop one talker slot's phrase loop. */
|
|
249
|
+
setSlotActive(i, active, key) {
|
|
250
|
+
const slot = this.slots[i];
|
|
251
|
+
if (slot.active === active) {
|
|
252
|
+
// A loop that bailed out (activity dipped to zero mid-phrase) marks
|
|
253
|
+
// itself inactive; nothing to do here unless the timer also died while
|
|
254
|
+
// the flag stayed set, which the bail-out paths prevent.
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
slot.active = active;
|
|
258
|
+
if (!active) {
|
|
259
|
+
if (slot.timer !== null)
|
|
260
|
+
clearTimeout(slot.timer);
|
|
261
|
+
slot.timer = null;
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
const spec = CROWD_SCENES[key].murmur;
|
|
265
|
+
slot.semi =
|
|
266
|
+
spec?.semi ??
|
|
267
|
+
PITCH_MAX_SEMI + (PITCH_MIN_SEMI - PITCH_MAX_SEMI) * pseudo(this.tick++ * 40503 + i * 13);
|
|
268
|
+
const loop = () => {
|
|
269
|
+
slot.timer = null;
|
|
270
|
+
// Every bail-out clears the active flag so update() can restart the
|
|
271
|
+
// loop cleanly when the scene comes back to life.
|
|
272
|
+
if (this.disposed || !slot.active || this.scene !== key || this.activity <= 0) {
|
|
273
|
+
slot.active = false;
|
|
274
|
+
return;
|
|
275
|
+
}
|
|
276
|
+
const murmur = CROWD_SCENES[key].murmur;
|
|
277
|
+
if (!murmur) {
|
|
278
|
+
slot.active = false;
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
const wall = this.voices?.phrase(slot.gain, slot.semi, this.tick++) ?? null;
|
|
282
|
+
const pause = murmur.pauseMin + murmur.pauseVar * pseudo(this.tick++ * 22695477 + i);
|
|
283
|
+
slot.timer = setTimeout(loop, ((wall ?? 0.8) + pause) * 1000);
|
|
284
|
+
};
|
|
285
|
+
slot.timer = setTimeout(loop, pseudo(this.tick++ * 19349663 + i) * 1500);
|
|
286
|
+
}
|
|
287
|
+
/** Run one element spec's irregular firing loop: typing-style clusters,
|
|
288
|
+
* paired notes, and gaps stretched by low activity (a 20 percent full
|
|
289
|
+
* restaurant clinks a fifth as often, per the GDD's linear scaling). */
|
|
290
|
+
scheduleElement(key, el) {
|
|
291
|
+
let clusterLeft = 0;
|
|
292
|
+
const draw = (min, varS, salt) => min + varS * pseudo(this.tick++ * 2654435761 + salt);
|
|
293
|
+
const loop = () => {
|
|
294
|
+
if (this.disposed || this.scene !== key)
|
|
295
|
+
return;
|
|
296
|
+
let gap;
|
|
297
|
+
if (this.activity > 0) {
|
|
298
|
+
if (el.cluster && clusterLeft <= 0) {
|
|
299
|
+
clusterLeft =
|
|
300
|
+
el.cluster.min +
|
|
301
|
+
Math.floor(pseudo(this.tick++ * 40503) * (el.cluster.max - el.cluster.min + 1));
|
|
302
|
+
}
|
|
303
|
+
this.fireElement(el);
|
|
304
|
+
if (el.cluster)
|
|
305
|
+
clusterLeft--;
|
|
306
|
+
const inCluster = el.cluster !== undefined && clusterLeft > 0;
|
|
307
|
+
let base;
|
|
308
|
+
if (inCluster)
|
|
309
|
+
base = draw(el.rateMin, el.rateVar, 1);
|
|
310
|
+
else if (el.cluster)
|
|
311
|
+
base = draw(el.cluster.pauseMin, el.cluster.pauseVar, 3);
|
|
312
|
+
else
|
|
313
|
+
base = draw(el.rateMin, el.rateVar, 1);
|
|
314
|
+
gap = base / Math.max(0.2, Math.min(1, this.activity));
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
// Gated-off scene in view (an office at night): idle slowly instead of
|
|
318
|
+
// polling at keystroke rate, and let any cluster finish later.
|
|
319
|
+
clusterLeft = 0;
|
|
320
|
+
gap = Math.max(2, el.cluster ? draw(el.cluster.pauseMin, el.cluster.pauseVar, 3) : draw(el.rateMin, el.rateVar, 1));
|
|
321
|
+
}
|
|
322
|
+
const timer = setTimeout(() => {
|
|
323
|
+
this.elementTimers.delete(timer);
|
|
324
|
+
loop();
|
|
325
|
+
}, gap * 1000);
|
|
326
|
+
this.elementTimers.add(timer);
|
|
327
|
+
};
|
|
328
|
+
const first = setTimeout(() => {
|
|
329
|
+
this.elementTimers.delete(first);
|
|
330
|
+
loop();
|
|
331
|
+
}, pseudo(this.tick++ * 19349663) * 2000);
|
|
332
|
+
this.elementTimers.add(first);
|
|
333
|
+
}
|
|
334
|
+
fireElement(el) {
|
|
335
|
+
try {
|
|
336
|
+
const freq = el.freqMin + (el.freqMax - el.freqMin) * pseudo(this.tick++ * 40503 + 5);
|
|
337
|
+
const gain = el.gainMin + (el.gainMax - el.gainMin) * pseudo(this.tick++ * 22695477 + 9);
|
|
338
|
+
const now = Tone.now();
|
|
339
|
+
const attack = el.attack ?? 0.004;
|
|
340
|
+
if (el.kind === "burst") {
|
|
341
|
+
// Envelope follows the spec so a page turn is a swish, not a click,
|
|
342
|
+
// and the filter glides (a snap under a live tail crackles).
|
|
343
|
+
this.noiseSynth?.set({ envelope: { attack, decay: Math.max(0.05, el.dur - attack), sustain: 0 } });
|
|
344
|
+
this.noiseFilter?.frequency.rampTo(freq, 0.02);
|
|
345
|
+
this.noiseSynth?.triggerAttackRelease(el.dur, now + 0.02, gain * 4);
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
const synth = el.kind === "ping" ? this.pingSynth : this.thudSynth;
|
|
349
|
+
synth?.set({ envelope: { attack, decay: Math.max(0.06, el.dur - attack), sustain: 0 } });
|
|
350
|
+
synth?.triggerAttackRelease(freq, el.dur, now, gain * 3);
|
|
351
|
+
if (el.pair) {
|
|
352
|
+
synth?.triggerAttackRelease(freq * el.pair.ratio, el.dur, now + el.pair.delayS, gain * 3 * el.pair.gainScale);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
catch {
|
|
356
|
+
/* skip this detail */
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
/** While the party runs: the owner's laughs and voice-bent whoops, spaced
|
|
360
|
+
* far apart so they land as moments, not a loop. */
|
|
361
|
+
schedulePartyVoices(key) {
|
|
362
|
+
const slotGain = this.slots[0]?.gain;
|
|
363
|
+
if (!slotGain)
|
|
364
|
+
return;
|
|
365
|
+
const arm = (gap, fire) => {
|
|
366
|
+
const timer = setTimeout(() => {
|
|
367
|
+
this.elementTimers.delete(timer);
|
|
368
|
+
if (this.disposed || this.scene !== key)
|
|
369
|
+
return;
|
|
370
|
+
if (this.activity > 0)
|
|
371
|
+
fire();
|
|
372
|
+
arm(gap, fire);
|
|
373
|
+
}, (gap.min + gap.varS * pseudo(this.tick++ * 2654435761)) * 1000);
|
|
374
|
+
this.elementTimers.add(timer);
|
|
375
|
+
};
|
|
376
|
+
arm(LAUGH_GAP_S, () => this.voices?.laugh(slotGain, this.tick++));
|
|
377
|
+
arm(WHOOP_GAP_S, () => this.voices?.whoop(slotGain, this.tick++));
|
|
378
|
+
}
|
|
379
|
+
dispose() {
|
|
380
|
+
this.disposed = true;
|
|
381
|
+
for (const t of this.elementTimers)
|
|
382
|
+
clearTimeout(t);
|
|
383
|
+
this.elementTimers.clear();
|
|
384
|
+
for (const slot of this.slots) {
|
|
385
|
+
if (slot.timer !== null)
|
|
386
|
+
clearTimeout(slot.timer);
|
|
387
|
+
slot.timer = null;
|
|
388
|
+
try {
|
|
389
|
+
slot.gain.dispose();
|
|
390
|
+
}
|
|
391
|
+
catch {
|
|
392
|
+
/* already gone */
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
this.slots = [];
|
|
396
|
+
this.voices?.dispose();
|
|
397
|
+
this.party?.dispose();
|
|
398
|
+
this.cinema?.dispose();
|
|
399
|
+
this.metro?.dispose();
|
|
400
|
+
const nodes = [
|
|
401
|
+
this.pingSynth, this.thudSynth, this.noiseSynth, this.noiseFilter,
|
|
402
|
+
this.humLow, this.humHigh, this.humLfo, this.humSwell, this.humGain,
|
|
403
|
+
this.toneGain, this.murmurFilter, this.murmurGain, this.master,
|
|
404
|
+
];
|
|
405
|
+
for (const n of nodes) {
|
|
406
|
+
try {
|
|
407
|
+
n?.dispose();
|
|
408
|
+
}
|
|
409
|
+
catch {
|
|
410
|
+
/* already gone */
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
this.voices = null;
|
|
414
|
+
this.party = null;
|
|
415
|
+
this.cinema = null;
|
|
416
|
+
this.metro = null;
|
|
417
|
+
this.pingSynth = this.thudSynth = null;
|
|
418
|
+
this.noiseSynth = null;
|
|
419
|
+
this.noiseFilter = this.murmurFilter = null;
|
|
420
|
+
this.humLow = this.humHigh = null;
|
|
421
|
+
this.humLfo = null;
|
|
422
|
+
this.humSwell = null;
|
|
423
|
+
this.humGain = null;
|
|
424
|
+
this.toneGain = this.murmurGain = this.master = null;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export { CrowdLayer };
|
|
429
|
+
//# sourceMappingURL=toneCrowd.js.map
|