Use Aetheria state handles for render feeds
This commit is contained in:
parent
e0e8265682
commit
69327bbe19
5 changed files with 35 additions and 8 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -74,7 +74,9 @@ public sealed class AetheriaUnityObservedFrameApplier
|
|||
try
|
||||
{
|
||||
return observer.Client
|
||||
.ZoneRenderAsync()
|
||||
.Aetheria()
|
||||
.ZoneRender
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,12 @@ public sealed class AetheriaUnityObservedTargetQuery
|
|||
{
|
||||
try
|
||||
{
|
||||
return _resolveClient()?.ZoneContactsAsync().GetAwaiter().GetResult();
|
||||
return _resolveClient()
|
||||
?.Aetheria()
|
||||
.ZoneContacts
|
||||
.LatestAsync()
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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>())
|
||||
|
|
|
|||
Loading…
Reference in a new issue