Use named managed map and viewport accessors

This commit is contained in:
Meta Vens 2026-06-28 08:13:17 +01:00
commit e1052eba30
11 changed files with 188 additions and 80 deletions

View file

@ -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)
{