Struct PluginAllegianceSnapshot
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Normalized allegiance state known by the current session.
public readonly record struct PluginAllegianceSnapshot : IEquatable<PluginAllegianceSnapshot>
- Implements
- Inherited Members
Constructors
PluginAllegianceSnapshot(long, bool, string, uint, uint, uint, uint)
Normalized allegiance state known by the current session.
public PluginAllegianceSnapshot(long Revision, bool IsKnown, string Name, uint Rank, uint MemberCount, uint VassalCount, uint MonarchObjectId)
Parameters
RevisionlongA number that grows whenever any of this changes.
IsKnownboolTrue once the server has stated the allegiance this session; everything else is empty or zero until then.
NamestringThe allegiance's name; empty when it has none.
RankuintThe character's own rank in the allegiance.
MemberCountuintHow many characters the whole allegiance holds, the monarch included.
VassalCountuintHow many characters are sworn beneath this character, counting their vassals and theirs all the way down: the character's followers.
MonarchObjectIduintThe monarch's character object id, or zero when there is none.
Properties
HasMonarch
True when a monarch identity is available.
public bool HasMonarch { get; }
Property Value
IsKnown
True once the server has stated the allegiance this session; everything else is empty or zero until then.
public bool IsKnown { get; init; }
Property Value
MemberCount
How many characters the whole allegiance holds, the monarch included.
public uint MemberCount { get; init; }
Property Value
Monarch
Who the monarch is: the character itself when it heads the allegiance. Null when the character is in no allegiance, before the server has stated it, and on a host that does not report it.
public PluginAllegianceMember? Monarch { get; init; }
Property Value
MonarchObjectId
The monarch's character object id, or zero when there is none.
public uint MonarchObjectId { get; init; }
Property Value
Name
The allegiance's name; empty when it has none.
public string Name { get; init; }
Property Value
Patron
Who the character is sworn to. Null for a monarch, for a character in no allegiance, before the server has stated it, and on a host that does not report it.
public PluginAllegianceMember? Patron { get; init; }
Property Value
Rank
The character's own rank in the allegiance.
public uint Rank { get; init; }
Property Value
Revision
A number that grows whenever any of this changes.
public long Revision { get; init; }
Property Value
VassalCount
How many characters are sworn beneath this character, counting their vassals and theirs all the way down: the character's followers.
public uint VassalCount { get; init; }
Property Value
Vassals
The characters sworn directly to this one, as the server listed them. Empty when there are none, before the server has stated the allegiance, and on a host that does not report them.
public IReadOnlyList<PluginAllegianceMember> Vassals { get; init; }