Add typed catalog snapshot queries
This commit is contained in:
parent
1c592b10e9
commit
6272408db2
148 changed files with 363 additions and 229 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue