Expose docking target through managed snapshot

This commit is contained in:
Meta Vens 2026-06-28 02:08:17 +01:00
commit a873a31043
6 changed files with 29 additions and 19 deletions

View file

@ -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 })
{