Clarify CultMesh ergonomic feature flow
This commit is contained in:
parent
ab2b3ef643
commit
1eb21f926b
3 changed files with 283 additions and 703 deletions
|
|
@ -5,12 +5,13 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using GameCult.Aetheria.State.Verse;
|
||||
using GameCult.Mesh;
|
||||
|
||||
public sealed class AetheriaUnityObservedTargetQuery : IDisposable
|
||||
{
|
||||
private readonly Func<AetheriaClient> _resolveClient;
|
||||
private readonly AetheriaUnityObservedEntityIndex _entityIndex;
|
||||
private AetheriaRuntimeZoneContactsSession _zoneContacts;
|
||||
private CultMeshReactiveDocument<AetheriaRuntimeZoneContactsDocument> _zoneContacts;
|
||||
|
||||
public AetheriaUnityObservedTargetQuery(
|
||||
Func<AetheriaClient> resolveClient,
|
||||
|
|
@ -99,7 +100,7 @@ public sealed class AetheriaUnityObservedTargetQuery : IDisposable
|
|||
{
|
||||
_zoneContacts = _resolveClient()
|
||||
?.State
|
||||
.ObserveZoneContacts();
|
||||
.ReactiveZoneContacts();
|
||||
return _zoneContacts?.Current;
|
||||
}
|
||||
catch
|
||||
|
|
|
|||
Loading…
Reference in a new issue