Query observed run zone explicitly
This commit is contained in:
parent
2cc4598915
commit
09389d9e68
4 changed files with 14 additions and 10 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue