Add typed catalog snapshot queries

This commit is contained in:
Meta Vens 2026-06-13 08:24:37 +01:00
commit 6272408db2
148 changed files with 363 additions and 229 deletions

View file

@ -155,6 +155,14 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
return GetNameFileAsync(AetheriaCatalogKeys.NameFileFromLegacyId(legacyId));
}
public AetheriaCatalogSnapshot ReadCatalogSnapshot()
{
return new AetheriaCatalogSnapshot(
Cache.GetAll<AetheriaItemDefinition>(),
Cache.GetAll<AetheriaCorporation>(),
Cache.GetAll<AetheriaNameFile>());
}
public Task<CultRecordHandle<AetheriaPlayerSettings>> PutPlayerSettingsAsync(AetheriaPlayerSettings settings)
{
return Database.PutAsync(new CultRecordKey("global:aetheria.player_settings.v1"), settings);