Remove file-backed entity snapshot readback

This commit is contained in:
Meta Vens 2026-06-28 03:38:09 +01:00
commit 140b84f31b
3 changed files with 19 additions and 103 deletions

View file

@ -10895,8 +10895,7 @@ static void RequireMainMenuContinueRunState(string root)
var requiredPackageSymbols = new[]
{
"public string RecordKey",
"ReadEntitySnapshotPayload(record.Key, record.Payload)"
"public string RecordKey"
};
var missingPackageSymbols = requiredPackageSymbols
@ -12811,7 +12810,6 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root)
"ReadLoadoutTemplates",
"ReadRunStates",
"ReadZoneStates",
"ReadEntitySnapshots",
"ReadEveSurface",
"TryReadDaemonGameSurface",
"TryReadDaemonGameTuiSurface",
@ -12856,6 +12854,24 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root)
string.Join(", ", missingReaderSymbols));
}
if (runtimeStateReader.Contains("ReadEntitySnapshots", StringComparison.Ordinal))
{
throw new InvalidOperationException(
"Shared runtime state reader still exposes file-backed entity snapshot reads; use daemon zone-render EntitySnapshots documents.");
}
var runtimeCatalogStorePath = Path.Combine(root, "Packages", "org.gamecult.aetheria.state", "Runtime", "AetheriaRuntimeCatalogStore.cs");
var runtimeCatalogStore = File.Exists(runtimeCatalogStorePath)
? File.ReadAllText(runtimeCatalogStorePath)
: throw new InvalidOperationException("Cannot verify deleted entity snapshot catalog reader; AetheriaRuntimeCatalogStore.cs is missing.");
if (runtimeCatalogStore.Contains("ReadEntitySnapshots", StringComparison.Ordinal) ||
runtimeCatalogStore.Contains("ReadEntitySnapshotPayload", StringComparison.Ordinal) ||
runtimeCatalogStore.Contains("EntitySnapshotSchema", StringComparison.Ordinal))
{
throw new InvalidOperationException(
"Runtime catalog store still exposes file-backed entity snapshot projection; daemon zone-render EntitySnapshots owns runtime entity lowering.");
}
if (!unityPackageProject.Contains("AetheriaRuntimeStateReader.cs", StringComparison.Ordinal))
{
throw new InvalidOperationException(