Remove Aetheria client state alias
This commit is contained in:
parent
a8f35a8f95
commit
a035a55fc3
22 changed files with 98 additions and 100 deletions
|
|
@ -958,7 +958,7 @@ public class InventoryMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
_currentEntity = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Current
|
||||
.ReactiveEntity();
|
||||
}
|
||||
|
|
@ -978,7 +978,7 @@ public class InventoryMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
_stationRefit = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.ReactiveStationRefit();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -997,7 +997,7 @@ public class InventoryMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
var nextInventory = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Details
|
||||
.ReactiveInventory(entityIndex);
|
||||
_inventory?.Dispose();
|
||||
|
|
@ -1071,7 +1071,7 @@ public class InventoryMenu : MonoBehaviour
|
|||
|
||||
try
|
||||
{
|
||||
_catalog = ResolveClient().Aetheria().ReactiveCatalog();
|
||||
_catalog = ResolveClient().State.ReactiveCatalog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -1089,7 +1089,7 @@ public class InventoryMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
_playerSettings = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Settings
|
||||
.ReactivePlayer();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1496,7 +1496,7 @@ private void Update()
|
|||
try
|
||||
{
|
||||
_currentEntity = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Current
|
||||
.ReactiveEntity();
|
||||
}
|
||||
|
|
@ -1516,7 +1516,7 @@ private void Update()
|
|||
try
|
||||
{
|
||||
_stationRefit = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.ReactiveStationRefit();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -1543,7 +1543,7 @@ private void Update()
|
|||
try
|
||||
{
|
||||
_loadoutFrame = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.ReactiveDaemonFrame();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -1562,7 +1562,7 @@ private void Update()
|
|||
try
|
||||
{
|
||||
var nextInventory = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Details
|
||||
.ReactiveInventory(entityIndex);
|
||||
_inventory?.Dispose();
|
||||
|
|
@ -1584,7 +1584,7 @@ private void Update()
|
|||
|
||||
try
|
||||
{
|
||||
_catalog = ResolveClient().Aetheria().ReactiveCatalog();
|
||||
_catalog = ResolveClient().State.ReactiveCatalog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -1602,7 +1602,7 @@ private void Update()
|
|||
try
|
||||
{
|
||||
_playerSettings = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Settings
|
||||
.ReactivePlayer();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,11 +130,11 @@ public class MapRenderer : MonoBehaviour
|
|||
var viewport = ResolveViewportBounds();
|
||||
ClearViewportCaches();
|
||||
_objectsViewport = client
|
||||
.Aetheria()
|
||||
.State
|
||||
.Viewports
|
||||
.ReactiveObjects(viewport);
|
||||
_renderSplatsViewport = client
|
||||
.Aetheria()
|
||||
.State
|
||||
.Viewports
|
||||
.ReactiveRenderSplats(viewport);
|
||||
|
||||
|
|
@ -319,7 +319,7 @@ public class MapRenderer : MonoBehaviour
|
|||
try
|
||||
{
|
||||
_playerSettings ??= ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Settings
|
||||
.ReactivePlayer();
|
||||
return _playerSettings?.Current?.ShowAsteroidsInMinimap ?? false;
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ public class SectorMap : MonoBehaviour
|
|||
private void EnsureSectorMapLoaded()
|
||||
{
|
||||
_sectorMapDocument ??= ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.ReactiveSectorMap();
|
||||
_sectorMap = _sectorMapDocument.Current;
|
||||
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
try
|
||||
{
|
||||
_sectorMap ??= ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.ReactiveSectorMap();
|
||||
var sectorMap = _sectorMap.Current;
|
||||
return (sectorMap?.Zones ?? Array.Empty<AetheriaRuntimeSectorMapZone>())
|
||||
|
|
@ -204,7 +204,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
try
|
||||
{
|
||||
var nextZoneDetails = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Details
|
||||
.ReactiveZone(zoneIndex);
|
||||
_zoneDetails?.Dispose();
|
||||
|
|
@ -232,7 +232,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
|
||||
try
|
||||
{
|
||||
_catalog = ResolveClient().Aetheria().ReactiveCatalog();
|
||||
_catalog = ResolveClient().State.ReactiveCatalog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -250,7 +250,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
try
|
||||
{
|
||||
_playerSettings = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Settings
|
||||
.ReactivePlayer();
|
||||
}
|
||||
|
|
@ -323,7 +323,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
try
|
||||
{
|
||||
_currentZone ??= ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Current
|
||||
.ReactiveZone();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -634,7 +634,7 @@ public class TradeMenu : MonoBehaviour
|
|||
|
||||
try
|
||||
{
|
||||
_catalog = ResolveClient().Aetheria().ReactiveCatalog();
|
||||
_catalog = ResolveClient().State.ReactiveCatalog();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -652,7 +652,7 @@ public class TradeMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
_playerSettings = ResolveClient()
|
||||
.Aetheria()
|
||||
.State
|
||||
.Settings
|
||||
.ReactivePlayer();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue