Remove Starbridge Verse write helpers
This commit is contained in:
parent
52216e2864
commit
727ac1c1da
3 changed files with 8 additions and 43 deletions
|
|
@ -9654,6 +9654,9 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
"WatchVerseAuthorityPolicies()",
|
||||
"CultMeshMutableStatePointer<AetheriaRuntimeDaemonFrameDocument>",
|
||||
"CultMeshMutableStatePointer<AetheriaRuntimeVerseAuthorityPolicyDocument>",
|
||||
"CultMeshMutableStatePointer<AetheriaRuntimeStarbridgeScenarioDocument>",
|
||||
"CultMeshMutableStatePointer<AetheriaRuntimeStarbridgeSessionDocument>",
|
||||
"CultMeshMutableStatePointer<AetheriaRuntimeStarbridgePlayerSeatDocument>",
|
||||
"CultMesh.MutableStatePointer(",
|
||||
"CultMesh.CreateCultCacheDocumentRegistry(RuntimeDocumentTypes)",
|
||||
"CultMesh.CreateCultNetDocumentRegistry(RuntimeDocumentTypes, registry)",
|
||||
|
|
@ -9807,6 +9810,9 @@ static void RequireAetheriaRuntimeVerseClientContract(string root)
|
|||
"public async Task<AetheriaRuntimeStarbridgeScenarioDocument?> GetStarbridgeScenarioAsync()",
|
||||
"public async Task<AetheriaRuntimeStarbridgeSessionDocument?> GetStarbridgeSessionAsync()",
|
||||
"public async Task<AetheriaRuntimeStarbridgePlayerSeatDocument?> GetStarbridgePlayerSeatAsync(string seatId)",
|
||||
"public async Task PutStarbridgeScenarioAsync(",
|
||||
"public async Task PutStarbridgeSessionAsync(",
|
||||
"public async Task PutStarbridgePlayerSeatAsync(",
|
||||
"public async Task<EveSurfaceState?> GetDaemonGameSurfaceAsync()",
|
||||
"public async Task<EveSurfaceState?> GetDaemonGameTuiSurfaceAsync()",
|
||||
"public async Task<EveSurfaceState?> GetDaemonEditorSurfaceAsync()",
|
||||
|
|
|
|||
|
|
@ -72,7 +72,8 @@ public class StarbridgePlayerSeatDocumentTests
|
|||
.GetAwaiter()
|
||||
.GetResult();
|
||||
|
||||
client.PutStarbridgePlayerSeatAsync(seat)
|
||||
client.StarbridgePlayerSeat(seat.SeatId)
|
||||
.ReplaceAsync(seat)
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
var handle = client.Document<AetheriaRuntimeStarbridgePlayerSeatDocument>(
|
||||
|
|
|
|||
|
|
@ -456,48 +456,6 @@ namespace GameCult.Aetheria.State.Verse
|
|||
return AetheriaRuntimeEveCommandClient.ToEnvelope(command);
|
||||
}
|
||||
|
||||
public async Task PutStarbridgeScenarioAsync(
|
||||
AetheriaRuntimeStarbridgeScenarioDocument scenario,
|
||||
bool flush = true)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
if (scenario == null) throw new ArgumentNullException(nameof(scenario));
|
||||
|
||||
scenario.Schema = AetheriaRuntimeDaemonSchemas.StarbridgeScenario;
|
||||
await Database.PutAsync(AetheriaRuntimeVerseRecordKeys.StarbridgeScenarioLatest, scenario)
|
||||
.ConfigureAwait(false);
|
||||
if (flush)
|
||||
await FlushAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public async Task PutStarbridgeSessionAsync(
|
||||
AetheriaRuntimeStarbridgeSessionDocument session,
|
||||
bool flush = true)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
if (session == null) throw new ArgumentNullException(nameof(session));
|
||||
|
||||
session.Schema = AetheriaRuntimeDaemonSchemas.StarbridgeSession;
|
||||
await Database.PutAsync(AetheriaRuntimeVerseRecordKeys.StarbridgeSessionLatest, session)
|
||||
.ConfigureAwait(false);
|
||||
if (flush)
|
||||
await FlushAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public async Task PutStarbridgePlayerSeatAsync(
|
||||
AetheriaRuntimeStarbridgePlayerSeatDocument seat,
|
||||
bool flush = true)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
if (seat == null) throw new ArgumentNullException(nameof(seat));
|
||||
|
||||
seat.Schema = AetheriaRuntimeDaemonSchemas.StarbridgePlayerSeat;
|
||||
await Database.PutAsync(AetheriaRuntimeVerseRecordKeys.StarbridgePlayerSeat(seat.SeatId), seat)
|
||||
.ConfigureAwait(false);
|
||||
if (flush)
|
||||
await FlushAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
internal Task<AetheriaRuntimeEveCommandEnvelope> SubmitInputSettingsCommandAsync(
|
||||
AetheriaRuntimeEveCommandKind command,
|
||||
AetheriaRuntimeInputSettingsCommandBody body,
|
||||
|
|
|
|||
Loading…
Reference in a new issue