Route local menu visibility through observed dock state

This commit is contained in:
Meta Vens 2026-06-21 19:10:53 +01:00
commit 80c8ddd87c
4 changed files with 58 additions and 6 deletions

View file

@ -494,6 +494,18 @@ public class ActionGameManager : MonoBehaviour
set => _currentEntity = value;
}
public bool IsObservedDocked => DockedEntity != null && TryGetDaemonEntitySnapshot(DockedEntity, out _);
public bool TryGetObservedDockedLocalStory(out LocationStory story)
{
story = null;
if (!IsObservedDocked || DockedEntity is not OrbitalEntity { Story: { } dockedStory })
return false;
story = dockedStory;
return true;
}
public ItemManager ItemManager { get; private set; }
public Zone Zone { get; private set; }
public List<AetheriaRuntimeLoadoutTemplateSnapshot> LoadoutTemplates { get; } = new List<AetheriaRuntimeLoadoutTemplateSnapshot>();