Use generic reactive fixed documents
This commit is contained in:
parent
0e694abe9a
commit
e9c5281e3f
18 changed files with 131 additions and 219 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -320,8 +320,7 @@ public class MapRenderer : MonoBehaviour
|
|||
{
|
||||
_playerSettings ??= ResolveClient()
|
||||
.State
|
||||
.Settings
|
||||
.ReactivePlayer();
|
||||
.Reactive<AetheriaRuntimePlayerSettingsDocument>();
|
||||
return _playerSettings?.Current?.ShowAsteroidsInMinimap ?? false;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ public class SectorMap : MonoBehaviour
|
|||
{
|
||||
_sectorMapDocument ??= ResolveClient()
|
||||
.State
|
||||
.ReactiveSectorMap();
|
||||
.Reactive<AetheriaRuntimeSectorMapDocument>();
|
||||
_sectorMap = _sectorMapDocument?.Current;
|
||||
|
||||
if (_sectorMapLoaded)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue