Remove one-shot observed daemon access

This commit is contained in:
Meta Vens 2026-06-29 01:38:05 +01:00
commit a9e21eacef
3 changed files with 22 additions and 34 deletions

View file

@ -215,19 +215,6 @@ namespace GameCult.Aetheria.State.Verse
return Document<TDocument>().LatestAsync().ConfigureAwait(false).GetAwaiter().GetResult();
}
public async Task<AetheriaRuntimeObservedDaemonState?> LatestObservedDaemonAsync()
{
var frame = await LatestAsync<AetheriaRuntimeDaemonFrameDocument>().ConfigureAwait(false);
var soaView = await TryReadDaemonSoaViewAsync().ConfigureAwait(false);
var zoneRender = await LatestAsync<AetheriaRuntimeZoneRenderDocument>().ConfigureAwait(false);
return new AetheriaRuntimeObservedDaemonState(frame, soaView, zoneRender);
}
public AetheriaRuntimeObservedDaemonState? LatestObservedDaemon()
{
return LatestObservedDaemonAsync().ConfigureAwait(false).GetAwaiter().GetResult();
}
public AetheriaRuntimeObservedDaemonState? CurrentObservedDaemon(
CultMeshReactiveDocumentOptions? options = null)
{
@ -438,21 +425,6 @@ namespace GameCult.Aetheria.State.Verse
}
}
private async Task<AetheriaRuntimeDaemonSoaViewDocument?> TryReadDaemonSoaViewAsync()
{
try
{
var soaView = await LatestAsync<AetheriaRuntimeDaemonSoaViewDocument>().ConfigureAwait(false);
return string.Equals(soaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal)
? soaView
: null;
}
catch (KeyNotFoundException)
{
return null;
}
}
public Observable<TDocument> Watch<TDocument>()
where TDocument : class
{