Keep observed zone context off galaxy model

This commit is contained in:
Meta Vens 2026-06-21 18:54:33 +01:00
commit c7c539e3b7
2 changed files with 15 additions and 3 deletions

View file

@ -7756,6 +7756,7 @@ static void RequireMainMenuContinueRunState(string root)
"ZoneRenderer?.ApplyDaemonFrame(daemonZone, run)",
"ApplyDaemonEntitySnapshotsInPlace",
"PrepareObservedDaemonZoneContext(targetZone, daemonZone)",
"_observedZoneContextsByDaemonIndex",
"ReplaceObservedEntityFacadesFromTypedSnapshots",
"RestoreCurrentEntityBinding",
"RestoreCurrentEntityBinding(currentEntity, actionBarBindings)",
@ -8065,6 +8066,7 @@ static void RequireUnityObserverDoesNotTickLocalSimulation(string root)
"TryRestoreEntityGraphFromDaemonRun(observed.Run)",
"CreateDaemonZoneConstructionBlueprint(daemonZone)",
"PrepareObservedDaemonZoneContext(targetZone, daemonZone)",
"_observedZoneContextsByDaemonIndex",
"ZoneRenderer?.LoadDaemonZoneView(_observedEntityFacadesByDaemonIndex, daemonZone, run)",
"ZoneRenderer?.ApplyDaemonFrame(daemonZone, run)",
"CreateDaemonEntitySnapshots(runId, daemonZone)",
@ -8136,6 +8138,12 @@ static void RequireUnityObserverDoesNotTickLocalSimulation(string root)
"Unity frame application must project observed daemon state, not instantiate authoritative gameplay entities.");
}
if (actionGameManager.Contains("galaxyZone.Contents", StringComparison.Ordinal))
{
throw new InvalidOperationException(
"Unity gameplay must not cache observed runtime zone context on the projected GalaxyZone model.");
}
var contextPrepRendererLoads = FindMethodScopedLineHits(
actionGameManager,
new[] { "LoadDaemonZoneView(", "BindToEntity(" })