diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index f64122278..3d53b108d 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -2453,7 +2453,7 @@ static void RequireDaemonRenderQueryAuthority(string root) "beltPose.InstancePoses ?? Array.Empty()", "private void RefreshDaemonContactRows()", ".State", - ".ObserveZoneContacts()", + ".ReactiveZoneContacts()", "private void RefreshDaemonCompassMarkers()", "private void RefreshDaemonVisibleEntityInstances()", "PowerPulse(", @@ -7856,8 +7856,8 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root) "ZoneRenderer.cs")); var requiredZoneRendererSharedDocumentSymbols = new[] { - "AetheriaRuntimeZoneContactsSession _zoneContacts", - "ResolveClient().State.ObserveZoneContacts()", + "CultMeshReactiveDocument _zoneContacts", + "ResolveClient().State.ReactiveZoneContacts()", "_zoneContacts?.Dispose()", "_zoneContacts?.Current", "private void OnDestroy()" @@ -7872,6 +7872,14 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root) string.Join(", ", missingZoneRendererSharedDocumentSymbols)); } + RequireReactiveTypedDocumentAccess( + zoneRenderer, + "ZoneRenderer", + "AetheriaRuntimeZoneContactsDocument", + "_zoneContacts", + "ResolveClient().State.ReactiveZoneContacts()", + "AetheriaRuntimeZoneContactsSession", + "ResolveClient().State.ObserveZoneContacts()"); RequireReactiveTypedDocumentAccess( zoneRenderer, "ZoneRenderer", @@ -7883,8 +7891,8 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root) var forbiddenZoneRendererSharedDocumentSymbols = new[] { - "CultMeshReactiveDocument _zoneContacts", - "ResolveClient().State.ReactiveZoneContacts()" + "AetheriaRuntimeZoneContactsSession _zoneContacts", + "ResolveClient().State.ObserveZoneContacts()" }; var zoneRendererRawDocumentHits = forbiddenZoneRendererSharedDocumentSymbols .Where(symbol => zoneRenderer.Contains(symbol, StringComparison.Ordinal)) @@ -7892,7 +7900,7 @@ static void RequireUnitySharedDocumentAccessorErgonomics(string root) if (zoneRendererRawDocumentHits.Length > 0) { throw new InvalidOperationException( - "ZoneRenderer still owns raw catalog/contact CultMesh documents instead of managed sessions: " + + "ZoneRenderer still routes contact state through session wrappers instead of managed reactive typed documents: " + string.Join(", ", zoneRendererRawDocumentHits)); } diff --git a/Assets/Scripts/Zone Display/ZoneRenderer.cs b/Assets/Scripts/Zone Display/ZoneRenderer.cs index 0232b4c4b..7563987cf 100644 --- a/Assets/Scripts/Zone Display/ZoneRenderer.cs +++ b/Assets/Scripts/Zone Display/ZoneRenderer.cs @@ -121,7 +121,7 @@ public class ZoneRenderer : MonoBehaviour Array.Empty(); private string _clientStatePath = ""; private CultMeshReactiveDocument _catalog; - private AetheriaRuntimeZoneContactsSession _zoneContacts; + private CultMeshReactiveDocument _zoneContacts; private AetheriaRuntimeRtsViewportBounds _objectsViewportBounds; private AetheriaRuntimeObjectsViewportSession _objectsViewport; @@ -1225,7 +1225,7 @@ public class ZoneRenderer : MonoBehaviour try { - _zoneContacts = ResolveClient().State.ObserveZoneContacts(); + _zoneContacts = ResolveClient().State.ReactiveZoneContacts(); } catch (Exception ex) {