Use Aetheria state handles for render feeds

This commit is contained in:
Meta Vens 2026-06-27 14:06:30 +01:00
commit 69327bbe19
5 changed files with 35 additions and 8 deletions

View file

@ -65,7 +65,13 @@ public class ActionGameManager : MonoBehaviour
SetCurrentEntity = entity => CurrentEntity = entity,
GetViewDirection = () => _viewDirection,
SetViewDirection = direction => _viewDirection = direction,
ResolveZoneRender = () => ResolveDaemonObserver()?.Client?.ZoneRenderAsync().GetAwaiter().GetResult(),
ResolveZoneRender = () => ResolveDaemonObserver()
?.Client
?.Aetheria()
.ZoneRender
.LatestAsync()
.GetAwaiter()
.GetResult(),
ApplyActionBarBindings = ActionBarBindings.ApplyBindings,
EnablePlayerInput = EnablePlayerInput,
DisablePlayerInput = DisablePlayerInput,

View file

@ -74,7 +74,9 @@ public sealed class AetheriaUnityObservedFrameApplier
try
{
return observer.Client
.ZoneRenderAsync()
.Aetheria()
.ZoneRender
.LatestAsync()
.GetAwaiter()
.GetResult();
}

View file

@ -93,7 +93,12 @@ public sealed class AetheriaUnityObservedTargetQuery
{
try
{
return _resolveClient()?.ZoneContactsAsync().GetAwaiter().GetResult();
return _resolveClient()
?.Aetheria()
.ZoneContacts
.LatestAsync()
.GetAwaiter()
.GetResult();
}
catch
{

View file

@ -923,7 +923,9 @@ public class ZoneRenderer : MonoBehaviour
try
{
var contacts = ResolveClient()
.ZoneContactsAsync()
.Aetheria()
.ZoneContacts
.LatestAsync()
.GetAwaiter()
.GetResult();
foreach (var target in contacts?.Targets ?? Array.Empty<AetheriaRuntimeZoneTargetRow>())