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
|
|
@ -102,8 +102,7 @@ public class VolumeCloudRenderer : EffectBase
|
|||
_playerSettings = ResolveClient()
|
||||
.Aetheria()
|
||||
.Settings
|
||||
.Player
|
||||
.Latest();
|
||||
.LatestPlayer();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue