Use Aetheria state handles for docking UI reads
This commit is contained in:
parent
2884cef870
commit
7846c4d802
7 changed files with 60 additions and 20 deletions
|
|
@ -805,7 +805,9 @@ public class InventoryMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
return ResolveClient()
|
||||
.StationRefitAsync()
|
||||
.Aetheria()
|
||||
.StationRefit
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
@ -823,7 +825,10 @@ public class InventoryMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
docking = ResolveClient()
|
||||
.CurrentDockingAsync()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Docking
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
@ -883,7 +888,9 @@ public class InventoryMenu : MonoBehaviour
|
|||
}
|
||||
|
||||
var refit = ResolveClient()
|
||||
.StationRefitAsync()
|
||||
.Aetheria()
|
||||
.StationRefit
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
var entityIndex = -1;
|
||||
|
|
|
|||
|
|
@ -1191,7 +1191,10 @@ private void Update()
|
|||
try
|
||||
{
|
||||
docking = ResolveClient()
|
||||
.CurrentDockingAsync()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Docking
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
@ -1209,7 +1212,9 @@ private void Update()
|
|||
try
|
||||
{
|
||||
return ResolveClient()
|
||||
.StationRefitAsync()
|
||||
.Aetheria()
|
||||
.StationRefit
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -212,7 +212,10 @@ public class LocalMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
docking = ResolveClient()
|
||||
.CurrentDockingAsync()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Docking
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,7 +174,10 @@ public class MenuPanel : MonoBehaviour
|
|||
try
|
||||
{
|
||||
return ResolveClient()
|
||||
.CurrentDockingAsync()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Docking
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -532,7 +532,10 @@ public class TradeMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
docking = ResolveClient()
|
||||
.CurrentDockingAsync()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Docking
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
@ -553,7 +556,9 @@ public class TradeMenu : MonoBehaviour
|
|||
try
|
||||
{
|
||||
_stationRefit = ResolveClient()
|
||||
.StationRefitAsync()
|
||||
.Aetheria()
|
||||
.StationRefit
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue