Use generic reactive fixed documents

This commit is contained in:
Meta Vens 2026-06-28 23:50:28 +01:00
commit e9c5281e3f
18 changed files with 131 additions and 219 deletions

View file

@ -95,7 +95,7 @@ public abstract class ActionBarBinding : IDisposable
try
{
_catalog ??= Client.State.ReactiveCatalog();
_catalog ??= Client.State.Reactive<AetheriaRuntimeCatalogSnapshot>();
return _catalog?.Current?.FindItem(item, x => x.ItemKey);
}
catch (Exception ex)

View file

@ -37,11 +37,11 @@ public sealed class AetheriaUnityGameplayBootShell
var aetheria = AetheriaUnityRuntimeClientProvider.ResolveClient(stateBoot.StateFilePath, stateBoot.RuntimeId)
.State;
using var runtimeCatalogDocument = aetheria.ReactiveCatalog();
using var runtimeCatalogDocument = aetheria.Reactive<AetheriaRuntimeCatalogSnapshot>();
var runtimeCatalog = runtimeCatalogDocument.Current;
if (runtimeCatalog == null)
throw new InvalidOperationException("Aetheria typed runtime catalog is required before gameplay boot.");
using var sectorMapDocument = aetheria.ReactiveSectorMap();
using var sectorMapDocument = aetheria.Reactive<AetheriaRuntimeSectorMapDocument>();
var sectorMap = sectorMapDocument.Current;
if (sectorMap == null)
throw new InvalidOperationException("Aetheria typed sector map is required before gameplay boot.");

View file

@ -100,7 +100,7 @@ public sealed class AetheriaUnityObservedTargetQuery : IDisposable
{
_zoneContacts = _resolveClient()
?.State
.ReactiveZoneContacts();
.Reactive<AetheriaRuntimeZoneContactsDocument>();
return _zoneContacts?.Current;
}
catch

View file

@ -96,8 +96,7 @@ public static class AetheriaUnityRuntimeClientProvider
{
_playerSettingsDocument ??= ResolveClient(AetheriaUnityRuntimePaths.RuntimeStateFilePath)
.State
.Settings
.ReactivePlayer();
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
var stored = _playerSettingsDocument.Current;
if (stored == null)