Expose docking target through managed snapshot
This commit is contained in:
parent
2d8432ad27
commit
a873a31043
6 changed files with 29 additions and 19 deletions
|
|
@ -75,11 +75,11 @@ public sealed class AetheriaUnityObservedDockingIndex
|
|||
dockingBay = null;
|
||||
if (!TryResolveCurrentDockingSnapshot(out var snapshot) ||
|
||||
snapshot.CurrentDockingBay == null ||
|
||||
snapshot.StationRefit == null ||
|
||||
string.IsNullOrWhiteSpace(snapshot.StationRefit.DockParentEntityKey) ||
|
||||
string.IsNullOrWhiteSpace(snapshot.DockParentEntityKey) ||
|
||||
snapshot.DockingBayIndex < 0 ||
|
||||
!_observedFacadeIndex.TryResolveDockingBayByRecordKey(
|
||||
snapshot.StationRefit.DockParentEntityKey,
|
||||
snapshot.CurrentDockingBay.DockingBayIndex,
|
||||
snapshot.DockParentEntityKey,
|
||||
snapshot.DockingBayIndex,
|
||||
out dockingBay))
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue