Route SoA latest view through managed state

This commit is contained in:
Meta Vens 2026-06-28 07:16:21 +01:00
commit 783ea271cc
8 changed files with 69 additions and 62 deletions

View file

@ -24,7 +24,7 @@ namespace GameCult.Aetheria.State.Verse
new Dictionary<string, RetainedMappedBuffer>(StringComparer.Ordinal);
private static long RetainedBufferUseSequence;
public static AetheriaRuntimeDaemonSoaViewDocument PublishCurrentZoneEntities(
public static AetheriaRuntimeDaemonSoaViewDocument BuildCurrentZoneEntities(
string stateFilePath,
AetheriaRuntimeDaemonFrameDocument frame)
{
@ -74,7 +74,6 @@ namespace GameCult.Aetheria.State.Verse
synchronizationMode: AetheriaRuntimeDaemonSoaSynchronizationModes.ImmutableFrame,
renderGroups: CreateRenderGroups(entities));
AetheriaRuntimeDaemonSoaViewStore.PublishView(stateFilePath, view);
return view;
}

View file

@ -1,19 +0,0 @@
#nullable enable
namespace GameCult.Aetheria.State.Verse
{
public static class AetheriaRuntimeDaemonSoaViewStore
{
public static string GetViewPath(string stateFilePath)
{
return AetheriaRuntimeStateBoundary.GetDaemonSoaViewPath(stateFilePath);
}
public static string PublishView(string stateFilePath, AetheriaRuntimeDaemonSoaViewDocument view)
{
var path = GetViewPath(stateFilePath);
AetheriaRuntimeCultCacheDocumentStore.WriteDaemonSoaView(path, view);
return path;
}
}
}

View file

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: e7b9b2f5fbcc6fd44b0a7984041a6330

View file

@ -210,7 +210,7 @@ namespace GameCult.Aetheria.State.Verse
}
var framePath = AetheriaRuntimeDaemonFrameStore.PublishFrame(stateFilePath, frame);
var soaView = AetheriaRuntimeDaemonSoaFramePublisher.PublishCurrentZoneEntities(stateFilePath, frame);
var soaView = AetheriaRuntimeDaemonSoaFramePublisher.BuildCurrentZoneEntities(stateFilePath, frame);
var commandBoundary = AetheriaRuntimeDaemonCommandBoundaryDocument.Create(options.DaemonId);
var commandBoundaryPath = AetheriaRuntimeDaemonPublicationStore.PublishCommandBoundary(
stateFilePath,