Query observed run zone explicitly

This commit is contained in:
Meta Vens 2026-06-21 19:36:32 +01:00
commit 09389d9e68
4 changed files with 14 additions and 10 deletions

View file

@ -906,13 +906,11 @@ public class ActionGameManager : MonoBehaviour
.FirstOrDefault(snapshot => snapshot != null && snapshot.ZoneIndex == daemonZoneIndex);
}
public GalaxyZone CurrentDaemonGalaxyZone
public bool TryGetObservedRunZone(out GalaxyZone galaxyZone)
{
get
{
var run = ResolveDaemonObserver()?.LastObservedState?.Run;
return FindObservedGalaxyZone(run?.CurrentZoneIndex ?? -1);
}
var run = ResolveDaemonObserver()?.LastObservedState?.Run;
galaxyZone = FindObservedGalaxyZone(run?.CurrentZoneIndex ?? -1);
return galaxyZone != null;
}
private static int FactionIndex(Faction faction)