Remove Verse daemon observation shortcuts
This commit is contained in:
parent
8e84a98d64
commit
ecebaf9eb6
2 changed files with 7 additions and 43 deletions
|
|
@ -9484,14 +9484,11 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
"WatchDaemonGameTuiSurfaces()",
|
||||
"WatchDaemonEditorTuiSurfaces()",
|
||||
"CultMeshMutableStatePointer<EveSurfaceState>",
|
||||
"GetLatestAuthoritativeRunFrameAsync()",
|
||||
"GetObservedDaemonStateAsync()",
|
||||
"private AetheriaClientState? _aetheriaState",
|
||||
"return _aetheriaState ??= CreateAetheriaStateFacade();",
|
||||
"var state = Aetheria();",
|
||||
"() => state.Catalog.Latest()",
|
||||
"state.Daemon.LatestFrame.LatestAsync()",
|
||||
"state.Daemon.LatestSoaView.LatestAsync()",
|
||||
"state.Daemon.Health.LatestAsync()",
|
||||
"state.Daemon.CommandBoundary.LatestAsync()",
|
||||
"AetheriaRuntimeLoadoutTemplatesDocument",
|
||||
|
|
@ -9542,6 +9539,13 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
"AetheriaRuntimeVerseClient still routes Eve state-ref resolution through the file-backed compatibility reader.");
|
||||
}
|
||||
|
||||
if (client.Contains("GetObservedDaemonStateAsync()", StringComparison.Ordinal) ||
|
||||
client.Contains("GetLatestAuthoritativeRunFrameAsync()", StringComparison.Ordinal))
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"AetheriaRuntimeVerseClient still exposes daemon observation compatibility helpers; use AetheriaClient managed documents instead.");
|
||||
}
|
||||
|
||||
if (stateReader.Contains("TryReadObservedDaemonState", StringComparison.Ordinal) ||
|
||||
stateReader.Contains("TryReadDaemonSoaView(", StringComparison.Ordinal) ||
|
||||
stateReader.Contains("ResolveEveSurfaceStateRef(", StringComparison.Ordinal) ||
|
||||
|
|
|
|||
|
|
@ -200,29 +200,6 @@ namespace GameCult.Aetheria.State.Verse
|
|||
return _aetheriaState ??= CreateAetheriaStateFacade();
|
||||
}
|
||||
|
||||
public async Task<AetheriaRuntimeObservedDaemonState?> GetObservedDaemonStateAsync()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
var state = Aetheria();
|
||||
var frame = await state.Daemon.LatestFrame.LatestAsync().ConfigureAwait(false);
|
||||
if (frame == null)
|
||||
return null;
|
||||
|
||||
var soaView = await state.Daemon.LatestSoaView.LatestAsync().ConfigureAwait(false);
|
||||
if (soaView == null ||
|
||||
!string.Equals(soaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal))
|
||||
{
|
||||
soaView = null;
|
||||
}
|
||||
|
||||
return new AetheriaRuntimeObservedDaemonState(
|
||||
frame,
|
||||
soaView,
|
||||
AetheriaRuntimeDaemonFrameStore.GetFramePath(StatePath),
|
||||
AetheriaRuntimeDaemonSoaViewStore.GetViewPath(StatePath));
|
||||
}
|
||||
|
||||
public Func<string, string> CreateEveSurfaceStateRefResolver()
|
||||
{
|
||||
return CreateEveSurfaceCultMeshStateRefResolver().AsFunc();
|
||||
|
|
@ -251,23 +228,6 @@ namespace GameCult.Aetheria.State.Verse
|
|||
() => state.Catalog.Latest());
|
||||
}
|
||||
|
||||
public async Task<AetheriaRuntimeDaemonFrameDocument?> GetLatestAuthoritativeRunFrameAsync()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
var frame = await Aetheria().Daemon.LatestFrame.LatestAsync().ConfigureAwait(false);
|
||||
if (frame == null ||
|
||||
!frame.IsAuthoritative ||
|
||||
frame.Run == null ||
|
||||
frame.Run.Zones == null ||
|
||||
frame.Run.Zones.Count == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return frame;
|
||||
}
|
||||
|
||||
public CultMeshMutableStatePointer<AetheriaRuntimeDaemonProviderAdvertisementDocument> ProviderAdvertisement()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
|
|
|||
Loading…
Reference in a new issue