Use named managed shared state accessors

This commit is contained in:
Meta Vens 2026-06-28 08:02:16 +01:00
commit 68fc0b0aa1
15 changed files with 144 additions and 56 deletions

View file

@ -85,7 +85,7 @@ public abstract class ActionBarBinding
try
{
_catalog ??= Client.Aetheria().Catalog.Latest();
_catalog ??= Client.Aetheria().LatestCatalog();
return _catalog?.FindItem(item.ItemKey);
}
catch (Exception ex)

View file

@ -36,8 +36,7 @@ public sealed class AetheriaUnityGameplayBootShell
var runtimeCatalog = AetheriaUnityRuntimeClientProvider.ResolveClient(stateBoot.StateFilePath, stateBoot.RuntimeId)
.Aetheria()
.Catalog
.Latest();
.LatestCatalog();
if (runtimeCatalog == null)
throw new InvalidOperationException("Aetheria typed runtime catalog is required before gameplay boot.");

View file

@ -163,11 +163,8 @@ public sealed class AetheriaUnityObservedDockingIndex
snapshot = null;
try
{
snapshot = _resolveClient()
?.Aetheria()
.DockingState
.Latest();
return snapshot != null;
var client = _resolveClient();
return client?.Aetheria().DockingState.TryLatest(out snapshot) == true;
}
catch
{

View file

@ -83,8 +83,7 @@ public static class AetheriaUnityRuntimeClientProvider
var stored = ResolveClient(AetheriaUnityRuntimePaths.RuntimeStateFilePath)
.Aetheria()
.Settings
.Player
.Latest();
.LatestPlayer();
if (stored == null)
return settings;