Centralize gameplay boot state sessions

This commit is contained in:
Meta Vens 2026-06-28 14:27:42 +01:00
commit 3917be7d86
2 changed files with 30 additions and 16 deletions

View file

@ -36,12 +36,12 @@ public sealed class AetheriaUnityGameplayBootShell
var aetheria = AetheriaUnityRuntimeClientProvider.ResolveClient(stateBoot.StateFilePath, stateBoot.RuntimeId)
.State;
using var runtimeCatalogDocument = aetheria.ReactiveCatalog();
var runtimeCatalog = runtimeCatalogDocument.Current;
using var runtimeCatalogSession = aetheria.ObserveCatalog();
var runtimeCatalog = runtimeCatalogSession.Current;
if (runtimeCatalog == null)
throw new InvalidOperationException("Aetheria typed runtime catalog is required before gameplay boot.");
using var sectorMapDocument = aetheria.ReactiveSectorMap();
var sectorMap = sectorMapDocument.Current;
using var sectorMapSession = aetheria.ObserveSectorMap();
var sectorMap = sectorMapSession.Current;
if (sectorMap == null)
throw new InvalidOperationException("Aetheria typed sector map is required before gameplay boot.");