Expose docking target through managed snapshot
This commit is contained in:
parent
2d8432ad27
commit
a873a31043
6 changed files with 29 additions and 19 deletions
|
|
@ -231,10 +231,11 @@ public class LocalMenu : MonoBehaviour
|
|||
if (_observedFacadeIndex == null ||
|
||||
!TryResolveDockingState(out var dockingState) ||
|
||||
dockingState?.IsDocked != true ||
|
||||
dockingState.CurrentDocking == null ||
|
||||
string.IsNullOrWhiteSpace(dockingState.DockParentEntityKey) ||
|
||||
dockingState.DockingBayIndex < 0 ||
|
||||
!_observedFacadeIndex.TryResolveDockingBayByRecordKey(
|
||||
dockingState.CurrentDocking.DockParentEntityKey,
|
||||
dockingState.CurrentDocking.DockingBayIndex,
|
||||
dockingState.DockParentEntityKey,
|
||||
dockingState.DockingBayIndex,
|
||||
out var dockingBay) ||
|
||||
dockingBay?.Entity is not OrbitalEntity { Story: { } dockedStory })
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue