Persist entity contact state in typed snapshots

This commit is contained in:
Meta Vens 2026-06-14 16:51:56 +01:00
commit 1f8a1576f8
10 changed files with 160 additions and 4 deletions

View file

@ -509,6 +509,26 @@ public sealed class AetheriaEntitySnapshot
[Key(28)]
public int VisibilitySourceCount { get; set; }
[Key(29)]
public AetheriaEntityContactSnapshot[] Contacts { get; set; } = [];
}
[MessagePackObject]
public sealed class AetheriaEntityContactSnapshot
{
[Key(0)]
[CultReference(typeof(AetheriaEntitySnapshot))]
public string TargetEntityKey { get; set; } = "";
[Key(1)]
public double InfoGathered { get; set; }
[Key(2)]
public bool Hostile { get; set; }
[Key(3)]
public bool Visible { get; set; }
}
[MessagePackObject]