Class GuildEventData
ECA event data for guild join and leave events.
public class GuildEventData : EventData
- Inheritance
-
GuildEventData
- Inherited Members
Constructors
GuildEventData(ICharacter, long, byte, GuildPermissions)
Creates a new GuildEventData.
public GuildEventData(ICharacter initiator, long guildID, byte rankOrder, GuildPermissions permissions)
Parameters
initiatorICharacterThe character joining or leaving the guild.
guildIDlongThe guild ID.
rankOrderbyteThe ladder position in the guild.
permissionsGuildPermissionsThe permissions that rank holds.
Properties
GuildID
The guild ID. Zero indicates no guild.
public long GuildID { get; }
Property Value
Permissions
The permissions the character's rank holds.
public GuildPermissions Permissions { get; }
Property Value
Remarks
Included alongside the order because a rank's POSITION and its POWERS are no longer the same fact. Rank 2 in one guild may invite and rank 2 in another may not, so a trigger that wants to fire for "an officer" has to ask about the permission, not the number.
RankOrder
The character's position on the guild's rank ladder. Zero indicates no guild.
public byte RankOrder { get; }
Property Value
Remarks
This was a GuildRank enum value. Ranks are now rows a guild owns, so there is no
fixed set of names an ECA condition could compare against — the ladder position is the
only thing that means the same in every guild. A designer asking "is this character
senior?" wants Permissions; one asking "how high are they?" wants this.