Remove state node document helper facade
This commit is contained in:
parent
727ac1c1da
commit
58170328a9
2 changed files with 85 additions and 388 deletions
|
|
@ -94,6 +94,7 @@ RequireInventoryLoadoutSaveRequestAuthority(root);
|
|||
RequireInventoryLoadoutRestoreRequestAuthority(root);
|
||||
RequireDockedCurrentShipRequestAuthority(root);
|
||||
RequireAuthoritySmokeUsesManagedPointers(root);
|
||||
RequireAetheriaStateNodeUsesManagedPointers(root);
|
||||
|
||||
await using var node = await AetheriaStateNode.OpenAsync(
|
||||
statePath,
|
||||
|
|
@ -8583,6 +8584,90 @@ static void RequireAuthoritySmokeUsesManagedPointers(string root)
|
|||
}
|
||||
}
|
||||
|
||||
static void RequireAetheriaStateNodeUsesManagedPointers(string root)
|
||||
{
|
||||
var stateNodePath = Path.Combine(root, "Aetheria.State", "AetheriaStateNode.cs");
|
||||
if (!File.Exists(stateNodePath))
|
||||
{
|
||||
throw new InvalidOperationException("AetheriaStateNode source is missing.");
|
||||
}
|
||||
|
||||
var stateNode = File.ReadAllText(stateNodePath);
|
||||
var requiredSymbols = new[]
|
||||
{
|
||||
"public CultMeshMutableStatePointer<AetheriaWorldState> World()",
|
||||
"public CultMeshMutableStatePointer<AetheriaMigrationLedger> MigrationLedger()",
|
||||
"public CultMeshMutableStatePointer<AetheriaItemDefinition> ItemDefinition(",
|
||||
"public CultMeshMutableStatePointer<AetheriaRuntimeDaemonFrameDocument> LatestFrame()",
|
||||
"public CultMeshMutableStatePointer<AetheriaRuntimeDaemonSoaViewDocument> LatestSoaView()",
|
||||
"public CultMeshMutableStatePointer<AetheriaRuntimeStarbridgeScenarioDocument> StarbridgeScenario()",
|
||||
"public CultMeshMutableStatePointer<EveSurfaceState> DaemonGameSurface()",
|
||||
"private CultMeshMutableStatePointer<T> MutableDocumentPointer<T>(CultRecordKey key)",
|
||||
"CultMesh.MutableStatePointer("
|
||||
};
|
||||
var missingSymbols = requiredSymbols
|
||||
.Where(symbol => !stateNode.Contains(symbol, StringComparison.Ordinal))
|
||||
.ToArray();
|
||||
if (missingSymbols.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"AetheriaStateNode no longer exposes managed typed state pointers: " +
|
||||
string.Join(", ", missingSymbols));
|
||||
}
|
||||
|
||||
var forbiddenSymbols = new[]
|
||||
{
|
||||
"public Task<CultRecordHandle<AetheriaWorldState>> PutWorldAsync(",
|
||||
"public Task<AetheriaWorldState?> GetWorldAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaMigrationLedger>> PutMigrationLedgerAsync(",
|
||||
"public Task<AetheriaMigrationLedger?> GetMigrationLedgerAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaItemDefinition>> PutItemDefinitionAsync(",
|
||||
"public Task<AetheriaItemDefinition?> GetItemDefinitionAsync(",
|
||||
"public Task<AetheriaItemDefinition?> GetItemDefinitionByLegacyIdAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaCorporation>> PutCorporationAsync(",
|
||||
"public Task<AetheriaCorporation?> GetCorporationAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaNameFile>> PutNameFileAsync(",
|
||||
"public Task<AetheriaNameFile?> GetNameFileAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaTradeValuePolicy>> PutTradeValuePolicyAsync(",
|
||||
"public Task<AetheriaTradeValuePolicy?> GetTradeValuePolicyAsync(",
|
||||
"public Task<CultRecordHandle<EveSurfaceState>> PutCatalogSurfaceAsync(",
|
||||
"public Task<EveSurfaceState?> GetCatalogSurfaceAsync(",
|
||||
"public Task<CultRecordHandle<EveProviderAdvertisementState>> PutProviderAdvertisementAsync(",
|
||||
"public Task<EveProviderAdvertisementState?> GetProviderAdvertisementAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaRuntimeDaemonProviderAdvertisementDocument>> PutDaemonProviderAdvertisementAsync(",
|
||||
"public Task<AetheriaRuntimeDaemonProviderAdvertisementDocument?> GetDaemonProviderAdvertisementAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaRuntimeVerseAuthorityPolicyDocument>> PutVerseAuthorityPolicyAsync(",
|
||||
"public Task<AetheriaRuntimeVerseAuthorityPolicyDocument?> GetVerseAuthorityPolicyAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaRuntimeDaemonFrameDocument>> PutDaemonFrameAsync(",
|
||||
"public Task<AetheriaRuntimeDaemonFrameDocument?> GetDaemonFrameAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaRuntimeDaemonSoaViewDocument>> PutDaemonSoaViewAsync(",
|
||||
"public Task<AetheriaRuntimeDaemonSoaViewDocument?> GetDaemonSoaViewAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaRuntimeStarbridgeScenarioDocument>> PutStarbridgeScenarioAsync(",
|
||||
"public Task<AetheriaRuntimeStarbridgeScenarioDocument?> GetStarbridgeScenarioAsync(",
|
||||
"public Task<CultRecordHandle<EveSurfaceState>> PutDaemonGameSurfaceAsync(",
|
||||
"public Task<EveSurfaceState?> GetDaemonGameSurfaceAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaRuntimeSession>> PutRuntimeSessionAsync(",
|
||||
"public Task<AetheriaRuntimeSession?> GetRuntimeSessionAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaPlayerSettings>> PutPlayerSettingsAsync(",
|
||||
"public Task<AetheriaPlayerSettings?> GetPlayerSettingsAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaRunState>> PutRunStateAsync(",
|
||||
"public Task<AetheriaRunState?> GetRunStateAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaEntitySnapshot>> PutEntitySnapshotAsync(",
|
||||
"public Task<AetheriaEntitySnapshot?> GetEntitySnapshotAsync(",
|
||||
"public Task<CultRecordHandle<AetheriaVerseHostSettings>> PutVerseHostSettingsAsync(",
|
||||
"public Task<AetheriaVerseHostSettings?> GetVerseHostSettingsAsync("
|
||||
};
|
||||
var survivingSymbols = forbiddenSymbols
|
||||
.Where(symbol => stateNode.Contains(symbol, StringComparison.Ordinal))
|
||||
.ToArray();
|
||||
if (survivingSymbols.Length > 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"AetheriaStateNode still exposes compatibility document Get/Put helpers instead of managed typed pointers: " +
|
||||
string.Join(", ", survivingSymbols));
|
||||
}
|
||||
}
|
||||
|
||||
static void RequireDaemonVersePublication(string root)
|
||||
{
|
||||
var daemonDocumentsPath = Path.Combine(root, "Packages", "org.gamecult.aetheria.state", "Runtime", "AetheriaRuntimeDaemonDocuments.cs");
|
||||
|
|
|
|||
|
|
@ -298,190 +298,6 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
|
|||
return MutableDocumentPointer<AetheriaEntitySnapshot>(key);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaWorldState>> PutWorldAsync(AetheriaWorldState world)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey("global:aetheria.world_state.v1"), world);
|
||||
}
|
||||
|
||||
public Task<AetheriaWorldState?> GetWorldAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaWorldState>(new CultRecordKey("global:aetheria.world_state.v1"));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaMigrationLedger>> PutMigrationLedgerAsync(AetheriaMigrationLedger ledger)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey("global:aetheria.migration_ledger.v1"), ledger);
|
||||
}
|
||||
|
||||
public Task<AetheriaMigrationLedger?> GetMigrationLedgerAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaMigrationLedger>(new CultRecordKey("global:aetheria.migration_ledger.v1"));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaLegacyCatalogQuarantine>> PutLegacyCatalogQuarantineAsync(
|
||||
AetheriaLegacyCatalogQuarantine quarantine)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey("global:aetheria.legacy_catalog_quarantine.v1"), quarantine);
|
||||
}
|
||||
|
||||
public Task<AetheriaLegacyCatalogQuarantine?> GetLegacyCatalogQuarantineAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaLegacyCatalogQuarantine>(
|
||||
new CultRecordKey("global:aetheria.legacy_catalog_quarantine.v1"));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaItemDefinition>> PutItemDefinitionAsync(
|
||||
CultRecordKey key,
|
||||
AetheriaItemDefinition item)
|
||||
{
|
||||
return Database.PutAsync(key, item);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaItemDefinition>> PutLegacyItemDefinitionAsync(AetheriaItemDefinition item)
|
||||
{
|
||||
return PutItemDefinitionAsync(AetheriaCatalogKeys.ItemDefinitionFromLegacyId(item.LegacyId), item);
|
||||
}
|
||||
|
||||
public Task<AetheriaItemDefinition?> GetItemDefinitionAsync(CultRecordKey key)
|
||||
{
|
||||
return Database.GetAsync<AetheriaItemDefinition>(key);
|
||||
}
|
||||
|
||||
public Task<AetheriaItemDefinition?> GetItemDefinitionByLegacyIdAsync(string legacyId)
|
||||
{
|
||||
return GetItemDefinitionAsync(AetheriaCatalogKeys.ItemDefinitionFromLegacyId(legacyId));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaCorporation>> PutCorporationAsync(CultRecordKey key, AetheriaCorporation corporation)
|
||||
{
|
||||
return Database.PutAsync(key, corporation);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaCorporation>> PutLegacyCorporationAsync(AetheriaCorporation corporation)
|
||||
{
|
||||
return PutCorporationAsync(AetheriaCatalogKeys.CorporationFromLegacyId(corporation.LegacyId), corporation);
|
||||
}
|
||||
|
||||
public Task<AetheriaCorporation?> GetCorporationAsync(CultRecordKey key)
|
||||
{
|
||||
return Database.GetAsync<AetheriaCorporation>(key);
|
||||
}
|
||||
|
||||
public Task<AetheriaCorporation?> GetCorporationByLegacyIdAsync(string legacyId)
|
||||
{
|
||||
return GetCorporationAsync(AetheriaCatalogKeys.CorporationFromLegacyId(legacyId));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaNameFile>> PutNameFileAsync(CultRecordKey key, AetheriaNameFile nameFile)
|
||||
{
|
||||
return Database.PutAsync(key, nameFile);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaNameFile>> PutLegacyNameFileAsync(AetheriaNameFile nameFile)
|
||||
{
|
||||
return PutNameFileAsync(AetheriaCatalogKeys.NameFileFromLegacyId(nameFile.LegacyId), nameFile);
|
||||
}
|
||||
|
||||
public Task<AetheriaNameFile?> GetNameFileAsync(CultRecordKey key)
|
||||
{
|
||||
return Database.GetAsync<AetheriaNameFile>(key);
|
||||
}
|
||||
|
||||
public Task<AetheriaNameFile?> GetNameFileByLegacyIdAsync(string legacyId)
|
||||
{
|
||||
return GetNameFileAsync(AetheriaCatalogKeys.NameFileFromLegacyId(legacyId));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaTradeValuePolicy>> PutTradeValuePolicyAsync(
|
||||
AetheriaTradeValuePolicy policy)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaTradeValuePolicy.RecordKey), policy);
|
||||
}
|
||||
|
||||
public Task<AetheriaTradeValuePolicy?> GetTradeValuePolicyAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaTradeValuePolicy>(
|
||||
new CultRecordKey(AetheriaTradeValuePolicy.RecordKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<EveSurfaceState>> PutCatalogSurfaceAsync(EveSurfaceState surface)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaCatalogSurfaceProjector.SurfaceKey), surface);
|
||||
}
|
||||
|
||||
public Task<EveSurfaceState?> GetCatalogSurfaceAsync()
|
||||
{
|
||||
return Database.GetAsync<EveSurfaceState>(new CultRecordKey(AetheriaCatalogSurfaceProjector.SurfaceKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<EveSurfaceState>> PutOperationsSurfaceAsync(EveSurfaceState surface)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaOperationsSurfaceProjector.SurfaceKey), surface);
|
||||
}
|
||||
|
||||
public Task<EveSurfaceState?> GetOperationsSurfaceAsync()
|
||||
{
|
||||
return Database.GetAsync<EveSurfaceState>(new CultRecordKey(AetheriaOperationsSurfaceProjector.SurfaceKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<EveSurfaceState>> PutPlayerSettingsSurfaceAsync(EveSurfaceState surface)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaPlayerSettingsSurfaceProjector.SurfaceKey), surface);
|
||||
}
|
||||
|
||||
public Task<EveSurfaceState?> GetPlayerSettingsSurfaceAsync()
|
||||
{
|
||||
return Database.GetAsync<EveSurfaceState>(new CultRecordKey(AetheriaPlayerSettingsSurfaceProjector.SurfaceKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<EveProviderAdvertisementState>> PutProviderAdvertisementAsync(
|
||||
EveProviderAdvertisementState advertisement)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaProviderAdvertisementProjector.AdvertisementKey), advertisement);
|
||||
}
|
||||
|
||||
public Task<EveProviderAdvertisementState?> GetProviderAdvertisementAsync()
|
||||
{
|
||||
return Database.GetAsync<EveProviderAdvertisementState>(
|
||||
new CultRecordKey(AetheriaProviderAdvertisementProjector.AdvertisementKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeDaemonProviderAdvertisementDocument>> PutDaemonProviderAdvertisementAsync(
|
||||
AetheriaRuntimeDaemonProviderAdvertisementDocument advertisement)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey("daemon:aetheria.provider_advertisement.v1"), advertisement);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeDaemonProviderAdvertisementDocument?> GetDaemonProviderAdvertisementAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeDaemonProviderAdvertisementDocument>(
|
||||
new CultRecordKey("daemon:aetheria.provider_advertisement.v1"));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeDaemonHealthDocument>> PutDaemonHealthAsync(
|
||||
AetheriaRuntimeDaemonHealthDocument health)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey("daemon:aetheria.health.v1"), health);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeDaemonHealthDocument?> GetDaemonHealthAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeDaemonHealthDocument>(
|
||||
new CultRecordKey("daemon:aetheria.health.v1"));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeDaemonCommandBoundaryDocument>> PutDaemonCommandBoundaryAsync(
|
||||
AetheriaRuntimeDaemonCommandBoundaryDocument boundary)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey("daemon:aetheria.command_boundary.v1"), boundary);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeDaemonCommandBoundaryDocument?> GetDaemonCommandBoundaryAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeDaemonCommandBoundaryDocument>(
|
||||
new CultRecordKey("daemon:aetheria.command_boundary.v1"));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeDaemonCommandDocument>> SubmitDaemonCommandAsync(
|
||||
AetheriaRuntimeDaemonCommandDocument command)
|
||||
{
|
||||
|
|
@ -528,20 +344,6 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
|
|||
.ToArray();
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeVerseAuthorityPolicyDocument>> PutVerseAuthorityPolicyAsync(
|
||||
AetheriaRuntimeVerseAuthorityPolicyDocument policy)
|
||||
{
|
||||
return Database.PutAsync(
|
||||
new CultRecordKey(AetheriaRuntimeVerseAuthorityPolicyDocument.DocumentKey),
|
||||
policy);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeVerseAuthorityPolicyDocument?> GetVerseAuthorityPolicyAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeVerseAuthorityPolicyDocument>(
|
||||
new CultRecordKey(AetheriaRuntimeVerseAuthorityPolicyDocument.DocumentKey));
|
||||
}
|
||||
|
||||
public IReadOnlyList<AetheriaRuntimeAuthorityLeaseDocument> ReadAuthorityLeases()
|
||||
{
|
||||
return Cache.GetAll<AetheriaRuntimeAuthorityLeaseDocument>().ToArray();
|
||||
|
|
@ -581,196 +383,6 @@ public sealed class AetheriaStateNode : IAsyncDisposable, IDisposable
|
|||
return new CultRecordKey($"eve:commands:{StableToken(commandId)}:gamecult.eve.command.v1");
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeDaemonFrameDocument>> PutDaemonFrameAsync(
|
||||
AetheriaRuntimeDaemonFrameDocument frame)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey("daemon:aetheria.frame.latest.v1"), frame);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeDaemonFrameDocument?> GetDaemonFrameAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeDaemonFrameDocument>(
|
||||
new CultRecordKey("daemon:aetheria.frame.latest.v1"));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeDaemonSoaViewDocument>> PutDaemonSoaViewAsync(
|
||||
AetheriaRuntimeDaemonSoaViewDocument view)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey("daemon:aetheria.soa_view.latest.v1"), view);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeDaemonSoaViewDocument?> GetDaemonSoaViewAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeDaemonSoaViewDocument>(
|
||||
new CultRecordKey("daemon:aetheria.soa_view.latest.v1"));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeStarbridgeScenarioDocument>> PutStarbridgeScenarioAsync(
|
||||
AetheriaRuntimeStarbridgeScenarioDocument scenario)
|
||||
{
|
||||
return Database.PutAsync(AetheriaRuntimeVerseRecordKeys.StarbridgeScenarioLatest, scenario);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeStarbridgeScenarioDocument?> GetStarbridgeScenarioAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeStarbridgeScenarioDocument>(
|
||||
AetheriaRuntimeVerseRecordKeys.StarbridgeScenarioLatest);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeStarbridgeSessionDocument>> PutStarbridgeSessionAsync(
|
||||
AetheriaRuntimeStarbridgeSessionDocument session)
|
||||
{
|
||||
return Database.PutAsync(AetheriaRuntimeVerseRecordKeys.StarbridgeSessionLatest, session);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeStarbridgeSessionDocument?> GetStarbridgeSessionAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeStarbridgeSessionDocument>(
|
||||
AetheriaRuntimeVerseRecordKeys.StarbridgeSessionLatest);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeStarbridgeSessionSummaryDocument>> PutStarbridgeSessionSummaryAsync(
|
||||
AetheriaRuntimeStarbridgeSessionSummaryDocument summary)
|
||||
{
|
||||
return Database.PutAsync(AetheriaRuntimeVerseRecordKeys.StarbridgeSessionSummary, summary);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeStarbridgeSessionSummaryDocument?> GetStarbridgeSessionSummaryAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeStarbridgeSessionSummaryDocument>(
|
||||
AetheriaRuntimeVerseRecordKeys.StarbridgeSessionSummary);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<EveSurfaceState>> PutDaemonGameSurfaceAsync(EveSurfaceState surface)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonGameSurfaceKey), surface);
|
||||
}
|
||||
|
||||
public Task<EveSurfaceState?> GetDaemonGameSurfaceAsync()
|
||||
{
|
||||
return Database.GetAsync<EveSurfaceState>(
|
||||
new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonGameSurfaceKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<EveSurfaceState>> PutDaemonGameTuiSurfaceAsync(EveSurfaceState surface)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonGameTuiSurfaceKey), surface);
|
||||
}
|
||||
|
||||
public Task<EveSurfaceState?> GetDaemonGameTuiSurfaceAsync()
|
||||
{
|
||||
return Database.GetAsync<EveSurfaceState>(
|
||||
new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonGameTuiSurfaceKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<EveSurfaceState>> PutDaemonEditorSurfaceAsync(EveSurfaceState surface)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonEditorSurfaceKey), surface);
|
||||
}
|
||||
|
||||
public Task<EveSurfaceState?> GetDaemonEditorSurfaceAsync()
|
||||
{
|
||||
return Database.GetAsync<EveSurfaceState>(
|
||||
new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonEditorSurfaceKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<EveSurfaceState>> PutDaemonEditorTuiSurfaceAsync(EveSurfaceState surface)
|
||||
{
|
||||
return Database.PutAsync(new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonEditorTuiSurfaceKey), surface);
|
||||
}
|
||||
|
||||
public Task<EveSurfaceState?> GetDaemonEditorTuiSurfaceAsync()
|
||||
{
|
||||
return Database.GetAsync<EveSurfaceState>(
|
||||
new CultRecordKey(AetheriaProviderAdvertisementProjector.DaemonEditorTuiSurfaceKey));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRuntimeSession>> PutRuntimeSessionAsync(AetheriaRuntimeSession session)
|
||||
{
|
||||
return Database.PutAsync(RuntimeSessionKey(session.RuntimeId), session);
|
||||
}
|
||||
|
||||
public Task<AetheriaRuntimeSession?> GetRuntimeSessionAsync(string runtimeId)
|
||||
{
|
||||
return Database.GetAsync<AetheriaRuntimeSession>(RuntimeSessionKey(runtimeId));
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaPlayerSettings>> PutPlayerSettingsAsync(AetheriaPlayerSettings settings)
|
||||
{
|
||||
return Database.PutAsync(PlayerSettingsKey, settings);
|
||||
}
|
||||
|
||||
public Task<AetheriaPlayerSettings?> GetPlayerSettingsAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaPlayerSettings>(PlayerSettingsKey);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaLoadoutTemplate>> PutLoadoutTemplateAsync(
|
||||
CultRecordKey key,
|
||||
AetheriaLoadoutTemplate loadout)
|
||||
{
|
||||
return Database.PutAsync(key, loadout);
|
||||
}
|
||||
|
||||
public Task<AetheriaLoadoutTemplate?> GetLoadoutTemplateAsync(CultRecordKey key)
|
||||
{
|
||||
return Database.GetAsync<AetheriaLoadoutTemplate>(key);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaRunState>> PutRunStateAsync(CultRecordKey key, AetheriaRunState run)
|
||||
{
|
||||
return Database.PutAsync(key, run);
|
||||
}
|
||||
|
||||
public Task<AetheriaRunState?> GetRunStateAsync(CultRecordKey key)
|
||||
{
|
||||
return Database.GetAsync<AetheriaRunState>(key);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaZoneState>> PutZoneStateAsync(CultRecordKey key, AetheriaZoneState zone)
|
||||
{
|
||||
return Database.PutAsync(key, zone);
|
||||
}
|
||||
|
||||
public Task<AetheriaZoneState?> GetZoneStateAsync(CultRecordKey key)
|
||||
{
|
||||
return Database.GetAsync<AetheriaZoneState>(key);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaEntitySnapshot>> PutEntitySnapshotAsync(
|
||||
CultRecordKey key,
|
||||
AetheriaEntitySnapshot entity)
|
||||
{
|
||||
return Database.PutAsync(key, entity);
|
||||
}
|
||||
|
||||
public Task<AetheriaEntitySnapshot?> GetEntitySnapshotAsync(CultRecordKey key)
|
||||
{
|
||||
return Database.GetAsync<AetheriaEntitySnapshot>(key);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaVerseHostSettings>> PutVerseHostSettingsAsync(
|
||||
AetheriaVerseHostSettings settings)
|
||||
{
|
||||
return Database.PutAsync(VerseHostSettingsKey, settings);
|
||||
}
|
||||
|
||||
public Task<AetheriaVerseHostSettings?> GetVerseHostSettingsAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaVerseHostSettings>(VerseHostSettingsKey);
|
||||
}
|
||||
|
||||
public Task<CultRecordHandle<AetheriaEveCommandAcceptanceStatus>> PutEveCommandAcceptanceStatusAsync(
|
||||
AetheriaEveCommandAcceptanceStatus status)
|
||||
{
|
||||
return Database.PutAsync(EveCommandAcceptanceStatusKey, status);
|
||||
}
|
||||
|
||||
public Task<AetheriaEveCommandAcceptanceStatus?> GetEveCommandAcceptanceStatusAsync()
|
||||
{
|
||||
return Database.GetAsync<AetheriaEveCommandAcceptanceStatus>(EveCommandAcceptanceStatusKey);
|
||||
}
|
||||
|
||||
public Task FlushAsync(bool soft = false)
|
||||
{
|
||||
return _node.FlushAsync(soft);
|
||||
|
|
|
|||
Loading…
Reference in a new issue