Route Verse compatibility getters through documents

This commit is contained in:
Meta Vens 2026-06-28 03:19:57 +01:00
commit 57d8f1e73b
2 changed files with 31 additions and 24 deletions

View file

@ -9287,11 +9287,18 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
"state.Daemon.LatestSoaView.LatestAsync()",
"state.Daemon.Health.LatestAsync()",
"state.Daemon.CommandBoundary.LatestAsync()",
"Aetheria().Daemon.ProviderAdvertisement.LatestAsync()",
"Aetheria().Daemon.Health.LatestAsync()",
"Aetheria().Daemon.CommandBoundary.LatestAsync()",
"Aetheria().Daemon.LatestFrame.LatestAsync()",
"Aetheria().Daemon.LatestSoaView.LatestAsync()",
"Aetheria().Daemon.GameSurface.LatestAsync()",
"Aetheria().Daemon.GameTuiSurface.LatestAsync()",
"Aetheria().Daemon.EditorSurface.LatestAsync()",
"Aetheria().Daemon.EditorTuiSurface.LatestAsync()",
"Aetheria().Starbridge.Scenario.LatestAsync()",
"Aetheria().Starbridge.Session.LatestAsync()",
"Aetheria().Starbridge.PlayerSeat(seatId).LatestAsync()",
"GetPlayerSettingsAsync()",
"Aetheria().Settings.Player.LatestAsync()",
"Aetheria().Settings.VerseHost.LatestAsync()",
@ -9353,6 +9360,14 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
"var frameTask = GetLatestFrameAsync();",
"var healthTask = GetHealthAsync();",
"var commandBoundaryTask = GetCommandBoundaryAsync();",
"return Database.GetAsync<AetheriaRuntimeDaemonProviderAdvertisementDocument>",
"return Database.GetAsync<AetheriaRuntimeDaemonHealthDocument>",
"return Database.GetAsync<AetheriaRuntimeDaemonCommandBoundaryDocument>",
"return Database.GetAsync<AetheriaRuntimeDaemonFrameDocument>",
"return Database.GetAsync<AetheriaRuntimeDaemonSoaViewDocument>",
"return Database.GetAsync<AetheriaRuntimeStarbridgeScenarioDocument>",
"return Database.GetAsync<AetheriaRuntimeStarbridgeSessionDocument>",
"return Database.GetAsync<AetheriaRuntimeStarbridgePlayerSeatDocument>",
"return Database.GetAsync<EveSurfaceState>(AetheriaRuntimeVerseRecordKeys.DaemonGameSurface);",
"return Database.GetAsync<EveSurfaceState>(AetheriaRuntimeVerseRecordKeys.DaemonGameTuiSurface);",
"return Database.GetAsync<EveSurfaceState>(AetheriaRuntimeVerseRecordKeys.DaemonEditorSurface);",

View file

@ -204,60 +204,52 @@ namespace GameCult.Aetheria.State.Verse
AetheriaRuntimeCatalogStore.OpenReadOnly);
}
public Task<AetheriaRuntimeDaemonProviderAdvertisementDocument?> GetProviderAdvertisementAsync()
public async Task<AetheriaRuntimeDaemonProviderAdvertisementDocument?> GetProviderAdvertisementAsync()
{
ThrowIfDisposed();
return Database.GetAsync<AetheriaRuntimeDaemonProviderAdvertisementDocument>(
AetheriaRuntimeVerseRecordKeys.DaemonProviderAdvertisement);
return await Aetheria().Daemon.ProviderAdvertisement.LatestAsync().ConfigureAwait(false);
}
public Task<AetheriaRuntimeDaemonHealthDocument?> GetHealthAsync()
public async Task<AetheriaRuntimeDaemonHealthDocument?> GetHealthAsync()
{
ThrowIfDisposed();
return Database.GetAsync<AetheriaRuntimeDaemonHealthDocument>(
AetheriaRuntimeVerseRecordKeys.DaemonHealth);
return await Aetheria().Daemon.Health.LatestAsync().ConfigureAwait(false);
}
public Task<AetheriaRuntimeDaemonCommandBoundaryDocument?> GetCommandBoundaryAsync()
public async Task<AetheriaRuntimeDaemonCommandBoundaryDocument?> GetCommandBoundaryAsync()
{
ThrowIfDisposed();
return Database.GetAsync<AetheriaRuntimeDaemonCommandBoundaryDocument>(
AetheriaRuntimeVerseRecordKeys.DaemonCommandBoundary);
return await Aetheria().Daemon.CommandBoundary.LatestAsync().ConfigureAwait(false);
}
public Task<AetheriaRuntimeDaemonFrameDocument?> GetLatestFrameAsync()
public async Task<AetheriaRuntimeDaemonFrameDocument?> GetLatestFrameAsync()
{
ThrowIfDisposed();
return Database.GetAsync<AetheriaRuntimeDaemonFrameDocument>(
AetheriaRuntimeVerseRecordKeys.DaemonFrameLatest);
return await Aetheria().Daemon.LatestFrame.LatestAsync().ConfigureAwait(false);
}
public Task<AetheriaRuntimeDaemonSoaViewDocument?> GetLatestSoaViewAsync()
public async Task<AetheriaRuntimeDaemonSoaViewDocument?> GetLatestSoaViewAsync()
{
ThrowIfDisposed();
return Database.GetAsync<AetheriaRuntimeDaemonSoaViewDocument>(
AetheriaRuntimeVerseRecordKeys.DaemonSoaViewLatest);
return await Aetheria().Daemon.LatestSoaView.LatestAsync().ConfigureAwait(false);
}
public Task<AetheriaRuntimeStarbridgeScenarioDocument?> GetStarbridgeScenarioAsync()
public async Task<AetheriaRuntimeStarbridgeScenarioDocument?> GetStarbridgeScenarioAsync()
{
ThrowIfDisposed();
return Database.GetAsync<AetheriaRuntimeStarbridgeScenarioDocument>(
AetheriaRuntimeVerseRecordKeys.StarbridgeScenarioLatest);
return await Aetheria().Starbridge.Scenario.LatestAsync().ConfigureAwait(false);
}
public Task<AetheriaRuntimeStarbridgeSessionDocument?> GetStarbridgeSessionAsync()
public async Task<AetheriaRuntimeStarbridgeSessionDocument?> GetStarbridgeSessionAsync()
{
ThrowIfDisposed();
return Database.GetAsync<AetheriaRuntimeStarbridgeSessionDocument>(
AetheriaRuntimeVerseRecordKeys.StarbridgeSessionLatest);
return await Aetheria().Starbridge.Session.LatestAsync().ConfigureAwait(false);
}
public Task<AetheriaRuntimeStarbridgePlayerSeatDocument?> GetStarbridgePlayerSeatAsync(string seatId)
public async Task<AetheriaRuntimeStarbridgePlayerSeatDocument?> GetStarbridgePlayerSeatAsync(string seatId)
{
ThrowIfDisposed();
return Database.GetAsync<AetheriaRuntimeStarbridgePlayerSeatDocument>(
AetheriaRuntimeVerseRecordKeys.StarbridgePlayerSeat(seatId));
return await Aetheria().Starbridge.PlayerSeat(seatId).LatestAsync().ConfigureAwait(false);
}
public AetheriaRuntimeCatalogSnapshot OpenRuntimeCatalog()