Route observed docking through managed sessions
This commit is contained in:
parent
08c4fc190e
commit
2c68dcc59e
3 changed files with 18 additions and 7 deletions
|
|
@ -309,9 +309,9 @@ namespace GameCult.Aetheria.State.Verse
|
|||
public AetheriaRuntimeObservedDockingState? CurrentDocking(
|
||||
CultMeshReactiveDocumentOptions? options = null)
|
||||
{
|
||||
using var entity = Current.ReactiveEntity(options);
|
||||
using var docking = Current.ReactiveDocking(options);
|
||||
using var refit = ReactiveStationRefit(options);
|
||||
using var entity = Current.ObserveEntity(options);
|
||||
using var docking = Current.ObserveDocking(options);
|
||||
using var refit = ObserveStationRefit(options);
|
||||
return AetheriaRuntimeObservedDockingState.TryCreateCurrent(entity, docking, refit, out var current)
|
||||
? current
|
||||
: null;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using GameCult.Mesh;
|
||||
|
||||
#nullable enable
|
||||
|
||||
|
|
@ -46,9 +45,9 @@ namespace GameCult.Aetheria.State.Verse
|
|||
}
|
||||
|
||||
public static bool TryCreateCurrent(
|
||||
CultMeshReactiveDocument<AetheriaRuntimeCurrentEntityDocument>? entity,
|
||||
CultMeshReactiveDocument<AetheriaRuntimeCurrentDockingDocument> docking,
|
||||
CultMeshReactiveDocument<AetheriaRuntimeStationRefitDocument> refit,
|
||||
AetheriaRuntimeCurrentEntitySession? entity,
|
||||
AetheriaRuntimeCurrentDockingSession docking,
|
||||
AetheriaRuntimeStationRefitSession refit,
|
||||
out AetheriaRuntimeObservedDockingState? observed)
|
||||
{
|
||||
observed = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue