Narrow pilot command runtime access

This commit is contained in:
Meta Vens 2026-06-29 06:38:28 +01:00
commit faf1d31a43
3 changed files with 16 additions and 16 deletions

View file

@ -32,7 +32,9 @@ public class ActionGameManager : MonoBehaviour
private AetheriaUnityGameplayBootShell _gameplayBootShell;
private AetheriaUnityGameplaySceneWiring _sceneWiring;
private AetheriaUnityPilotCommandSender PilotCommands =>
_pilotCommands ??= new AetheriaUnityPilotCommandSender(ResolveCurrentRuntimeClient, () => Time.unscaledTime);
_pilotCommands ??= new AetheriaUnityPilotCommandSender(
() => AetheriaUnityRuntimeClientProvider.Control("unity-pilot-commands"),
() => Time.unscaledTime);
private AetheriaUnityObservedDockingIndex ObservedDocking =>
_observedDocking ??= new AetheriaUnityObservedDockingIndex(_observedEntityIndex);
private AetheriaUnityObservedEntityRestorer ObservedEntityRestorer =>
@ -291,12 +293,6 @@ public class ActionGameManager : MonoBehaviour
private readonly AetheriaUnityDragSession _dragSession = new AetheriaUnityDragSession();
private readonly AetheriaUnityActionBarPresentation _actionBarPresentation = new AetheriaUnityActionBarPresentation();
private static AetheriaClient ResolveCurrentRuntimeClient()
{
return AetheriaUnityRuntimeClientProvider.CurrentClientForStateFile(
AetheriaUnityRuntimePaths.RuntimeStateFilePath);
}
private void OnDisable()
{
_gameplayInputShell?.Dispose();