Persist entity contact state in typed snapshots
This commit is contained in:
parent
cb9c5ca21f
commit
1f8a1576f8
10 changed files with 160 additions and 4 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue