Query daemon zones by explicit zone index
This commit is contained in:
parent
7440eda8a9
commit
d7fc9d29eb
3 changed files with 14 additions and 13 deletions
|
|
@ -3712,7 +3712,7 @@ static void RequireSectorMapZoneDetailsUseEveSurface(string root)
|
|||
"AetheriaEveUnitySurfaceHost.Hide(_zoneDetailsSurfaceDocument)",
|
||||
"AetheriaRuntimeZoneDetailsSurfaceBuilder.Build(ProjectZoneDetailsSurfaceState(",
|
||||
"ProjectZoneDetailsSurfaceState(",
|
||||
"GameManager?.FindDaemonZoneSnapshot(zone)",
|
||||
"GameManager?.FindDaemonZoneSnapshot(zone?.ZoneIndex ?? -1)",
|
||||
"daemonZone.Bodies ?? Array.Empty<AetheriaRuntimeBodySnapshotCommit>()",
|
||||
"daemonZone.Entities ?? Array.Empty<AetheriaRuntimeEntitySnapshotCommit>()",
|
||||
"typedHull.HullType",
|
||||
|
|
@ -8060,9 +8060,9 @@ static void RequireUnityObserverDoesNotTickLocalSimulation(string root)
|
|||
{
|
||||
"ApplyLatestAuthoritativeDaemonFrame()",
|
||||
"ResolveDaemonObserver()",
|
||||
"public AetheriaRuntimeZoneSnapshotCommit FindDaemonZoneSnapshot(GalaxyZone zone)",
|
||||
"public AetheriaRuntimeZoneSnapshotCommit FindDaemonZoneSnapshot(int daemonZoneIndex)",
|
||||
"public GalaxyZone CurrentDaemonGalaxyZone",
|
||||
"zone?.ZoneIndex ?? -1",
|
||||
"snapshot.ZoneIndex == daemonZoneIndex",
|
||||
"FindObservedGalaxyZone(run.CurrentZoneIndex)",
|
||||
"observed.IsAuthoritative",
|
||||
"TryRestoreEntityGraphFromDaemonRun(observed.Run)",
|
||||
|
|
@ -8152,6 +8152,13 @@ static void RequireUnityObserverDoesNotTickLocalSimulation(string root)
|
|||
"Unity gameplay must resolve observed zones by daemon zone identity, not projected array slot.");
|
||||
}
|
||||
|
||||
if (actionGameManager.Contains("FindDaemonZoneSnapshot(GalaxyZone", StringComparison.Ordinal) ||
|
||||
sectorRenderer.Contains("FindDaemonZoneSnapshot(zone)", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"Unity UI must query daemon zone snapshots by daemon zone identity instead of passing projected zone objects.");
|
||||
}
|
||||
|
||||
if (galaxy.Contains("public Zone Contents", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
|
|
|
|||
Loading…
Reference in a new issue