From 4b1fe20ec73fc333d16ec6cb97ddfe7ff78a4cee Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 28 Jun 2026 03:56:55 +0100 Subject: [PATCH] Remove AetheriaClient snapshot wrappers --- Aetheria.State.Verify/Program.cs | 21 +++++++++++---- .../Runtime/AetheriaClient.cs | 27 ------------------- 2 files changed, 16 insertions(+), 32 deletions(-) diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index 6da6c4713..56a38771d 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -9263,7 +9263,6 @@ static void RequireAetheriaRuntimeVerseClientContract(string root) "CultMeshMutableStatePointer", "GetLatestAuthoritativeRunFrameAsync()", "GetObservedDaemonStateAsync()", - "OpenRuntimeCatalog()", "private AetheriaClientState? _aetheriaState", "return Aetheria().Catalog.Latest()", "return _aetheriaState ??= CreateAetheriaStateFacade();", @@ -9285,10 +9284,8 @@ static void RequireAetheriaRuntimeVerseClientContract(string root) "Aetheria().Starbridge.Scenario.LatestAsync()", "Aetheria().Starbridge.Session.LatestAsync()", "Aetheria().Starbridge.PlayerSeat(seatId).LatestAsync()", - "GetPlayerSettingsAsync()", "Aetheria().Settings.Player.LatestAsync()", "Aetheria().Settings.VerseHost.LatestAsync()", - "VerseHostSettingsAsync()", "AetheriaRuntimeLoadoutTemplatesDocument", "ReadRuntimeCatalogSnapshot()", "ReadLoadoutTemplatesDocument()", @@ -13131,7 +13128,13 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root) "CultMeshDocumentHandle GameSurface", "CultMeshDocumentHandle GameTuiSurface", "CultMeshDocumentHandle EditorSurface", - "CultMeshDocumentHandle EditorTuiSurface" + "CultMeshDocumentHandle EditorTuiSurface", + "public CultMeshDocumentHandle Catalog { get; }", + "public CultMeshDocumentHandle LoadoutTemplates { get; }", + "public AetheriaClientSettingsState Settings { get; }", + "public sealed class AetheriaClientSettingsState", + "CultMeshDocumentHandle Player", + "CultMeshDocumentHandle VerseHost" }; var missingDaemonStateFacadeSymbols = requiredDaemonStateFacadeSymbols .Where(symbol => !aetheriaClientState.Contains(symbol, StringComparison.Ordinal)) @@ -13178,6 +13181,10 @@ static void RequireRuntimeStateReaderOwnsUnityStateAcquisition(string root) "return _verse.GetDaemonGameTuiSurfaceAsync();", "return _verse.GetDaemonEditorSurfaceAsync();", "return _verse.GetDaemonEditorTuiSurfaceAsync();", + "public AetheriaRuntimeCatalogSnapshot OpenRuntimeCatalog()", + "public async Task PlayerSettingsAsync()", + "public async Task VerseHostSettingsAsync()", + "public async Task> LoadoutTemplatesAsync()", "scenario ??= await _verse.GetStarbridgeScenarioAsync()", "session ??= await _verse.GetStarbridgeSessionAsync()", "var frame = await _verse.GetLatestFrameAsync()" @@ -14710,6 +14717,10 @@ static void RequireInventoryLoadoutRestoreRequestAuthority(string root) var client = File.Exists(clientPath) ? File.ReadAllText(clientPath) : throw new InvalidOperationException("Cannot verify loadout restore authority; AetheriaClient.cs is missing."); + var clientStatePath = Path.Combine(root, "Packages", "org.gamecult.aetheria.state", "Runtime", "AetheriaClientState.cs"); + var clientState = File.Exists(clientStatePath) + ? File.ReadAllText(clientStatePath) + : throw new InvalidOperationException("Cannot verify loadout restore authority; AetheriaClientState.cs is missing."); var verseClientPath = Path.Combine(root, "Packages", "org.gamecult.aetheria.state", "Runtime", "AetheriaRuntimeVerseClient.cs"); var verseClient = File.Exists(verseClientPath) ? File.ReadAllText(verseClientPath) @@ -14860,7 +14871,7 @@ static void RequireInventoryLoadoutRestoreRequestAuthority(string root) !rtsProjection.Contains("ProjectLoadoutRestoreOptions(", StringComparison.Ordinal) || !rtsProjection.Contains("AetheriaRuntimeDaemonTradeItemQueries.TryProjectLoadoutTemplatePrice(", StringComparison.Ordinal) || !rtsProjection.Contains("credits >= price", StringComparison.Ordinal) || - !client.Contains("State.LoadoutTemplates.LatestAsync()", StringComparison.Ordinal) || + !clientState.Contains("public CultMeshDocumentHandle LoadoutTemplates", StringComparison.Ordinal) || !verseClient.Contains("var loadoutTemplates = await loadoutTemplatesDocument.LatestAsync()", StringComparison.Ordinal) || !verseClient.Contains("ProjectStationRefit(frame, loadoutTemplates.Templates, catalog)", StringComparison.Ordinal)) { diff --git a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaClient.cs b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaClient.cs index ae665e7d2..63dba1eab 100644 --- a/Packages/org.gamecult.aetheria.state/Runtime/AetheriaClient.cs +++ b/Packages/org.gamecult.aetheria.state/Runtime/AetheriaClient.cs @@ -149,33 +149,6 @@ namespace GameCult.Aetheria.State.Verse AetheriaRuntimeDaemonSoaViewStore.GetViewPath(StatePath)); } - public AetheriaRuntimeCatalogSnapshot OpenRuntimeCatalog() - { - ThrowIfDisposed(); - return State.Catalog.Latest(); - } - - public async Task PlayerSettingsAsync() - { - ThrowIfDisposed(); - var document = await State.Settings.Player.LatestAsync().ConfigureAwait(false); - return document.ToSnapshot(); - } - - public async Task VerseHostSettingsAsync() - { - ThrowIfDisposed(); - var document = await State.Settings.VerseHost.LatestAsync().ConfigureAwait(false); - return document.ToSnapshot(); - } - - public async Task> LoadoutTemplatesAsync() - { - ThrowIfDisposed(); - var document = await State.LoadoutTemplates.LatestAsync().ConfigureAwait(false); - return document.Templates; - } - public async Task LoadoutTemplateAsync(string entityKey) { ThrowIfDisposed();