Use generic parameterized viewport documents
This commit is contained in:
parent
c988d4815d
commit
033acd17e6
9 changed files with 209 additions and 180 deletions
|
|
@ -1006,7 +1006,7 @@ public class InventoryMenu : MonoBehaviour
|
|||
var nextInventory = ResolveClient()
|
||||
.State
|
||||
.Details
|
||||
.ReactiveInventory(entityIndex);
|
||||
.Reactive<AetheriaRuntimeInventoryDocument>(entityIndex);
|
||||
_inventory?.Dispose();
|
||||
_inventoryEntityIndex = entityIndex;
|
||||
_inventory = nextInventory;
|
||||
|
|
|
|||
|
|
@ -1572,7 +1572,7 @@ private void Update()
|
|||
var nextInventory = ResolveClient()
|
||||
.State
|
||||
.Details
|
||||
.ReactiveInventory(entityIndex);
|
||||
.Reactive<AetheriaRuntimeInventoryDocument>(entityIndex);
|
||||
_inventory?.Dispose();
|
||||
_inventoryEntityIndex = entityIndex;
|
||||
_inventory = nextInventory;
|
||||
|
|
|
|||
|
|
@ -132,11 +132,11 @@ public class MapRenderer : MonoBehaviour
|
|||
_objectsViewport = client
|
||||
.State
|
||||
.Viewports
|
||||
.ReactiveObjects(viewport);
|
||||
.Reactive<AetheriaRuntimeObjectsViewportDocument>(viewport);
|
||||
_renderSplatsViewport = client
|
||||
.State
|
||||
.Viewports
|
||||
.ReactiveRenderSplats(viewport);
|
||||
.Reactive<AetheriaRuntimeRenderSplatsViewportDocument>(viewport);
|
||||
|
||||
var objectsViewport = _objectsViewport?.Current;
|
||||
var zoneName = string.IsNullOrWhiteSpace(objectsViewport?.ZoneName)
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ public class SectorRenderer : MonoBehaviour, IBeginDragHandler, IDragHandler, IS
|
|||
var nextZoneDetails = ResolveClient()
|
||||
.State
|
||||
.Details
|
||||
.ReactiveZone(zoneIndex);
|
||||
.Reactive<AetheriaRuntimeZoneDetailsDocument>(zoneIndex);
|
||||
_zoneDetails?.Dispose();
|
||||
_zoneDetailsIndex = zoneIndex;
|
||||
_zoneDetails = nextZoneDetails;
|
||||
|
|
|
|||
Loading…
Reference in a new issue