Route ZoneRenderer visibility through daemon render settings
This commit is contained in:
parent
7a5a154031
commit
1bcdcce8c2
2 changed files with 9 additions and 2 deletions
|
|
@ -1977,6 +1977,12 @@ static void RequireDaemonRenderQueryAuthority(string root)
|
|||
"ZoneRenderer must lower daemon-authored gravity influence radius/depth instead of reconstructing gravity brushes from Unity settings.");
|
||||
}
|
||||
|
||||
if (zoneRenderer.Contains("Settings.GameplaySettings.TargetDetectionInfoThreshold", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"ZoneRenderer must query daemon visibility through shared render settings instead of Unity GameplaySettings.");
|
||||
}
|
||||
|
||||
if (zoneRenderer.Contains("Zone.GetOrbitPosition(", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
|
|
@ -2115,6 +2121,7 @@ static void RequireDaemonRenderQueryAuthority(string root)
|
|||
"AetheriaRuntimeDaemonRenderQueries.QueryAsteroidInstancePoses(",
|
||||
"AetheriaRuntimeDaemonRenderQueries.QueryCompassMarkers(",
|
||||
"AetheriaRuntimeDaemonRenderQueries.QueryVisibleEntityIndices(",
|
||||
"RenderSettings.TargetDetectionInfoThreshold",
|
||||
"AetheriaRuntimeDaemonRenderQueries.QueryWormholeExits(",
|
||||
"AddWormhole(exit)",
|
||||
"public void AddWormhole(AetheriaRuntimeDaemonWormholeExit exit)",
|
||||
|
|
|
|||
|
|
@ -698,7 +698,7 @@ public class ZoneRenderer : MonoBehaviour
|
|||
AetheriaRuntimeDaemonRenderQueries.QueryCompassMarkers(
|
||||
_daemonZoneSnapshot,
|
||||
PerspectiveEntity?.DaemonEntityIndex ?? -1,
|
||||
Settings.GameplaySettings.TargetDetectionInfoThreshold,
|
||||
RenderSettings.TargetDetectionInfoThreshold,
|
||||
_minimapDistance,
|
||||
_daemonCompassMarkers);
|
||||
_daemonCompassMarkersByEntityIndex.Clear();
|
||||
|
|
@ -711,7 +711,7 @@ public class ZoneRenderer : MonoBehaviour
|
|||
AetheriaRuntimeDaemonRenderQueries.QueryVisibleEntityIndices(
|
||||
_daemonZoneSnapshot,
|
||||
PerspectiveEntity?.DaemonEntityIndex ?? -1,
|
||||
Settings.GameplaySettings.TargetDetectionInfoThreshold,
|
||||
RenderSettings.TargetDetectionInfoThreshold,
|
||||
_daemonVisibleEntityIndices);
|
||||
_daemonVisibleEntityIndicesSet.Clear();
|
||||
foreach (var entityIndex in _daemonVisibleEntityIndices)
|
||||
|
|
|
|||
Loading…
Reference in a new issue