Restore canonical ship home identity

This commit is contained in:
Meta Vens 2026-07-11 19:45:41 +01:00
commit 3a05d1a143
3 changed files with 8 additions and 0 deletions

View file

@ -2529,6 +2529,7 @@ static AetheriaRuntimeEntitySnapshotCommit ToRuntimeEntity(
var runtimeEntity = new AetheriaRuntimeEntitySnapshotCommit
{
EntityId = entityKey ?? "",
HomeEntityId = entity.HomeEntityKey ?? "",
EntityIndex = entityIndex,
Name = entity.Name ?? "",
Kind = entity.Kind ?? "",

View file

@ -600,6 +600,10 @@ public sealed class AetheriaEntitySnapshot
[Key(29)]
public AetheriaEntityContactSnapshot[] Contacts { get; set; } = [];
[Key(30)]
[CultReference(typeof(AetheriaEntitySnapshot))]
public string HomeEntityKey { get; set; } = "";
}
[MessagePackObject]

View file

@ -958,6 +958,9 @@ namespace GameCult.Aetheria.State.Verse
[Key(42)]
public string EntityId { get; set; } = "";
[Key(43)]
public string HomeEntityId { get; set; } = "";
}
[MessagePackObject]