Drop daemon-frame observed run projection shim

This commit is contained in:
Meta Vens 2026-06-28 11:39:49 +01:00
commit e736a28bda
2 changed files with 17 additions and 23 deletions

View file

@ -15150,6 +15150,23 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root)
"AetheriaUnityObservedRunProjection must be a pure projector; observed galaxy ownership belongs to gameplay boot state.");
}
var forbiddenObservedRunProjectionSymbols = new[]
{
"AetheriaRuntimeDaemonFrameDocument",
"AetheriaRuntimeRunCheckpointCommit",
"ProjectObservedDaemonRun",
"FindZoneSnapshot"
};
var observedRunProjectionHits = forbiddenObservedRunProjectionSymbols
.Where(symbol => observedRunProjection.Contains(symbol, StringComparison.Ordinal))
.ToArray();
if (observedRunProjectionHits.Length > 0)
{
throw new InvalidOperationException(
"AetheriaUnityObservedRunProjection still accepts daemon-frame/run-checkpoint inputs; gameplay boot must use the managed sector-map document: " +
string.Join(", ", observedRunProjectionHits));
}
var forbiddenMainMenuReaderSymbols = new[]
{
"AetheriaRuntimeStateReader.ReadPlayerSettings",

View file

@ -13,33 +13,10 @@ public static class AetheriaUnityObservedRunProjection
return global::Galaxy.ProjectObservedSectorMap(sectorMap, backgroundSettings, runtimeCatalog, log);
}
public static Galaxy Project(
AetheriaRuntimeDaemonFrameDocument frame,
SectorBackgroundSettings backgroundSettings,
AetheriaRuntimeCatalogSnapshot runtimeCatalog,
Action<string> log)
{
if (frame == null || frame.Run == null)
throw new ArgumentNullException(nameof(frame));
return global::Galaxy.ProjectObservedDaemonRun(frame.Run, backgroundSettings, runtimeCatalog, log);
}
public static GalaxyZone FindZone(Galaxy galaxy, int daemonZoneIndex)
{
return daemonZoneIndex < 0
? null
: galaxy?.Zones?.FirstOrDefault(zone => zone != null && zone.ZoneIndex == daemonZoneIndex);
}
public static AetheriaRuntimeZoneSnapshotCommit FindZoneSnapshot(AetheriaRuntimeRunCheckpointCommit run)
{
if (run == null)
return null;
return (run.Zones ?? Array.Empty<AetheriaRuntimeZoneSnapshotCommit>())
.FirstOrDefault(zone => zone != null && zone.ZoneIndex == run.CurrentZoneIndex)
?? (run.Zones ?? Array.Empty<AetheriaRuntimeZoneSnapshotCommit>())
.FirstOrDefault(zone => zone != null);
}
}