@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,404 @@
|
|
|
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 { viewWorld } from '../../presentation/viewWorld.js';
|
|
6
|
+
import { isPresent } from '../../shared/unitState.js';
|
|
7
|
+
import '../sprites.js';
|
|
8
|
+
import { facadeGeometry } from '../facadeGeometry.js';
|
|
9
|
+
import { setRainShelter } from './rainShelter.js';
|
|
10
|
+
import { paintAnimatedUnit } from '../regionPaint.js';
|
|
11
|
+
import { TILE, FLOOR, TRANSPORT_BAND_FLOORS } from '../scale.js';
|
|
12
|
+
import { isVenue, venueBox, windingFlights } from '../venueFlights.js';
|
|
13
|
+
export { emptyFlightPass } from '../venueFlights.js';
|
|
14
|
+
import { roomSignature, isDeadParking } from './roomSignature.js';
|
|
15
|
+
import { reap } from './towerCrowd.js';
|
|
16
|
+
import { dropRegionUnit, markRegionUnit } from './towerRegions.js';
|
|
17
|
+
import { awaitsInitialBake } from './sceneBake.js';
|
|
18
|
+
import { syncStructureTiles, repaintEntrances } from './towerStructTiles.js';
|
|
19
|
+
import { towerOfSpan } from '../groundEntrances.js';
|
|
20
|
+
import { syncScenery } from './towerScenery.js';
|
|
21
|
+
import { AWNING_W, ESCAPE_W, craneRoof, CRANE_MIN_ROOF_TILES, craneMastTile, drawCrane, CRANE_H, CRANE_W, CRANE_MAST_ANCHOR_X } from '../sprites/structure/rooftop.js';
|
|
22
|
+
import { drawTransport } from '../sprites/transport.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Retained-scene reconciliation (rooms, structure, transports, exterior
|
|
26
|
+
* facade) for {@link TowerEngine}, as friend functions taking the engine
|
|
27
|
+
* instance. Extracted from `TowerEngine.ts`; the class keeps thin delegations.
|
|
28
|
+
* Static construction, baking and the sim-swap / teardown lifecycle live in
|
|
29
|
+
* `towerScene`. Pure code move: no reconciliation or scene-graph logic changed.
|
|
30
|
+
*/
|
|
31
|
+
// Settled rooms draw through the region compositor (towerRegions.ts, spec
|
|
32
|
+
// CAP-2): repaint-in-place at region granularity keeps the old RoomRec law
|
|
33
|
+
// (stable textures, no canvas churn: churn once built enough sustained
|
|
34
|
+
// memory pressure that phones killed the tab) while the texture population
|
|
35
|
+
// drops from one per unit to one per occupied region. Only ANIMATED rooms
|
|
36
|
+
// (fire, construction: cache:false, redrawn every frame) still own a private
|
|
37
|
+
// per-unit actor, held in engine.animatedRooms.
|
|
38
|
+
// ---- Retained-scene reconciliation (no full rebuild) --------------------
|
|
39
|
+
function syncScene(engine) {
|
|
40
|
+
const tower = engine.sim.tower;
|
|
41
|
+
// The scenery pass rides the same sync: it no-ops unless the tower revision
|
|
42
|
+
// or the sim identity moved (grass yields to the apron, plants get paved
|
|
43
|
+
// over, a swapped-in tower re-derives its seed-driven skyline and greenery).
|
|
44
|
+
syncScenery(engine);
|
|
45
|
+
// The floor and lobby tiles draw from the layout, the lobby lighting and the
|
|
46
|
+
// sim alone, so the full tile pass runs only when the layout or the sim
|
|
47
|
+
// moved, and a lighting-only flip repaints just the lobby cells. Every other
|
|
48
|
+
// sync (the hour, the meal overlay) skips the tiles, which make up most of a
|
|
49
|
+
// big tower's units, and walks only the rooms the last full pass kept. The
|
|
50
|
+
// unit list identity rides along with the revision: the view rebuilds both
|
|
51
|
+
// together, and a fresh list always walks.
|
|
52
|
+
const rooms = syncStructureTiles(engine);
|
|
53
|
+
// Fresh flood-fill (not cached, it depends on unit state); read ONCE here
|
|
54
|
+
// per sync. A parking space absent from this set is "dead" and gets a red X.
|
|
55
|
+
// The dead-bit joins the room signature, so a connectivity flip triggers a
|
|
56
|
+
// re-bake alongside the existing state/lighting/hour bits, it adds no
|
|
57
|
+
// per-frame work of its own.
|
|
58
|
+
const parkingOK = tower.functionalParkingSet();
|
|
59
|
+
// Garage/waste display fractions, refreshed here (not per frame) and reusing
|
|
60
|
+
// the flood-fill just done, so they're exactly as fresh as the sprite
|
|
61
|
+
// re-bake below and the garage-car motion visibility that reads them.
|
|
62
|
+
engine.displayParkingUse = engine.sim.parkingUsage(parkingOK.size);
|
|
63
|
+
engine.displayRecycleFill = engine.sim.recyclingFill();
|
|
64
|
+
engine.d.parkingUse = engine.displayParkingUse;
|
|
65
|
+
engine.d.recycleFill = engine.displayRecycleFill;
|
|
66
|
+
// Entrance staff read as ghosts in a tower nobody lives or works in, so they
|
|
67
|
+
// are gated on the tower holding anyone (#552). `isPresent` and not a
|
|
68
|
+
// population count: `totalPopulation` counts live bodies, which for a
|
|
69
|
+
// commercial unit is its customer tally, so a retail-only tower would read 0
|
|
70
|
+
// and lose its doorman every hour outside the meal windows. A lease keeps
|
|
71
|
+
// `state` at `occupied` around the clock (`updatePresence` cycles `occupants`,
|
|
72
|
+
// never `state`), so this is stable for offices, condos and shops alike.
|
|
73
|
+
// Structural tiles never qualify: floors and lobbies are placed `empty` and
|
|
74
|
+
// stay there, so the room loop below answers it for the whole tower.
|
|
75
|
+
//
|
|
76
|
+
// The rule this lands on is "somebody holds space in this building right now."
|
|
77
|
+
// A shop or office keeps its lease overnight, so its tower stays staffed at
|
|
78
|
+
// 4 a.m. with the shutters down. A hotel room is sold by the night, so a
|
|
79
|
+
// hotel-ONLY tower does go unstaffed between the housekeeping sweep and the
|
|
80
|
+
// evening check-ins. That reads inconsistent side by side, but it follows the
|
|
81
|
+
// leases rather than second-guessing them, and the alternative (latching on
|
|
82
|
+
// `everOccupied`) would keep staff in a tower everyone has left. Revisit if
|
|
83
|
+
// the daily flip reads badly on a real hotel tower.
|
|
84
|
+
// Set here rather than in the per-frame tick because it needs every room.
|
|
85
|
+
// Each tower on the lot is staffed by its own rooms (#2384): a room counts
|
|
86
|
+
// for the tower whose ground floor it stands over (`towerOfSpan`), and once
|
|
87
|
+
// every tower is staffed the walk stops asking.
|
|
88
|
+
const towers = engine.groundTowers;
|
|
89
|
+
const staffed = new Array(towers.length / 2).fill(false);
|
|
90
|
+
let unstaffed = staffed.length;
|
|
91
|
+
const seenR = new Set();
|
|
92
|
+
// The flights' look (span, cars, stops, and whether they wind beside a
|
|
93
|
+
// venue, `venueFlights.ts`) moves only with the structure or the mode, so
|
|
94
|
+
// the venues are gathered on this one walk of the rooms, and the flights
|
|
95
|
+
// reconciled, only when that key moved since the last sync.
|
|
96
|
+
const catalog = towerCatalog(engine.sim);
|
|
97
|
+
const windsBesideVenues = catalog.rules.venueFlights;
|
|
98
|
+
const flights = engine.flightPass;
|
|
99
|
+
const flightsStale = flights.sim !== engine.sim ||
|
|
100
|
+
flights.revision !== tower.revision ||
|
|
101
|
+
flights.units !== tower.units ||
|
|
102
|
+
flights.transports !== tower.transports ||
|
|
103
|
+
flights.winds !== windsBesideVenues;
|
|
104
|
+
const venues = flightsStale && windsBesideVenues ? [] : null;
|
|
105
|
+
// Rebuilt fresh each sync from the one flood-fill read above; the region
|
|
106
|
+
// draw closures read it live at raster time (dead spaces get the red X).
|
|
107
|
+
const deadNow = new Set();
|
|
108
|
+
for (const u of rooms) {
|
|
109
|
+
if (unstaffed > 0 && isPresent(u)) {
|
|
110
|
+
const t = towerOfSpan(towers, u.x, u.width);
|
|
111
|
+
if (t >= 0 && !staffed[t]) {
|
|
112
|
+
staffed[t] = true;
|
|
113
|
+
unstaffed--;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
if (venues !== null && isVenue(u.kind))
|
|
117
|
+
venues.push(venueBox(u, catalogFacility(catalog, u.kind).floors));
|
|
118
|
+
seenR.add(u.id);
|
|
119
|
+
const unchained = !parkingOK.has(u.id);
|
|
120
|
+
// Every input the room sprite draws from, hour-dependent bits included
|
|
121
|
+
// (see roomSignature), so the room re-bakes exactly when its look changes.
|
|
122
|
+
const sig = roomSignature(u, {
|
|
123
|
+
hour: engine.d.hour,
|
|
124
|
+
lit: engine.litState,
|
|
125
|
+
unchained,
|
|
126
|
+
parkingUse: engine.d.parkingUse ?? 0,
|
|
127
|
+
recycleFill: engine.d.recycleFill ?? 0,
|
|
128
|
+
});
|
|
129
|
+
if (isDeadParking(u, unchained))
|
|
130
|
+
deadNow.add(u.id);
|
|
131
|
+
const animated = u.state === "fire" || u.state === "construction";
|
|
132
|
+
const wasAnimated = engine.animatedRooms.has(u.id);
|
|
133
|
+
if (animated && !wasAnimated) {
|
|
134
|
+
// Settled -> animated (ignition, construction start): pull the unit
|
|
135
|
+
// out of its region THIS frame so nothing stays baked under the
|
|
136
|
+
// flames, and stand up the private per-frame actor.
|
|
137
|
+
dropRegionUnit(engine, u.id, true);
|
|
138
|
+
addRoom(engine, u);
|
|
139
|
+
}
|
|
140
|
+
else if (!animated && wasAnimated) {
|
|
141
|
+
// Animated -> settled (extinguish, build done): retire the private
|
|
142
|
+
// actor and bake into the region THIS frame, so there is never a
|
|
143
|
+
// one-frame hole where the room existed in neither layer.
|
|
144
|
+
engine.animatedRooms.get(u.id)?.kill();
|
|
145
|
+
engine.animatedRooms.delete(u.id);
|
|
146
|
+
markRegionUnit(engine, u, true);
|
|
147
|
+
}
|
|
148
|
+
else if (!animated && (engine.roomSig.get(u.id) !== sig || !engine.regionUnits.has(u.id))) {
|
|
149
|
+
// Settled look change (or first sight): membership is idempotent and
|
|
150
|
+
// the repaint rides the budgeted drain (towerRegions). A room first seen
|
|
151
|
+
// after the initial bake (one an undo or redo put back) is a player
|
|
152
|
+
// edit, so it bakes this frame, the way a demolition leaves below.
|
|
153
|
+
const firstSight = !engine.regionUnits.has(u.id);
|
|
154
|
+
const initialBake = awaitsInitialBake(engine);
|
|
155
|
+
const putBack = firstSight && !initialBake;
|
|
156
|
+
markRegionUnit(engine, u, putBack);
|
|
157
|
+
}
|
|
158
|
+
engine.roomSig.set(u.id, sig);
|
|
159
|
+
}
|
|
160
|
+
engine.towerStaffed = staffed;
|
|
161
|
+
repaintEntrances(engine);
|
|
162
|
+
engine.deadParking = deadNow;
|
|
163
|
+
reap(engine.animatedRooms, seenR, (a, id) => {
|
|
164
|
+
a.kill();
|
|
165
|
+
engine.roomSig.delete(id);
|
|
166
|
+
});
|
|
167
|
+
// Region membership reap: a demolished settled unit leaves its regions
|
|
168
|
+
// (survivors repaint via the drain; an emptied region evicts whole).
|
|
169
|
+
for (const id of [...engine.regionUnits.keys()]) {
|
|
170
|
+
if (!seenR.has(id)) {
|
|
171
|
+
// Same-frame: a demolition is a player edit, and its baked pixels must
|
|
172
|
+
// vanish with it instead of queuing behind an hour-flip drain backlog.
|
|
173
|
+
dropRegionUnit(engine, id, true);
|
|
174
|
+
engine.roomSig.delete(id);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
if (!flightsStale)
|
|
178
|
+
return;
|
|
179
|
+
syncTransports(engine, tower.transports, windingFlights(tower.transports, venues ?? NO_VENUES, flights.winding));
|
|
180
|
+
flights.sim = engine.sim;
|
|
181
|
+
flights.revision = tower.revision;
|
|
182
|
+
flights.units = tower.units;
|
|
183
|
+
flights.transports = tower.transports;
|
|
184
|
+
flights.winds = windsBesideVenues;
|
|
185
|
+
}
|
|
186
|
+
const NO_VENUES = [];
|
|
187
|
+
/** Reconcile the shaft and flight actors to `transports`. Whether a flight
|
|
188
|
+
* winds (`winding`) joins its signature, so building, bulldozing, undoing or
|
|
189
|
+
* redoing a venue beside it restyles it in the same sync. Runs only when the
|
|
190
|
+
* structure or the mode moved (`FlightPass`): every input here is structural,
|
|
191
|
+
* and every transport edit bumps the tower revision. */
|
|
192
|
+
function syncTransports(engine, transports, winding) {
|
|
193
|
+
const seenT = new Set();
|
|
194
|
+
for (const t of transports) {
|
|
195
|
+
seenT.add(t.id);
|
|
196
|
+
const winds = winding.has(t.id);
|
|
197
|
+
const sig = `${t.bottom}:${t.top}:${t.cars}:${t.kind}:${(t.skipFloors ?? []).join(",")}${winds ? ":winds" : ""}`;
|
|
198
|
+
const a = engine.transportActors.get(t.id);
|
|
199
|
+
if (!a) {
|
|
200
|
+
addTransport(engine, t, winds);
|
|
201
|
+
engine.transportSig.set(t.id, sig);
|
|
202
|
+
}
|
|
203
|
+
else if (engine.transportSig.get(t.id) !== sig) {
|
|
204
|
+
a.kill();
|
|
205
|
+
engine.transportActors.delete(t.id);
|
|
206
|
+
addTransport(engine, t, winds);
|
|
207
|
+
engine.transportSig.set(t.id, sig);
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
reap(engine.transportActors, seenT, (a, id) => {
|
|
211
|
+
a.kill();
|
|
212
|
+
engine.transportSig.delete(id);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Reconcile the building's exterior dressing, escape stairs and the roof
|
|
217
|
+
* crane, to the tower silhouette, and record it as the rain's shelter. Runs
|
|
218
|
+
* only on structural changes (like
|
|
219
|
+
* syncMotion): the silhouette can't move on an hour tick or a lighting flip.
|
|
220
|
+
*/
|
|
221
|
+
function syncFacade(engine) {
|
|
222
|
+
// Above-ground silhouette + top-row tiles in ONE pass over the units:
|
|
223
|
+
// escape stairs read the per-floor edges, the crane reads the top row's
|
|
224
|
+
// built columns. (Every story of a multi-floor room counts, so a two-story
|
|
225
|
+
// cinema at the edge still gets stairs on its upper row, and so does every
|
|
226
|
+
// raised story of a tall lobby hall.)
|
|
227
|
+
const tower = engine.sim.tower;
|
|
228
|
+
const hi = tower.highestFloor;
|
|
229
|
+
const { runs, topFloor, topTiles } = facadeGeometry(tower.units, hi, towerCatalog(engine.sim), tower.tallLobbies());
|
|
230
|
+
syncEscapes(engine, runs);
|
|
231
|
+
syncCrane(engine, topFloor, topTiles);
|
|
232
|
+
setRainShelter(engine, runs);
|
|
233
|
+
}
|
|
234
|
+
/** Reconcile the exterior facade segments hung off both sides of each run of
|
|
235
|
+
* an above-ground floor (one run per tower when towers stand apart on the
|
|
236
|
+
* lot): fire-escape stairs on floors 2 and up, and the ground-floor entrance
|
|
237
|
+
* awnings that stand in for them on floor 1. One left + one right actor per
|
|
238
|
+
* run, slid in place when the run's edges move. */
|
|
239
|
+
function syncEscapes(engine, runs) {
|
|
240
|
+
const kept = new Set();
|
|
241
|
+
for (const [floor, row] of runs)
|
|
242
|
+
row.forEach((e, i) => {
|
|
243
|
+
const key = `${floor}:${i}`;
|
|
244
|
+
kept.add(key);
|
|
245
|
+
// Floor 1 wears awnings over its frontage instead of the fire escape;
|
|
246
|
+
// they are wider than an escape segment, so the outer offset differs.
|
|
247
|
+
const ground = floor === 1;
|
|
248
|
+
const segW = ground ? AWNING_W : ESCAPE_W;
|
|
249
|
+
const sig = `${e.min}:${e.max}`;
|
|
250
|
+
const y = engine.worldYTop(floor);
|
|
251
|
+
const lx = e.min * TILE - segW;
|
|
252
|
+
const rx = e.max * TILE;
|
|
253
|
+
const rec = engine.escapeActors.get(key);
|
|
254
|
+
if (rec) {
|
|
255
|
+
// Same graphic (parity/style is fixed per floor), just follow the edge.
|
|
256
|
+
if (rec.sig !== sig) {
|
|
257
|
+
rec.l.pos = ex.vec(lx, y);
|
|
258
|
+
rec.r.pos = ex.vec(rx, y);
|
|
259
|
+
rec.sig = sig;
|
|
260
|
+
}
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const parity = (floor % 2);
|
|
264
|
+
const hang = (x, side) => {
|
|
265
|
+
const a = new ex.Actor({ pos: ex.vec(x, y), width: segW, height: FLOOR, anchor: ex.vec(0, 0), z: Z.hang });
|
|
266
|
+
a.graphics.use(ground ? engine.awningGfx[side] : engine.escGfx[side][parity]);
|
|
267
|
+
engine.engine.add(a);
|
|
268
|
+
return a;
|
|
269
|
+
};
|
|
270
|
+
engine.escapeActors.set(key, { l: hang(lx, "left"), r: hang(rx, "right"), sig });
|
|
271
|
+
});
|
|
272
|
+
reap(engine.escapeActors, kept, (rec) => {
|
|
273
|
+
rec.l.kill();
|
|
274
|
+
rec.r.kill();
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/** Keep the rooftop crane perched over the highest built floor's run. It
|
|
278
|
+
* comes down once the tower tops out at the 100th floor (and stays away
|
|
279
|
+
* unless the top is demolished back below it, the crane is derived state,
|
|
280
|
+
* not a latch). No above-ground floors → no crane (empty/basement lots). */
|
|
281
|
+
function syncCrane(engine, hi, topTiles) {
|
|
282
|
+
// No above-ground structure on the top row (basement-only/empty lot), the
|
|
283
|
+
// tower has topped out at the cap, or the top is too narrow for the
|
|
284
|
+
// crane's roof pad (a spire) → no crane.
|
|
285
|
+
const roof = topTiles.size > 0 ? craneRoof(topTiles) : null;
|
|
286
|
+
if (hi >= viewWorld().maxFloor || !roof || roof.width < CRANE_MIN_ROOF_TILES) {
|
|
287
|
+
if (engine.craneActor) {
|
|
288
|
+
engine.craneActor.kill();
|
|
289
|
+
engine.craneActor = null;
|
|
290
|
+
engine.craneGfx = null;
|
|
291
|
+
}
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
// Center over the widest CONTIGUOUS built run on the top floor, not the
|
|
295
|
+
// (min,max) midpoint: a top row built in disjoint sections, a setback, or
|
|
296
|
+
// a partly-leased office row, leaves the midpoint hovering in the gap
|
|
297
|
+
// between blocks, floating the crane over open sky. For a fully-built row
|
|
298
|
+
// the widest run IS the whole span, so this matches the old midpoint.
|
|
299
|
+
// The mast, not the middle of the drawing, stands over the run's center:
|
|
300
|
+
// the jib reaches right, so the drawing's middle is right of the mast.
|
|
301
|
+
// A narrow top flush to the lot's edge shifts the mast along its roof so
|
|
302
|
+
// the arms stay over the lot (#334).
|
|
303
|
+
const pos = ex.vec(craneMastTile(roof, viewWorld().lotWidth) * TILE, engine.worldYTop(hi));
|
|
304
|
+
if (!engine.craneActor) {
|
|
305
|
+
// cache:true + flagDirty from tick(): the crane re-rasterizes only while
|
|
306
|
+
// the decorative clock advances, so pause/reduced-motion stops the
|
|
307
|
+
// per-frame canvas repaint AND the GPU re-upload, not just the motion.
|
|
308
|
+
engine.craneGfx = new ex.Canvas({
|
|
309
|
+
width: CRANE_W,
|
|
310
|
+
height: CRANE_H,
|
|
311
|
+
cache: true,
|
|
312
|
+
draw: (ctx) => drawCrane(ctx, engine.d.anim, engine.d.lit),
|
|
313
|
+
});
|
|
314
|
+
engine.craneActor = new ex.Actor({
|
|
315
|
+
pos,
|
|
316
|
+
width: CRANE_W,
|
|
317
|
+
height: CRANE_H,
|
|
318
|
+
anchor: ex.vec(CRANE_MAST_ANCHOR_X, 1),
|
|
319
|
+
z: Z.hang,
|
|
320
|
+
});
|
|
321
|
+
engine.craneActor.graphics.use(engine.craneGfx);
|
|
322
|
+
engine.engine.add(engine.craneActor);
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
engine.craneActor.pos = pos;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
/** The shared retained-actor ritual: top-left anchored, box collider the
|
|
329
|
+
* size of the graphic, added to the engine. Callers keep their own maps. */
|
|
330
|
+
function addBoxActor(engine, pos, w, h, z, gfx) {
|
|
331
|
+
const a = new ex.Actor({ pos, width: w, height: h, anchor: ex.vec(0, 0), z });
|
|
332
|
+
a.graphics.use(gfx);
|
|
333
|
+
a.collider.use(ex.Colliders.Box(w, h, ex.vec(0, 0)));
|
|
334
|
+
engine.engine.add(a);
|
|
335
|
+
return a;
|
|
336
|
+
}
|
|
337
|
+
/** Build and retain the private actor for an ANIMATED room (fire, under
|
|
338
|
+
* construction): cache:false, so the flames and crane flicker redraw every
|
|
339
|
+
* frame. Settled rooms never come through here (towerRegions composes
|
|
340
|
+
* them); the dead-parking X never applies to an animated state, so no dead
|
|
341
|
+
* flag rides along. z 0.45 keeps the flames deterministically over the
|
|
342
|
+
* region canvas (z 0) and under every crowd sprite: walkers sit at 0.4 or
|
|
343
|
+
* lower, garage commute cars at exactly 0.5, so 0.45 avoids the insertion-
|
|
344
|
+
* order tie a 0.5 room would have with the cars driving past the flames. */
|
|
345
|
+
function addRoom(engine, u) {
|
|
346
|
+
const hgt = catalogFacility(towerCatalog(engine.sim), u.kind).floors;
|
|
347
|
+
const w = u.width * TILE;
|
|
348
|
+
const h = hgt * FLOOR;
|
|
349
|
+
const cv = new ex.Canvas({
|
|
350
|
+
width: w,
|
|
351
|
+
height: h,
|
|
352
|
+
cache: false,
|
|
353
|
+
draw: (ctx) => {
|
|
354
|
+
engine.d.ctx = ctx;
|
|
355
|
+
// Read the room live by id, as the region draws do: an undo or redo step
|
|
356
|
+
// keeps this actor while the view hands every room over as a new object.
|
|
357
|
+
paintAnimatedUnit(engine.d, engine.sim.tower.getUnit(u.id) ?? u, w, h);
|
|
358
|
+
},
|
|
359
|
+
});
|
|
360
|
+
const a = addBoxActor(engine, ex.vec(engine.worldX(u.x), engine.worldYTop(u.floor, hgt)), w, h, Z.animatedRoom, cv);
|
|
361
|
+
engine.animatedRooms.set(u.id, a);
|
|
362
|
+
}
|
|
363
|
+
function addTransport(engine, t, winds) {
|
|
364
|
+
const w = t.width * TILE;
|
|
365
|
+
const totalFloors = t.top - t.bottom + 1;
|
|
366
|
+
const h = totalFloors * FLOOR;
|
|
367
|
+
const gfx = transportGraphic(engine, t, w, totalFloors, winds);
|
|
368
|
+
engine.transportActors.set(t.id, addBoxActor(engine, ex.vec(engine.worldX(t.x), engine.worldYTop(t.top)), w, h, Z.transport, gfx));
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Build a shaft graphic whose backing bitmap can't exceed the GPU texture
|
|
372
|
+
* limit. A tall shaft is `floors * FLOOR` px high, which on a mobile GPU
|
|
373
|
+
* (MAX_TEXTURE_SIZE often 4096, sometimes 2048) can fail to upload and render
|
|
374
|
+
* as a black rectangle. A tall shaft is therefore split into stacked bands,
|
|
375
|
+
* each its own small cached Canvas, composed onto one GraphicsGroup, a single
|
|
376
|
+
* actor, so the rest of the engine (sync, removal, collider) is unchanged.
|
|
377
|
+
*/
|
|
378
|
+
function transportGraphic(engine, t, w, totalFloors, winds) {
|
|
379
|
+
const band = (fromTop, floors) => new ex.Canvas({
|
|
380
|
+
width: w,
|
|
381
|
+
height: floors * FLOOR,
|
|
382
|
+
cache: true,
|
|
383
|
+
quality: 1, // background structure — keep the bitmap at its logical size
|
|
384
|
+
draw: (ctx) => {
|
|
385
|
+
engine.d.ctx = ctx;
|
|
386
|
+
// Draw the whole shaft shifted up so only this band lands in-bounds; the
|
|
387
|
+
// rest is clipped. Bands abut seamlessly (each draws the full shaft).
|
|
388
|
+
// `winds` is the style the signature was built from, so a re-raster
|
|
389
|
+
// (a lost GL context) always matches the signature.
|
|
390
|
+
drawTransport(ctx, t, 0, -fromTop * FLOOR, w, FLOOR, winds);
|
|
391
|
+
},
|
|
392
|
+
});
|
|
393
|
+
if (totalFloors <= TRANSPORT_BAND_FLOORS)
|
|
394
|
+
return band(0, totalFloors);
|
|
395
|
+
const members = [];
|
|
396
|
+
for (let from = 0; from < totalFloors; from += TRANSPORT_BAND_FLOORS) {
|
|
397
|
+
const floors = Math.min(TRANSPORT_BAND_FLOORS, totalFloors - from);
|
|
398
|
+
members.push({ graphic: band(from, floors), offset: ex.vec(0, from * FLOOR) });
|
|
399
|
+
}
|
|
400
|
+
return new ex.GraphicsGroup({ members, useAnchor: false });
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export { syncFacade, syncScene };
|
|
404
|
+
//# sourceMappingURL=towerReconcile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"towerReconcile.js","sources":["../../../src/render/excalibur/towerReconcile.ts"],"sourcesContent":["import * as ex from \"excalibur\";\nimport { Z } from \"../depthPlanes\";\nimport { catalogFacility } from \"../../catalog/catalogTypes\";\nimport { towerCatalog } from \"../../catalog/towerCatalog\";\nimport { viewWorld } from \"../../presentation/viewWorld\";\nimport { isPresent } from \"../../shared/unitState\";\nimport type { TransportView, UnitView } from \"../../simport/view\";\nimport {\n CRANE_H,\n CRANE_MAST_ANCHOR_X,\n CRANE_MIN_ROOF_TILES,\n CRANE_W,\n craneMastTile,\n craneRoof,\n AWNING_W,\n drawCrane,\n drawTransport,\n ESCAPE_W,\n} from \"../sprites\";\nimport { facadeGeometry, type FloorEdge } from \"../facadeGeometry\";\nimport { setRainShelter } from \"./rainShelter\";\nimport { paintAnimatedUnit } from \"../regionPaint\";\nimport { FLOOR, TILE, TRANSPORT_BAND_FLOORS } from \"../scale\";\nimport { isVenue, venueBox, windingFlights, type VenueBox } from \"../venueFlights\";\nexport { emptyFlightPass } from \"../venueFlights\";\nimport { isDeadParking, roomSignature } from \"./roomSignature\";\nimport { reap } from \"./towerCrowd\";\nimport { dropRegionUnit, markRegionUnit } from \"./towerRegions\";\nimport { awaitsInitialBake } from \"./sceneBake\";\nimport { repaintEntrances, syncStructureTiles } from \"./towerStructTiles\";\nimport { towerOfSpan } from \"../groundEntrances\";\nimport { syncScenery } from \"./towerScenery\";\nimport type { TowerEngine } from \"./TowerEngine\";\n\n/**\n * Retained-scene reconciliation (rooms, structure, transports, exterior\n * facade) for {@link TowerEngine}, as friend functions taking the engine\n * instance. Extracted from `TowerEngine.ts`; the class keeps thin delegations.\n * Static construction, baking and the sim-swap / teardown lifecycle live in\n * `towerScene`. Pure code move: no reconciliation or scene-graph logic changed.\n */\n\n// Settled rooms draw through the region compositor (towerRegions.ts, spec\n// CAP-2): repaint-in-place at region granularity keeps the old RoomRec law\n// (stable textures, no canvas churn: churn once built enough sustained\n// memory pressure that phones killed the tab) while the texture population\n// drops from one per unit to one per occupied region. Only ANIMATED rooms\n// (fire, construction: cache:false, redrawn every frame) still own a private\n// per-unit actor, held in engine.animatedRooms.\n\n// ---- Retained-scene reconciliation (no full rebuild) --------------------\n\nexport function syncScene(engine: TowerEngine): void {\n const tower = engine.sim.tower;\n // The scenery pass rides the same sync: it no-ops unless the tower revision\n // or the sim identity moved (grass yields to the apron, plants get paved\n // over, a swapped-in tower re-derives its seed-driven skyline and greenery).\n syncScenery(engine);\n // The floor and lobby tiles draw from the layout, the lobby lighting and the\n // sim alone, so the full tile pass runs only when the layout or the sim\n // moved, and a lighting-only flip repaints just the lobby cells. Every other\n // sync (the hour, the meal overlay) skips the tiles, which make up most of a\n // big tower's units, and walks only the rooms the last full pass kept. The\n // unit list identity rides along with the revision: the view rebuilds both\n // together, and a fresh list always walks.\n const rooms = syncStructureTiles(engine);\n // Fresh flood-fill (not cached, it depends on unit state); read ONCE here\n // per sync. A parking space absent from this set is \"dead\" and gets a red X.\n // The dead-bit joins the room signature, so a connectivity flip triggers a\n // re-bake alongside the existing state/lighting/hour bits, it adds no\n // per-frame work of its own.\n const parkingOK = tower.functionalParkingSet();\n // Garage/waste display fractions, refreshed here (not per frame) and reusing\n // the flood-fill just done, so they're exactly as fresh as the sprite\n // re-bake below and the garage-car motion visibility that reads them.\n engine.displayParkingUse = engine.sim.parkingUsage(parkingOK.size);\n engine.displayRecycleFill = engine.sim.recyclingFill();\n engine.d.parkingUse = engine.displayParkingUse;\n engine.d.recycleFill = engine.displayRecycleFill;\n // Entrance staff read as ghosts in a tower nobody lives or works in, so they\n // are gated on the tower holding anyone (#552). `isPresent` and not a\n // population count: `totalPopulation` counts live bodies, which for a\n // commercial unit is its customer tally, so a retail-only tower would read 0\n // and lose its doorman every hour outside the meal windows. A lease keeps\n // `state` at `occupied` around the clock (`updatePresence` cycles `occupants`,\n // never `state`), so this is stable for offices, condos and shops alike.\n // Structural tiles never qualify: floors and lobbies are placed `empty` and\n // stay there, so the room loop below answers it for the whole tower.\n //\n // The rule this lands on is \"somebody holds space in this building right now.\"\n // A shop or office keeps its lease overnight, so its tower stays staffed at\n // 4 a.m. with the shutters down. A hotel room is sold by the night, so a\n // hotel-ONLY tower does go unstaffed between the housekeeping sweep and the\n // evening check-ins. That reads inconsistent side by side, but it follows the\n // leases rather than second-guessing them, and the alternative (latching on\n // `everOccupied`) would keep staff in a tower everyone has left. Revisit if\n // the daily flip reads badly on a real hotel tower.\n // Set here rather than in the per-frame tick because it needs every room.\n // Each tower on the lot is staffed by its own rooms (#2384): a room counts\n // for the tower whose ground floor it stands over (`towerOfSpan`), and once\n // every tower is staffed the walk stops asking.\n const towers = engine.groundTowers;\n const staffed: boolean[] = new Array<boolean>(towers.length / 2).fill(false);\n let unstaffed = staffed.length;\n const seenR = new Set<number>();\n // The flights' look (span, cars, stops, and whether they wind beside a\n // venue, `venueFlights.ts`) moves only with the structure or the mode, so\n // the venues are gathered on this one walk of the rooms, and the flights\n // reconciled, only when that key moved since the last sync.\n const catalog = towerCatalog(engine.sim);\n const windsBesideVenues = catalog.rules.venueFlights;\n const flights = engine.flightPass;\n const flightsStale =\n flights.sim !== engine.sim ||\n flights.revision !== tower.revision ||\n flights.units !== tower.units ||\n flights.transports !== tower.transports ||\n flights.winds !== windsBesideVenues;\n const venues: VenueBox[] | null = flightsStale && windsBesideVenues ? [] : null;\n // Rebuilt fresh each sync from the one flood-fill read above; the region\n // draw closures read it live at raster time (dead spaces get the red X).\n const deadNow = new Set<number>();\n for (const u of rooms) {\n if (unstaffed > 0 && isPresent(u)) {\n const t = towerOfSpan(towers, u.x, u.width);\n if (t >= 0 && !staffed[t]) {\n staffed[t] = true;\n unstaffed--;\n }\n }\n if (venues !== null && isVenue(u.kind)) venues.push(venueBox(u, catalogFacility(catalog, u.kind).floors));\n seenR.add(u.id);\n const unchained = !parkingOK.has(u.id);\n // Every input the room sprite draws from, hour-dependent bits included\n // (see roomSignature), so the room re-bakes exactly when its look changes.\n const sig = roomSignature(u, {\n hour: engine.d.hour,\n lit: engine.litState,\n unchained,\n parkingUse: engine.d.parkingUse ?? 0,\n recycleFill: engine.d.recycleFill ?? 0,\n });\n if (isDeadParking(u, unchained)) deadNow.add(u.id);\n const animated = u.state === \"fire\" || u.state === \"construction\";\n const wasAnimated = engine.animatedRooms.has(u.id);\n if (animated && !wasAnimated) {\n // Settled -> animated (ignition, construction start): pull the unit\n // out of its region THIS frame so nothing stays baked under the\n // flames, and stand up the private per-frame actor.\n dropRegionUnit(engine, u.id, true);\n addRoom(engine, u);\n } else if (!animated && wasAnimated) {\n // Animated -> settled (extinguish, build done): retire the private\n // actor and bake into the region THIS frame, so there is never a\n // one-frame hole where the room existed in neither layer.\n engine.animatedRooms.get(u.id)?.kill();\n engine.animatedRooms.delete(u.id);\n markRegionUnit(engine, u, true);\n } else if (!animated && (engine.roomSig.get(u.id) !== sig || !engine.regionUnits.has(u.id))) {\n // Settled look change (or first sight): membership is idempotent and\n // the repaint rides the budgeted drain (towerRegions). A room first seen\n // after the initial bake (one an undo or redo put back) is a player\n // edit, so it bakes this frame, the way a demolition leaves below.\n const firstSight = !engine.regionUnits.has(u.id);\n const initialBake = awaitsInitialBake(engine);\n const putBack = firstSight && !initialBake;\n markRegionUnit(engine, u, putBack);\n }\n engine.roomSig.set(u.id, sig);\n }\n engine.towerStaffed = staffed;\n repaintEntrances(engine);\n engine.deadParking = deadNow;\n reap(engine.animatedRooms, seenR, (a, id) => {\n a.kill();\n engine.roomSig.delete(id);\n });\n // Region membership reap: a demolished settled unit leaves its regions\n // (survivors repaint via the drain; an emptied region evicts whole).\n for (const id of [...engine.regionUnits.keys()]) {\n if (!seenR.has(id)) {\n // Same-frame: a demolition is a player edit, and its baked pixels must\n // vanish with it instead of queuing behind an hour-flip drain backlog.\n dropRegionUnit(engine, id, true);\n engine.roomSig.delete(id);\n }\n }\n\n if (!flightsStale) return;\n syncTransports(engine, tower.transports, windingFlights(tower.transports, venues ?? NO_VENUES, flights.winding));\n flights.sim = engine.sim;\n flights.revision = tower.revision;\n flights.units = tower.units;\n flights.transports = tower.transports;\n flights.winds = windsBesideVenues;\n}\n\nconst NO_VENUES: readonly VenueBox[] = [];\n\n/** Reconcile the shaft and flight actors to `transports`. Whether a flight\n * winds (`winding`) joins its signature, so building, bulldozing, undoing or\n * redoing a venue beside it restyles it in the same sync. Runs only when the\n * structure or the mode moved (`FlightPass`): every input here is structural,\n * and every transport edit bumps the tower revision. */\nfunction syncTransports(engine: TowerEngine, transports: ReadonlyArray<TransportView>, winding: ReadonlySet<number>): void {\n const seenT = new Set<number>();\n for (const t of transports) {\n seenT.add(t.id);\n const winds = winding.has(t.id);\n const sig = `${t.bottom}:${t.top}:${t.cars}:${t.kind}:${(t.skipFloors ?? []).join(\",\")}${winds ? \":winds\" : \"\"}`;\n const a = engine.transportActors.get(t.id);\n if (!a) {\n addTransport(engine, t, winds);\n engine.transportSig.set(t.id, sig);\n } else if (engine.transportSig.get(t.id) !== sig) {\n a.kill();\n engine.transportActors.delete(t.id);\n addTransport(engine, t, winds);\n engine.transportSig.set(t.id, sig);\n }\n }\n reap(engine.transportActors, seenT, (a, id) => {\n a.kill();\n engine.transportSig.delete(id);\n });\n}\n\n/**\n * Reconcile the building's exterior dressing, escape stairs and the roof\n * crane, to the tower silhouette, and record it as the rain's shelter. Runs\n * only on structural changes (like\n * syncMotion): the silhouette can't move on an hour tick or a lighting flip.\n */\nexport function syncFacade(engine: TowerEngine): void {\n // Above-ground silhouette + top-row tiles in ONE pass over the units:\n // escape stairs read the per-floor edges, the crane reads the top row's\n // built columns. (Every story of a multi-floor room counts, so a two-story\n // cinema at the edge still gets stairs on its upper row, and so does every\n // raised story of a tall lobby hall.)\n const tower = engine.sim.tower;\n const hi = tower.highestFloor;\n const { runs, topFloor, topTiles } = facadeGeometry(tower.units, hi, towerCatalog(engine.sim), tower.tallLobbies());\n syncEscapes(engine, runs);\n syncCrane(engine, topFloor, topTiles);\n setRainShelter(engine, runs);\n}\n\n/** Reconcile the exterior facade segments hung off both sides of each run of\n * an above-ground floor (one run per tower when towers stand apart on the\n * lot): fire-escape stairs on floors 2 and up, and the ground-floor entrance\n * awnings that stand in for them on floor 1. One left + one right actor per\n * run, slid in place when the run's edges move. */\nfunction syncEscapes(engine: TowerEngine, runs: Map<number, FloorEdge[]>): void {\n const kept = new Set<string>();\n for (const [floor, row] of runs) row.forEach((e, i) => {\n const key = `${floor}:${i}`;\n kept.add(key);\n // Floor 1 wears awnings over its frontage instead of the fire escape;\n // they are wider than an escape segment, so the outer offset differs.\n const ground = floor === 1;\n const segW = ground ? AWNING_W : ESCAPE_W;\n const sig = `${e.min}:${e.max}`;\n const y = engine.worldYTop(floor);\n const lx = e.min * TILE - segW;\n const rx = e.max * TILE;\n const rec = engine.escapeActors.get(key);\n if (rec) {\n // Same graphic (parity/style is fixed per floor), just follow the edge.\n if (rec.sig !== sig) {\n rec.l.pos = ex.vec(lx, y);\n rec.r.pos = ex.vec(rx, y);\n rec.sig = sig;\n }\n return;\n }\n const parity = (floor % 2) as 0 | 1;\n const hang = (x: number, side: \"left\" | \"right\"): ex.Actor => {\n const a = new ex.Actor({ pos: ex.vec(x, y), width: segW, height: FLOOR, anchor: ex.vec(0, 0), z: Z.hang });\n a.graphics.use(ground ? engine.awningGfx[side] : engine.escGfx[side][parity]);\n engine.engine.add(a);\n return a;\n };\n engine.escapeActors.set(key, { l: hang(lx, \"left\"), r: hang(rx, \"right\"), sig });\n });\n reap(engine.escapeActors, kept, (rec) => {\n rec.l.kill();\n rec.r.kill();\n });\n}\n\n/** Keep the rooftop crane perched over the highest built floor's run. It\n * comes down once the tower tops out at the 100th floor (and stays away\n * unless the top is demolished back below it, the crane is derived state,\n * not a latch). No above-ground floors → no crane (empty/basement lots). */\nfunction syncCrane(engine: TowerEngine, hi: number, topTiles: Set<number>): void {\n // No above-ground structure on the top row (basement-only/empty lot), the\n // tower has topped out at the cap, or the top is too narrow for the\n // crane's roof pad (a spire) → no crane.\n const roof = topTiles.size > 0 ? craneRoof(topTiles) : null;\n if (hi >= viewWorld().maxFloor || !roof || roof.width < CRANE_MIN_ROOF_TILES) {\n if (engine.craneActor) {\n engine.craneActor.kill();\n engine.craneActor = null;\n engine.craneGfx = null;\n }\n return;\n }\n // Center over the widest CONTIGUOUS built run on the top floor, not the\n // (min,max) midpoint: a top row built in disjoint sections, a setback, or\n // a partly-leased office row, leaves the midpoint hovering in the gap\n // between blocks, floating the crane over open sky. For a fully-built row\n // the widest run IS the whole span, so this matches the old midpoint.\n // The mast, not the middle of the drawing, stands over the run's center:\n // the jib reaches right, so the drawing's middle is right of the mast.\n // A narrow top flush to the lot's edge shifts the mast along its roof so\n // the arms stay over the lot (#334).\n const pos = ex.vec(craneMastTile(roof, viewWorld().lotWidth) * TILE, engine.worldYTop(hi));\n if (!engine.craneActor) {\n // cache:true + flagDirty from tick(): the crane re-rasterizes only while\n // the decorative clock advances, so pause/reduced-motion stops the\n // per-frame canvas repaint AND the GPU re-upload, not just the motion.\n engine.craneGfx = new ex.Canvas({\n width: CRANE_W,\n height: CRANE_H,\n cache: true,\n draw: (ctx) => drawCrane(ctx, engine.d.anim, engine.d.lit),\n });\n engine.craneActor = new ex.Actor({\n pos,\n width: CRANE_W,\n height: CRANE_H,\n anchor: ex.vec(CRANE_MAST_ANCHOR_X, 1),\n z: Z.hang,\n });\n engine.craneActor.graphics.use(engine.craneGfx);\n engine.engine.add(engine.craneActor);\n } else {\n engine.craneActor.pos = pos;\n }\n}\n\n/** The shared retained-actor ritual: top-left anchored, box collider the\n * size of the graphic, added to the engine. Callers keep their own maps. */\nfunction addBoxActor(engine: TowerEngine, pos: ex.Vector, w: number, h: number, z: number, gfx: ex.Graphic): ex.Actor {\n const a = new ex.Actor({ pos, width: w, height: h, anchor: ex.vec(0, 0), z });\n a.graphics.use(gfx);\n a.collider.use(ex.Colliders.Box(w, h, ex.vec(0, 0)));\n engine.engine.add(a);\n return a;\n}\n\n/** Build and retain the private actor for an ANIMATED room (fire, under\n * construction): cache:false, so the flames and crane flicker redraw every\n * frame. Settled rooms never come through here (towerRegions composes\n * them); the dead-parking X never applies to an animated state, so no dead\n * flag rides along. z 0.45 keeps the flames deterministically over the\n * region canvas (z 0) and under every crowd sprite: walkers sit at 0.4 or\n * lower, garage commute cars at exactly 0.5, so 0.45 avoids the insertion-\n * order tie a 0.5 room would have with the cars driving past the flames. */\nfunction addRoom(engine: TowerEngine, u: UnitView): void {\n const hgt = catalogFacility(towerCatalog(engine.sim), u.kind).floors;\n const w = u.width * TILE;\n const h = hgt * FLOOR;\n const cv = new ex.Canvas({\n width: w,\n height: h,\n cache: false,\n draw: (ctx) => {\n engine.d.ctx = ctx;\n // Read the room live by id, as the region draws do: an undo or redo step\n // keeps this actor while the view hands every room over as a new object.\n paintAnimatedUnit(engine.d, engine.sim.tower.getUnit(u.id) ?? u, w, h);\n },\n });\n const a = addBoxActor(engine, ex.vec(engine.worldX(u.x), engine.worldYTop(u.floor, hgt)), w, h, Z.animatedRoom, cv);\n engine.animatedRooms.set(u.id, a);\n}\n\nfunction addTransport(engine: TowerEngine, t: TransportView, winds: boolean): void {\n const w = t.width * TILE;\n const totalFloors = t.top - t.bottom + 1;\n const h = totalFloors * FLOOR;\n const gfx = transportGraphic(engine, t, w, totalFloors, winds);\n engine.transportActors.set(t.id, addBoxActor(engine, ex.vec(engine.worldX(t.x), engine.worldYTop(t.top)), w, h, Z.transport, gfx));\n}\n\n/**\n * Build a shaft graphic whose backing bitmap can't exceed the GPU texture\n * limit. A tall shaft is `floors * FLOOR` px high, which on a mobile GPU\n * (MAX_TEXTURE_SIZE often 4096, sometimes 2048) can fail to upload and render\n * as a black rectangle. A tall shaft is therefore split into stacked bands,\n * each its own small cached Canvas, composed onto one GraphicsGroup, a single\n * actor, so the rest of the engine (sync, removal, collider) is unchanged.\n */\nfunction transportGraphic(engine: TowerEngine, t: TransportView, w: number, totalFloors: number, winds: boolean): ex.Graphic {\n const band = (fromTop: number, floors: number): ex.Canvas =>\n new ex.Canvas({\n width: w,\n height: floors * FLOOR,\n cache: true,\n quality: 1, // background structure — keep the bitmap at its logical size\n draw: (ctx) => {\n engine.d.ctx = ctx;\n // Draw the whole shaft shifted up so only this band lands in-bounds; the\n // rest is clipped. Bands abut seamlessly (each draws the full shaft).\n // `winds` is the style the signature was built from, so a re-raster\n // (a lost GL context) always matches the signature.\n drawTransport(ctx, t, 0, -fromTop * FLOOR, w, FLOOR, winds);\n },\n });\n if (totalFloors <= TRANSPORT_BAND_FLOORS) return band(0, totalFloors);\n const members: { graphic: ex.Graphic; offset: ex.Vector }[] = [];\n for (let from = 0; from < totalFloors; from += TRANSPORT_BAND_FLOORS) {\n const floors = Math.min(TRANSPORT_BAND_FLOORS, totalFloors - from);\n members.push({ graphic: band(from, floors), offset: ex.vec(0, from * FLOOR) });\n }\n return new ex.GraphicsGroup({ members, useAnchor: false });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkCA;;;;;;AAMG;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEM,SAAU,SAAS,CAAC,MAAmB,EAAA;AAC3C,IAAA,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK;;;;IAI9B,WAAW,CAAC,MAAM,CAAC;;;;;;;;AAQnB,IAAA,MAAM,KAAK,GAAG,kBAAkB,CAAC,MAAM,CAAC;;;;;;AAMxC,IAAA,MAAM,SAAS,GAAG,KAAK,CAAC,oBAAoB,EAAE;;;;AAI9C,IAAA,MAAM,CAAC,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC;IAClE,MAAM,CAAC,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,aAAa,EAAE;IACtD,MAAM,CAAC,CAAC,CAAC,UAAU,GAAG,MAAM,CAAC,iBAAiB;IAC9C,MAAM,CAAC,CAAC,CAAC,WAAW,GAAG,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;AAuBhD,IAAA,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY;AAClC,IAAA,MAAM,OAAO,GAAc,IAAI,KAAK,CAAU,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;AAC5E,IAAA,IAAI,SAAS,GAAG,OAAO,CAAC,MAAM;AAC9B,IAAA,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU;;;;;IAK/B,MAAM,OAAO,GAAG,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC;AACxC,IAAA,MAAM,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC,YAAY;AACpD,IAAA,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU;I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CAAC,GAAG,GAAG,GAAG;;;;;AAKlB,YAAA,aAAa,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,OAAO,GAAG,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC;QAC7D,CAAC;AACF,KAAA,CAAC;IACJ,IAAI,WAAW,IAAI,qBAAqB;AAAE,QAAA,OAAO,IAAI,CAAC,CAAC,EAAE,WAAW,CAAC;IACrE,MAAM,OAAO,GAAiD,EAAE;AAChE,IAAA,KAAK,IAAI,IAAI,GAAG,CAAC,EAAE,IAAI,GAAG,WAAW,EAAE,IAAI,IAAI,qBAAqB,EAAE;AACpE,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,qBAAqB,EAAE,WAAW,GAAG,IAAI,CAAC;QAClE,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC;IAChF;AACA,IAAA,OAAO,IAAI,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAC5D;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as ex from "excalibur";
|
|
2
|
+
import type { UnitView } from "../../simport/view";
|
|
3
|
+
import type { TowerEngine } from "./TowerEngine";
|
|
4
|
+
/**
|
|
5
|
+
* Region composition for settled room units (CAP-2 of the mobile render-perf
|
|
6
|
+
* spec; design and invariants in `region-design.md`). One cached canvas per
|
|
7
|
+
* occupied region draws every settled unit whose footprint intersects it,
|
|
8
|
+
* clipped to the unit rect at integer world offsets, so the room layer costs
|
|
9
|
+
* the GPU a few dozen textures instead of one per unit. Animated rooms (fire,
|
|
10
|
+
* construction) stay private per-unit actors owned by towerReconcile; their
|
|
11
|
+
* region leaves the footprint unpainted, so nothing bakes under the flames.
|
|
12
|
+
*
|
|
13
|
+
* The load-bearing laws (I1-I4): a materialized region repaints in place
|
|
14
|
+
* forever (never reallocates) until it empties or the scene is disposed;
|
|
15
|
+
* repaints drain through a budgeted visible-first queue so no frame ever
|
|
16
|
+
* rasterizes the whole tower (except a fresh canvas's first raster, which is
|
|
17
|
+
* the load path); the draw closure reads live tower state at raster time, so
|
|
18
|
+
* dirty marks coalesce and a drained queue always renders current state.
|
|
19
|
+
* One honesty note on the budget: it bounds repaint FLAGS per frame, not
|
|
20
|
+
* rasterizations. A flagged off-screen region defers its actual raster until
|
|
21
|
+
* it scrolls into view, so a fast pan can raster several at once; per-unit
|
|
22
|
+
* canvases behaved the same way, so this is no worse than what it replaced.
|
|
23
|
+
*/
|
|
24
|
+
/** Regions repainted per frame from the dirty queue. The upload micro-bench
|
|
25
|
+
* (spec memlog) showed budget 4 is free at this region size on the software
|
|
26
|
+
* venue; 2 keeps half that headroom for phone-class GPUs while the 17:00
|
|
27
|
+
* full-tower flip (~30-70 live regions) still settles in well under two
|
|
28
|
+
* top-speed sim-minutes. Same-frame exceptions bypass the queue: animated
|
|
29
|
+
* state transitions (no ghost, no hole) flag their regions directly. */
|
|
30
|
+
export declare const REGION_DRAIN_BUDGET = 2;
|
|
31
|
+
export interface RegionRec {
|
|
32
|
+
actor: ex.Actor;
|
|
33
|
+
cv: ex.Canvas;
|
|
34
|
+
/** Settled unit ids whose footprint intersects this region. */
|
|
35
|
+
units: Set<number>;
|
|
36
|
+
}
|
|
37
|
+
/** Ensure the unit is a member of its footprint's regions (idempotent) and
|
|
38
|
+
* schedule a repaint: queued by default, immediate when `sameFrame` (an
|
|
39
|
+
* extinguished fire must not leave a one-frame hole). Membership recomputes
|
|
40
|
+
* from the live footprint on every call: no engine path moves or resizes a
|
|
41
|
+
* placed unit today, but a footprint that silently outgrew its cached
|
|
42
|
+
* regions would render a permanent hole, so the four divisions are cheap
|
|
43
|
+
* insurance (the old per-unit bake kept a width guard for the same reason). */
|
|
44
|
+
export declare function markRegionUnit(engine: TowerEngine, u: UnitView, sameFrame?: boolean): void;
|
|
45
|
+
/** Remove a unit from its regions: an emptied region evicts (actor killed,
|
|
46
|
+
* texture freed); a survivor repaints, immediately when `sameFrame` (a room
|
|
47
|
+
* catching fire must not keep its baked ghost under the flames). */
|
|
48
|
+
export declare function dropRegionUnit(engine: TowerEngine, id: number, sameFrame?: boolean): void;
|
|
49
|
+
/** Per-frame drain (I2): repaint at most {@link REGION_DRAIN_BUDGET} dirty
|
|
50
|
+
* regions, on-screen ones first, so a full-tower invalidation (the 17:00
|
|
51
|
+
* lit flip) spreads over frames instead of stacking into one. */
|
|
52
|
+
export declare function drainRegions(engine: TowerEngine): void;
|
|
53
|
+
/** Repaint every dirty region NOW: the initial-load exception to I2, called
|
|
54
|
+
* by runSceneSync right after the boot / save-load bake. Every region there
|
|
55
|
+
* is freshly materialized and rasters on its first draw regardless, so this
|
|
56
|
+
* is really a queue clear: it stops the budgeted drain from re-uploading
|
|
57
|
+
* ~20 frames of already-correct regions after every load. */
|
|
58
|
+
export declare function drainAllRegions(engine: TowerEngine): void;
|
|
59
|
+
/** Scene teardown (setSim / dispose): kill the region actors and clear every
|
|
60
|
+
* map, so nothing can repaint against a swapped-out tower. */
|
|
61
|
+
export declare function disposeRegions(engine: TowerEngine): void;
|