Use named managed map and viewport accessors
This commit is contained in:
parent
68fc0b0aa1
commit
e1052eba30
11 changed files with 188 additions and 80 deletions
|
|
@ -171,10 +171,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
{
|
||||
var sectorMap = ResolveClient()
|
||||
.Aetheria()
|
||||
.SectorMap
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
.LatestSectorMap();
|
||||
return (sectorMap?.Zones ?? Array.Empty<AetheriaRuntimeSectorMapZone>())
|
||||
.FirstOrDefault(zone => zone.ZoneIndex == zoneIndex);
|
||||
}
|
||||
|
|
@ -200,10 +197,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
return ResolveClient()
|
||||
.Aetheria()
|
||||
.Details
|
||||
.Zone(zoneIndex)
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
.LatestZone(zoneIndex);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
@ -309,10 +303,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
return ResolveClient()
|
||||
.Aetheria()
|
||||
.Current
|
||||
.Zone
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
.LatestZone();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue