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

@ -102,8 +102,7 @@ public class VolumeCloudRenderer : EffectBase
_playerSettings = ResolveClient()
.Aetheria()
.Settings
.Player
.Latest();
.LatestPlayer();
}
catch (Exception ex)
{

View file

@ -895,10 +895,7 @@ public class ZoneRenderer : MonoBehaviour
var objects = ResolveClient()
.Aetheria()
.Viewports
.Objects(ToViewportBounds(viewport))
.LatestAsync()
.GetAwaiter()
.GetResult();
.LatestObjects(ToViewportBounds(viewport));
foreach (var entity in objects?.Objects ?? Array.Empty<AetheriaRuntimeRtsViewportObject>())
{
if (entity != null && entity.EntityIndex >= 0)
@ -943,10 +940,7 @@ public class ZoneRenderer : MonoBehaviour
{
var contacts = ResolveClient()
.Aetheria()
.ZoneContacts
.LatestAsync()
.GetAwaiter()
.GetResult();
.LatestZoneContacts();
foreach (var target in contacts?.Targets ?? Array.Empty<AetheriaRuntimeZoneTargetRow>())
{
if (target != null && target.EntityIndex >= 0)