@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,193 @@
|
|
|
1
|
+
import * as ex from 'excalibur';
|
|
2
|
+
import { Z } from '../depthPlanes.js';
|
|
3
|
+
import { catalogFacility } from '../../catalog/catalogTypes.js';
|
|
4
|
+
import { towerCatalog } from '../../catalog/towerCatalog.js';
|
|
5
|
+
import { paintSettledUnit } from '../regionPaint.js';
|
|
6
|
+
import { shadesRoom, shadeRoom } from '../roomShading.js';
|
|
7
|
+
import { TILE, FLOOR } from '../scale.js';
|
|
8
|
+
import { regionRect, regionsOf } from '../regionGrid.js';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Region composition for settled room units (CAP-2 of the mobile render-perf
|
|
12
|
+
* spec; design and invariants in `region-design.md`). One cached canvas per
|
|
13
|
+
* occupied region draws every settled unit whose footprint intersects it,
|
|
14
|
+
* clipped to the unit rect at integer world offsets, so the room layer costs
|
|
15
|
+
* the GPU a few dozen textures instead of one per unit. Animated rooms (fire,
|
|
16
|
+
* construction) stay private per-unit actors owned by towerReconcile; their
|
|
17
|
+
* region leaves the footprint unpainted, so nothing bakes under the flames.
|
|
18
|
+
*
|
|
19
|
+
* The load-bearing laws (I1-I4): a materialized region repaints in place
|
|
20
|
+
* forever (never reallocates) until it empties or the scene is disposed;
|
|
21
|
+
* repaints drain through a budgeted visible-first queue so no frame ever
|
|
22
|
+
* rasterizes the whole tower (except a fresh canvas's first raster, which is
|
|
23
|
+
* the load path); the draw closure reads live tower state at raster time, so
|
|
24
|
+
* dirty marks coalesce and a drained queue always renders current state.
|
|
25
|
+
* One honesty note on the budget: it bounds repaint FLAGS per frame, not
|
|
26
|
+
* rasterizations. A flagged off-screen region defers its actual raster until
|
|
27
|
+
* it scrolls into view, so a fast pan can raster several at once; per-unit
|
|
28
|
+
* canvases behaved the same way, so this is no worse than what it replaced.
|
|
29
|
+
*/
|
|
30
|
+
/** Regions repainted per frame from the dirty queue. The upload micro-bench
|
|
31
|
+
* (spec memlog) showed budget 4 is free at this region size on the software
|
|
32
|
+
* venue; 2 keeps half that headroom for phone-class GPUs while the 17:00
|
|
33
|
+
* full-tower flip (~30-70 live regions) still settles in well under two
|
|
34
|
+
* top-speed sim-minutes. Same-frame exceptions bypass the queue: animated
|
|
35
|
+
* state transitions (no ghost, no hole) flag their regions directly. */
|
|
36
|
+
const REGION_DRAIN_BUDGET = 2;
|
|
37
|
+
/** Materialize a region: an anchor actor at the region's world rect and a
|
|
38
|
+
* cached canvas whose draw walks the member units LIVE (I3). Fresh canvases
|
|
39
|
+
* raster once on their first draw, which is how initial load fills the
|
|
40
|
+
* tower without touching the drain budget. */
|
|
41
|
+
function materialize(engine, key) {
|
|
42
|
+
const r = regionRect(key);
|
|
43
|
+
const units = new Set();
|
|
44
|
+
const cv = new ex.Canvas({
|
|
45
|
+
width: r.w,
|
|
46
|
+
height: r.h,
|
|
47
|
+
cache: true,
|
|
48
|
+
draw: (ctx) => {
|
|
49
|
+
engine.d.ctx = ctx;
|
|
50
|
+
ctx.clearRect(0, 0, r.w, r.h);
|
|
51
|
+
const shadedLook = towerCatalog(engine.sim).rules.shadedLook;
|
|
52
|
+
for (const id of units) {
|
|
53
|
+
const u = engine.sim.tower.getUnit(id);
|
|
54
|
+
if (!u)
|
|
55
|
+
continue;
|
|
56
|
+
const hgt = catalogFacility(towerCatalog(engine.sim), u.kind).floors;
|
|
57
|
+
const w = u.width * TILE;
|
|
58
|
+
const h = hgt * FLOOR;
|
|
59
|
+
const dx = engine.worldX(u.x) - r.x;
|
|
60
|
+
const dy = engine.worldYTop(u.floor, hgt) - r.y;
|
|
61
|
+
// paintSettledUnit clips to the room's rect: private canvases clipped
|
|
62
|
+
// any per-unit overdraw implicitly, a shared canvas does not, and one
|
|
63
|
+
// sprite painting a pixel past its rect would bleed onto a neighbor.
|
|
64
|
+
paintSettledUnit(engine.d, u, dx, dy, w, h, engine.deadParking.has(id));
|
|
65
|
+
// Modern lights its rooms from the upper left (web only: the shared
|
|
66
|
+
// sprite, and so the native atlas, stays flat).
|
|
67
|
+
if (shadesRoom(shadedLook, u))
|
|
68
|
+
shadeRoom(ctx, dx, dy, w, h);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
const actor = new ex.Actor({ pos: ex.vec(r.x, r.y), width: r.w, height: r.h, anchor: ex.vec(0, 0), z: Z.room });
|
|
73
|
+
actor.graphics.use(cv);
|
|
74
|
+
engine.engine.add(actor);
|
|
75
|
+
const rec = { actor, cv, units };
|
|
76
|
+
engine.regions.set(key, rec);
|
|
77
|
+
return rec;
|
|
78
|
+
}
|
|
79
|
+
/** Ensure the unit is a member of its footprint's regions (idempotent) and
|
|
80
|
+
* schedule a repaint: queued by default, immediate when `sameFrame` (an
|
|
81
|
+
* extinguished fire must not leave a one-frame hole). Membership recomputes
|
|
82
|
+
* from the live footprint on every call: no engine path moves or resizes a
|
|
83
|
+
* placed unit today, but a footprint that silently outgrew its cached
|
|
84
|
+
* regions would render a permanent hole, so the four divisions are cheap
|
|
85
|
+
* insurance (the old per-unit bake kept a width guard for the same reason). */
|
|
86
|
+
function markRegionUnit(engine, u, sameFrame = false) {
|
|
87
|
+
const fresh = regionsOf(u.floor, u.x, u.width, catalogFacility(towerCatalog(engine.sim), u.kind).floors);
|
|
88
|
+
const cached = engine.regionUnits.get(u.id);
|
|
89
|
+
let keys = cached;
|
|
90
|
+
if (!keys || keys.length !== fresh.length || keys.some((k, i) => k !== fresh[i])) {
|
|
91
|
+
if (cached)
|
|
92
|
+
dropRegionUnit(engine, u.id, sameFrame);
|
|
93
|
+
keys = fresh;
|
|
94
|
+
engine.regionUnits.set(u.id, keys);
|
|
95
|
+
for (const k of keys)
|
|
96
|
+
(engine.regions.get(k) ?? materialize(engine, k)).units.add(u.id);
|
|
97
|
+
}
|
|
98
|
+
for (const k of keys) {
|
|
99
|
+
if (sameFrame) {
|
|
100
|
+
engine.regions.get(k)?.cv.flagDirty();
|
|
101
|
+
engine.regionDirty.delete(k);
|
|
102
|
+
}
|
|
103
|
+
else
|
|
104
|
+
engine.regionDirty.add(k);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/** Remove a unit from its regions: an emptied region evicts (actor killed,
|
|
108
|
+
* texture freed); a survivor repaints, immediately when `sameFrame` (a room
|
|
109
|
+
* catching fire must not keep its baked ghost under the flames). */
|
|
110
|
+
function dropRegionUnit(engine, id, sameFrame = false) {
|
|
111
|
+
const keys = engine.regionUnits.get(id);
|
|
112
|
+
if (!keys)
|
|
113
|
+
return;
|
|
114
|
+
engine.regionUnits.delete(id);
|
|
115
|
+
for (const k of keys) {
|
|
116
|
+
const rec = engine.regions.get(k);
|
|
117
|
+
if (!rec)
|
|
118
|
+
continue;
|
|
119
|
+
rec.units.delete(id);
|
|
120
|
+
if (rec.units.size === 0) {
|
|
121
|
+
rec.actor.kill();
|
|
122
|
+
engine.regions.delete(k);
|
|
123
|
+
engine.regionDirty.delete(k);
|
|
124
|
+
}
|
|
125
|
+
else if (sameFrame) {
|
|
126
|
+
rec.cv.flagDirty();
|
|
127
|
+
engine.regionDirty.delete(k);
|
|
128
|
+
}
|
|
129
|
+
else
|
|
130
|
+
engine.regionDirty.add(k);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
/** Per-frame drain (I2): repaint at most {@link REGION_DRAIN_BUDGET} dirty
|
|
134
|
+
* regions, on-screen ones first, so a full-tower invalidation (the 17:00
|
|
135
|
+
* lit flip) spreads over frames instead of stacking into one. */
|
|
136
|
+
function drainRegions(engine) {
|
|
137
|
+
if (engine.regionDirty.size === 0)
|
|
138
|
+
return;
|
|
139
|
+
const z = engine.cam.zoom;
|
|
140
|
+
const cx = engine.cam.pos.x;
|
|
141
|
+
const cy = engine.cam.pos.y;
|
|
142
|
+
const hw = engine.viewWidth / 2 / z;
|
|
143
|
+
const hh = engine.viewHeight / 2 / z;
|
|
144
|
+
const visible = (k) => {
|
|
145
|
+
const r = regionRect(k);
|
|
146
|
+
return r.x < cx + hw && r.x + r.w > cx - hw && r.y < cy + hh && r.y + r.h > cy - hh;
|
|
147
|
+
};
|
|
148
|
+
// Single pass, no sort: take visible regions first, remember the first few
|
|
149
|
+
// offscreen ones as fallback so the budget is always spent when work exists.
|
|
150
|
+
const picks = [];
|
|
151
|
+
const offscreen = [];
|
|
152
|
+
for (const k of engine.regionDirty) {
|
|
153
|
+
if (visible(k)) {
|
|
154
|
+
picks.push(k);
|
|
155
|
+
if (picks.length === REGION_DRAIN_BUDGET)
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
else if (offscreen.length < REGION_DRAIN_BUDGET)
|
|
159
|
+
offscreen.push(k);
|
|
160
|
+
}
|
|
161
|
+
for (const k of offscreen) {
|
|
162
|
+
if (picks.length === REGION_DRAIN_BUDGET)
|
|
163
|
+
break;
|
|
164
|
+
picks.push(k);
|
|
165
|
+
}
|
|
166
|
+
for (const k of picks) {
|
|
167
|
+
engine.regionDirty.delete(k);
|
|
168
|
+
engine.regions.get(k)?.cv.flagDirty();
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
/** Repaint every dirty region NOW: the initial-load exception to I2, called
|
|
172
|
+
* by runSceneSync right after the boot / save-load bake. Every region there
|
|
173
|
+
* is freshly materialized and rasters on its first draw regardless, so this
|
|
174
|
+
* is really a queue clear: it stops the budgeted drain from re-uploading
|
|
175
|
+
* ~20 frames of already-correct regions after every load. */
|
|
176
|
+
function drainAllRegions(engine) {
|
|
177
|
+
for (const k of engine.regionDirty)
|
|
178
|
+
engine.regions.get(k)?.cv.flagDirty();
|
|
179
|
+
engine.regionDirty.clear();
|
|
180
|
+
}
|
|
181
|
+
/** Scene teardown (setSim / dispose): kill the region actors and clear every
|
|
182
|
+
* map, so nothing can repaint against a swapped-out tower. */
|
|
183
|
+
function disposeRegions(engine) {
|
|
184
|
+
for (const rec of engine.regions.values())
|
|
185
|
+
rec.actor.kill();
|
|
186
|
+
engine.regions.clear();
|
|
187
|
+
engine.regionUnits.clear();
|
|
188
|
+
engine.regionDirty.clear();
|
|
189
|
+
engine.deadParking.clear();
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export { REGION_DRAIN_BUDGET, disposeRegions, drainAllRegions, drainRegions, dropRegionUnit, markRegionUnit };
|
|
193
|
+
//# sourceMappingURL=towerRegions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"towerRegions.js","sources":["../../../src/render/excalibur/towerRegions.ts"],"sourcesContent":["import * as ex from \"excalibur\";\nimport { Z } from \"../depthPlanes\";\nimport { catalogFacility } from \"../../catalog/catalogTypes\";\nimport { towerCatalog } from \"../../catalog/towerCatalog\";\nimport { paintSettledUnit } from \"../regionPaint\";\nimport { shadeRoom, shadesRoom } from \"../roomShading\";\nimport { FLOOR, TILE } from \"../scale\";\nimport { regionRect, regionsOf } from \"../regionGrid\";\nimport type { UnitView } from \"../../simport/view\";\nimport type { TowerEngine } from \"./TowerEngine\";\n\n/**\n * Region composition for settled room units (CAP-2 of the mobile render-perf\n * spec; design and invariants in `region-design.md`). One cached canvas per\n * occupied region draws every settled unit whose footprint intersects it,\n * clipped to the unit rect at integer world offsets, so the room layer costs\n * the GPU a few dozen textures instead of one per unit. Animated rooms (fire,\n * construction) stay private per-unit actors owned by towerReconcile; their\n * region leaves the footprint unpainted, so nothing bakes under the flames.\n *\n * The load-bearing laws (I1-I4): a materialized region repaints in place\n * forever (never reallocates) until it empties or the scene is disposed;\n * repaints drain through a budgeted visible-first queue so no frame ever\n * rasterizes the whole tower (except a fresh canvas's first raster, which is\n * the load path); the draw closure reads live tower state at raster time, so\n * dirty marks coalesce and a drained queue always renders current state.\n * One honesty note on the budget: it bounds repaint FLAGS per frame, not\n * rasterizations. A flagged off-screen region defers its actual raster until\n * it scrolls into view, so a fast pan can raster several at once; per-unit\n * canvases behaved the same way, so this is no worse than what it replaced.\n */\n\n/** Regions repainted per frame from the dirty queue. The upload micro-bench\n * (spec memlog) showed budget 4 is free at this region size on the software\n * venue; 2 keeps half that headroom for phone-class GPUs while the 17:00\n * full-tower flip (~30-70 live regions) still settles in well under two\n * top-speed sim-minutes. Same-frame exceptions bypass the queue: animated\n * state transitions (no ghost, no hole) flag their regions directly. */\nexport const REGION_DRAIN_BUDGET = 2;\n\nexport interface RegionRec {\n actor: ex.Actor;\n cv: ex.Canvas;\n /** Settled unit ids whose footprint intersects this region. */\n units: Set<number>;\n}\n\n/** Materialize a region: an anchor actor at the region's world rect and a\n * cached canvas whose draw walks the member units LIVE (I3). Fresh canvases\n * raster once on their first draw, which is how initial load fills the\n * tower without touching the drain budget. */\nfunction materialize(engine: TowerEngine, key: number): RegionRec {\n const r = regionRect(key);\n const units = new Set<number>();\n const cv = new ex.Canvas({\n width: r.w,\n height: r.h,\n cache: true,\n draw: (ctx) => {\n engine.d.ctx = ctx;\n ctx.clearRect(0, 0, r.w, r.h);\n const shadedLook = towerCatalog(engine.sim).rules.shadedLook;\n for (const id of units) {\n const u = engine.sim.tower.getUnit(id);\n if (!u) continue;\n const hgt = catalogFacility(towerCatalog(engine.sim), u.kind).floors;\n const w = u.width * TILE;\n const h = hgt * FLOOR;\n const dx = engine.worldX(u.x) - r.x;\n const dy = engine.worldYTop(u.floor, hgt) - r.y;\n // paintSettledUnit clips to the room's rect: private canvases clipped\n // any per-unit overdraw implicitly, a shared canvas does not, and one\n // sprite painting a pixel past its rect would bleed onto a neighbor.\n paintSettledUnit(engine.d, u, dx, dy, w, h, engine.deadParking.has(id));\n // Modern lights its rooms from the upper left (web only: the shared\n // sprite, and so the native atlas, stays flat).\n if (shadesRoom(shadedLook, u)) shadeRoom(ctx, dx, dy, w, h);\n }\n },\n });\n const actor = new ex.Actor({ pos: ex.vec(r.x, r.y), width: r.w, height: r.h, anchor: ex.vec(0, 0), z: Z.room });\n actor.graphics.use(cv);\n engine.engine.add(actor);\n const rec: RegionRec = { actor, cv, units };\n engine.regions.set(key, rec);\n return rec;\n}\n\n/** Ensure the unit is a member of its footprint's regions (idempotent) and\n * schedule a repaint: queued by default, immediate when `sameFrame` (an\n * extinguished fire must not leave a one-frame hole). Membership recomputes\n * from the live footprint on every call: no engine path moves or resizes a\n * placed unit today, but a footprint that silently outgrew its cached\n * regions would render a permanent hole, so the four divisions are cheap\n * insurance (the old per-unit bake kept a width guard for the same reason). */\nexport function markRegionUnit(engine: TowerEngine, u: UnitView, sameFrame = false): void {\n const fresh = regionsOf(u.floor, u.x, u.width, catalogFacility(towerCatalog(engine.sim), u.kind).floors);\n const cached = engine.regionUnits.get(u.id);\n let keys = cached;\n if (!keys || keys.length !== fresh.length || keys.some((k, i) => k !== fresh[i])) {\n if (cached) dropRegionUnit(engine, u.id, sameFrame);\n keys = fresh;\n engine.regionUnits.set(u.id, keys);\n for (const k of keys) (engine.regions.get(k) ?? materialize(engine, k)).units.add(u.id);\n }\n for (const k of keys) {\n if (sameFrame) {\n engine.regions.get(k)?.cv.flagDirty();\n engine.regionDirty.delete(k);\n } else engine.regionDirty.add(k);\n }\n}\n\n/** Remove a unit from its regions: an emptied region evicts (actor killed,\n * texture freed); a survivor repaints, immediately when `sameFrame` (a room\n * catching fire must not keep its baked ghost under the flames). */\nexport function dropRegionUnit(engine: TowerEngine, id: number, sameFrame = false): void {\n const keys = engine.regionUnits.get(id);\n if (!keys) return;\n engine.regionUnits.delete(id);\n for (const k of keys) {\n const rec = engine.regions.get(k);\n if (!rec) continue;\n rec.units.delete(id);\n if (rec.units.size === 0) {\n rec.actor.kill();\n engine.regions.delete(k);\n engine.regionDirty.delete(k);\n } else if (sameFrame) {\n rec.cv.flagDirty();\n engine.regionDirty.delete(k);\n } else engine.regionDirty.add(k);\n }\n}\n\n/** Per-frame drain (I2): repaint at most {@link REGION_DRAIN_BUDGET} dirty\n * regions, on-screen ones first, so a full-tower invalidation (the 17:00\n * lit flip) spreads over frames instead of stacking into one. */\nexport function drainRegions(engine: TowerEngine): void {\n if (engine.regionDirty.size === 0) return;\n const z = engine.cam.zoom;\n const cx = engine.cam.pos.x;\n const cy = engine.cam.pos.y;\n const hw = engine.viewWidth / 2 / z;\n const hh = engine.viewHeight / 2 / z;\n const visible = (k: number): boolean => {\n const r = regionRect(k);\n return r.x < cx + hw && r.x + r.w > cx - hw && r.y < cy + hh && r.y + r.h > cy - hh;\n };\n // Single pass, no sort: take visible regions first, remember the first few\n // offscreen ones as fallback so the budget is always spent when work exists.\n const picks: number[] = [];\n const offscreen: number[] = [];\n for (const k of engine.regionDirty) {\n if (visible(k)) {\n picks.push(k);\n if (picks.length === REGION_DRAIN_BUDGET) break;\n } else if (offscreen.length < REGION_DRAIN_BUDGET) offscreen.push(k);\n }\n for (const k of offscreen) {\n if (picks.length === REGION_DRAIN_BUDGET) break;\n picks.push(k);\n }\n for (const k of picks) {\n engine.regionDirty.delete(k);\n engine.regions.get(k)?.cv.flagDirty();\n }\n}\n\n/** Repaint every dirty region NOW: the initial-load exception to I2, called\n * by runSceneSync right after the boot / save-load bake. Every region there\n * is freshly materialized and rasters on its first draw regardless, so this\n * is really a queue clear: it stops the budgeted drain from re-uploading\n * ~20 frames of already-correct regions after every load. */\nexport function drainAllRegions(engine: TowerEngine): void {\n for (const k of engine.regionDirty) engine.regions.get(k)?.cv.flagDirty();\n engine.regionDirty.clear();\n}\n\n/** Scene teardown (setSim / dispose): kill the region actors and clear every\n * map, so nothing can repaint against a swapped-out tower. */\nexport function disposeRegions(engine: TowerEngine): void {\n for (const rec of engine.regions.values()) rec.actor.kill();\n engine.regions.clear();\n engine.regionUnits.clear();\n engine.regionDirty.clear();\n engine.deadParking.clear();\n}\n"],"names":[],"mappings":";;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;AAmBG;AAEH;;;;;AAKyE;AAClE,MAAM,mBAAmB,GAAG;AASnC;;;AAG+C;AAC/C,SAAS,WAAW,CAAC,MAAmB,EAAE,GAAW,EAAA;AACnD,IAAA,MAAM,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC;AACzB,IAAA,MAAM,KAAK,GAAG,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AA;IAChD,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE;AAAE,QAAA,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;AAC3D,IAAA,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE;AACtB,IAAA,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE;AAC1B,IAAA,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE;AAC1B,IAAA,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE;AAC5B;;"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { RenderSim } from "../renderSim";
|
|
2
|
+
import type { UnitView } from "../../simport/view";
|
|
3
|
+
import { skyColor } from "../sprites/sky";
|
|
4
|
+
import type { TowerEngine } from "./TowerEngine";
|
|
5
|
+
/**
|
|
6
|
+
* Static scene construction, shared-graphics baking, the sky-layer painters
|
|
7
|
+
* (sun/moon, clouds, Santa) and the engine lifecycle (sim-swap, teardown,
|
|
8
|
+
* dispose) for {@link TowerEngine}. Friend functions taking the engine
|
|
9
|
+
* instance. Extracted from `TowerEngine.ts`; the class keeps thin delegations.
|
|
10
|
+
* Retained-scene reconciliation lives in `towerReconcile`; the 2D overlay
|
|
11
|
+
* painters in `towerOverlay`. Pure code move: no drawing or teardown logic
|
|
12
|
+
* changed.
|
|
13
|
+
*/
|
|
14
|
+
/** Bind the view's world from the tower's catalog: the tile maps, region grid,
|
|
15
|
+
* scenery and cursor clamps are all sized from it (#921). The engine binds it
|
|
16
|
+
* when it is built, before any input can read it. A swapped-in tower must
|
|
17
|
+
* state the same lot width and basement; its top floor may differ, and
|
|
18
|
+
* {@link setSim} then resizes the structure map to it (#1985). */
|
|
19
|
+
export declare function bindSceneWorld(sim: RenderSim): void;
|
|
20
|
+
export declare function makeGround(engine: TowerEngine): void;
|
|
21
|
+
/**
|
|
22
|
+
* Sun/moon on a screen-space layer placed *below* the world ground and tower
|
|
23
|
+
* (a z under the dirt). They hang in the open sky, and as you pan, the dirt
|
|
24
|
+
* and the building slide over them and hide them at the horizon, so it pans
|
|
25
|
+
* correctly with no manual clipping.
|
|
26
|
+
*/
|
|
27
|
+
export declare function makeSky(engine: TowerEngine): void;
|
|
28
|
+
export declare function makeOverlay(engine: TowerEngine): void;
|
|
29
|
+
/** One TileMap entity carries every static floor/lobby tile (see the
|
|
30
|
+
* structTiles field note). Sized to the whole buildable grid so cell
|
|
31
|
+
* lookups are plain coordinate math; row 0 is the TOP floor because the
|
|
32
|
+
* map's origin is its top-left corner in world space. A map built before
|
|
33
|
+
* (a swap to a tower with another top floor) leaves the scene first. */
|
|
34
|
+
export declare function makeStructTileMap(engine: TowerEngine): void;
|
|
35
|
+
export declare function bakeSharedGraphics(engine: TowerEngine): void;
|
|
36
|
+
export declare function fakeStruct(kind: "floor" | "lobby", floor?: number, x?: number): UnitView;
|
|
37
|
+
export { skyColor };
|
|
38
|
+
export declare function disposeScene(engine: TowerEngine): void;
|
|
39
|
+
/**
|
|
40
|
+
* Follow an undo or redo step the engine took on the tower this scene draws.
|
|
41
|
+
* The step is an edit of that tower, and it moved the tower's revision, so the
|
|
42
|
+
* scene is kept: the tiles, the room, shaft and crowd actors, the camera and
|
|
43
|
+
* any effect in flight. The next sync brings the scene up to the changed tower
|
|
44
|
+
* by its own keys (the revision and unit list for the tiles, each room's and
|
|
45
|
+
* shaft's signature, each person's id), as it does after a build or a
|
|
46
|
+
* bulldoze. A swap to another tower goes through {@link setSim} instead. The
|
|
47
|
+
* input resets, because the engine committed any gesture under way before it
|
|
48
|
+
* took the step, and an effect drawn on a spot the step emptied ends.
|
|
49
|
+
*/
|
|
50
|
+
export declare function followStep(engine: TowerEngine): void;
|
|
51
|
+
export declare function setSim(engine: TowerEngine, sim: RenderSim, opts?: {
|
|
52
|
+
keepCamera?: boolean;
|
|
53
|
+
}): void;
|
|
54
|
+
/** True when the engine draws through WebGL. Excalibur's constructor
|
|
55
|
+
* silently falls back to a Canvas2D context when `webgl2` creation fails
|
|
56
|
+
* (GPU still wedged after a loss), and that fallback never receives the
|
|
57
|
+
* context-loss handlers, so a "recovered" 2D engine would run degraded
|
|
58
|
+
* with the whole crash pipeline dead. The rebuild path checks this and
|
|
59
|
+
* treats the fallback as a failed recovery. */
|
|
60
|
+
export declare function rendersWithWebGL(engine: TowerEngine): boolean;
|
|
61
|
+
/** Full teardown, used by in-place context-loss recovery before a rebuild:
|
|
62
|
+
* Excalibur's dispose stops the loop, force-collects GPU resources,
|
|
63
|
+
* disables input, and releases the engine singleton slot so a fresh
|
|
64
|
+
* TowerEngine can be constructed cleanly. Safe on a lost context (GL calls
|
|
65
|
+
* on one are no-ops per spec). */
|
|
66
|
+
export declare function dispose(engine: TowerEngine): void;
|