Wire replica sync into client target shell

This commit is contained in:
Meta Vens 2026-06-17 14:29:41 +01:00
commit a04df8a585
9 changed files with 312 additions and 6 deletions

View file

@ -34,6 +34,8 @@ namespace GameCult.Aetheria.State.Unity
[Key(9)] public string LastDiscoveryAtUtc { get; set; } = "";
[Key(10)] public string LastDiscoveryError { get; set; } = "";
[Key(11)] public string ReplicaStateFilePath { get; set; } = "";
[Key(12)] public string LastReplicaSyncAtUtc { get; set; } = "";
[Key(13)] public string LastReplicaSyncError { get; set; } = "";
}
[MessagePackObject]
@ -96,6 +98,8 @@ namespace GameCult.Aetheria.State.Unity
document.LastDiscoveryAtUtc ??= "";
document.LastDiscoveryError ??= "";
document.ReplicaStateFilePath = NormalizeReplicaStateFilePath(document, clientTargetPath, document.ReplicaStateFilePath);
document.LastReplicaSyncAtUtc ??= "";
document.LastReplicaSyncError ??= "";
foreach (var verse in document.DiscoveredVerses)
{
if (verse == null)