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

@ -326,7 +326,7 @@ public class SchematicDisplay : MonoBehaviour
try
{
_catalog = ResolveClient().State.ReactiveCatalog();
_catalog = ResolveClient().State.Reactive<AetheriaRuntimeCatalogSnapshot>();
}
catch (Exception ex)
{
@ -342,7 +342,7 @@ public class SchematicDisplay : MonoBehaviour
{
try
{
_playerSettings = ResolveClient().State.Settings.ReactivePlayer();
_playerSettings = ResolveClient().State.Reactive<AetheriaRuntimePlayerSettingsDocument>();
}
catch (Exception ex)
{

View file

@ -394,8 +394,7 @@ public class InputDisplayLayout : MonoBehaviour
{
_playerSettings = ResolveClient()
.State
.Settings
.ReactivePlayer();
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
}
catch (Exception ex)
{

View file

@ -152,7 +152,7 @@ public class MainMenu : MonoBehaviour
{
_sectorMap ??= ResolveClient(stateBoot)
.State
.ReactiveSectorMap();
.Reactive<AetheriaRuntimeSectorMapDocument>();
return _sectorMap?.Current;
}
catch (Exception ex)
@ -171,8 +171,7 @@ public class MainMenu : MonoBehaviour
{
_playerSettings ??= ResolveClient(stateBoot)
.State
.Settings
.ReactivePlayer();
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
return _playerSettings?.Current;
}
catch (Exception ex)
@ -191,8 +190,7 @@ public class MainMenu : MonoBehaviour
{
_verseHostSettings ??= ResolveClient(stateBoot)
.State
.Settings
.ReactiveVerseHost();
.Reactive<AetheriaRuntimeVerseHostSettingsDocument>();
return _verseHostSettings?.Current;
}
catch (Exception ex)

View file

@ -986,7 +986,7 @@ public class InventoryMenu : MonoBehaviour
{
_stationRefit = ResolveClient()
.State
.ReactiveStationRefit();
.Reactive<AetheriaRuntimeStationRefitDocument>();
}
catch (Exception ex)
{
@ -1078,7 +1078,7 @@ public class InventoryMenu : MonoBehaviour
try
{
_catalog = ResolveClient().State.ReactiveCatalog();
_catalog = ResolveClient().State.Reactive<AetheriaRuntimeCatalogSnapshot>();
}
catch (Exception ex)
{
@ -1097,8 +1097,7 @@ public class InventoryMenu : MonoBehaviour
{
_playerSettings = ResolveClient()
.State
.Settings
.ReactivePlayer();
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
}
catch (Exception ex)
{

View file

@ -1525,7 +1525,7 @@ private void Update()
{
_stationRefit = ResolveClient()
.State
.ReactiveStationRefit();
.Reactive<AetheriaRuntimeStationRefitDocument>();
}
catch (Exception ex)
{
@ -1592,7 +1592,7 @@ private void Update()
try
{
_catalog = ResolveClient().State.ReactiveCatalog();
_catalog = ResolveClient().State.Reactive<AetheriaRuntimeCatalogSnapshot>();
}
catch (Exception ex)
{
@ -1611,8 +1611,7 @@ private void Update()
{
_playerSettings = ResolveClient()
.State
.Settings
.ReactivePlayer();
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
}
catch (Exception ex)
{

View file

@ -320,8 +320,7 @@ public class MapRenderer : MonoBehaviour
{
_playerSettings ??= ResolveClient()
.State
.Settings
.ReactivePlayer();
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
return _playerSettings?.Current?.ShowAsteroidsInMinimap ?? false;
}
catch (Exception ex)

View file

@ -223,7 +223,7 @@ public class SectorMap : MonoBehaviour
{
_sectorMapDocument ??= ResolveClient()
.State
.ReactiveSectorMap();
.Reactive<AetheriaRuntimeSectorMapDocument>();
_sectorMap = _sectorMapDocument?.Current;
if (_sectorMapLoaded)

View file

@ -176,7 +176,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
{
_sectorMap ??= ResolveClient()
.State
.ReactiveSectorMap();
.Reactive<AetheriaRuntimeSectorMapDocument>();
var sectorMap = _sectorMap?.Current;
return (sectorMap?.Zones ?? Array.Empty<AetheriaRuntimeSectorMapZone>())
.FirstOrDefault(zone => zone.ZoneIndex == zoneIndex);
@ -232,7 +232,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
try
{
_catalog = ResolveClient().State.ReactiveCatalog();
_catalog = ResolveClient().State.Reactive<AetheriaRuntimeCatalogSnapshot>();
}
catch (Exception ex)
{
@ -251,8 +251,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
{
_playerSettings = ResolveClient()
.State
.Settings
.ReactivePlayer();
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
}
catch (Exception ex)
{

View file

@ -626,7 +626,7 @@ public class TradeMenu : MonoBehaviour
try
{
_catalog = ResolveClient().State.ReactiveCatalog();
_catalog = ResolveClient().State.Reactive<AetheriaRuntimeCatalogSnapshot>();
}
catch (Exception ex)
{
@ -645,8 +645,7 @@ public class TradeMenu : MonoBehaviour
{
_playerSettings = ResolveClient()
.State
.Settings
.ReactivePlayer();
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
}
catch (Exception ex)
{