Use Aetheria state handles for sector map reads
This commit is contained in:
parent
7846c4d802
commit
e0e8265682
4 changed files with 28 additions and 8 deletions
|
|
@ -172,7 +172,9 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
try
|
||||
{
|
||||
var sectorMap = ResolveClient()
|
||||
.SectorMapAsync()
|
||||
.Aetheria()
|
||||
.SectorMap
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
return (sectorMap?.Zones ?? Array.Empty<AetheriaRuntimeSectorMapZone>())
|
||||
|
|
@ -317,7 +319,10 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
try
|
||||
{
|
||||
return ResolveClient()
|
||||
.CurrentZoneAsync()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Zone
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue