Use provider-native state in gameplay boot
This commit is contained in:
parent
b09b7b43e0
commit
d3d67ecb56
2 changed files with 13 additions and 12 deletions
|
|
@ -9284,8 +9284,7 @@ static void RequireClientTargetBootAuthority(string root)
|
|||
"Aetheria runtime state file: {stateBoot.StateFilePath}",
|
||||
"!stateBoot.SupportsLocalStateFileRead",
|
||||
"stateBoot.StateFileExists",
|
||||
"AetheriaUnityRuntimeClientProvider.ResolveClient(stateBoot.StateFilePath, stateBoot.RuntimeId)",
|
||||
".State",
|
||||
"AetheriaUnityRuntimeClientProvider.RuntimeState(stateBoot, stateBoot.RuntimeId)",
|
||||
".Reactive<AetheriaRuntimeCatalogSnapshot>()",
|
||||
"runtimeCatalogDocument.Current",
|
||||
".Reactive<AetheriaRuntimeSectorMapDocument>()",
|
||||
|
|
@ -9310,10 +9309,12 @@ static void RequireClientTargetBootAuthority(string root)
|
|||
}
|
||||
|
||||
if (gameplayBootShell.Contains(".ObserveCatalog()", StringComparison.Ordinal) ||
|
||||
gameplayBootShell.Contains(".ObserveSectorMap()", StringComparison.Ordinal))
|
||||
gameplayBootShell.Contains(".ObserveSectorMap()", StringComparison.Ordinal) ||
|
||||
gameplayBootShell.Contains("AetheriaUnityRuntimeClientProvider.ResolveClient(stateBoot.StateFilePath, stateBoot.RuntimeId)", StringComparison.Ordinal) ||
|
||||
gameplayBootShell.Contains(".State;"))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"AetheriaUnityGameplayBootShell still routes boot catalog/sector-map reads through legacy session wrappers instead of reactive typed documents.");
|
||||
"AetheriaUnityGameplayBootShell must acquire runtime state through provider-native typed state access, not legacy wrappers or full-client peels.");
|
||||
}
|
||||
|
||||
var requiredPresenterSymbols = new[]
|
||||
|
|
@ -16282,8 +16283,7 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root)
|
|||
"public sealed class AetheriaUnityGameplayBootShell",
|
||||
"public AetheriaUnityGameplayBootResult Boot()",
|
||||
"AetheriaRuntimeStateBoot.Inspect(AetheriaUnityRuntimePaths.GameDataDirectory)",
|
||||
"AetheriaUnityRuntimeClientProvider.ResolveClient(stateBoot.StateFilePath, stateBoot.RuntimeId)",
|
||||
".State",
|
||||
"AetheriaUnityRuntimeClientProvider.RuntimeState(stateBoot, stateBoot.RuntimeId)",
|
||||
".Reactive<AetheriaRuntimeCatalogSnapshot>()",
|
||||
"runtimeCatalogDocument.Current",
|
||||
".Reactive<AetheriaRuntimeSectorMapDocument>()",
|
||||
|
|
@ -16310,10 +16310,12 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root)
|
|||
}
|
||||
|
||||
if (gameplayBootShell.Contains(".ObserveCatalog()", StringComparison.Ordinal) ||
|
||||
gameplayBootShell.Contains(".ObserveSectorMap()", StringComparison.Ordinal))
|
||||
gameplayBootShell.Contains(".ObserveSectorMap()", StringComparison.Ordinal) ||
|
||||
gameplayBootShell.Contains("AetheriaUnityRuntimeClientProvider.ResolveClient(stateBoot.StateFilePath, stateBoot.RuntimeId)", StringComparison.Ordinal) ||
|
||||
gameplayBootShell.Contains(".State;"))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"AetheriaUnityGameplayBootShell still routes boot catalog/sector-map reads through legacy session wrappers instead of reactive typed documents.");
|
||||
"AetheriaUnityGameplayBootShell must acquire runtime state through provider-native typed state access, not legacy wrappers or full-client peels.");
|
||||
}
|
||||
|
||||
var requiredRuntimeClientProviderSymbols = new[]
|
||||
|
|
|
|||
|
|
@ -35,13 +35,12 @@ public sealed class AetheriaUnityGameplayBootShell
|
|||
$"Aetheria runtime state file is missing at {stateBoot.StateFilePath}; gameplay requires an authoritative daemon mirror.");
|
||||
}
|
||||
|
||||
var aetheria = AetheriaUnityRuntimeClientProvider.ResolveClient(stateBoot.StateFilePath, stateBoot.RuntimeId)
|
||||
.State;
|
||||
using var runtimeCatalogDocument = aetheria.Reactive<AetheriaRuntimeCatalogSnapshot>();
|
||||
var runtimeState = AetheriaUnityRuntimeClientProvider.RuntimeState(stateBoot, stateBoot.RuntimeId);
|
||||
using var runtimeCatalogDocument = runtimeState.Reactive<AetheriaRuntimeCatalogSnapshot>();
|
||||
var runtimeCatalog = runtimeCatalogDocument.Current;
|
||||
if (runtimeCatalog == null)
|
||||
throw new InvalidOperationException("Aetheria typed runtime catalog is required before gameplay boot.");
|
||||
using var sectorMapDocument = aetheria.Reactive<AetheriaRuntimeSectorMapDocument>();
|
||||
using var sectorMapDocument = runtimeState.Reactive<AetheriaRuntimeSectorMapDocument>();
|
||||
var sectorMap = sectorMapDocument.Current;
|
||||
if (sectorMap == null)
|
||||
throw new InvalidOperationException("Aetheria typed sector map is required before gameplay boot.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue