Stabilize Aetheria import and control publication
This commit is contained in:
parent
67c8f6a201
commit
d05c7374b9
5 changed files with 22 additions and 21 deletions
|
|
@ -1521,21 +1521,6 @@ static async Task PublishDaemonApiDocumentsAsync(
|
|||
await node.MutableDocument<AetheriaRuntimeZoneRenderDocument>(AetheriaRuntimeVerseRecordKeys.ZoneRenderLatest)
|
||||
.ReplaceAsync(AetheriaRuntimeGameDocuments.ZoneRender(result.Frame))
|
||||
.ConfigureAwait(false);
|
||||
if (result.SoaFrame != null && result.SoaView != null &&
|
||||
string.Equals(result.SoaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal))
|
||||
{
|
||||
await node.MutableDocument<AetheriaRuntimeDaemonSoaViewDocument>(AetheriaRuntimeVerseRecordKeys.DaemonSoaViewLatest)
|
||||
.ReplaceAsync(result.SoaView)
|
||||
.ConfigureAwait(false);
|
||||
var soaPublication = await soaPublisher.PublishAsync(result.SoaFrame).ConfigureAwait(false);
|
||||
await node.MutableDocument<CultMeshBodyPublicationDocument>(soaPublication.Body.RecordKey)
|
||||
.ReplaceAsync(soaPublication.Body)
|
||||
.ConfigureAwait(false);
|
||||
await node.MutableDocument<EveEntitySoaViewDocument>(AetheriaRuntimeVerseRecordKeys.EveEntitySoaViewLatest)
|
||||
.ReplaceAsync(soaPublication.View)
|
||||
.ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (publishTopology && result.ProviderAdvertisement != null)
|
||||
await node.MutableDocument<AetheriaRuntimeDaemonProviderAdvertisementDocument>(AetheriaRuntimeVerseRecordKeys.DaemonProviderAdvertisement)
|
||||
.ReplaceAsync(result.ProviderAdvertisement)
|
||||
|
|
@ -1590,6 +1575,22 @@ static async Task PublishDaemonApiDocumentsAsync(
|
|||
.ReplaceAsync(AetheriaRuntimeSurfaceDocuments.ToPortableSurface(gameSurface))
|
||||
.ConfigureAwait(false);
|
||||
await PublishDaemonSectorMapSurfaceAsync(node, result.Frame, inputCatalog).ConfigureAwait(false);
|
||||
// Keep low-bandwidth control state ahead of the bulk entity frame on the ordered
|
||||
// subscription stream. Commands and beam feedback must not wait behind SoA delivery.
|
||||
if (result.SoaFrame != null && result.SoaView != null &&
|
||||
string.Equals(result.SoaView.Schema, AetheriaRuntimeDaemonSchemas.SoaView, StringComparison.Ordinal))
|
||||
{
|
||||
await node.MutableDocument<AetheriaRuntimeDaemonSoaViewDocument>(AetheriaRuntimeVerseRecordKeys.DaemonSoaViewLatest)
|
||||
.ReplaceAsync(result.SoaView)
|
||||
.ConfigureAwait(false);
|
||||
var soaPublication = await soaPublisher.PublishAsync(result.SoaFrame).ConfigureAwait(false);
|
||||
await node.MutableDocument<CultMeshBodyPublicationDocument>(soaPublication.Body.RecordKey)
|
||||
.ReplaceAsync(soaPublication.Body)
|
||||
.ConfigureAwait(false);
|
||||
await node.MutableDocument<EveEntitySoaViewDocument>(AetheriaRuntimeVerseRecordKeys.EveEntitySoaViewLatest)
|
||||
.ReplaceAsync(soaPublication.View)
|
||||
.ConfigureAwait(false);
|
||||
}
|
||||
if (!publishTopology)
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ ResetMaterializedStateOutput(statePath);
|
|||
await using var node = await AetheriaStateNode.OpenAsync(
|
||||
statePath,
|
||||
"aetheria-legacy-catalog-import",
|
||||
useDirectoryStore: false);
|
||||
useDirectoryStore: true);
|
||||
|
||||
await node.MutableDocument<AetheriaLegacyCatalogQuarantine>(AetheriaStateNode.LegacyCatalogQuarantineKey)
|
||||
.ReplaceAsync(new AetheriaLegacyCatalogQuarantine
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@
|
|||
"org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.18",
|
||||
"org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3",
|
||||
"org.gamecult.eve.surface": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4",
|
||||
"org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71"
|
||||
"org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.72"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@
|
|||
"hash": "e08fa08335f99e9edddeb706912eecfad07cb281"
|
||||
},
|
||||
"org.gamecult.eve.unity-scene": {
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71",
|
||||
"version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.72",
|
||||
"depth": 0,
|
||||
"source": "git",
|
||||
"dependencies": {
|
||||
|
|
@ -163,7 +163,7 @@
|
|||
"com.unity.render-pipelines.universal": "17.4.0",
|
||||
"com.unity.modules.particlesystem": "1.0.0"
|
||||
},
|
||||
"hash": "261aa269db69a5fe5108632d0ca26627b29f2aef"
|
||||
"hash": "edaf3b1e3bbb06a00b18b9faf508e27e33ae050b"
|
||||
},
|
||||
"com.unity.modules.assetbundle": {
|
||||
"version": "1.0.0",
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ $expected = @{
|
|||
"https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4",
|
||||
"e08fa08335f99e9edddeb706912eecfad07cb281")
|
||||
"org.gamecult.eve.unity-scene" = @(
|
||||
"https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71",
|
||||
"261aa269db69a5fe5108632d0ca26627b29f2aef")
|
||||
"https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.72",
|
||||
"edaf3b1e3bbb06a00b18b9faf508e27e33ae050b")
|
||||
}
|
||||
|
||||
foreach ($packageName in $expected.Keys) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue